/*
|--------------------------------------------------------------------------
| TWANA HEADER 8
|--------------------------------------------------------------------------
| Visual proprietário TWANA
| TWANA_HEADER_PREMIUM_CSS_M47F5B
|--------------------------------------------------------------------------
*/

.tw-header {
    --tw-navy: #071d33;
    --tw-navy-2: #0c2945;
    --tw-orange: #f05a28;
    --tw-orange-dark: #dc481a;
    --tw-text: #152d42;
    --tw-muted: #71808e;
    --tw-border: #e7edf1;
    --tw-surface: #ffffff;
    --tw-soft: #f6f8fa;

    position: relative;
    z-index: 1020;
    width: 100%;
    background: var(--tw-surface);
    box-shadow: 0 2px 14px rgba(7, 29, 51, .05);
}

.tw-header-main {
    position: relative;
    z-index: 2;
    background: #fff;
}

.tw-header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

.tw-header-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.tw-header-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 42px;
    object-fit: contain;
}

.tw-header-search-wrap {
    flex: 1 1 auto;
    min-width: 220px;
}

.tw-header-search {
    position: relative;
    width: 100%;
    max-width: 610px;
    margin: 0 auto;
}

.tw-header-search input {
    width: 100%;
    height: 48px;
    padding: 0 56px 0 18px;

    border: 1px solid #dfe6eb;
    border-radius: 14px;

    background: #f7f9fa;

    color: var(--tw-text);
    font-size: 13px;
    font-weight: 500;

    outline: 0;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.tw-header-search input::placeholder {
    color: #8b98a4;
}

.tw-header-search input:focus {
    background: #fff;
    border-color: rgba(240, 90, 40, .55);
    box-shadow: 0 0 0 4px rgba(240, 90, 40, .08);
}

.tw-header-search button {
    position: absolute;
    top: 50%;
    right: 7px;

    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    padding: 0;
    border: 0;
    border-radius: 10px;

    transform: translateY(-50%);

    background: var(--tw-orange);
    color: #fff;

    font-size: 18px;

    transition:
        background .2s ease,
        transform .2s ease;
}

.tw-header-search button:hover {
    background: var(--tw-orange-dark);
}

.tw-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.tw-header-action {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 44px;
    padding: 5px 8px;

    border-radius: 11px;

    color: var(--tw-text);

    text-decoration: none !important;

    transition:
        background .2s ease,
        color .2s ease;
}

.tw-header-action:hover {
    background: #f6f8fa;
    color: var(--tw-orange);
}

.tw-header-action-icon {
    position: relative;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border: 1px solid #e2e8ec;
    border-radius: 10px;

    background: #fff;

    font-size: 20px;
}

.tw-header-action-copy {
    line-height: 1.1;
}

.tw-header-action-copy small {
    display: block;

    margin-bottom: 3px;

    color: #87939f;

    font-size: 9px;
    font-weight: 500;
}

.tw-header-action-copy strong {
    display: block;

    color: var(--tw-text);

    font-size: 11px;
    font-weight: 800;
}

.tw-header-badge {
    position: absolute;
    top: -6px;
    right: -6px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    border: 2px solid #fff;
    border-radius: 999px;

    background: var(--tw-orange);
    color: #fff;

    font-size: 9px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
}

.tw-header-cart {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.tw-header .nav-cart-box > a {
    border-radius: 11px;
}

.tw-header-nav {
    border-top: 1px solid var(--tw-border);
    border-bottom: 1px solid var(--tw-border);

    background: #fff;
}

.tw-header-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 49px;
}

.tw-header-nav-left,
.tw-header-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tw-header-category-button,
.tw-header-nav-link,
.tw-header-seller {
    text-decoration: none !important;
}

.tw-header-category-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 36px;
    padding: 0 14px;

    border-radius: 10px;

    background: var(--tw-navy);
    color: #fff !important;

    font-size: 11px;
    font-weight: 800;

    transition: background .2s ease;
}

.tw-header-category-button:hover {
    background: var(--tw-navy-2);
}

.tw-header-nav-link {
    display: inline-flex;
    align-items: center;

    min-height: 36px;
    padding: 0 10px;

    border-radius: 9px;

    color: #344b5f !important;

    font-size: 11px;
    font-weight: 700;

    transition:
        background .2s ease,
        color .2s ease;
}

