/* ================================================================
   GUILDA BERNÔ — PALETA E ESTILOS GLOBAIS
   Variáveis compartilhadas por todas as páginas.
   ================================================================ */
:root {
    /* Paleta base */
    --bg-main: #08261c;
    --bg-secondary: #0d3327;
    --bg-card: #10392b;
    --bg-elevated: #14543e;
    --brand: #FFD700;
    --brand-hover: #FFE44D;
    --brand-dark: #C9A900;
    --text-primary: #F8FAFC;
    --text-secondary: #b9c8c1;
    --text-muted: #77867f;
    --border: #1d4a39;
    --border-highlight: rgba(255, 215, 0, 0.40);

    /* Alias dos componentes globais */
    --gb-bg: var(--bg-main);
    --gb-header: var(--bg-secondary);
    --gb-nav: var(--bg-secondary);
    --gb-surface: var(--bg-card);
    --gb-border: var(--border);
    --gb-brand: var(--brand);
    --gb-brand-light: var(--brand-hover);
    --gb-text: var(--text-primary);
    --gb-muted: var(--text-secondary);
    --gb-content: 1200px;
    --gb-font: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--gb-bg);
    color: var(--gb-text);
    font-family: var(--gb-font);
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ============================= ACESSIBILIDADE ============================= */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 5000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--gb-brand);
    color: #08261c;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gb-brand);
    outline-offset: 3px;
}

/* ============================= CABEÇALHO ============================= */
.cabecalho-site {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--gb-header);
    border-bottom: 2px solid var(--gb-brand);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease;
}

.cabecalho-site.header-oculto {
    transform: translateY(-110%);
}

.cabecalho-site .header-top {
    width: min(90%, var(--gb-content));
    min-height: 86px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px minmax(320px, 520px) minmax(300px, 1fr);
    align-items: center;
    column-gap: 28px;
}

.cabecalho-site .logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.cabecalho-site .logo img {
    width: 132px;
    height: 70px;
    padding: 4px 0;
    object-fit: contain;
    object-position: left center;
}

.cabecalho-site .acoes {
    min-width: 0;
    display: contents;
}

.cabecalho-site .pesquisa {
    min-width: 0;
    width: 100%;
    margin: 0;
    display: flex;
    grid-column: 2;
}

.cabecalho-site .pesquisa input {
    min-width: 0;
    flex: 1;
    height: 45px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: #F8FAFC;
    color: #08261c;
}

.cabecalho-site .pesquisa input:focus {
    border-color: var(--gb-brand);
    box-shadow: inset 0 0 0 1px var(--gb-brand);
}

.cabecalho-site .btn-pesquisa,
.cabecalho-site .btn-conta,
.cabecalho-site .btn-carrinho {
    border: 0;
    background: transparent;
    color: var(--gb-text);
    cursor: pointer;
}

.cabecalho-site .btn-pesquisa {
    flex: 0 0 55px;
    width: 55px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 0 8px 8px 0;
    background: #1d4a39;
}

.cabecalho-site .btn-pesquisa:hover {
    background: #1d4a39;
}

/* Os ícones são SVG locais e não dependem de Font Awesome. */
.cabecalho-site .icone-cabecalho {
    width: 25px;
    height: 25px;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--gb-brand-light);
}

.cabecalho-site .btn-pesquisa .icone-cabecalho {
    width: 22px;
    height: 22px;
    color: #F8FAFC;
}

.cabecalho-site .btn-conta {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    margin-right: 74px;
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

.cabecalho-site .texto-conta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.cabecalho-site .texto-conta strong {
    font-size: 14px;
}

.cabecalho-site .texto-conta small {
    color: var(--gb-muted);
    font-size: 11px;
}

.cabecalho-site .btn-carrinho {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    position: relative;
    display: grid;
    place-items: center;
}

.cabecalho-site .btn-carrinho:hover {
    transform: translateY(-2px);
}

.cabecalho-site #contador-carrinho {
    position: absolute;
    top: 8px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gb-brand);
    color: #08261c;
    font-size: 12px;
    font-weight: 800;
}

