/* =========================================
   VARIÁVEIS E TEMAS
   ========================================= */
:root {
    --bg-main: #ffffff;
    --bg-sec: #f8f8f8;
    --text-main: #000000;
    --border: #eeeeee;
    --gold: #d4af37;
    --transition: 0.3s ease;
}

body.dark-mode {
    --bg-main: #0a0a0a;
    --bg-sec: #111111;
    --text-main: #ffffff;
    --border: #222222;
}

/* =========================================
   RESET E BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-main); 
    color: var(--text-main); 
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--text-main); }
.gold-text { color: var(--gold); }

/* Forçar cores corretas no modo escuro para textos importantes */
body.dark-mode .hero-p,
body.dark-mode .trust-item h4,
body.dark-mode .product-info h3 {
    color: #ffffff !important;
}

/* =========================================
   LOADER
   ========================================= */
.loader { position: fixed; inset: 0; background: #000; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.loader span { color: var(--gold); font-family: 'Syncopate', sans-serif; font-size: 1.5rem; letter-spacing: 5px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* =========================================
   TOPBAR E NAVEGAÇÃO
   ========================================= */
.topbar { background: var(--gold); color: #000; text-align: center; padding: 8px; font-size: 0.7rem; font-weight: 900; letter-spacing: 1px; }
.navbar { position: sticky; top: 0; background: var(--bg-main); border-bottom: 1px solid var(--border); z-index: 100; transition: background-color var(--transition); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }
.nav-links a { font-size: 0.75rem; font-weight: 700; margin: 0 12px; transition: var(--transition); text-transform: uppercase;}
.nav-links a:hover { color: var(--gold); }
.nav-icons { display: flex; gap: 15px; font-size: 1.2rem; }
.nav-icons a { transition: var(--transition); }
.nav-icons a:hover { color: var(--gold); }
.cart-icon { position: relative; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--gold); color: #000; font-size: 0.6rem; font-weight: 800; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* =========================================
   HERO (CAPA GIGANTE)
   ========================================= */
.hero { height: 70vh; display: flex; align-items: center; padding: 0 8%; background: var(--bg-sec); transition: background-color var(--transition); }
.hero h1 { font-family: 'Syncopate', sans-serif; font-size: 4rem; line-height: 0.9; margin-bottom: 20px; }
.hero-p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.8; }
.btn-primary { background: var(--text-main); color: var(--bg-main); padding: 15px 35px; text-decoration: none; font-weight: 800; font-size: 0.8rem; border: 1px solid var(--text-main); transition: var(--transition); display: inline-block; cursor: pointer; }
.btn-primary:hover { background: transparent; color: var(--text-main); }

/* =========================================
   FAIXA DE CONFIANÇA
   ========================================= */
.trust-bar { display: flex; justify-content: space-around; align-items: center; padding: 30px 5%; background: var(--bg-main); border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 20px; transition: background-color var(--transition); }
.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-item i { font-size: 2rem; color: var(--gold); }
.trust-item h4 { font-size: 0.9rem; font-weight: 900; margin-bottom: 3px; transition: color var(--transition); }
.trust-item p { font-size: 0.75rem; opacity: 0.7; }

/* =========================================
   DESTAQUE DE CATEGORIAS
   ========================================= */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 40px 8%; background: var(--bg-main); transition: background-color var(--transition); }