.tw-header-nav-link:hover {
    background: #f7f9fa;
    color: var(--tw-orange) !important;
}

.tw-header-safe-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #527066;

    font-size: 10px;
    font-weight: 700;
}

.tw-header-safe-copy i {
    color: #3f9568;
    font-size: 16px;
}

.tw-header-seller {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 36px;
    padding: 0 14px;

    border: 1px solid rgba(240, 90, 40, .22);
    border-radius: 10px;

    background: rgba(240, 90, 40, .07);
    color: var(--tw-orange) !important;

    font-size: 11px;
    font-weight: 800;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.tw-header-seller:hover {
    border-color: rgba(240, 90, 40, .42);
    background: rgba(240, 90, 40, .12);
}

.tw-header-mobile-menu {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid var(--tw-border);
    border-radius: 10px;

    background: #fff;
    color: var(--tw-navy);

    font-size: 21px;
}

.tw-header-mobile-search {
    padding: 0 0 12px;
}

@media (max-width: 1199px) {

    .tw-header-row {
        gap: 12px;
        min-height: 68px;
    }

    .tw-header-logo img {
        max-width: 150px;
        max-height: 36px;
    }

}

@media (max-width: 767px) {

    .tw-header-row {
        gap: 8px;
        min-height: 62px;
    }

    .tw-header-logo {
        flex: 1 1 auto;
    }

    .tw-header-logo img {
        max-width: 126px;
        max-height: 32px;
    }

    .tw-header-actions {
        gap: 2px;
    }

    .tw-header-action {
        padding: 3px;
    }

    .tw-header-action-icon {
        width: 33px;
        height: 33px;
        font-size: 19px;
    }

    .tw-header-search input {
        height: 44px;
        border-radius: 12px;
    }

    .tw-header-search button {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

}

@media (max-width: 420px) {

    .tw-header-logo img {
        max-width: 105px;
    }

}

/*
|--------------------------------------------------------------------------
| TWANA HEADER CART
|--------------------------------------------------------------------------
| TWANA_HEADER_CART_M47F7B
|
| Corrige somente a apresentacao do carrinho dentro do Header 8.
| Nao altera o partial nativo e nao altera Header 1-7.
|--------------------------------------------------------------------------
*/

.tw-header .tw-header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 44px;
}

.tw-header .tw-header-cart > a {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 42px;
    min-width: 42px;
    height: 42px !important;

    padding: 0 !important;

    border: 1px solid #e2e8ec;
    border-radius: 10px !important;

    background: #ffffff;

    color: var(--tw-text) !important;

    text-decoration: none !important;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.tw-header .tw-header-cart > a:hover {
    background: #f7f9fa;
    border-color: #d7e0e6;

    color: var(--tw-orange) !important;
}

/*
|--------------------------------------------------------------------------
| Forcar cor TWANA
|--------------------------------------------------------------------------
| O carrinho nativo recebe cor inline baseada no header_element publico.
| Aqui sobrescrevemos apenas dentro do Header 8.
|--------------------------------------------------------------------------
*/

.tw-header .tw-header-cart svg,
.tw-header .tw-header-cart svg *,
.tw-header .tw-header-cart i {
    color: var(--tw-text) !important;
}

.tw-header .tw-header-cart svg {
    width: 22px !important;
    height: 22px !important;
}

.tw-header .tw-header-cart > a > span.mr-2,
.tw-header .tw-header-cart > a > span.mr-1 {
    margin: 0 !important;
}

/*
|--------------------------------------------------------------------------
| Remover total textual no Header TWANA
|--------------------------------------------------------------------------
| O dropdown continua exibindo subtotal normalmente.
|--------------------------------------------------------------------------
*/

.tw-header .tw-header-cart > a > span.fs-14 {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Badge de quantidade
|--------------------------------------------------------------------------
*/

.tw-header .tw-header-cart .nav-box-text {
    position: absolute;
    top: -5px;
    right: -5px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 19px;
    min-width: 19px;
    height: 19px;

    margin: 0 !important;
    padding: 0 3px;

    border: 2px solid #ffffff;
    border-radius: 999px;

    background: var(--tw-orange);

    color: #ffffff !important;

    font-size: 0 !important;
    font-weight: 800 !important;
    line-height: 15px !important;

    pointer-events: none;
}

.tw-header .tw-header-cart .cart-count {
    color: #ffffff !important;

    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 15px !important;
}

/*
|--------------------------------------------------------------------------
| Dropdown
|--------------------------------------------------------------------------
*/

.tw-header .tw-header-cart .mt-cart-dropdown-menu {
    margin-top: 10px !important;

    border: 1px solid var(--tw-border);
    border-radius: 14px !important;

    box-shadow:
        0 18px 45px rgba(7, 29, 51, .14);
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .tw-header .tw-header-cart {
        min-width: 35px;
        min-height: 35px;
    }

    .tw-header .tw-header-cart > a {
        width: 34px;
        min-width: 34px;
        height: 34px !important;

        border-radius: 9px !important;
    }

    .tw-header .tw-header-cart svg {
        width: 19px !important;
        height: 19px !important;
    }

    .tw-header .tw-header-cart .nav-box-text {
        top: -6px;
        right: -6px;

        width: 18px;
        min-width: 18px;
        height: 18px;

        line-height: 14px !important;
    }

    .tw-header .tw-header-cart .cart-count {
        font-size: 8px !important;
        line-height: 14px !important;
    }

}

/*
|--------------------------------------------------------------------------
| Celulares estreitos
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {

    .tw-header-actions {
        flex: 0 0 auto;
        gap: 4px;
    }

    .tw-header .tw-header-action {
        padding: 0;
    }

    .tw-header .tw-header-action-icon {
        width: 34px;
        height: 34px;
    }

}

/*
|--------------------------------------------------------------------------
| TWANA MOBILE COMMERCIAL ACTIONS
|--------------------------------------------------------------------------
| TWANA_MOBILE_COMMERCIAL_ACTIONS_CSS_M47F7C
|
| Topo mobile:
| Orçamento + Atendimento.
|
| Navegação pessoal permanece na barra inferior.
|--------------------------------------------------------------------------
*/

.tw-mobile-commercial-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.tw-mobile-commercial-action {
    position: relative;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border-radius: 10px;

    text-decoration: none !important;

    font-size: 19px;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.tw-mobile-commercial-action:active {
    transform: scale(.96);
}

/*
|--------------------------------------------------------------------------
| Orçamento
|--------------------------------------------------------------------------
*/

.tw-mobile-commercial-action--quote {
    border: 1px solid var(--tw-orange);

    background: var(--tw-orange);

    color: #ffffff !important;

    box-shadow:
        0 5px 14px rgba(240, 90, 40, .18);
}

.tw-mobile-commercial-action--quote:hover {
    background: var(--tw-orange-dark);
    border-color: var(--tw-orange-dark);

    color: #ffffff !important;
}

/*
|--------------------------------------------------------------------------
| Atendimento
|--------------------------------------------------------------------------
*/

.tw-mobile-commercial-action--support {
    border: 1px solid #e2e8ec;

    background: #ffffff;

    color: var(--tw-navy) !important;
}

.tw-mobile-commercial-action--support:hover {
    border-color: #cfd9e0;

    background: #f7f9fa;

    color: var(--tw-orange) !important;
}

/*
|--------------------------------------------------------------------------
| Mobile muito estreito
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {

    .tw-mobile-commercial-actions {
        gap: 4px;
    }

    .tw-mobile-commercial-action {
        width: 32px;
        height: 32px;

        border-radius: 9px;

        font-size: 18px;
    }

}


/* ==========================================================
   TWANA_HEADER_BUYER_DESKTOP_S21_53E

   Refinamento do header desktop:
   - logo mais bem posicionada
   - busca aproveita melhor a largura
   - ações agrupadas à direita
   - reduz espaços mortos
   - preserva tablet/mobile
   ========================================================== */

@media (min-width: 1200px) {

    .tw-header .tw-header-row {
        display: grid !important;
        grid-template-columns:
            minmax(150px, 180px)
            minmax(360px, 1fr)
            auto !important;

        align-items: center !important;

        column-gap: 22px !important;

        min-height: 74px !important;
    }


    /* LOGO */

    .tw-header .tw-header-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        min-width: 0 !important;
    }

    .tw-header .tw-header-logo img {
        width: auto !important;
        max-width: 168px !important;
        max-height: 40px !important;

        object-fit: contain !important;
    }


    /* BUSCA */

    .tw-header .tw-header-search-wrap {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
    }

    .tw-header .tw-header-search {
        width: 100% !important;
        max-width: 720px !important;

        margin: 0 auto !important;
    }

    .tw-header .tw-header-search input {
        height: 46px !important;
    }


    /* ACOES */

    .tw-header .tw-header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        width: auto !important;

        gap: 4px !important;

        margin-left: 0 !important;

        white-space: nowrap !important;
    }

    .tw-header .tw-header-action {
        min-height: 42px !important;

        padding: 4px 6px !important;

        gap: 6px !important;
    }

    .tw-header .tw-header-action-icon {
        width: 34px !important;
        height: 34px !important;
    }


    /* CARRINHO */

    .tw-header .tw-header-cart {
        margin-left: 0 !important;
    }

}


/* === /TWANA_HEADER_BUYER_DESKTOP_S21_53E === */


/* ==========================================================
   TWANA_HEADER_BUYER_OFFSET_S21_53F

   Desktop autenticado / Central do Comprador

   Sidebar:
   270px fixa

   Respiro:
   16px

   Area principal:
   inicia em 286px

   Objetivo:
   - header nao fica atras da sidebar
   - logo totalmente visivel
   - busca preservada
   - favoritos preservados
   - conta preservada
   - carrinho preservado
   - segunda barra alinhada
   - mobile nao alterado
   ========================================================== */

@media (min-width: 992px) {

    body:has(.tw-dashboard-v2) #twana-header {
        width: calc(100% - 286px) !important;
        max-width: calc(100% - 286px) !important;

        margin-left: 286px !important;
        margin-right: 0 !important;
    }


    /*
     * O header agora ja possui a largura correta.
     * Seus containers internos devem ocupar 100%
     * dessa area, sem tentar voltar ao centro global.
     */

    body:has(.tw-dashboard-v2) #twana-header .container,
    body:has(.tw-dashboard-v2) #twana-header .layout-container {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 16px !important;
    }


    /*
     * Primeira linha:
     * logo + busca + acoes
     */

    body:has(.tw-dashboard-v2) #twana-header .tw-header-main {
        width: 100% !important;
    }

    body:has(.tw-dashboard-v2) #twana-header .tw-header-row {
        width: 100% !important;
        max-width: none !important;
    }


    /*
     * Logo
     */

    body:has(.tw-dashboard-v2) #twana-header .tw-header-logo {
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    body:has(.tw-dashboard-v2) #twana-header .tw-header-logo img {
        display: block !important;

        width: auto !important;
        max-width: 168px !important;
        max-height: 40px !important;

        visibility: visible !important;
        opacity: 1 !important;

        object-fit: contain !important;
    }


    /*
     * Segunda linha do header
     */

    body:has(.tw-dashboard-v2) #twana-header .tw-header-nav {
        width: 100% !important;
    }

    body:has(.tw-dashboard-v2) #twana-header .tw-header-nav-row {
        width: 100% !important;
        max-width: none !important;
    }

}


