/* =============================================
   1. CONFIGURAÇÃO GERAL
   ============================================= */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --secondary: #0f172a;
    --text-gray: #64748b;
    --bg-body: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --mpesa: #e60000;
    --emola: #f97316;
    --whatsapp: #25D366;
    --success: #10b981;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-body); color: var(--secondary); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
.hidden { display: none !important; }

/* Wrapper */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   2. NAVBAR
   ============================================= */
.navbar {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 0;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.brand-logo { display: flex; align-items: center; gap: 10px; font-family: 'Outfit'; font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.logo-box { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transform: rotate(-5deg); }
.logo-text span { color: var(--primary); }

.search-bar-desktop {
    flex: 1; max-width: 450px; background: var(--border); border-radius: 50px;
    padding: 8px 20px; display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
.search-bar-desktop:focus-within { background: white; box-shadow: 0 0 0 2px var(--primary); }
.search-bar-desktop input { flex: 1; background: transparent; border: none; outline: none; }
.search-icon { color: var(--text-gray); }

.nav-links { display: flex; gap: 25px; }
.nav-links a { font-weight: 600; color: var(--text-gray); }
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-sm { background: var(--primary); color: white; padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; }
.mobile-trigger { display: none; font-size: 1.5rem; background: none; color: var(--secondary); }

/* =============================================
   3. MENU MOBILE
   ============================================= */
.backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1050;
}
.mobile-sidebar {
    position: fixed; top: 0; left: -300px; width: 85%; max-width: 300px; height: 100%;
    background: white; z-index: 1100; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; padding: 25px; box-shadow: 5px 0 25px rgba(0,0,0,0.1);
}
.mobile-sidebar.open { left: 0; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.brand-logo-dark { font-family: 'Outfit'; font-weight: 800; font-size: 1.4rem; color: var(--secondary); }
.icon-btn { background: none; font-size: 1.4rem; color: var(--text-gray); }

.sidebar-search { display: flex; background: var(--bg-body); padding: 12px; border-radius: 12px; margin-bottom: 20px; }
.sidebar-search input { width: 100%; background: transparent; border: none; outline: none; }

.sidebar-nav { display: flex; flex-direction: column; gap: 10px; }
.sidebar-nav a { 
    display: flex; align-items: center; gap: 15px; padding: 12px; 
    border-radius: 12px; font-weight: 600; color: var(--secondary); 
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary); }

.sidebar-footer { margin-top: auto; }
.btn-whatsapp-full { 
    display: block; width: 100%; background: var(--whatsapp); color: white; 
    text-align: center; padding: 14px; border-radius: 12px; font-weight: 700;
}

/* =============================================
   4. HERO SECTION
   ============================================= */
.hero { padding: 60px 0; background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }

.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: white; padding: 6px 16px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; color: var(--success); margin-bottom: 25px; box-shadow: var(--shadow); }
.dot-online { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }

.hero-content h1 { font-family: 'Outfit'; font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--secondary); }
.hero-content span { color: var(--primary); }
.hero-content p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 40px; max-width: 90%; }

.hero-btns { display: flex; gap: 15px; margin-bottom: 50px; }
.btn-primary-lg { background: var(--primary); color: white; padding: 15px 35px; border-radius: 50px; font-weight: 700; transition: 0.2s; }
.btn-primary-lg:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-secondary-lg { background: white; color: var(--secondary); padding: 15px 35px; border-radius: 50px; font-weight: 700; border: 1px solid var(--border); }

.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat strong { display: block; font-size: 1.2rem; }
.stat span { font-size: 0.8rem; color: var(--text-gray); }
.divider { width: 1px; height: 35px; background: var(--border); }

.hero-img-box { position: relative; }
.hero-img-box img { border-radius: 24px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); width: 100%; }
.float-card { position: absolute; background: white; padding: 10px 18px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; z-index: 2; top: 30px; left: -20px; animation: float 3s infinite; }
.float-card i { color: var(--success); }

/* =============================================
   5. CATEGORIAS & PRODUTOS
   ============================================= */
.categories-section { position: sticky; top: 70px; z-index: 90; padding: 10px 0; background: rgba(248, 250, 252, 0.95); border-bottom: 1px solid var(--border); }
.categories-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.cat-pill { white-space: nowrap; background: white; border: 1px solid var(--border); padding: 8px 20px; border-radius: 30px; font-weight: 600; color: var(--text-gray); display: flex; gap: 8px; align-items: center; transition: 0.2s; }
.cat-pill:hover, .cat-pill.active { background: var(--secondary); color: white; border-color: var(--secondary); }

.products-section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.2rem; font-family: 'Outfit'; margin-bottom: 10px; }

/* Grid de Produtos - CRUCIAL PARA MOBILE */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 30px; 
}

