/* ============================================================
   HEADER — estilo CarStar (preto + amarelo + branco)
   As cores ficam soltas aqui de propósito: header/footer são
   elementos de marca, diferente do miolo da loja (que usa as
   variáveis de config-loja.php). Se quiser, dá pra promover
   estas cores pra defines no config-loja.php depois.
   ============================================================ */

:root {
    --carstar-preto: var(--loja-cor-preto, #17181B);
    --carstar-preto-2: var(--loja-cor-preto-2, #232429);
    --carstar-amarelo: var(--loja-cor-header, #FFC220);
    --carstar-amarelo-texto: var(--loja-cor-header-texto, #3D2B00);
    --carstar-cinza-texto: var(--loja-cor-cinza-texto, #5A5A5A);
    --carstar-fonte: 'Montserrat', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

.loja-header, .loja-footer { font-family: var(--carstar-fonte); }

/* Aplica Montserrat na página inteira, sobrescrevendo o serif padrão
   do tema pai (Hello Elementor) em títulos/headings.
   IMPORTANTE: font-weight 600 fica só nos TÍTULOS — antes estava também
   no body inteiro, deixando texto corrido (parágrafos, listas) em
   negrito à toa, pesado demais em páginas de texto longo (Política de
   Privacidade, Trocas e Devoluções, etc.). */
body,
h1, h2, h3, h4, h5, h6,
.loja-titulo, .loja-arquivo-titulo, .entry-title, .page-title,
.woocommerce-breadcrumb, .loja-card-titulo {
    font-family: var(--carstar-fonte) !important;
}
body { font-weight: 400 !important; }
h1, h2, h3, h4, h5, h6,
.loja-titulo, .loja-arquivo-titulo, .entry-title, .page-title,
.woocommerce-breadcrumb, .loja-card-titulo {
    font-weight: 600 !important;
}

/* ── TOPO: logo + busca + ações ── */
.loja-header-top {
    background: var(--carstar-preto);
    padding: 14px 24px;
}
.loja-header-top-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.loja-header-logo { flex-shrink: 0; display: flex; align-items: center; }
.loja-header-logo img { max-height: 44px; width: auto; display: block; }
.loja-header-logo-texto {
    font-family: var(--carstar-fonte);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.loja-header-busca {
    flex: 1;
    max-width: 640px;
    display: flex;
    align-items: center;
    background: var(--carstar-preto-2);
    border-radius: 8px;
    padding: 2px 4px 2px 14px;
}
.loja-header-busca-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
}
.loja-header-busca-input::placeholder { color: #8A8B90; }
.loja-header-busca-btn {
    background: var(--carstar-amarelo);
    color: var(--carstar-amarelo-texto);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── FiboSearch ──
   Classes confirmadas na documentação oficial do plugin (prefixo dgwt-wcas-):
   .dgwt-wcas-suggestion (linha do resultado), .dgwt-wcas-si (imagem),
   .dgwt-wcas-sp (preço), .dgwt-wcas-search-input (campo de texto),
   .dgwt-wcas-search-submit (botão da lupa). O título do produto ainda não
   foi confirmado — se quiser truncar com reticências, manda o inspect do
   texto do título que eu completo essa parte. */
.loja-header-busca .dgwt-wcas-search-wrapp { width: 100%; }
.loja-header-busca .dgwt-wcas-sf-wrapp,
.loja-header-busca .dgwt-wcas-search-wrapp,
.loja-header-busca .dgwt-wcas-search-wrapp.dgwt-wcas-search-focused,
.loja-header-busca .dgwt-wcas-search-wrapp.dgwt-wcas-search-filled,
body.dgwt-wcas-focused .loja-header-busca .dgwt-wcas-sf-wrapp,
body.dgwt-wcas-focused .loja-header-busca .dgwt-wcas-search-wrapp,
body.dgwt-wcas-open .loja-header-busca .dgwt-wcas-sf-wrapp,
body.dgwt-wcas-open .loja-header-busca .dgwt-wcas-search-wrapp {
    border: none !important; outline: none !important; box-shadow: none !important;
    background: var(--carstar-preto-2) !important;
}
.loja-header-busca .dgwt-wcas-search-input,
.loja-header-busca .dgwt-wcas-sf,
.loja-header-busca input[type="search"],
.loja-header-busca input[type="text"] {
    background: transparent !important; border: none !important; outline: none;
    box-shadow: none !important;
    color: #fff !important; font-size: 14px; font-family: var(--carstar-fonte);
    padding: 10px 0; width: 100%;
}
.loja-header-busca .dgwt-wcas-search-input::placeholder,
.loja-header-busca .dgwt-wcas-sf::placeholder { color: #8A8B90; }
/* Fix extra (17/08/2026): na home especificamente, o box-shadow/fundo
   branco do FiboSearch continuava aparecendo — a regra acima não estava
   vencendo lá (possivelmente porque a busca na home nasce fora do
   .loja-header-busca, ou por alguma diferença de carregamento de CSS
   nessa página). Copiamos o seletor EXATO do próprio plugin (visto no
   style.min.css dele, especificidade 0,6,2) e sobrescrevemos direto nele —
   assim não tem como escapar, não importa em qual página o campo estiver. */
html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    background: transparent !important;
    box-shadow: none !important;
}
.loja-header-busca .dgwt-wcas-search-submit,
.loja-header-busca .dgwt-wcas-icon-magnifier {
    color: var(--carstar-amarelo-texto);
}
.dgwt-wcas-suggestions-wrapp {
    font-family: var(--carstar-fonte);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    margin-top: 10px !important; /* empurra pra baixo, evita sobrepor o campo de digitação */
}

/* Resultados: cor de marca no preço + hover, imagem em tamanho consistente */
.dgwt-wcas-suggestion { font-family: var(--carstar-fonte); }
.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: #FFF4E0 !important;
}
.dgwt-wcas-sp { color: #C98300 !important; font-weight: 700 !important; }
.dgwt-wcas-si { width: 56px !important; flex-shrink: 0; }
.dgwt-wcas-si img { border-radius: 6px; object-fit: contain; background: #fafafa; }

/* Título truncado em 2 linhas (evita cards com alturas bem diferentes) */
.dgwt-wcas-content-wrapp { display: flex; flex-direction: column; gap: 3px; }
.dgwt-wcas-st-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
    line-height: 1.3; font-size: 13px;
}
.dgwt-wcas-sku { color: #999; font-size: 11px; }

.loja-header-acoes { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.loja-header-acao {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}
.loja-header-acao-label { font-size: 13px; line-height: 1.3; }

/* Central de Atendimento — botão + painel dropdown */
.loja-atendimento { position: relative; }
.loja-atendimento-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--carstar-fonte); text-align: left; font-weight: 600 !important; }
.loja-atendimento-btn svg { color: var(--carstar-amarelo); }
.loja-atendimento-painel {
    display: none;
    position: absolute; top: calc(100% + 18px); right: -12px;
    background: #fff; border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    width: 270px; padding: 14px 18px; z-index: 50;
}
.loja-atendimento-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 0; border-bottom: 1px solid #EEE;
    font-size: 12.5px; color: var(--carstar-preto);
}
.loja-atendimento-item:last-child { border-bottom: none; padding-bottom: 2px; }
.loja-atendimento-item svg { flex-shrink: 0; margin-top: 2px; color: var(--carstar-cor-primaria, #C98300); }
.loja-atendimento-item a { color: var(--carstar-preto); text-decoration: none; }
.loja-atendimento-label { display: block; color: #8A8B90; font-size: 11.5px; margin-bottom: 2px; }
.loja-atendimento-item strong { font-weight: 700; }

/* Conta — botão + painel dropdown (mesma mecânica do Atendimento acima) */
.loja-conta { position: relative; }
.loja-conta-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--carstar-fonte); text-align: left; }
.loja-conta-btn svg { color: var(--carstar-amarelo); }
.loja-conta-painel {
    display: none;
    position: absolute; top: calc(100% + 18px); right: -12px;
    background: #fff; border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    width: 220px; padding: 8px; z-index: 50;
}
.loja-conta-item {
    display: block; padding: 11px 12px; border-radius: 6px;
    font-size: 13.5px; font-weight: 500; color: var(--carstar-preto);
    text-decoration: none; transition: background 0.15s;
}
.loja-conta-item:hover { background: #f6f6f6; }
.loja-conta-item-sair { color: #b23b3b; }
.loja-conta-item-entrar { background: var(--carstar-preto); color: #fff; text-align: center; margin-top: 4px; font-weight: 700; }
.loja-conta-item-entrar:hover { background: #000; }
.loja-conta-item-cadastrar { text-align: center; color: var(--loja-cor-primaria, #C98300); font-weight: 700; }

/* Barra de aviso no topo
   — DESKTOP: todos os itens fixos, lado a lado, com ícone.
   — MOBILE: os mesmos itens alternam entre si (crossfade), ver media query.
   O WhatsApp (.loja-topo-aviso-whats) fica sempre fixo à parte, nunca entra
   na rotação — é um link clicável, não pode ficar escondido de vez em quando. */
.loja-topo-aviso { background: var(--carstar-preto); }
.loja-topo-aviso-inner {
    max-width: 1280px; margin: 0 auto; padding: 8px 24px;
    display: flex; align-items: center; justify-content: center; gap: 28px;
}
.loja-topo-aviso-rotativo {
    display: flex; align-items: center; justify-content: center;
    gap: 28px; flex: 1;
}
.loja-topo-aviso-msg {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: .2px;
    white-space: nowrap;
}
.loja-topo-aviso-msg svg { width: 14px; height: 14px; flex-shrink: 0; }
.loja-topo-aviso-whats {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none;
}
.loja-topo-aviso-whats svg { width: 14px; height: 14px; color: #25D366; }
.loja-topo-aviso-whats:hover { color: var(--carstar-amarelo); }

.loja-header-carrinho-icone-wrap { position: relative; display: flex; }
.loja-header-carrinho { color: var(--carstar-amarelo); }
.loja-header-carrinho-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    background: var(--carstar-amarelo);
    color: var(--carstar-amarelo-texto);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── FAIXA DE CATEGORIAS ── */
.loja-header-nav { background: var(--carstar-amarelo); }
.loja-header-nav-inner { max-width: 1280px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: stretch; gap: 24px; }

/* Botão + painel "Todas as categorias" — independente do menu horizontal */
.loja-todas-cat { position: relative; flex-shrink: 0; }
.loja-todas-cat-btn {
    display: flex; align-items: center; gap: 8px; height: 100%;
    padding: 10px 4px; margin: 0;
    background: none; border: none; border-right: 1px solid rgba(23,24,27,.15);
    padding-right: 20px;
    color: var(--carstar-amarelo-texto); font-family: var(--carstar-fonte);
    font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.loja-todas-cat-btn:hover { opacity: .8; }
.loja-todas-cat-painel {
    display: none;
    position: absolute; top: 100%; left: 0;
    background: #fff; border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    min-width: 260px; max-height: 70vh; overflow-y: auto;
    z-index: 40; padding: 8px 0;
}
.loja-dropdown.is-aberto .loja-dropdown-painel { display: block; }
.loja-todas-cat-lista { list-style: none; margin: 0; padding: 0; }
.loja-todas-cat-lista a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 18px; color: var(--carstar-cinza-texto);
    font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.loja-todas-cat-lista ul { list-style: none; margin: 0; padding: 0; }
.loja-todas-cat-lista li { break-inside: avoid; }
/* Com subcategorias: o painel abre em colunas, tudo visível (pai em negrito, filhos recuados) */
.loja-todas-cat-painel:has(.sub-menu) { width: min(780px, 92vw); }
.loja-todas-cat-lista:has(.sub-menu) { column-count: 3; column-gap: 12px; padding: 4px 8px; }
.loja-todas-cat-lista > li { margin-bottom: 6px; }
.loja-todas-cat-lista > li.menu-item-has-children > a { font-weight: 700; color: var(--carstar-preto); }
.loja-todas-cat-lista .sub-menu a { padding: 6px 18px 6px 30px; font-weight: 400; font-size: 13px; }
@media (max-width: 780px) { .loja-todas-cat-lista:has(.sub-menu) { column-count: 1; } .loja-todas-cat-painel:has(.sub-menu) { width: min(92vw, 320px); } }
.loja-todas-cat-lista img { width: 18px; height: 18px; object-fit: contain; }
.loja-todas-cat-lista a:hover { color: var(--carstar-preto); background: #FFF8E6; }

.loja-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.loja-menu li { position: relative; }
.loja-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--carstar-amarelo-texto);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0;
}
.loja-menu img { width: 18px; height: 18px; object-fit: contain; }

/* Submenu simples (dropdown) — funciona com qualquer profundidade de menu nativo */
.loja-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 220px;
    z-index: 30;
}
.loja-menu li:hover > ul { display: block; }
.loja-menu ul a {
    color: var(--carstar-cinza-texto);
    font-weight: 500;
    padding: 8px 16px;
    white-space: nowrap;
}
.loja-menu ul a:hover { color: var(--carstar-preto); background: #FFF8E6; }

/* ── FOOTER ── */
.loja-footer {
    background: var(--carstar-preto); color: #fff; margin-top: 48px;
    /* Garante 100% de largura sempre, não importa se o pai (a página que
       o WordPress usa pra render essa parte do site) tem largura máxima
       ou não. Sem isso, o rodapé no checkout (que o WordPress trata como
       uma "Página" normal com largura de leitura limitada) ficava mais
       estreito que na home — inconsistência visual entre as páginas. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.loja-footer-inner { max-width: 1280px; margin: 0 auto; padding: 40px 24px 24px; }

.loja-footer-selos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--carstar-preto-2);
    margin-bottom: 28px;
}
.loja-footer-selo { display: flex; align-items: center; gap: 10px; color: var(--carstar-amarelo); font-size: 13px; }
.loja-footer-selo span { color: #fff; }

.loja-footer-colunas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}
.loja-footer-coluna h4 { font-size: 13px; color: var(--carstar-amarelo); margin: 0 0 12px; font-weight: 600; }
.loja-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.loja-footer-menu a { color: #C9C9CC; text-decoration: none; font-size: 13px; }
.loja-footer-menu a:hover { color: #fff; }

/* Coluna "Sobre" */
.loja-footer-coluna-sobre { min-width: 200px; }
.loja-footer-logo img { max-height: 34px; width: auto; margin-bottom: 10px; }
.loja-footer-coluna-sobre h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.loja-footer-sobre-texto { font-size: 12.5px; color: #ababab; line-height: 1.6; margin: 0 0 14px; }
.loja-footer-social { display: flex; gap: 10px; }
.loja-footer-social a {
    width: 32px; height: 32px; border-radius: 50%; background: var(--carstar-preto-2);
    color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.loja-footer-social a:hover { background: var(--carstar-amarelo); color: var(--carstar-amarelo-texto); }

/* Coluna "Atendimento" — telefone / WhatsApp / e-mail / endereço */
.loja-footer-contato { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.loja-footer-contato li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #C9C9CC; line-height: 1.5; }
.loja-footer-contato svg { flex-shrink: 0; margin-top: 2px; color: var(--carstar-amarelo); }
.loja-footer-contato a { color: #C9C9CC; text-decoration: none; }
.loja-footer-contato a:hover strong { color: var(--carstar-amarelo); }
.loja-footer-contato strong { display: inline-block; margin-top: 2px; color: #fff; font-weight: 600; font-size: 13px; }
.loja-footer-tag {
    display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 3px;
    background: var(--carstar-preto-2); color: #9a9a9a; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .3px;
}

/* Coluna "Formas de pagamento" + "Site seguro" (imagens fornecidas pelo cliente) */
.loja-footer-coluna-pagamento h4 { margin-top: 18px; }
.loja-footer-coluna-pagamento h4:first-child { margin-top: 0; }
/* Especificidade reforçada (2 classes) pra vencer a regra genérica
   ".woocommerce img, .woocommerce-page img { height:45px }" do loja.css,
   que "vaza" pro site inteiro porque o body leva a classe woocommerce-page
   em qualquer página, não só nas de produto. */
.loja-footer-coluna-pagamento .loja-footer-bandeiras-img {
    height: auto; width: auto; max-width: 100%;
    background: #fff; padding: 6px 8px; border-radius: 6px;
}
.loja-footer-selos-titulo { font-size: 13px; }
.loja-footer-selos-imgs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.loja-footer-coluna-pagamento .loja-footer-selos-imgs img { display: block; height: 40px; width: auto; max-width: none; }

.loja-footer-baixo {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12px; color: #8A8B90; padding-top: 16px; border-top: 1px solid var(--carstar-preto-2);
}
.loja-footer-baixo-texto { display: flex; flex-direction: column; gap: 2px; }
.loja-footer-juridico { font-size: 11px; color: #6A6B70; }
.loja-footer-dev { display: flex; align-items: center; gap: 6px; color: #8A8B90; text-decoration: none; }
.loja-footer-dev img { height: 16px; width: auto; opacity: .8; }
.loja-footer-dev:hover { color: #fff; }
.loja-footer-dev:hover img { opacity: 1; }

/* ── WHATSAPP FLUTUANTE ──
   Reaproveita o padrão ".loja-dropdown" / ".loja-dropdown-painel" (mesmo
   JS de abrir/fechar do "Central de Atendimento"), só muda posicionamento:
   aqui é fixed no canto da tela, e o painel abre PRA CIMA do botão. */
.loja-whats-flutuante {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
}
.loja-whats-flutuante-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.loja-whats-flutuante-btn:hover { transform: scale(1.06); }
.loja-whats-flutuante-btn svg { width: 28px; height: 28px; }
.loja-whats-flutuante-painel {
    display: none;
    position: absolute; bottom: calc(100% + 14px); right: 0;
    width: 300px; max-width: 86vw;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 16px 36px rgba(0,0,0,.22);
}
.loja-whats-flutuante-topo {
    background: var(--loja-cor-whatsapp, #075E54); color: #fff; padding: 14px 18px;
    display: flex; flex-direction: column; gap: 3px;
}
.loja-whats-flutuante-topo strong { font-size: 14.5px; }
.loja-whats-flutuante-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #D9FDD3; }
.loja-whats-flutuante-bolinha { width: 7px; height: 7px; border-radius: 50%; background: #25D366; display: inline-block; }
.loja-whats-flutuante-intro {
    margin: 0; padding: 12px 18px 4px; font-size: 12.5px; color: var(--carstar-cinza-texto); line-height: 1.5;
}
.loja-whats-flutuante-lista { list-style: none; margin: 0; padding: 6px 8px 10px; }
.loja-whats-flutuante-lista a {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px; border-radius: 8px; text-decoration: none;
    transition: background .12s ease;
}
.loja-whats-flutuante-lista a:hover { background: #F5F5F5; }
.loja-whats-flutuante-icone {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    background: #E9FBEF; color: #1e8449;
    display: flex; align-items: center; justify-content: center;
}
.loja-whats-flutuante-icone svg { width: 17px; height: 17px; }
.loja-whats-flutuante-texto { display: flex; flex-direction: column; gap: 2px; }
.loja-whats-flutuante-texto strong { font-size: 13px; color: var(--carstar-preto); }
.loja-whats-flutuante-texto small { font-size: 11.5px; color: #8A8B90; line-height: 1.4; }

/* ── MOBILE ── */
@media (max-width: 780px) {
    .loja-header-top-inner { flex-wrap: wrap; }
    .loja-header-busca { order: 3; max-width: 100%; flex-basis: 100%; }
    .loja-header-acao-label { display: none; }
    .loja-menu { gap: 16px; overflow-x: auto; flex-wrap: nowrap; }
    .loja-header-nav-inner { gap: 12px; }
    .loja-todas-cat-btn { font-size: 12px; padding-right: 12px; gap: 6px; white-space: nowrap; }
    .loja-todas-cat-painel { min-width: 220px; }
    .loja-atendimento-painel { right: 0; left: auto; width: min(85vw, 280px); }

    /* Barra de aviso: no desktop os itens ficam fixos lado a lado (regra
       padrão acima). Aqui, abaixo de 780px, viram um carrossel — não
       compensa empilhar 4-5 mensagens fixas numa tela estreita. O
       header.js já alterna a classe "is-ativa" via setInterval; essas
       regras só definem que, NESSA faixa, isso passa a ter efeito visual. */
    .loja-topo-aviso-inner { padding: 6px 16px; gap: 12px; }
    .loja-topo-aviso-rotativo { position: relative; min-height: 15px; justify-content: flex-start; }
    .loja-topo-aviso-msg {
        position: absolute; left: 0; right: 0; top: 0;
        justify-content: center;
        opacity: 0; transition: opacity .6s ease;
        font-size: 11px;
    }
    .loja-topo-aviso-msg.is-ativa { opacity: 1; position: relative; }
    .loja-topo-aviso-whats span { display: none; } /* some só o texto, mantém o ícone clicável */

    .loja-whats-flutuante { right: 14px; bottom: 14px; }
    .loja-whats-flutuante-btn { width: 50px; height: 50px; }
    .loja-whats-flutuante-btn svg { width: 25px; height: 25px; }
    .loja-whats-flutuante-painel { width: min(88vw, 300px); }
}

/* O rodapé usa 100vw (inclui a barra de rolagem vertical) e criava uma barra
   horizontal na página. 'clip' corta o excesso sem quebrar position: sticky. */
html, body { overflow-x: clip; }

/* ── Barra do topo em modo SLIDER (todas as larguras) ──────────
   Uma mensagem por vez, com setas; o WhatsApp continua fixo à direita. */
.loja-topo-aviso--slider .loja-topo-aviso-inner { gap: 10px; }
.loja-topo-aviso--slider .loja-topo-aviso-rotativo { position: relative; min-height: 20px; justify-content: center; }
.loja-topo-aviso--slider .loja-topo-aviso-msg {
    position: absolute; left: 0; right: 0; top: 0; justify-content: center;
    opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.loja-topo-aviso--slider .loja-topo-aviso-msg.is-ativa { opacity: 1; position: relative; pointer-events: auto; }
.loja-topo-aviso-seta {
    flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%;
    background: transparent; color: #fff; font-size: 20px; line-height: 1; padding: 0 0 2px;
    cursor: pointer; opacity: .75; transition: opacity .15s, background .15s;
}
.loja-topo-aviso-seta:hover { opacity: 1; background: rgba(255,255,255,.12); }
@media (max-width: 780px) { .loja-topo-aviso-seta { display: none; } }

/* "Todas as categorias" no celular: gaveta lateral por cima de tudo (igual ao carrinho lateral) */
@media (max-width: 900px) {
    .loja-todas-cat.is-aberto::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100002; }
    .loja-todas-cat .loja-todas-cat-painel,
    .loja-todas-cat .loja-todas-cat-painel:has(.sub-menu) {
        position: fixed; top: 0; left: 0; bottom: 0; right: auto; width: min(86vw, 340px); max-height: none; min-width: 0;
        border-radius: 0; z-index: 100003; padding: 0 0 24px; box-shadow: 8px 0 30px rgba(0,0,0,.25);
    }
    .loja-todas-cat-lista a { padding: 12px 20px; font-size: 14px; }
    .loja-todas-cat-lista .sub-menu a { padding: 9px 20px 9px 34px; }
}

/* Gaveta de categorias (celular): topo com ✕, subcategorias que abrem/fecham */
.loja-gaveta-cat-topo, .loja-sub-toggle { display: none; }
@media (max-width: 900px) {
    html.loja-gaveta-cat-aberta { overflow: hidden; }
    .loja-gaveta-cat-topo {
        display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2;
        padding: 6px 8px 6px 20px; margin-bottom: 6px; background: var(--carstar-preto); color: #fff; font-weight: 700; font-size: 15px;
    }
    .loja-gaveta-cat-fechar { background: none; border: 0; color: #fff; font-size: 20px; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; }
    .loja-todas-cat-lista li { position: relative; }
    .loja-todas-cat-lista li.menu-item-has-children > a { padding-right: 56px; }
    .loja-sub-toggle {
        display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 4px; width: 48px; height: 46px;
        background: none; border: 0; cursor: pointer; color: var(--carstar-preto);
    }
    .loja-sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s; }
    li.is-aberta > .loja-sub-toggle::before { transform: rotate(-135deg) translate(-2px,-2px); }
    .loja-todas-cat-lista .sub-menu { display: none; }
    .loja-todas-cat-lista li.is-aberta > .sub-menu { display: block; }
}
