
/* ===== Header sticky ===== */
#header{
    position: sticky;   /* fica colado no topo */
    top: 0;
    z-index: 30;        /* acima do overlay */
}
/* quando o mega está aberto, tiramos o sticky para a área descer junto */
body.mega-open #header{
    position: static !important;
}
/* ===== Overlay continua igual ao seu ===== */
/* .mega-overlay {...} */

/* ===== Mega menu Produtos — layout novo (igual ao print) ===== */

/* posicionamento */
.mega-panel{
    position: absolute;     /* ancorado ao header */
    left: 0; right: 0; top: 49%;
    z-index: 1000;
    border: 0;
    display: none;
}
.mega-panel.show{ display:block; }

/* faixa de fundo com degradê ocupando toda a largura */
.mega-panel .mega-bg{
    background: linear-gradient(90deg, #2F5DB2 0%, #4C75C0 100%);
    padding: 0px 0 24px;
    border-top: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 24px 48px rgba(0,0,0,.18);
}

/* coluna */
.mega-col{ color: #fff; }

/* head cinza (barra do topo da coluna) */
.mega-col-head{
    display:flex; align-items:center; justify-content:space-between;
    padding: 20px 21px;
    background: #4C5669;      /* cinza do print */
    border-radius: 0;
    color:#fff; text-decoration:none;
    margin-bottom: 18px;
}
.mega-col-head .title{
    color: #FFF;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
}
.mega-col-head .chev{
    opacity: .9;
}

/* lista de itens */
.mega-col-list{ list-style: none; margin: 0; padding: 0 0 0 6px; }
.mega-col-list li + li{ margin-top: 12px; }
/* link da lista */
.mega-link{
    position: relative;
    display: inline-flex;               /* respeita o raio da pílula */
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 28px;         /* espaço pro ícone/seta à esquerda */
    color: #fff!important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: transform .15s ease, color .15s ease;
}

/* setinha à esquerda (como no seu código) */
.mega-link::before{
    content:"";
    position:absolute;
    left: 12px;                         /* dentro do padding */
    top: 50%; transform: translateY(-50%) rotate(45deg);
    width: 8px; height: 8px;
    border-right: 1.6px solid #fff;
    border-top:   1.6px solid #fff;
    opacity:.9;
}

/* “pílula” de fundo que aparece no hover/active */
.mega-link::after{
    content:"";
    position:absolute;
    color: #ffffff!important;
    inset: -2px -8px;                   /* expande um pouco em volta */
    left: 6px;                          /* cobre a área da setinha também */
    border-radius: 9999px;              /* pílula */
    background: #0f3e6b;                /* cor do hover da sua arte */
    opacity: 0;
    transition: opacity .15s ease, background .15s ease;
    z-index: -1;                        /* fica atrás do texto */
}

/* estados */
.mega-link:hover,
.mega-link:focus-visible,
.mega-link.is-active{
    transform: translateX(2px);
}

.mega-link:hover::after,
.mega-link:focus-visible::after,
.mega-link.is-active::after{
    opacity: 1;
}

/* (opcional) quando ativo, reforça contraste da seta */
.mega-link:hover::before,
.mega-link.is-active::before{
    opacity: 1;
}

.typeahead{
    position: absolute;
    z-index: 50;
    left: 0; right: 0;
    top: 100%;
    margin-top: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    border-radius: 6px;
    max-height: 420px;
    overflow: auto;
}

.ta-item{
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #F2F2F2;
    cursor: pointer;
}
.ta-item:last-child{ border-bottom: 0; }

.ta-thumb{
    width: 64px; height: 64px; object-fit: cover; border-radius: 4px;
}
.ta-title{ font-weight: 700; color:#1f2937; line-height:1.25; }
.ta-meta{ font-size: 12px; color:#6b7280; margin-top: 2px; }

.ta-item[aria-selected="true"],
.ta-item:hover{ background:#F7F8FA; }

.ta-footer{
    display:flex; align-items:center; justify-content:center;
    padding: 12px 16px;
    background: linear-gradient(90deg, #2F5DB2 0%, #4C75C0 100%);
    color:#fff; font-weight:700; border-bottom-left-radius:6px; border-bottom-right-radius:6px;
    text-decoration:none;
}
.typeahead{ background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.12); border-radius:6px; }
.ta-loading, .ta-error{ padding:.5rem .75rem; display:flex; align-items:center; gap:.5rem; }
.ta-error{ font-size:.875rem; color:#842029; background:#f8d7da; border-top:1px solid #f5c2c7; }

.ta-spinner{
    width:16px; height:16px; border-radius:50%;
    border:2px solid rgba(0,0,0,.1); border-top-color:#4CA7E0;
    animation: spin .7s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.ta-item{ display:flex; gap:.75rem; padding:.6rem .75rem; align-items:center; cursor:pointer; }
.ta-item:hover{ background:#f6f7f9; }
.ta-item[aria-selected="true"]{ background:#eef2ff; }
.ta-thumb{ width:48px; height:48px; object-fit:cover; border-radius:4px; }

.ta-title{ font-weight:600; font-size:.95rem; color:#1f1f20; }
.ta-meta{ font-size:.8rem; color:#6b7280; }

.ta-footer{
    display:block;
    text-align:center;
    padding:.6rem;
    text-decoration:none;
    background:linear-gradient(90deg, #2F5DB2 0%, #4C75C0 100%);;
    color:#fff;
    font-weight:600;
}
.ta-footer:hover{ opacity:.92; color:#fff; }



/* espaçamento entre colunas no grid do bootstrap já cobre; g-5 no HTML */

/* responsivo — em telas <992px o mega some (vc já esconde o header desktop) */
@media (max-width: 991.98px){
    #megaProducts{ display:none !important; }
}

/* ===== Mobile menu (garantias) ===== */
.mobile-menu .submenu li a{
    display:block;
    padding: 8px 0;
    color:#111;
    text-decoration:none;
}

.mobile-menu .submenu li a:hover{ color:#4CA7E0; }


/************************ HEADER *******************************/
#header {
    position: sticky;
    top: 0;
    z-index: 1050; /* acima do conteúdo comum */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#header-topo{
    background: #035594;
}

#form-pesquisa input {
    background: rgba(255, 255, 255, 0.30);
    color: #000000;
    border: 1px solid rgba(226, 228, 230, 1);
    border-radius: 0;
    height: 45px;
}

#form-pesquisa input::placeholder {
    color: #000000;
}

#form-pesquisa button svg {
    fill: #000000;
}

.nav-anchor{
    color: #1F1F20;

    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}
#header-topo .nav-anchor{
    color: #ffffff;
    leading-trim: both;
    text-edge: cap;
    font-family: Roboto;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1rem;
}

.menu-bottom{
    height: 75px;
}

.bg-logo{
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    aspect-ratio: 1 / 1;
    height: auto;
    background-color: #ffffff;
    cursor: pointer;
}

.nav-anchor{
    font-size: 14px;
}

#header-back .nav-anchor{
    color: #000000;
    font-size: 20px;
}

#header-back .menu-bottom {
    height: 92px;
}
#header-back .bg-logo {
    min-height: 92px;
    max-height: 92px;
}

#header-back #form-pesquisa input {
    background: white;
    color: #73757B;
    border: 1px solid #E2E4E6;
    border-radius: 0;
    height: 45px;
}

#header-back #form-pesquisa input::placeholder {
    color: #73757B;
}

#header-back #form-pesquisa button svg {
    fill: #73757B;
}

#header-back {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}
#header-back.visible {
    display: block;
}

/* Estilo base: ambos os menus fixos */
#header, #header-back {
    top: 0;
    left: 0;
    padding: 0;
    width: 100%;
    z-index: 999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Visibilidade padrão */
#header {
    opacity: 1;
    visibility: visible;
}
#header.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ícone hamburguer */
.navT {
    cursor: pointer;
    height: 40px;
    width: 30px;
    position: relative;
    margin-right: 10px;
    display: inline-block;
}

.navT .icon {
    position: absolute;
    top: 12px; /* melhor alinhamento vertical */
    left: 0;
    width: 30px;
    height: 2px;
    background: black;
    transition: 0.3s;
}

.navT .icon::before,
.navT .icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: black;
    transition: 0.3s;
}

