
/* ===== Header sticky ===== */
#header{
    position: sticky;   /* fica colado no topo */
    top: 0;
    z-index: 30;        /* acima do overlay */
}
/* ===== Mega menu Produtos – layout Solução -> Linhas -> Imagem ===== */

/* painel abaixo do header */
.mega-panel{
    position: absolute;
    left: 0;
    right: 0;
    top: 49%;
    z-index: 1000;
    border: 0;
}

/* quando JS aplicar .show, aparece */
.mega-panel[hidden]{
    display: none;
}
.mega-panel.show{
    display: block;
}

.mega-bg{
    background: #ffffff;
    padding: 16px 0 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,.18);
    border-top: 1px solid rgba(0,0,0,.08);
    min-height: 500px;
}

.mega-label{
    font-size: 0.75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9CA3AF;
}

.mega-close-btn{
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

/* lista de soluções (coluna esquerda) */
.mega-sol-list{
    list-style: none;
    margin: 0;
    padding: 4px 8px 4px 0;
}

.mega-sol-list li + li{
    margin-top: 4px;
}

.mega-sol-btn{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease, transform .18s ease;
}

.mega-sol-ico{
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00AEEF;
}

.mega-sol-ico img{
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.mega-sol-ico--placeholder{
    background: #E5E7EB;
}

.mega-sol-title{
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
}

/* hover/ativo solução */
.mega-sol-btn:hover{
    background: #F3F4F6;
    transform: translateX(2px);
}
.mega-sol-btn.is-active{
    background: #dddddd;
}
.mega-sol-btn.is-active .mega-sol-title{
    color: #000000;
}

/* colunas meio/direita com animação de troca */
.mega-lines-col{
    position: relative;
    min-height: 260px;   /* garante altura mínima dos textos */
}

/* coluna da imagem com proporção fixa */
.mega-hero-col{
    position: relative;
    max-width: 900px;    /* opcional, só pra não esticar demais */
    margin-left: auto;   /* cola na direita */
}

/* truque do aspect-ratio: controla a altura do bloco da imagem */
.mega-hero-col::before{
    content: "";
    display: block;
    padding-bottom: 37%;  /* ajuste fino da proporção (mais alto = valor maior) */
}

/* estado base: invisível e um pouco deslocado */
.mega-lines-group,
.mega-hero{
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

/* ativo: visível */
.mega-lines-group.is-active,
.mega-hero.is-active{
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* título da coluna de linhas */
.mega-lines-title{
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-left: 17px;
}

/* lista de linhas */
.mega-lines-list{
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-lines-list li + li{
    margin-top: 6px;
}

/* link de cada linha */
.mega-line-link{
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #111827;
    position: relative;
    padding-left: 18px;
    transition: color .15s ease, transform .15s ease;
}

.mega-line-link:hover{
    color: #00AEEF;
    transform: translateX(2px);
}
.mega-line-link:hover::before{
    border-color: #00AEEF;
}

/* imagem da solução (direita) — preenche o bloco fixo */
.mega-hero-img{
    width: 649px;
    height: 325px;
    border-radius: 18px;
    object-fit: cover;   /* corta o excesso sem distorcer */
    display: block;
}

/* fallback quando não tem imagem */
.mega-hero-placeholder{
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-weight: 500;
}


/* overlay (se ainda não tiver) */
.mega-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 900;
}
.mega-overlay.d-none{
    display: none;
}
.overlay-hit{
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
}

/* some no mobile */
@media (max-width: 991.98px){
    #megaProducts{
        display: none !important;
    }
}

.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, #00AEEF 0%, #61D4FF 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:#00AEEF;
    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, #00AEEF 0%, #61D4FF 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:#00AEEF; }


/************************ 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(#00AEEF, #00AEEF) 25.52%, #61D4FF 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),
            #00AEEF calc(53.333% + 0.5px),
            #61D4FF 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.6%;
    top: 22%;
    width: 46.25%;
    background: linear-gradient(90deg, #00AEEF 0%, #61D4FF 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: 999;
    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, #00AEEF 0%, #61D4FF  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, #00AEEF 0%, #61D4FF  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;
    }
}