/* ========================================================
   ARQUIVO GLOBAL (loja.css) - O Núcleo do E-commerce
   ======================================================== */
:root {
    --cor-primaria: #a523f5;
    --cor-primaria-hover: #8e1bda;
    --cor-secundaria: #e4d8f8;
    --cor-texto: #333;
    --fundo-site: #f8f9fa;
    --cor-botao-comprar: #6366f1;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--fundo-site); color: var(--cor-texto); display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }

/* ================= Faixa de Aviso e Alertas ================= */
.faixa-aviso { background-color: var(--cor-primaria); color: white; text-align: center; padding: 8px 10px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.alerta-sucesso { background: #d4edda; color: #155724; padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-weight: bold; font-size: 0.9rem; border: 1px solid #c3e6cb; }

/* ================= Navbar Mobile-First ================= */
.navbar { background-color: white; padding: 10px 15px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.navbar-top { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.navbar-top i { font-size: 1.4rem; color: var(--cor-texto); cursor: pointer; }

/* Menu de Ícones (Início, Produtos, Carrinho) */
.menu-icones-topo { display: flex; justify-content: center; gap: 35px; padding: 15px 0; background: white; width: 100%; }
.menu-icones-topo a { text-decoration: none; display: flex; flex-direction: column; align-items: center; color: var(--cor-primaria); font-weight: 700; font-size: 0.70rem; gap: 6px; transition: 0.3s; }
.menu-icones-topo a i { font-size: 1.6rem; }
.menu-icones-topo a:hover { transform: scale(1.1); opacity: 0.8; }
.menu-icones-topo a.ativo { transform: scale(1.1); font-weight: 800; color: var(--cor-primaria); }
.menu-icones-topo a.ativo::after { content: ""; display: block; width: 60%; height: 3px; background-color: var(--cor-primaria); border-radius: 2px; margin-top: 3px; }
@media (max-width: 400px) {
    .menu-icones-topo { gap: 20px; }
    .menu-icones-topo a i { font-size: 1.3rem; }
    .menu-icones-topo a { font-size: 0.65rem; }
}

.cart-container { position: relative; }
.cart-badge { position: absolute; top: -5px; right: -10px; background-color: var(--cor-primaria); color: white; font-size: 0.65rem; padding: 2px 6px; border-radius: 50%; font-weight: bold; }

/* Logo Centralizada */
.logo-container { padding: 15px 0; text-align: center; background: white; }
.logo-container img { max-height: 60px; }

/* ================= Menu Gaveta e Busca (Overlays Globais) ================= */
.menu-gaveta-overlay, .busca-overlay, .menu-lateral-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.menu-gaveta-overlay.ativo, .busca-overlay.ativo, .menu-lateral-overlay.ativo { opacity: 1; visibility: visible; }
.busca-overlay { background: rgba(255,255,255,0.97); display: flex; align-items: flex-start; justify-content: center; padding-top: 100px; backdrop-filter: blur(5px); }

.menu-gaveta-box { position: fixed; bottom: 0; left: 0; width: 100%; background: white; border-radius: 20px 20px 0 0; padding: 20px 20px 40px; z-index: 1001; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.menu-gaveta-overlay.ativo .menu-gaveta-box { transform: translateY(0); }
.gaveta-titulo { font-size: 1.2rem; color: var(--cor-primaria); margin-bottom: 20px; text-align: center; font-weight: bold; position: relative; }
.fechar-gaveta { position: absolute; right: 0; top: -5px; font-size: 1.5rem; color: #999; cursor: pointer; }
.categoria-link { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #eee; text-decoration: none; color: var(--cor-texto); font-weight: 600; font-size: 1.1rem; }

.menu-lateral-box { width: 280px; height: 100%; background: white; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: 2px 0 15px rgba(0,0,0,0.1); }
.menu-lateral-overlay.ativo .menu-lateral-box { transform: translateX(0); }
.menu-lateral-header { padding: 25px 20px; background: var(--cor-secundaria); display: flex; justify-content: space-between; align-items: center; }
.menu-lateral-header h2 { font-size: 1.2rem; color: var(--cor-primaria); margin: 0; }
.menu-lateral-links a { padding: 15px 25px; text-decoration: none; color: var(--cor-texto); font-weight: 600; font-size: 1rem; border-bottom: 1px solid #f8f9fa; display: flex; align-items: center; gap: 15px; }

.busca-container { width: 90%; max-width: 600px; position: relative; }
.busca-container form { display: flex; width: 100%; border-bottom: 3px solid var(--cor-primaria); padding-bottom: 5px; }
.busca-container input { width: 100%; border: none; background: transparent; padding: 10px 5px; font-size: 1.5rem; outline: none; color: var(--cor-texto); }
.busca-container button { background: transparent; border: none; color: var(--cor-primaria); font-size: 1.5rem; cursor: pointer; }
.fechar-busca { position: absolute; top: -60px; right: 0; font-size: 2rem; cursor: pointer; }

/* Botão WhatsApp Flutuante */
.btn-whatsapp { position: fixed; bottom: 20px; right: 20px; background-color: #25d366; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; text-decoration: none; }
@media (max-width: 768px) { .btn-whatsapp { bottom: 110px; } }

/* ========================================================
   CARRINHO E CARRINHO BADGE (Ajuste)
   ======================================================== */
.cart-badge { position: absolute; top: -8px; right: -12px; background: var(--cor-primaria); color: white; border-radius: 50%; font-size: 0.65rem; width: 18px; height: 18px; display: flex; justify-content: center; align-items: center; }

/* ================= BANNER LGPD (Cookies) ================= */
.lgpd-banner { display: none; position: fixed; bottom: 20px; left: 20px; right: 20px; background: #ffffff; box-shadow: 0 4px 20px rgba(0,0,0,0.15); padding: 20px; border-radius: 12px; z-index: 9999; border-left: 5px solid var(--cor-primaria); font-family: sans-serif; }
.lgpd-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.lgpd-texto { flex: 1; min-width: 250px; margin: 0; color: #333; font-size: 0.9rem; line-height: 1.5; }
.lgpd-link { color: var(--cor-primaria); text-decoration: underline; font-weight: bold; }
.btn-lgpd { background: var(--cor-primaria); color: white; border: none; padding: 10px 25px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 0.9rem; transition: 0.2s; white-space: nowrap; }
.btn-lgpd:hover { filter: brightness(0.9); transform: scale(0.98); }

/* ================= RODAPÉ (FOOTER) ================= */
.footer-duas-marias { background-color: #f8f9fa; padding: 50px 0 20px; border-top: 1px solid #eaeaea; font-family: sans-serif; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; max-width: 900px; margin: 0 auto 40px auto; padding: 0 25px; }
.footer-col { flex: 1; min-width: 250px; }

.footer-col-centro { flex: 1; min-width: 200px; display: flex; justify-content: center; }
.footer-col-direita { flex: 1; min-width: 200px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }

.footer-titulo { color: #222; font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.footer-texto { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

.footer-lista { list-style: none; padding: 0; margin: 0; line-height: 2.2; }
.footer-link { text-decoration: none; color: #555; transition: 0.3s; display: inline-block; }
.footer-link:hover { color: var(--cor-primaria); transform: translateX(5px); }

.footer-pagamento-box { background: #fff; border: 1px solid #ddd; padding: 10px 15px; border-radius: 8px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-pagamento-texto { color: #555; font-size: 0.85rem; line-height: 1.5; }

.footer-creditos { border-top: 1px solid #e5e5e5; padding-top: 20px; text-align: center; color: #777; font-size: 0.85rem; display: flex; flex-direction: column; gap: 8px; }
.footer-creditos a { color: var(--cor-primaria); text-decoration: none; font-weight: bold; }

@media (max-width: 768px) {
    .footer-col-centro { justify-content: flex-start; } 
    .footer-col-direita { align-items: flex-start; text-align: left; } 
}