.navT .icon::before {
    top: -6px;
}

.navT .icon::after {
    top: 6px;
}

.navT.active .icon {
    background: transparent;
}

.navT.active .icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navT.active .icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Menu mobile */
#menu {
    position: absolute; /* usa o header como referência */
    top: 107px; /* mesma altura do seu header */
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 999;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-top: 1px solid #ddd;
}

/* Quando aberto */
#menu.open {
    max-height: 500px; /* ajuste conforme necessário */
}
:root{
    --sms-gray-bg:#EDECEB;
    --sms-gray-txt:#73757B;
    --sms-blue-grad-a:#4C75C0;
    --sms-blue-grad-b:#7AA6F5;
    --sms-white:#ffffff;
}

#sms-static-band{
    border-bottom: 1px solid rgba(0,0,0,.06);
}

/* coluna esquerda (cinza) */
#sms-static-band .sms-left{
    min-height: 72px;
    background: var(--sms-gray-bg);
    padding-top: 18px;
    padding-bottom: 18px;
    padding-left: 0px;   /* medidas do seu Figma */
    padding-right: 48px;
    display: flex;
    align-items: center;
}
#sms-static-band .sms-left-inner{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#sms-static-band .sms-query-wrap{
    display: flex;
    align-items: center;
    gap: 15px;
}
#sms-static-band .sms-ico{
    width: 24px;
    height: 24px;
    display: inline-block;
}
#sms-static-band .sms-input-xl{
    border: 0;
    outline: 0;
    background: transparent;
    width: 540px;          /* largura visual p/ 1920px */
    max-width: 100%;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    color: var(--sms-gray-txt);
    padding: 0;
}