.product-card {
    background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
    transition: 0.3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.card-thumb { height: 240px; position: relative; background: #f1f5f9; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover img { transform: scale(1.1); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; color: white; z-index: 2; }
.badge-hot { background: #ef4444; } .badge-new { background: #10b981; }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.category-name { font-size: 0.7rem; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 5px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--secondary); }
.price-box { margin-top: auto; margin-bottom: 15px; }
.old-price { font-size: 0.9rem; text-decoration: line-through; color: var(--text-gray); margin-right: 8px; }
.new-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.btn-buy { background: var(--secondary); color: white; padding: 10px; border-radius: 10px; font-weight: 600; }
.btn-icon { background: white; border: 1px solid var(--border); width: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }

.no-results { text-align: center; grid-column: 1/-1; padding: 40px; }
.no-results i { font-size: 3rem; color: var(--border); margin-bottom: 20px; }
.no-results button { padding: 10px 20px; background: var(--primary); color: white; border-radius: 20px; }

/* =============================================
   6. DEPOIMENTOS
   ============================================= */
.testimonials-section { background: var(--bg-body); padding: 60px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.stars { color: #f59e0b; margin-bottom: 15px; }
.review-card p { font-style: italic; color: var(--text-gray); margin-bottom: 20px; font-size: 0.95rem; }
.user-info { display: flex; align-items: center; gap: 15px; }
.avatar { width: 45px; height: 45px; background: var(--secondary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-info strong { display: block; font-size: 0.95rem; }
.user-info span { font-size: 0.8rem; color: var(--text-gray); }

/* =============================================
   7. FAQ (ACORDEÃO CORRIGIDO)
   ============================================= */
.faq-section { padding: 60px 0; background: white; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-question { width: 100%; padding: 20px; background: transparent; text-align: left; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.05rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; padding: 0 20px; color: var(--text-gray); }
.faq-item.active .faq-answer { padding-bottom: 20px; max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* =============================================
   8. FOOTER
   ============================================ */
.main-footer { background: var(--secondary); color: #94a3b8; padding: 70px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 15px; font-family: 'Outfit'; }
.footer-logo span { color: var(--primary); }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-payments { display: flex; gap: 10px; margin-top: 20px; }
.footer-payments span { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; color: white; }
.footer-copy { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; font-size: 0.9rem; }

/* =============================================
   9. MODAIS
   ============================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box { background: white; width: 90%; max-width: 450px; border-radius: 20px; overflow: hidden; transform: scale(0.9); transition: 0.3s; }
.modal-overlay.active .modal-box { transform: scale(1); }

.modal-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 25px; }

/* Checkout */
.product-summary { display: flex; align-items: center; gap: 15px; background: #f1f5f9; padding: 15px; border-radius: 12px; margin-bottom: 25px; }
.icon-box { width: 50px; height: 50px; background: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; }
.price-highlight { color: var(--primary); font-size: 1.2rem; font-weight: 800; }

.pay-options { display: grid; gap: 10px; margin-top: 15px; }
.pay-card { border: 1px solid var(--border); padding: 15px; border-radius: 10px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.2s; }
.pay-card:hover { border-color: var(--primary); background: #eef2ff; }
.mp-color { color: #e60000; font-size: 1.5rem; }
.em-color { color: #f97316; font-size: 1.5rem; }
.pp-color { color: #003087; font-size: 1.5rem; }
.radio { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; margin-left: auto; }
.pay-card:hover .radio { border-color: var(--primary); border-width: 6px; }

/* Recibo */
.small-box { text-align: center; }
.receipt-header { padding: 30px 20px 10px; }
.icon-pulse { width: 60px; height: 60px; background: #e0e7ff; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 15px; }
.number-box { background: #fff1f2; border: 2px dashed #f43f5e; padding: 12px 20px; border-radius: 10px; color: #e11d48; font-weight: 800; font-size: 1.2rem; margin: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.btn-copy { background: white; width: 30px; height: 30px; border-radius: 6px; color: #e11d48; }
.btn-confirm { width: 100%; background: #22c55e; color: white; padding: 14px; border-radius: 10px; font-weight: 600; margin-top: 20px; }
.btn-cancel { background: none; margin-top: 15px; text-decoration: underline; color: var(--text-gray); }

/* TOAST */
.toast { position: fixed; bottom: 20px; right: 20px; background: #1e293b; color: white; padding: 15px 25px; border-radius: 10px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-lg); z-index: 3000; opacity: 0; transition: 0.3s; transform: translateY(20px); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon i { color: #22c55e; font-size: 1.5rem; }
.toast-content { display: flex; flex-direction: column; }
#toast-title { font-weight: 700; font-size: 0.9rem; }
#toast-msg { font-size: 0.8rem; color: #cbd5e1; }

/* =============================================
   10. MOBILE MEDIA QUERIES (A CORREÇÃO)
   ============================================= */
@media (max-width: 900px) {
    .nav-links, .search-bar-desktop, .desktop-only { display: none; }
    .mobile-trigger { display: block; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-img-box { display: none; } /* Esconde imagem grande no mobile para limpar */
    
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; } /* 2 colunas */
    .card-thumb { height: 160px; }
    .card-body { padding: 12px; }
    .card-details h3 { font-size: 0.95rem; }
    .new-price { font-size: 1.1rem; }
    .btn-buy { font-size: 0.85rem; padding: 8px; }
    
    .footer-layout { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .socials, .footer-payments { justify-content: center; }
    .footer-col ul li { justify-content: center; }
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }