/* Mega dropdown base */
.mega-products .mega-dropdown {
    width: 100%;
    border: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* Abas (logos) */
.brand-tab {
    border: 1px solid #e9ecef;
    background: #fff;
    padding: .5rem .75rem;
    border-radius: 12px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.brand-tab:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.brand-tab.active { border-color: #0d6efd33; box-shadow: inset 0 0 0 2px #0d6efd1a; }
.brand-logo { display: block; max-width: 120px; max-height: 56px; }

/* Painéis de conteúdo */
.brand-panel { display: none; }
.brand-panel.active { display: block; }

/* Lista de famílias */
.families-grid .family-link {
    background: #fff;
    border: 1px solid #edf1f5;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.families-grid .family-link:hover {
    background: #f7faff;
    border-color: #dbe7ff;
    color: #0d6efd;
}
.family-name { font-size: 1rem; line-height: 1.2; }

/* Preview da imagem à direita */
.family-preview { background: #f8f9fa; }
.preview-img { object-fit: cover; }

/* Responsivo: empilha no mobile e simplifica interação */
@media (max-width: 991.98px) {
    .mega-products .mega-dropdown { border-radius: 0; }
    .brand-tabs { gap: .5rem; }
    .brand-logo { max-width: 96px; max-height: 44px; }
}

/* Mega menu full-width colado no topo do header */
.mega-products.position-static .mega-dropdown {
    inset: 100% auto auto auto !important; /* logo abaixo do header */
    transform: translateX(-50%) !important;
    left: 50% !important;

    width: 68%;
    max-width: var(--bs-container-lg); /* segue largura do container bootstrap */

    margin-top: 0;
    border-radius: 0 0 18px 18px;
    z-index: 1050;
    padding: 0;
}


/* Use container amplo dentro do mega (pode trocar por .container-fluid) */
.mega-products .mega-dropdown > .container {
    max-width: 1200px;            /* ajuste se quiser mais largo */
}

/* Evita que algum ancestral corte o dropdown */
.navbar,
.navbar .container,
.mega-products { overflow: visible; }

/* Em telas pequenas, também ocupa 100% */
@media (max-width: 991.98px) {
    .mega-products.position-static .mega-dropdown {
        width: 100%;
        max-width: 100%;
        border-radius: 0;            /* mobile reto fica melhor */
    }
}


.mega-products .dropdown-toggle::after {
    top: 40px;
}

/* Esconde estrutura desktop no mobile (só por garantia extra) */
@media (max-width: 991.98px) {
    .brand-tabs, .brand-panels { display: none !important; }
}

/* Estilo do accordion mobile */
.mobile-accordion .mob-toggle {
    background: #fff;
    border: 0;
    text-align: left;
}
.mobile-accordion .mob-item + .mob-item .mob-toggle { border-top: 1px solid #f1f3f5; }

.mobile-accordion .mob-panel {
    background: #fff;
}

/* Chevron animado */
.mobile-accordion .chev {
    width: 18px; height: 18px;
    display: inline-block;
    position: relative;
}
.mobile-accordion .chev::before, .mobile-accordion .chev::after {
    content: ""; position: absolute; inset: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-top: 2px;
}
.mobile-accordion .mob-toggle[aria-expanded="true"] .chev {
    transform: rotate(180deg);
    transition: transform .2s ease;
}

/* Harmoniza os cards de família no mobile */
.mobile-accordion .family-link {
    background: #fff;
    border: 1px solid #edf1f5;
}
.mobile-accordion .family-link:active,
.mobile-accordion .family-link:hover {
    background: #f7faff;
    border-color: #dbe7ff;
    color: #0d6efd;
}
/* GARANTIR que no mobile o mega fique alinhado à viewport */
@media (max-width: 991.98px) {
    /* aumenta a especificidade para ganhar da regra desktop */
    .navbar .mega-products.position-static .mega-dropdown {
        left: 0 !important;
        right: 0 !important;
        inset: 100% 0 auto 0 !important; /* logo abaixo do header */
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        border-radius: 0;
    }

    /* evita que algum pai recorte / desloque o dropdown */
    .navbar,
    .navbar .container,
    .mega-products { overflow: visible !important; position: static !important; }
    .mega-products .dropdown-toggle::after {
        top: 18.5%;
    }
}

.nav-linguagem{
      list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.nav-linguagem a{
      width: auto;
    height: auto;
}