/* divisor vertical + “Buscar” texto-botão */
#sms-static-band .sms-vr{
    width: 1px;
    height: 36px;
    background: var(--sms-gray-txt);
    opacity: .95;
}
#sms-static-band .sms-btn-buscar{
    border: 0;
    background: transparent;
    color: var(--sms-gray-txt);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    padding: 0;
    cursor: pointer;
}

/* coluna direita (degradê) */
#sms-static-band .sms-right{
    min-height: 72px;
    background: linear-gradient(90deg, var(--sms-blue-grad-a) 0%, var(--sms-blue-grad-b) 100%);
    padding: 18px 48px;
    display: flex;
    align-items: center;
}
#sms-static-band .sms-customize{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--sms-white);
    text-decoration: none;
}
#sms-static-band .sms-customize .left{
    display: flex;
    align-items: center;
    gap: 15px;
}
#sms-static-band .sms-ico-white{
    width: 24px;
    height: 24px;
    display: inline-block;
}
#sms-static-band .sms-caret{
    width: 18px;
    height: 20px;
    display: inline-block;
}
#sms-static-band .sms-customize .label{
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--sms-white);
}

/* responsividade (ajuste fino) */
@media (max-width:1399.98px){
    #sms-static-band .sms-left{ padding-left: 0px; padding-right: 32px; }
    #sms-static-band .sms-right{ padding-left: 32px; padding-right: 32px; }
    #sms-static-band .sms-input-xl{ font-size: 22px; }
    #sms-static-band .sms-btn-buscar,
    #sms-static-band .sms-customize .label{ font-size: 22px; }
    #sms-static-band .sms-input-xl {
        width: 460px!important;
    }
}
/* como no site referência, escondemos a faixa no mobile; remova se quiser mostrar */
@media (max-width:1200px){
        #sms-static-band .sms-input-xl {
        width: 388px !important;
    }
}
/* como no site referência, escondemos a faixa no mobile; remova se quiser mostrar */
@media (max-width:991.98px){
    #sms-static-band{ display: none; }
}

/* split 7/12 (58.333%) cinza | 5/12 degradê, 1px “crisp” na divisão */
.busca-personalizado{
    background: linear-gradient(
            to right,
            #EDECEB 0,
            #EDECEB calc(54.333% - 0.5px),
            #4C75C0 calc(53.333% + 0.5px),
            #7AA6F5 100%
    );
}

/* a cor agora vem do wrapper; deixe as colunas transparentes */
#sms-static-band .sms-left{
    background: transparent;
}

#sms-static-band .sms-right{
    background: transparent;   /* o degradê já está no wrapper */
    padding: 18px 3px;
}

/* mantém textos/ícones brancos do lado direito */
#sms-static-band .sms-customize,
#sms-static-band .sms-customize .label{ color:#fff; }

/* ===== Customize dropdown ===== */
.busca-personalizado{ position: relative; } /* ancora o dropdown */

#customizePanel[hidden]{ display:none; }