/* === /TWANA_HEADER_BUYER_OFFSET_S21_53F === */


/* ==========================================================================
   TWANA_HEADER_RESPONSIVE_NAV_P3
   Header 8 — desktop / tablet premium
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| BASE DA NAVEGAÇÃO
|--------------------------------------------------------------------------
*/

#twana-header .tw-header-nav {
    position: relative;
    z-index: 20;

    width: 100%;

    background: #ffffff;

    border-top: 1px solid rgba(15, 35, 60, .055);
    border-bottom: 1px solid #e8edf3;

    box-shadow:
        0 3px 10px rgba(15, 35, 60, .025);
}

#twana-header .tw-header-nav-row {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

#twana-header .tw-header-nav-left,
#twana-header .tw-header-nav-right {
    min-width: 0;

    display: flex;
    align-items: center;
}

#twana-header .tw-header-nav-left {
    flex: 1 1 auto;
}

#twana-header .tw-header-nav-right {
    flex: 0 0 auto;
}


/*
|--------------------------------------------------------------------------
| 992px — 1199px
| DESKTOP / TABLET INTERMEDIÁRIO
|--------------------------------------------------------------------------
|
| Esta é justamente a faixa que antes perdia a navegação inteira.
|
*/

@media (min-width: 992px) and (max-width: 1199.98px) {

    #twana-header .tw-header-nav {
        display: block !important;
    }

    #twana-header .tw-header-nav-row {
        min-height: 48px;

        gap: 12px;
    }

    #twana-header .tw-header-nav-left {
        gap: 3px;

        overflow: hidden;
    }

    #twana-header .tw-header-nav-right {
        gap: 7px;
    }

    /*
     * Categorias vira a âncora visual.
     */

    #twana-header .tw-header-category-button {
        min-width: auto !important;

        flex: 0 0 auto;

        padding-left: 12px !important;
        padding-right: 12px !important;

        white-space: nowrap;
    }

    /*
     * Links comerciais compactos.
     */

    #twana-header .tw-header-nav-link {
        flex: 0 1 auto;

        padding-left: 8px !important;
        padding-right: 8px !important;

        font-size: 12px !important;

        white-space: nowrap;
    }

    /*
     * Compra protegida continua visível,
     * mas sem consumir espaço excessivo.
     */

    #twana-header .tw-header-safe-copy {
        flex: 0 0 auto;

        padding-left: 8px !important;
        padding-right: 8px !important;

        font-size: 11px !important;

        white-space: nowrap;
    }

    /*
     * CTA vendedor permanece forte.
     */

    #twana-header .tw-header-seller {
        flex: 0 0 auto;

        min-width: auto !important;

        padding-left: 11px !important;
        padding-right: 11px !important;

        font-size: 11px !important;

        white-space: nowrap;
    }

}