/* =============================== MENU =============================== */
.cabecalho-site .navegacao-principal {
    width: 100%;
    background: var(--gb-nav);
    border-top: 1px solid #1d4a39;
    border-bottom: 0;
    box-shadow: none;
}

.cabecalho-site .navegacao-principal ul {
    width: min(90%, var(--gb-content));
    margin: 0 auto;
    padding: 13px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 38px;
    list-style: none;
}

.cabecalho-site .navegacao-principal li {
    position: relative;
}

.cabecalho-site .navegacao-principal a {
    color: #F8FAFC;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.cabecalho-site .navegacao-principal a:hover,
.cabecalho-site .navegacao-principal a[aria-current="page"] {
    color: var(--gb-brand);
}

.cabecalho-site .navegacao-principal li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: var(--gb-brand);
    transition: width 0.2s ease;
}

.cabecalho-site .navegacao-principal li:hover::after,
.cabecalho-site .navegacao-principal li:has(a[aria-current="page"])::after {
    width: 100%;
}

/* ============================== RODAPÉ ============================== */
.rodape-site {
    width: 100%;
    margin-top: 70px;
    padding: 40px 5% 20px;
    background: #08261c;
    color: #F8FAFC;
    border-top: 2px solid var(--gb-brand);
}

.rodape-site .footer-container {
    width: min(100%, var(--gb-content));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.rodape-site .footer-col {
    flex: 1;
    min-width: 220px;
}

.rodape-site .footer-col h3 {
    margin: 0 0 15px;
    color: var(--gb-brand);
}

.rodape-site .footer-col a,
.rodape-site .footer-col p {
    color: #b9c8c1;
}

.rodape-site .footer-col a {
    display: block;
    margin-bottom: 8px;
}

.rodape-site .footer-col a:hover {
    color: var(--gb-brand);
}

.rodape-site .footer-bottom {
    width: min(100%, var(--gb-content));
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #1d4a39;
    text-align: center;
    color: #77867f;
    font-size: 14px;
}

/* ============================ RESPONSIVO ============================ */
@media (max-width: 900px) {
    .cabecalho-site .header-top {
        padding: 14px 0;
        grid-template-columns: 110px 1fr auto auto;
        gap: 14px;
    }

    .cabecalho-site .acoes {
        display: contents;
    }

    .cabecalho-site .pesquisa {
        grid-column: 2;
    }

    .cabecalho-site .btn-conta {
        grid-column: 3;
        grid-row: 1;
        margin-right: 0;
    }

    .cabecalho-site .btn-carrinho {
        grid-column: 4;
        grid-row: 1;
    }
}

@media (max-width: 600px) {
    .cabecalho-site .header-top {
        width: 94%;
        grid-template-columns: 86px 1fr auto;
        gap: 12px;
    }

    .cabecalho-site .pesquisa {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .cabecalho-site .btn-conta {
        grid-column: 2;
        justify-self: end;
    }

    .cabecalho-site .btn-carrinho {
        grid-column: 3;
        grid-row: 1;
    }

    .cabecalho-site .logo img {
        width: 82px;
        height: 58px;
    }

    .cabecalho-site .texto-conta {
        display: none;
    }

    .cabecalho-site .btn-carrinho {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .cabecalho-site .navegacao-principal ul {
        width: 96%;
        gap: 17px;
        padding-inline: 8px;
    }

    .cabecalho-site .navegacao-principal a {
        font-size: 14px;
    }

    .rodape-site {
        margin-top: 50px;
    }
}


/* ==================== ÍCONES DE CONTATO E REDES ==================== */
.gb-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
    display: inline-block;
}

.rodape-site .footer-link-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    line-height: 1.45;
}

.rodape-site .footer-link-icon .gb-icon {
    color: var(--gb-brand);
    transition: transform .25s ease, color .25s ease;
}

.rodape-site a.footer-link-icon:hover .gb-icon {
    color: #FFE44D;
    transform: translateY(-2px) scale(1.08);
}

.rodape-site .footer-hours {
    margin-top: 2px;
}

.rodape-site .footer-social a {
    min-height: 32px;
    padding: 3px 0;
}

.rodape-site .footer-social .social-svg {
    width: 21px;
    height: 21px;
}



@media (max-width: 600px) {
    .rodape-site .footer-link-icon {
        width: 100%;
    }
}

/* ==================== CONTATO DO RODAPÉ ==================== */
.rodape-site .footer-contato {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rodape-site .footer-contato h3 {
    margin-bottom: 1px;
}

.rodape-site .footer-contato a,
.rodape-site .footer-contato p {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin: 0;
    color: #b9c8c1;
}

.rodape-site .footer-contato i,
.rodape-site .footer-contato .gb-icon {
    width: 20px;
    flex: 0 0 20px;
    color: #F8FAFC;
    font-size: 18px;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rodape-site .footer-contato a:hover,
.rodape-site .footer-contato a:focus-visible {
    color: var(--gb-brand);
}

.rodape-site .footer-contato a:hover i,
.rodape-site .footer-contato a:hover .gb-icon,
.rodape-site .footer-contato a:focus-visible i,
.rodape-site .footer-contato a:focus-visible .gb-icon {
    color: var(--gb-brand);
    transform: translateY(-1px);
}

/* ==================== REDES SOCIAIS ==================== */
.rodape-site .footer-social {
    display: flex;
    flex-direction: column;
}

.rodape-site .footer-social a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.rodape-site .footer-social i,
.rodape-site .footer-social .gb-icon {
    width: 20px;
    flex: 0 0 20px;
    color: #F8FAFC;
    font-size: 18px;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rodape-site .footer-social a:hover i,
.rodape-site .footer-social a:hover .gb-icon,
.rodape-site .footer-social a:focus-visible i,
.rodape-site .footer-social a:focus-visible .gb-icon {
    color: var(--gb-brand);
    transform: translateY(-1px);
}

/* Estados de teclado para a busca e os links do rodapé. */
.cabecalho-site .btn-pesquisa:focus-visible,
.rodape-site a:focus-visible {
    outline: 3px solid var(--gb-brand);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .rodape-site .footer-contato a,
    .rodape-site .footer-contato p,
    .rodape-site .footer-social a {
        width: 100%;
    }
}

/* ==================================================================
   MEGA MENU DE PRODUTOS — GUILDA BERNÔ
   Dropdown inspirado na navegação de grandes lojas de TCG, mantendo
   identidade própria da Guilda Bernô.
   ================================================================== */
@media (min-width: 901px) {
    .cabecalho-site .navegacao-principal {
        position: relative;
    }

    .cabecalho-site .navegacao-principal > ul {
        position: static;
    }

    .cabecalho-site .navegacao-principal .menu-produtos {
        position: static;
    }

    /* Somente o link Produtos possui a área de transição para o mega menu. */
    .cabecalho-site .menu-produtos-link {
        position: relative;
    }

    .cabecalho-site .menu-produtos-link::after {
        content: "";
        position: absolute;
        top: 100%;
        left: -10px;
        width: calc(100% + 20px);
        height: 18px;
        background: transparent;
        pointer-events: auto;
    }

    .cabecalho-site .mega-menu-produtos {
        position: absolute;
        /*
           O painel começa alguns pixels antes do fim da navegação.
           Esse espaço invisível funciona como uma "ponte de hover":
           ao mover o mouse de Produtos para o mega menu, o cursor
           continua dentro do elemento e o painel não fecha.
        */
        top: calc(100% - 14px);
        left: 0;
        width: 100%;
        padding: 14px 5% 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
        z-index: 1200;
    }

    /*
       IMPORTANTE: o painel NÃO abre pelo hover do <li>, pois esse elemento
       participa da área ampla da navegação. Ele abre exclusivamente quando
       o cursor está sobre o link Produtos, sobre sua pequena ponte de hover
       ou sobre o próprio painel.
    */
    .cabecalho-site .menu-produtos-link:hover + .mega-menu-produtos,
    .cabecalho-site .mega-menu-produtos:hover,
    .cabecalho-site .menu-produtos:focus-within > .mega-menu-produtos {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .cabecalho-site .mega-menu-inner {
        width: min(1200px, 100%);
        margin: 0 auto;
        overflow: hidden;
        border: 1px solid #2a5546;
        border-top: 3px solid var(--gb-brand);
        border-radius: 0 0 16px 16px;
        background:
            radial-gradient(circle at 80% -20%, rgba(255,215,0,.07), transparent 28%),
            #0a2c21;
        box-shadow: 0 24px 55px rgba(0,0,0,.45);
    }

    .cabecalho-site .mega-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 18px 22px 16px;
        border-bottom: 1px solid #1d4a39;
    }

    .cabecalho-site .mega-menu-head > div {
        display: flex;
        align-items: baseline;
        gap: 12px;
        min-width: 0;
    }

    .cabecalho-site .mega-kicker {
        color: var(--gb-brand);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .16em;
        white-space: nowrap;
    }

    .cabecalho-site .mega-menu-head strong {
        color: #F8FAFC;
        font-size: 14px;
    }

    .cabecalho-site .mega-ver-todos,
    .cabecalho-site .mega-menu-foot a {
        color: var(--gb-brand);
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .cabecalho-site .mega-produtos-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .cabecalho-site .mega-produto-item {
        min-height: 96px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        border-right: 1px solid #1d4a39;
        border-bottom: 1px solid #1d4a39;
        background: rgba(17, 50, 38, .48);
        transition: background .18s ease, transform .18s ease;
    }

    .cabecalho-site .mega-produto-item:nth-child(5n) {
        border-right: 0;
    }

    .cabecalho-site .mega-produto-item:nth-last-child(-n+5) {
        border-bottom: 0;
    }

    .cabecalho-site .mega-produto-item:hover,
    .cabecalho-site .mega-produto-item:focus-visible {
        background: #154534;
        transform: translateY(-1px);
        outline: none;
    }

    .cabecalho-site .mega-produto-icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255,215,0,.24);
        border-radius: 12px;
        background: rgba(255,215,0,.08);
        color: var(--gb-brand);
        font-size: 21px;
        font-weight: 900;
    }

    .cabecalho-site .mega-produto-text {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .cabecalho-site .mega-produto-text strong {
        color: #F8FAFC;
        font-size: 11px;
        line-height: 1.2;
        letter-spacing: .015em;
    }

    .cabecalho-site .mega-produto-text small {
        color: #9EABBC;
        font-size: 10px;
        line-height: 1.35;
        font-weight: 500;
    }

    .cabecalho-site .mega-produto-item:hover .mega-produto-text strong {
        color: var(--gb-brand);
    }

    .cabecalho-site .mega-menu-foot {
        min-height: 42px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 24px;
        padding: 10px 22px;
        border-top: 1px solid #1d4a39;
        background: #08261c;
    }
}

@media (max-width: 900px) {
    .cabecalho-site .mega-menu-produtos {
        display: none;
    }
}

/* ============================================================
   FEEDBACK GLOBAL DO CARRINHO
   ============================================================ */
.gb-toast-area {
    position: fixed;
    top: 120px;
    right: 22px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.gb-toast {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #2c5543;
    border-radius: 12px;
    background: rgba(8, 38, 28, .97);
    color: #F8FAFC;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
}

.gb-toast.visivel {
    opacity: 1;
    transform: translateY(0);
}

.gb-toast--sucesso {
    border-color: rgba(255, 215, 0, .42);
}

.gb-toast-icone {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 215, 0, .12);
    color: #FFD700;
    font-weight: 900;
}

#contador-carrinho {
    transition: transform .2s ease, background-color .2s ease;
}

#contador-carrinho.tem-itens {
    transform: scale(1.06);
}

@media (max-width: 600px) {
    .gb-toast-area {
        top: 90px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* ==================== MOBILE PRO — GUILDA BERNÔ ==================== */
/* Camada final de responsividade. Mantém o desktop intacto e cria uma
   navegação própria para toque em celulares e tablets menores. */
.btn-menu-mobile {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--gb-border);
    border-radius: 10px;
    background: rgba(17, 50, 38, 0.86);
    color: var(--gb-text);
    cursor: pointer;
}

.btn-menu-mobile span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--gb-brand);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.btn-menu-mobile:focus-visible {
    outline: 3px solid var(--gb-brand);
    outline-offset: 3px;
}

.gb-menu-mobile-overlay {
    display: none;
}

.menu-mobile-tcgs {
    display: none;
}

/* Proteções globais contra estouro horizontal. */
main,
section,
article,
nav,
header,
footer,
form,
fieldset,
.cabecalho-site *,
.rodape-site * {
    min-width: 0;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

@media (max-width: 820px) {
    body.gb-menu-mobile-lock {
        overflow: hidden;
        touch-action: none;
    }

    .cabecalho-site,
    .cabecalho-site.menu-mobile-aberto {
        transform: none !important;
    }

    .cabecalho-site .header-top {
        width: calc(100% - 24px);
        min-height: 0;
        padding: 10px 0 11px;
        grid-template-columns: 64px minmax(0, 1fr) 44px 44px 44px;
        grid-template-rows: auto auto;
        gap: 9px;
    }

    .cabecalho-site .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .cabecalho-site .logo img {
        width: 62px;
        height: 48px;
        padding: 0;
    }

    .cabecalho-site .acoes {
        display: contents;
    }

    .cabecalho-site .pesquisa {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 43px;
    }

    .cabecalho-site .pesquisa input,
    .cabecalho-site .btn-pesquisa {
        height: 43px;
    }

    .cabecalho-site .btn-pesquisa {
        flex-basis: 50px;
        width: 50px;
    }

    .cabecalho-site .btn-conta {
        grid-column: 3;
        grid-row: 1;
        justify-self: stretch;
        width: 44px;
        min-height: 44px;
        margin: 0;
        justify-content: center;
        border-radius: 10px;
    }

    .cabecalho-site .btn-carrinho {
        grid-column: 4;
        grid-row: 1;
        justify-self: stretch;
        width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .cabecalho-site .texto-conta {
        display: none;
    }

    .cabecalho-site #contador-carrinho {
        top: -2px;
        right: -4px;
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .btn-menu-mobile {
        grid-column: 5;
        grid-row: 1;
        display: block;
        justify-self: stretch;
        align-self: center;
    }

    .cabecalho-site.menu-mobile-aberto .btn-menu-mobile span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .cabecalho-site.menu-mobile-aberto .btn-menu-mobile span:nth-child(2) {
        opacity: 0;
    }

    .cabecalho-site.menu-mobile-aberto .btn-menu-mobile span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .gb-menu-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 980;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(2, 18, 12, 0.72);
        backdrop-filter: blur(3px);
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .gb-menu-mobile-overlay.ativo {
        visibility: visible;
        opacity: 1;
    }

    .cabecalho-site .navegacao-principal {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1100;
        width: 100%;
        max-height: min(72vh, 620px);
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        border-top: 1px solid var(--gb-border);
        border-bottom: 2px solid var(--gb-brand);
        background: #09291e;
        box-shadow: 0 24px 45px rgba(0, 0, 0, 0.48);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .cabecalho-site.menu-mobile-aberto .navegacao-principal {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .cabecalho-site .navegacao-principal ul {
        width: 100%;
        margin: 0;
        padding: 12px 14px 8px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .cabecalho-site .navegacao-principal li {
        width: 100%;
    }

    .cabecalho-site .navegacao-principal li::after {
        display: none;
    }

    .cabecalho-site .navegacao-principal a {
        min-height: 48px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #e7edf5;
        font-size: 15px;
        font-weight: 800;
    }

    .cabecalho-site .navegacao-principal a:hover,
    .cabecalho-site .navegacao-principal a:focus-visible {
        border-color: #2a5c4a;
        background: #123c2e;
        color: var(--gb-brand);
        outline: none;
    }

    .cabecalho-site .navegacao-principal a[aria-current="page"] {
        border-color: rgba(255, 215, 0, 0.28);
        background: rgba(255, 215, 0, 0.08);
        color: var(--gb-brand);
    }

    .cabecalho-site .mega-menu-produtos {
        display: none !important;
    }

    .menu-mobile-tcgs {
        margin: 0 14px 14px;
        padding: 14px;
        display: block;
        border: 1px solid #1d4a39;
        border-radius: 12px;
        background: rgba(17, 50, 38, 0.7);
    }

    .menu-mobile-tcgs > span {
        display: block;
        margin-bottom: 10px;
        color: var(--gb-brand);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .menu-mobile-tcgs > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .menu-mobile-tcgs a {
        min-height: 42px !important;
        padding: 0 10px !important;
        justify-content: center;
        border: 1px solid #265545 !important;
        background: #0d3427;
        font-size: 12px !important;
        text-align: center;
    }

    .rodape-site {
        padding: 34px 20px 18px;
    }

    .rodape-site .footer-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 26px;
    }

    .rodape-site .footer-col {
        min-width: 0;
    }

    .rodape-site .footer-bottom {
        margin-top: 26px;
    }

    /* Áreas de rolagem horizontal ganham comportamento natural de toque. */
    .relacionados-rail,
    .pokemon-container,
    .product-tabs,
    .filtros-jogos,
    .catalogo-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
}

@media (max-width: 480px) {
    .cabecalho-site .header-top {
        width: calc(100% - 18px);
        grid-template-columns: 58px minmax(0, 1fr) 42px 42px 42px;
        gap: 7px;
    }

    .cabecalho-site .logo img {
        width: 56px;
        height: 44px;
    }

    .cabecalho-site .btn-conta,
    .cabecalho-site .btn-carrinho,
    .btn-menu-mobile {
        width: 42px;
        height: 42px;
        min-height: 42px;
    }

    .cabecalho-site .icone-cabecalho {
        width: 23px;
        height: 23px;
    }

    .cabecalho-site .pesquisa input {
        padding-inline: 12px;
        font-size: 14px;
    }

    .menu-mobile-tcgs > div {
        grid-template-columns: 1fr 1fr;
    }

    .rodape-site .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rodape-site .footer-col h3 {
        margin-bottom: 10px;
    }
}

@media (max-width: 360px) {
    .cabecalho-site .header-top {
        width: calc(100% - 14px);
        grid-template-columns: 52px minmax(0, 1fr) 40px 40px 40px;
        gap: 5px;
    }

    .cabecalho-site .logo img {
        width: 50px;
        height: 40px;
    }

    .cabecalho-site .btn-conta,
    .cabecalho-site .btn-carrinho,
    .btn-menu-mobile {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ================================================================
   GUILDA BERNÔ 3.6 — ACABAMENTO FINAL DE FRONT-END
   Compatibilidade mobile, acessibilidade e estados de interface.
   ================================================================ */
html {
    scrollbar-gutter: stable;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
    touch-action: manipulation;
}

.gb-live-region {
    position: fixed;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gb-network-status {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 12000;
    width: min(520px, calc(100% - 28px));
    padding: 11px 15px;
    transform: translate(-50%, 140%);
    border: 1px solid rgba(255, 193, 7, .35);
    border-radius: 12px;
    background: rgba(8, 38, 28, .97);
    color: #f8fafc;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
    text-align: center;
    font-size: .88rem;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}

.gb-network-status.visivel {
    transform: translate(-50%, 0);
    opacity: 1;
}

.gb-network-status.online {
    border-color: rgba(98, 214, 138, .38);
}

/* =========================================================
   CONTROLE DE FILTROS DO CATÁLOGO
   O botão é exclusivo do layout mobile. Em desktop ele deve
   permanecer oculto para não herdar a aparência nativa do browser.
========================================================= */
.catalogo-filtros-toggle {
    display: none;
}

@media (max-width: 900px) {
    .catalogo-filtros-toggle {
        width: 100%;
        min-height: 46px;
        margin: 0 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        border: 1px solid #234c3b;
        border-radius: 12px;
        background: #0d3327;
        color: #f8fafc;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }

    .catalogo-filtros-toggle::after {
        content: "+";
        color: #ffd700;
        font-size: 1.25rem;
        line-height: 1;
    }

    .catalogo-filtros-toggle[aria-expanded="true"]::after {
        content: "−";
    }

    .catalogo-layout.catalogo-filtros-colapsaveis .catalogo-sidebar {
        display: none;
    }

    .catalogo-layout.catalogo-filtros-colapsaveis.filtros-abertos .catalogo-sidebar {
        display: block;
    }
}

@media (max-width: 600px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    button,
    .btn,
    .admin-btn,
    .btn-checkout,
    .btn-checkout-secundario {
        min-height: 44px;
    }

    .header-top,
    .acoes,
    .pesquisa {
        min-width: 0;
    }

    .texto-conta strong,
    .texto-conta small {
        max-width: 18ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    main,
    section,
    article,
    form,
    fieldset,
    .container,
    .shell {
        min-width: 0;
    }

    table {
        max-width: 100%;
    }

    .gb-network-status {
        bottom: max(10px, env(safe-area-inset-bottom));
        font-size: .82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gb-network-status {
        transition: none;
    }
}

.gb-image-fallback {
    width: min(100%, 180px);
    min-height: 110px;
    display: grid;
    place-items: center;
    padding: 14px;
    border: 1px dashed rgba(255, 215, 0, .28);
    border-radius: 10px;
    background: rgba(13, 42, 32, .75);
    color: #b9c8c1;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
}

.navegacao-principal a[aria-current="page"] {
    color: var(--gb-brand, #ffd700);
}


/* ================================================================
   PERFORMANCE E ACESSIBILIDADE — 4.1.4
   Renderiza blocos longos sob demanda sem alterar o layout visual.
   ================================================================ */
@supports (content-visibility: auto) {
    .secao-home,
    .secao-produtos,
    .catalogo-grid,
    .produtos-grid,
    .colecoes-grid,
    .blog-grid,
    .rodape-site {
        content-visibility: auto;
        contain-intrinsic-size: auto 700px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ================================================================
   GUILDA BERNÔ 4.1.5 — ACABAMENTO MOBILE
   Ajustes finais para 360–820 px, áreas seguras e navegação por toque.
   ================================================================ */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video { max-width: 100%; }

@media (max-width: 820px) {
    .cabecalho-site .header-top {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .cabecalho-site .navegacao-principal {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .cabecalho-site .pesquisa input {
        min-width: 0;
    }

    .rodape-site {
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .catalogo-tabs,
    .relacionados-rail,
    .product-tabs {
        overscroll-behavior-inline: contain;
    }
}

@media (max-width: 480px) {
    .cabecalho-site .pesquisa {
        border-radius: 10px;
    }

    .cabecalho-site .navegacao-principal {
        max-height: calc(100dvh - 112px);
    }

    .gb-network-status {
        left: 10px;
        right: 10px;
        width: auto;
        text-align: center;
    }
}

/* ================================================================
   PRODUÇÃO — WhatsApp e preferências de cookies
   ================================================================ */
.gb-whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: #173f2c;
    color: #fff;
    box-shadow: 0 12px 36px rgba(0,0,0,.34);
    font-weight: 800;
    text-decoration: none;
}
.gb-whatsapp-float:hover,
.gb-whatsapp-float:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.gb-whatsapp-float svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }

.gb-cookie-panel {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid var(--gb-border, #1d4a39);
    border-radius: 16px;
    background: rgba(16, 34, 28, .98);
    color: var(--gb-text, #fff);
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
}
.gb-cookie-copy { max-width: 760px; }
.gb-cookie-copy strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.gb-cookie-copy p { margin: 0 0 6px; color: var(--gb-muted, #d8d8d8); line-height: 1.45; }
.gb-cookie-copy a { color: var(--gb-brand, #f6c400); }
.gb-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.gb-cookie-actions button,
.gb-cookie-settings-link {
    font: inherit;
    cursor: pointer;
}
.gb-cookie-primary,
.gb-cookie-secondary {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    font-weight: 800;
}
.gb-cookie-primary {
    border: 1px solid var(--gb-brand, #f6c400);
    background: var(--gb-brand, #f6c400);
    color: #0a2b20;
}
.gb-cookie-secondary {
    border: 1px solid var(--gb-border, #1d4a39);
    background: transparent;
    color: #fff;
}
.gb-cookie-settings-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .gb-cookie-panel { align-items: stretch; flex-direction: column; bottom: 10px; left: 10px; right: 10px; }
    .gb-cookie-actions { justify-content: stretch; }
    .gb-cookie-actions button { flex: 1 1 180px; }
    .gb-whatsapp-float { right: 12px; bottom: 12px; }
    .gb-whatsapp-float span { display: none; }
    .gb-whatsapp-float { width: 48px; padding: 0; justify-content: center; }
}
