/* ==========================================================================
   NOVATEC PC SOLUTION — FOLHA DE ESTILOS
   ========================================================================== */

:root {
    --neon: #00ff66;
    --fundo: #0a0e27;
    --card: #161b22;
    --texto: #fff;
    --input-bg: #1a1e3d;
    --input-border: #333;
    --linha: #1a1e3d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--fundo);
    color: var(--texto);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.cor-neon { color: var(--neon); }

/* ==========================================================================
   BARRA DE CONTACTOS (TOPO)
   ========================================================================== */

.topo-contactos {
    background: #000;
    border-bottom: 1px solid #222;
    font-size: 0.82rem;
}

.topo-contactos-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 6px 0;
}

.topo-contactos-telefones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }

.topo-contactos-telefones a {
    color: #ccc;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 18px;
    border-right: 1px solid #292929;
}

.topo-contactos-telefones a:last-child { border-right: none; padding-right: 0; }

.topo-contactos-telefones a i { color: var(--neon); margin-right: 5px; }
.topo-contactos-telefones a:hover { color: var(--neon); }

.topo-contacto-setor { color: #999; font-weight: 600; margin-right: 2px; }
.topo-contacto-nome { color: #888; }

.topo-contactos-social { display: flex; align-items: center; gap: 18px; }

.topo-contactos-social a {
    color: #ccc;
    font-size: 1.35rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.topo-contactos-social a:hover { transform: scale(1.15); }

/* Cor oficial Facebook (#1877F2) */
.topo-contactos-social a.icon-facebook { color: #1877F2; }
.topo-contactos-social a.icon-facebook:hover { filter: brightness(1.2); }

/* Gradiente oficial Instagram, com o rosa/vermelho de marca (#E4405F) como cor central */
.topo-contactos-social a.icon-instagram i {
    background: linear-gradient(45deg, #F58529, #E4405F, #833AB4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E4405F; /* fallback para browsers sem suporte a background-clip:text */
}
.topo-contactos-social a.icon-instagram:hover { filter: brightness(1.2); }

@media (max-width: 700px) {
    .topo-contactos-content { justify-content: center; text-align: center; }
    .topo-contacto-nome { display: none; }
    .topo-contactos-telefones a { border-right: none; padding-right: 0; }
}

/* ==========================================================================
   HEADER / NAVEGAÇÃO
   ========================================================================== */

header {
    background: #000;
    padding: 20px 0;
    border-bottom: 2px solid #ff0000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo {
    color: var(--neon);
    text-decoration: none;
    font-weight: 900;
    border: 2px solid var(--neon);
    /* Texto aumentado em 20% (1rem -> 1.2rem) e padding ajustado para dar
       espaço visual à caixa verde (pedido explícito do cliente,
       31/07/2026) — sem esta caixa, o texto maior ficava demasiado
       comprimido contra a moldura neon. */
    font-size: 1.2rem;
    padding: 9px 26px;
    text-transform: uppercase;
    display: inline-block;
}

nav a { color: #fff; text-decoration: none; margin-left: 15px; font-weight: bold; }
nav a:hover { color: var(--neon); }

.cart-icon {
    position: relative;
    color: var(--neon);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 15px;
}

#cart-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero { padding: 40px 0; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }

.hero-text h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.3; }

.hero-text p { margin: 15px 0; color: #a0a6b9; }

.hero-img img { width: 100%; height: 350px; object-fit: cover; border: 1px solid var(--neon); }

.btn-hero-cta {
    display: inline-block;
    width: auto;
    padding: 10px 25px;
    text-decoration: none;
    color: #000;
}

/* ==========================================================================
   SECÇÕES / TÍTULOS / GRELHA DE PRODUTOS
   ========================================================================== */

.titulo {
    border-left: 5px solid #ff0000;
    padding-left: 15px;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.p-card {
    background: var(--card);
    border: 1px solid #2a3f5f;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.p-card img { width: 100%; height: 220px; object-fit: cover; }

/* Badge/selo visual de Grade sobre a imagem dos produtos Recondicionados
   (30/07/2026). Verde = A+, Azul = A, Amarelo = B/C, Laranja = Outlet. */
.p-card-img-wrap { position: relative; }
.badge-grade {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0a0f1a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
}
.badge-grade-a-plus { background: #22c55e; color: #062112; }
.badge-grade-a { background: #3b82f6; color: #eaf2ff; }
.badge-grade-b, .badge-grade-c { background: #eab308; color: #241d00; }
.badge-grade-outlet { background: #ff6600; color: #2a1200; }

.info { padding: 15px; text-align: center; }

.info h3 { color: var(--neon); margin-bottom: 8px; }

.p-desc { font-size: 0.85rem; color: #a0a6b9; height: 40px; overflow: hidden; }

.p-preco { font-size: 1.2rem; font-weight: bold; margin: 10px 0; }

.btn-add {
    background: var(--neon);
    border: none;
    padding: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.btn-add:hover { filter: brightness(1.2); }

/* ==========================================================================
   PESQUISA DA LOJA
   ========================================================================== */

.search-container {
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.campo-pesquisa-loja {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--neon);
    color: var(--texto);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.campo-pesquisa-loja::placeholder { color: #8890a6; }

.campo-pesquisa-loja:focus {
    outline: none;
    filter: brightness(1.15);
}

.ordenacao-container {
    max-width: 500px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ordenacao-label {
    font-size: 0.85rem;
    color: var(--texto);
    opacity: 0.85;
    white-space: nowrap;
}

.select-ordenacao-loja {
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--neon);
    color: var(--texto);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.9rem;
    cursor: pointer;
}

.select-ordenacao-loja:focus {
    outline: none;
    filter: brightness(1.15);
}

@media (max-width: 480px) {
    .ordenacao-container { flex-direction: column; align-items: stretch; }
    .select-ordenacao-loja { width: 100%; }
}

.loja-sem-resultados {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.6;
    padding: 30px 0;
}

/* Sentinela invisível usada para detetar o scroll e carregar o lote
   seguinte de produtos (paginação da loja) — não deve ocupar espaço
   visual, só serve de "gatilho" para o IntersectionObserver. */
.loja-sentinela-scroll {
    width: 100%;
    height: 1px;
}

/* ==========================================================================
   FILTROS DA LOJA
   ========================================================================== */

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn-filter {
    background: var(--input-bg);
    color: white;
    border: 1px solid var(--neon);
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
    border-radius: 4px;
}

.btn-filter:hover, .btn-filter.active {
    background: var(--neon);
    color: black;
}

.btn-filter.btn-outlet {
    background: #ff6600;
    border-color: #ff6600;
    color: white;
}

.btn-filter.btn-outlet:hover, .btn-filter.btn-outlet.active {
    background: #ff8533;
    border-color: #ff6600;
    color: white;
}

/* Sub-filtro "🎮 Gaming", visível só dentro da categoria Desktops
   (ver atualizarVisibilidadeSubfiltroDesktops em app.js). Botões um
   pouco mais pequenos que os filtros principais, para ficar claro que
   são um refinamento e não mais uma categoria de topo. */
.subfiltro-container {
    margin-top: -18px;
    margin-bottom: 30px;
}

.btn-filter.btn-subfiltro {
    padding: 6px 14px;
    font-size: 0.72rem;
    opacity: 0.85;
}

.btn-filter.btn-subfiltro:hover,
.btn-filter.btn-subfiltro.active {
    opacity: 1;
    background: var(--neon);
    color: black;
}

/* ==========================================================================
   TESTEMUNHOS
   ========================================================================== */

.secao-testemunhos { margin-top: 60px; padding: 20px 0; }

.cartao-testemunho {
    padding: 15px;
    border-bottom: 2px solid var(--neon);
    background: rgba(255, 255, 255, 0.02);
}

.estrelas { color: #ffc107; font-size: 0.8rem; margin-bottom: 5px; }

.texto-testemunho { font-style: italic; font-size: 0.85rem; line-height: 1.4; }

.autor-testemunho { color: var(--neon); margin-top: 10px; font-size: 0.9rem; }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */

footer { padding-top: 20px; }

.rodape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.rodape-titulo { color: var(--neon); margin-bottom: 15px; }

.rodape-social-icons { display: flex; justify-content: center; gap: 20px; font-size: 2.2rem; }

.color-fb, .color-facebook { color: #1877F2; }
.color-ig { color: #E4405F; }
.color-wa { color: #25D366; }

.rodape-linha { margin-bottom: 8px; }
.rodape-linha i { color: var(--neon); margin-right: 10px; }

.rodape-texto-secundario { font-size: 0.9rem; opacity: 0.8; }

.rodape-legal {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--linha);
    font-size: 0.85rem;
    opacity: 0.8;
}

.rodape-copyright { margin-top: 10px; opacity: 0.5; }

.rodape-link-legal {
    color: var(--texto);
    opacity: 0.85;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.rodape-link-legal:hover { color: var(--neon); opacity: 1; }
.rodape-link-legal i { color: var(--neon); margin-right: 8px; width: 14px; text-align: center; }

.badge-livro-reclamacoes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid var(--neon);
    border-radius: 6px;
    color: var(--neon);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}
.badge-livro-reclamacoes:hover { background: var(--neon); color: #000; }

/* ==========================================================================
   MODAIS LEGAIS (Privacidade/RGPD, Termos, RAL)
   ========================================================================== */

.overlay-modal-legal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
}

.modal-legal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 720px;
    max-height: 82vh;
    overflow-y: auto;
    background: var(--fundo);
    border: 1px solid var(--neon);
    border-radius: 8px;
    padding: 30px;
    z-index: 10001;
    color: var(--texto);
    box-sizing: border-box;
}

.modal-legal-fechar {
    position: sticky;
    top: 0;
    float: right;
    margin-bottom: 10px;
}

.modal-legal-titulo {
    color: var(--neon);
    margin-bottom: 18px;
    padding-right: 30px;
}

.modal-legal-conteudo h4 {
    color: var(--neon);
    margin: 18px 0 6px;
    font-size: 0.95rem;
}

.modal-legal-conteudo p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 4px;
}

.modal-legal-conteudo a { color: var(--neon); }

/* ==========================================================================
   CHECKBOX DE ACEITAÇÃO DE TERMOS (CHECKOUT)
   ========================================================================== */

.checkbox-termos {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.95;
}

.checkbox-termos input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--neon);
    cursor: pointer;
}

.checkbox-termos a { color: var(--neon); text-decoration: underline; }

.aceite-termos-box { transition: box-shadow 0.3s ease, border-color 0.3s ease; }

.aceite-termos-box.erro-destaque {
    border: 1px solid #ff4444;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.6);
}

/* ==========================================================================
   BANNER DE COOKIES (RGPD)
   ========================================================================== */

.cookie-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 2px solid var(--neon);
    padding: 15px;
    z-index: 999999;
    /* Correção de "banner preso/só aparece com scroll" em mobile
       (pedido explícito do cliente, 01/08/2026): a animação passa a ser
       feita por 'transform' em vez de 'bottom'. Alguns browsers móveis
       (sobretudo Safari/Chrome no iOS, quando a barra de endereço
       colapsa/expande) só repintam corretamente um elemento
       'position: fixed' cuja posição depende de 'bottom' depois de um
       evento de scroll — 'transform' corre sempre na composição gráfica
       (GPU), sem depender de reflow do layout, por isso aparece/desaparece
       de imediato independentemente de o utilizador alguma vez fazer scroll.
       'bottom: 0' fica sempre fixo; é o 'translateY' que esconde o banner
       abaixo do ecrã. */
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-banner.cookie-banner-visivel { transform: translateY(0); }

/* Ocultação total e forçada após o utilizador responder (Aceitar/Recusar).
   Além da transição normal por 'transform', isto garante que em ecrãs
   móveis o banner desaparece por completo do ecrã e deixa de ser
   clicável/tocável, mesmo que a transição não tenha sido suficiente para
   o tirar da vista. */
.cookie-banner.cookie-banner-oculto,
.cookie-banner.hidden {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(120%) !important;
    pointer-events: none !important;
}

.cookie-banner-texto { flex: 1 1 320px; }
.cookie-banner-texto p { font-size: 0.85rem; opacity: 0.9; line-height: 1.5; }
.cookie-banner-texto a { color: var(--neon); text-decoration: underline; }

.cookie-banner-botoes {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.btn-cookie {
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    /* Garante resposta imediata ao toque em telemóveis (sem delay de
       300ms nem gestos de zoom/scroll acidentais a "engolir" o toque),
       sem bloquear toques no resto do ecrã — o alcance do bloqueio de
       toque fica limitado apenas à área do próprio botão. */
    touch-action: manipulation;
    position: relative;
    z-index: 1;
}

.btn-cookie:hover { opacity: 0.85; }

.btn-cookie-primario { background: var(--neon); color: #000; }

.btn-cookie-secundario {
    background: transparent;
    color: var(--texto);
    border: 1px solid var(--texto);
}

/* ==========================================================================
   MODAL DO CARRINHO / CHECKOUT
   ========================================================================== */

#cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--fundo);
    border-left: 2px solid var(--neon);
    z-index: 9999;
    padding: 20px;
    color: white;
    box-sizing: border-box;
    overflow-y: auto;
    transition: transform 0.4s ease-in-out;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--linha);
    padding-bottom: 10px;
}

.cart-header h2 { color: var(--neon); font-size: 1.2rem; }

.cart-close-btn {
    background: transparent;
    color: #888;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

#cart-items {
    margin-top: 15px;
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #333;
    border-bottom: 1px solid var(--linha);
    padding-top: 10px;
    padding-bottom: 10px;
}

#cart-items .cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 5px;
}

#cart-items .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 55%;
}

#cart-items .cart-item-nome { font-size: 0.75rem; }

#cart-items .cart-item-qtd-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

#cart-items .btn-qtd {
    background: var(--input-bg);
    color: white;
    border: 1px solid var(--neon);
    width: 20px;
    height: 20px;
    line-height: 1;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75rem;
}

#cart-items .btn-qtd:hover { background: var(--neon); color: black; }

#cart-items .cart-item-qtd {
    font-size: 0.75rem;
    min-width: 14px;
    text-align: center;
}

#cart-items .cart-item-preco { font-size: 0.75rem; color: var(--neon); font-weight: bold; white-space: nowrap; }

#cart-items .cart-item-remover {
    color: #ff4444;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
}

.payment-box {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--linha);
}

.payment-box h4 {
    color: var(--neon);
    margin-bottom: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Valor do CTT — apenas informativo, nunca clicável/editável pelo cliente */
.valor-envio-ctt { color: var(--neon); }

/* Nota de envio para Ilhas/Resto do Mundo — sem cálculo automático,
   encaminha sempre para o WhatsApp da loja. */
.nota-envio-ilhas {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--neon);
    border-radius: 6px;
    background: rgba(0, 255, 102, 0.06);
}

.nota-envio-ilhas p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.btn-whatsapp-envio {
    background: #25D366;
    color: #05130a;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-whatsapp-envio:hover {
    filter: brightness(1.1);
}

.campo-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: white;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.85rem;
}

.campo-input:last-child { margin-bottom: 0; }

.campo-linha { display: flex; gap: 8px; margin-bottom: 8px; }
.campo-linha .campo-input { margin-bottom: 0; }
.campo-meio { width: 50%; }
.campo-pequeno { width: 40%; }
.campo-grande { width: 60%; }

#campo-mbway { margin: 10px 0 10px 24px; }

.cupao-linha {
    display: flex;
    gap: 8px;
}

.cupao-linha .campo-input { margin-bottom: 0; }

.btn-cupao {
    background: var(--neon);
    color: black;
    border: none;
    padding: 0 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-cupao:hover { opacity: 0.85; }

.cupao-mensagem {
    font-size: 0.75rem;
    margin-top: 8px;
    min-height: 1em;
}

.cupao-mensagem.sucesso { color: var(--neon); }
.cupao-mensagem.erro { color: #ff4444; }

.link-remover-cupao {
    font-size: 0.7rem;
    color: #888;
    text-decoration: underline;
}

.link-remover-cupao:hover { color: #ff4444; }

.cart-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 4px;
}

.cart-desconto-box {
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.9;
    margin: -5px 0 15px 0;
}

.cart-desconto-box span:last-child { color: #ff8533; font-weight: bold; }

#cart-total { color: var(--neon); }

.btn-finalizar {
    width: 100%;
    background: var(--neon);
    color: black;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-finalizar:hover { filter: brightness(1.1); }

#resultado-pagamento {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: #101538;
    border: 1px dashed var(--neon);
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
}

.cart-divider { border: 0; border-top: 1px solid var(--linha); margin: 20px 0; }

.suporte-box p {
    font-size: 0.78rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 10px;
}

.btn-suporte {
    width: 100%;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: white;
}

.btn-whatsapp { background: #25D366; }
.btn-email { background: #ff6b00; }

/* Botão flutuante do WhatsApp */
.whatsapp-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 9000;
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVIDADE — TABLET / MOBILE
   ========================================================================== */

@media (max-width: 800px) {
    header .container { flex-direction: column; gap: 12px; text-align: center; }
    nav { font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    #cart-modal { width: 100% !important; max-width: 100% !important; }
    .campo-linha { flex-direction: column; }
    .campo-meio, .campo-pequeno, .campo-grande { width: 100% !important; }
}

@media (max-width: 480px) {
    .titulo { font-size: 1.1rem; }
    .whatsapp-flutuante { width: 50px; height: 50px; font-size: 24px; }
}

/* Banner de cookies em mobile (pedido explícito do cliente, 01/08/2026) —
   empilha o texto e os botões em coluna centrada, com o botão "Aceitar
   Todos" a ocupar 100% da largura disponível (até um máximo de 250px),
   para nunca ficar espremido ao lado do botão "Apenas Necessários" nem
   tapado pelos botões flutuantes de WhatsApp/Início Loja. */
@media (max-width: 768px) {
    .cookie-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cookie-banner-botoes .btn-cookie-primario {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .modal-legal { padding: 20px; max-height: 88vh; }
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .cookie-banner-botoes { justify-content: center; flex-wrap: wrap; }
    .cookie-banner-botoes .btn-cookie { flex: 1 1 auto; min-width: 130px; padding: 12px 16px; }
}