/*
|--------------------------------------------------------------------------
| >= 1200px
| DESKTOP COMPLETO
|--------------------------------------------------------------------------
*/

@media (min-width: 1200px) {

    #twana-header .tw-header-nav-row {
        min-height: 52px;
    }

}


/*
|--------------------------------------------------------------------------
| < 992px
| MOBILE
|--------------------------------------------------------------------------
|
| O Header 8 já possui:
| - hamburger;
| - leftOffcanvas;
| - busca mobile;
| - ações comerciais mobile.
|
| Não duplicamos a navegação desktop.
|
*/

@media (max-width: 991.98px) {

    #twana-header .tw-header-nav {
        display: none !important;
    }

}



/* ==========================================================================
   TWANA_BUYER_SHELL_BELOW_HEADER_P4
   Header global em cima / painel comprador abaixo
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
|
| O Header 8 pertence ao layout global.
| Ele deve sempre ocupar toda a largura antes do painel comprador.
|
*/

#twana-header {
    width: 100%;
    left: 0;
    right: 0;
}


/*
|--------------------------------------------------------------------------
| BUYER PAGE
|--------------------------------------------------------------------------
|
| O painel não pode subir por cima do header.
|
*/

.tw-buyer-page.tw-buyer-page--below-header {
    position: relative;

    width: 100%;

    margin-top: 0 !important;

    clear: both;
}