.cat-card { position: relative; height: 400px; overflow: hidden; cursor: pointer; border-radius: 4px; background: var(--bg-sec); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; }
.cat-card span { position: absolute; bottom: 20px; left: 20px; color: #fff; font-family: 'Syncopate', sans-serif; font-weight: 700; z-index: 2; font-size: 1.2rem; }
.cat-card:hover img { transform: scale(1.1); filter: brightness(0.6); }

/* =========================================
   SESSÃO DE NOVIDADES E SELOS
   ========================================= */
.highlight-section { padding: 60px 8%; background: var(--bg-sec); transition: background-color var(--transition); }
.badge { position: absolute; top: 15px; left: 15px; background: var(--gold); color: #000; padding: 5px 12px; font-size: 0.7rem; font-weight: 900; z-index: 2; border-radius: 2px; }

/* Selo de Desconto Pix */
.badge-pix {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #25D366; 
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================================
   BANNER PROMO (FUNDO SÓLIDO PREMIUM)
   ========================================= */
.promo-banner { 
    height: 50vh; 
    background-color: #0a0a0a;
    background-image: linear-gradient(to bottom, #1a1a1a, #050505);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 10%; 
    color: #fff; 
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}
.promo-content h2 { font-family: 'Syncopate', sans-serif; font-size: 3rem; margin-bottom: 15px; }
.promo-content p { font-size: 1.1rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.9; }
.promo-banner .btn-primary { background: var(--gold); border: none; color: #000; }
.promo-banner .btn-primary:hover { background: #fff; }

/* =========================================
   CATÁLOGO DE PRODUTOS E FILTROS
   ========================================= */
.shop-section { padding: 60px 8%; background: var(--bg-main); transition: background-color var(--transition); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-family: 'Syncopate', sans-serif; font-size: 2rem; margin-bottom: 25px; }

.filter-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pill { background: transparent; border: 1px solid var(--border); color: var(--text-main); padding: 8px 20px; border-radius: 30px; cursor: pointer; font-weight: 600; font-size: 0.8rem; transition: var(--transition); text-transform: uppercase; }
.pill.active, .pill:hover { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.product-card { border: 1px solid var(--border); transition: border-color var(--transition); position: relative; background: transparent; border-radius: 4px; overflow: hidden;}
.product-card:hover { border-color: var(--gold); }

.product-image { height: 320px; overflow: hidden; position: relative; background: var(--bg-sec); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.product-card:hover .product-overlay { opacity: 1; }
.product-overlay button { background: #fff; color: #000; border: none; padding: 12px 20px; font-weight: 900; font-size: 0.7rem; cursor: pointer; border-radius: 2px; transition: 0.2s; text-transform: uppercase; }
.product-overlay button:hover { background: var(--gold); }

.product-info { padding: 15px; }
.product-info h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; transition: color var(--transition); }
.price-box { display: flex; flex-direction: column; gap: 2px; }
.old-price { font-size: 0.75rem; text-decoration: line-through; opacity: 0.5; }
.price { color: var(--gold); font-weight: 800; font-size: 1.1rem; }

/* =========================================
   MODAL DO CARRINHO (SIDEBAR)
   ========================================= */
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 400px; height: 100%; background: var(--bg-main); z-index: 1000; transition: right 0.4s ease; border-left: 1px solid var(--border); box-shadow: -10px 0 30px rgba(0,0,0,0.2); }
.cart-sidebar.active { right: 0; }
.cart-inner { display: flex; flex-direction: column; height: 100%; padding: 30px; }
.cart-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; }
.cart-top h3 { font-family: 'Syncopate', sans-serif; font-size: 1.2rem; }
.close-btn { font-size: 2rem; cursor: pointer; transition: color var(--transition); }
.close-btn:hover { color: var(--gold); }

.cart-list { flex: 1; overflow-y: auto; }
.item-zap { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.item-zap span { max-width: 60%; font-weight: 600; }

.cart-bottom { padding-top: 20px; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; font-weight: 900; font-size: 1.2rem; margin-bottom: 15px; }
.btn-checkout { width: 100%; background: var(--gold); color: #000; border: none; padding: 18px; font-weight: 900; cursor: pointer; border-radius: 4px; transition: filter 0.2s; text-transform: uppercase; }
.btn-checkout:hover { filter: brightness(1.1); }

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */
footer { background: var(--bg-sec); padding: 60px 8% 20px; border-top: 1px solid var(--border); transition: background-color var(--transition); }
.footer-logo { font-family: 'Syncopate', sans-serif; font-size: 1.8rem; }
.social-icons { margin-top: 10px; font-size: 1.5rem; display: flex; gap: 20px; }
.social-icons a { transition: color var(--transition); }
.social-icons a:hover { color: var(--gold); }

/* =========================================
   RESPONSIVIDADE (Celular)
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { height: 60vh; }
    .trust-bar { flex-direction: column; align-items: flex-start; padding: 30px 10%; }
    .category-grid { grid-template-columns: 1fr; }
    .promo-banner { height: 60vh; padding: 0 5%; }
    .promo-content h2 { font-size: 2rem; }
    .cart-sidebar { width: 100%; }
    .footer-wrap { grid-template-columns: 1fr !important; gap: 30px; text-align: center !important; }
    .social-icons { justify-content: center !important; }
}