#customizePanel {
    position: absolute;
    right: -0.9%;
    top: 22%;
    width: 46.55%;
    background: linear-gradient(90deg, #4C75C0 0%, #7AA6F5 100%);
    border-radius: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .10);
    color: #fff;
    padding: 14px 16px;
    z-index: 1100;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

/* quando aberto */
#customizePanel.show{
    opacity: 1;
    transform: translateY(0);
}

/* título do card */
.customize-title{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    letter-spacing: .12em;
    font-weight: 700;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 6px;
}

/* ícone “T” (mock do pictograma do print) */
.customize-title .ico{
    width: 18px; height: 18px;
    border: 2px solid #fff; border-radius: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; line-height: 1;
}

/* lista de destinos */
.customize-list{ list-style: none; margin: 0; padding: 6px 0 0; }
.customize-list li + li{ margin-top: 6px; }

.customize-link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.35);
    color: #fff; text-decoration: none;
    font-size: .95rem; font-weight: 500;
    width: 46%;
}

.customize-link .subtitle{
    display:block; font-weight:400; opacity:.9; font-size:.9rem;
}

.customize-link .chev{
    opacity: .9; transition: transform .15s ease, opacity .15s ease;
}

.customize-link:hover .chev{
    transform: translateX(2px); opacity: 1;
}

/* fecha a borda do último item */
.customize-list li:last-child .customize-link{ border-bottom: 0; }

/* opcional: em telas <992px a faixa some; esconda o dropdown também */
@media (max-width: 991.98px){
    #customizePanel{ display:none !important; }
}


/* Padroniza a largura do bloco da imagem em desktop
   (evita variação de altura entre cards) */
@media (min-width: 992px){
    .card-produto .img-wrapper{
        flex:0 0 325px;                 /* casa com o thumbnail 452x452 */
    }
}

@media (max-width: 767.98px){
    #header-topo .nav-anchor {
        font-size: 0.675rem;
    }
}

/* ===== Faixa mobile ===== */
.busca-personalizado-mobile{
    background: transparent;
}

#sms-mobile-band{
    padding-bottom: 12px;
}

.bp-left{
    background: #EDECEB;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 0;
    padding: 10px 12px;
    position: relative;
}

.bp-left-inner{
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.bp-query-wrap{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}

.bp-ico{
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 auto;
}

.bp-input{
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: #73757B;
    padding: 0;
}

.bp-btn-buscar{
    border: 0;
    background: transparent;
    color: #73757B;
    font-size: 16px;
    font-weight: 500;
    padding: 0 4px;
}

/* CTA azul embaixo */
.bp-right{
    margin-top: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(90deg, #4C75C0 0%, #7AA6F5 100%);
    color: #ffffff;
    border-radius: 0;
    padding: 12px 14px;
}

.bp-right .left{
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-ico-white{
    width: 20px;
    height: 20px;
    display: inline-block;
}

.bp-right .label{
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

/* Dropdown Customize (mobile) */
#customizePanelMobile[hidden]{
    display: none;
}

#customizePanelMobile{
    margin-top: 0;
    background: linear-gradient(90deg, #4C75C0 0%, #7AA6F5 100%);
    border-radius: 0;
    box-shadow: 0 10px 18px rgba(0,0,0,0.15);
    color: #ffffff;
    padding: 8px 12px;
}

.customize-list-m{
    list-style: none;
    margin: 0;
    padding: 0;
}

.customize-list-m li + li{
    margin-top: 4px;
}

.customize-link-m{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-size: 15px;
    font-weight: 500;
}

.customize-list-m li:last-child .customize-link-m{
    border-bottom: 0;
}

/* Typeahead (mobile) prende ao formulário e ocupa a largura do card cinza) */
#search-mobile .typeahead{
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% + 6px);
    margin: 0;
    max-height: 60vh;
    z-index: 1200;
}

/* Garante exibição no mobile (não esconder como no desktop) */
@media (max-width: 991.98px){
    #sms-static-band{
        display: none;
    }
    .busca-personalizado-mobile{
        display: block;
    }
}

@media (max-width: 991.98px){
    .mobile-nav.d-md-none{
        position: sticky;
        top: 0;
        z-index: 1100;
        background: #fff; /* garante contraste */
    }
}

@media (max-width: 1697px) {
    #sms-static-band .sms-left {
        padding-right: 70px!important;
    }
}