/*
|--------------------------------------------------------------------------
| CONTAINER DO PAINEL
|--------------------------------------------------------------------------
*/

.tw-buyer-page--below-header > .container {
    position: relative;

    width: 100%;
}


/*
|--------------------------------------------------------------------------
| SHELL
|--------------------------------------------------------------------------
|
| Sidebar e conteúdo começam na MESMA linha,
| depois do Header 8.
|
*/

.tw-buyer-page--below-header .tw-buyer-shell {
    position: relative;

    align-items: flex-start;

    width: 100%;
}


/*
|--------------------------------------------------------------------------
| SIDEBAR DESKTOP
|--------------------------------------------------------------------------
|
| A sidebar acompanha a página, mas sua referência passa
| a ser a parte inferior do header.
|
| O valor de --tw-buyer-sticky-top é atualizado via JS
| usando a altura REAL do Header 8.
|
*/

@media (min-width: 992px) {

    .tw-buyer-page--below-header {
        --tw-buyer-sticky-top: 12px;
    }

    .tw-buyer-page--below-header .tw-buyer-shell > aside,
    .tw-buyer-page--below-header .tw-buyer-shell > .tw-buyer-sidebar,
    .tw-buyer-page--below-header .tw-buyer-shell .tw-user-sidebar {
        top: var(--tw-buyer-sticky-top) !important;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
|
| Nada de sidebar fixa lateral no celular.
|
*/

@media (max-width: 991.98px) {

    .tw-buyer-page--below-header .tw-buyer-shell > aside,
    .tw-buyer-page--below-header .tw-buyer-shell > .tw-buyer-sidebar,
    .tw-buyer-page--below-header .tw-buyer-shell .tw-user-sidebar {
        position: relative !important;
        top: auto !important;
    }

}


/*
|--------------------------------------------------------------------------
| STICKY HEADER
|--------------------------------------------------------------------------
|
| Se Header 8 estiver sticky, permanece acima de sidebar,
| dropdowns e conteúdo.
|
*/

#twana-header.sticky-top {
    z-index: 1030;
}


/*
|--------------------------------------------------------------------------
| PROTEÇÃO CONTRA SOBREPOSIÇÃO
|--------------------------------------------------------------------------
*/

.tw-buyer-page--below-header {
    z-index: 1;
}

.tw-buyer-page--below-header .tw-buyer-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}



/* ==========================================================================
   TWANA_HEADER_GLOBAL_STICKY_P5
   Header principal TWANA permanece no topo do site
   ========================================================================== */

#twana-header.tw-header--global-sticky {
    position: sticky !important;
    top: 0 !important;

    width: 100% !important;

    z-index: 1040 !important;

    background: #ffffff;

    isolation: isolate;

    box-shadow:
        0 1px 0 rgba(15, 23, 42, .055),
        0 5px 18px rgba(15, 23, 42, .035);
}


/*
|--------------------------------------------------------------------------
| Header principal
|--------------------------------------------------------------------------
*/

#twana-header.tw-header--global-sticky .tw-header-main {
    position: relative;

    background: #ffffff;

    z-index: 2;
}


/*
|--------------------------------------------------------------------------
| Segunda navegação
|--------------------------------------------------------------------------
*/

#twana-header.tw-header--global-sticky .tw-header-nav {
    position: relative;

    background: #ffffff;

    z-index: 1;
}


/*
|--------------------------------------------------------------------------
| Painel comprador
|--------------------------------------------------------------------------
|
| Sidebar permanece abaixo do header.
| O P4 calcula a altura real do header e atualiza:
|
| --tw-buyer-sticky-top
|
*/

@media (min-width: 992px) {

    body:has(.tw-buyer-page--below-header)
    #twana-header.tw-header--global-sticky {
        top: 0 !important;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
|
| O mesmo header continua sticky.
| Não alteramos offcanvas nem busca mobile.
|
*/

@media (max-width: 991.98px) {

    #twana-header.tw-header--global-sticky {
        top: 0 !important;
    }

}



/* ==========================================================================
   TWANA_HEADER_TRUE_FIXED_P5_FIX1
   Header 8 realmente FIXO
   ========================================================================== */

/*
 * O sticky anterior dependia da árvore de overflow.
 * A partir daqui o Header 8 fica preso diretamente à viewport.
 */

#twana-header.tw-header--true-fixed {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    margin: 0 !important;

    z-index: 1055 !important;

    background: #ffffff !important;

    transform: none !important;
}


/*
 * Espaçador real inserido pelo JS.
 * Tem exatamente a altura atual do Header 8.
 */

.tw-header-fixed-spacer {
    display: block;

    width: 100%;

    height: var(--tw-header-fixed-height, 0px);

    flex: 0 0 var(--tw-header-fixed-height, 0px);
}


/*
 * No painel comprador a sidebar fica abaixo do header.
 */

@media (min-width: 992px) {

    .tw-buyer-page--below-header {
        --tw-buyer-sticky-top:
            calc(var(--tw-header-fixed-height, 0px) + 10px);
    }

    .tw-buyer-page--below-header .tw-buyer-shell > aside,
    .tw-buyer-page--below-header .tw-buyer-shell > .tw-buyer-sidebar,
    .tw-buyer-page--below-header .tw-buyer-shell .tw-user-sidebar {
        top:
            calc(var(--tw-header-fixed-height, 0px) + 10px)
            !important;
    }

}



/* ==========================================================================

/* ==========================================================================
   TWANA_HEADER_VIEWPORT_P6_CLEAN
   Responsabilidade exclusiva do header.
   Buyer layout permanece sob autoridade de twana-buyer.css.
   ========================================================================== */

#twana-header.tw-header--true-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    z-index: 1055 !important;
}

#twana-header-fixed-spacer {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === /TWANA_HEADER_VIEWPORT_P6_CLEAN === */
