:root {
    --gold: #ffc107;
    --space-black: #0a0503;
    --card-bg: #140f0d;
    --text-gray: #cccccc;
    --accent-orange: #ff6f00;
    --success: #25d366;
    --danger: #ff3b30;
}

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

body { 
    background-color: var(--space-black); 
    color: #fff; 
    font-family: 'Rajdhani', sans-serif; 
    line-height: 1.6; 
    overflow-x: hidden; 
    padding-top: 60px; 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; text-transform: uppercase; }
p { font-size: 1.1rem; color: var(--text-gray); }

/* --- NAV --- */
nav { 
    position: fixed; top: 0; left: 0; width: 100%; 
    padding: 10px 5%; 
    display: flex; justify-content: space-between; align-items: center; 
    background: rgba(10, 5, 3, 0.95); border-bottom: 1px solid #333; 
    z-index: 5000; backdrop-filter: blur(10px); 
    flex-wrap: wrap; 
}
.nav-logo { font-family: 'Orbitron'; font-weight: 900; color: var(--gold); text-decoration: none; font-size: 1.4rem; cursor: pointer; white-space: nowrap; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: bold; font-size: 1rem; transition: 0.3s; white-space: nowrap; }
.nav-links a.active, .nav-links a:hover { color: var(--gold); }

/* --- HERO --- */
.hero { 
    min-height: 100vh; 
    width: 100%; position: relative; display: flex; align-items: center; justify-content: center; 
    text-align: center; overflow: hidden; margin-top: -60px; 
    padding: 20px;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; object-fit: cover; animation: zoomFloat 20s infinite alternate; }
@keyframes zoomFloat { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(10, 5, 3, 0.95) 100%); z-index: 0; }

.hero-content { 
    position: relative; z-index: 2; 
    padding: 30px; 
    border: 1px solid var(--gold); 
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); 
    max-width: 90%; width: 800px;
    box-shadow: 0 0 50px rgba(255, 193, 7, 0.15); 
}
.hero h1 { 
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    line-height: 1.1; margin-bottom: 15px; color: #fff; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.8); 
}
.tagline { font-size: clamp(0.9rem, 3vw, 1.4rem); color: var(--gold); letter-spacing: 3px; margin-bottom: 20px; display: block; }
.btn-main { display: inline-block; padding: 15px 30px; margin-top: 20px; background: var(--gold); color: #000; font-family: 'Orbitron'; font-weight: 900; text-decoration: none; font-size: 1.1rem; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); transition: 0.3s; }
.btn-main:hover { transform: scale(1.05); background: #fff; }

/* --- SECTIONS COMMON --- */
section { width: 100%; overflow: hidden; }
.section-header { text-align: center; margin-bottom: 40px; color: var(--gold); font-size: clamp(1.8rem, 5vw, 2.8rem); text-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }

/* --- STORY --- */
.story-section { padding: 60px 5%; background: #110b09; text-align: center; border-bottom: 1px solid #333; }
.story-box { max-width: 900px; margin: 0 auto; }
.highlight { color: var(--gold); font-weight: bold; }
.story-box h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 20px; color: var(--gold); }

/* --- PROCESS --- */
.process-section { padding: 60px 5%; background: #0a0503; border-bottom: 1px solid #333; }
.process-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 20px; justify-content: center; margin-top: 40px; 
    max-width: 1400px; margin-left: auto; margin-right: auto;
}
.process-card { background: #1a1210; padding: 25px; border: 1px solid #333; border-radius: 10px; text-align: center; transition: 0.3s; cursor: pointer; height: 100%; }
.process-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.p-icon { font-size: 3rem; display: block; margin-bottom: 15px; }
.p-title { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.p-desc { font-size: 0.9rem; color: #aaa; }

/* --- BENEFITS --- */
.benefits-section { padding: 60px 5%; background: #140f0d; border-bottom: 1px solid #333; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; max-width: 1200px; margin: 0 auto; }
.b-card { background: #0a0503; padding: 25px; border-left: 3px solid var(--gold); cursor: pointer; }
.b-card:hover { background: #1a1210; }
.b-head { font-size: 1.3rem; color: #fff; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.b-icon { color: var(--gold); font-size: 1.6rem; }
.b-list li { margin-bottom: 10px; list-style: none; display: flex; gap: 10px; color: #bbb; }
.b-list li::before { content: "✓"; color: var(--success); font-weight: bold; }

.cacao-info { 
    display: flex; flex-direction: column; 
    gap: 30px; margin-top: 40px; align-items: center; justify-content: center; 
    background: #1e1614; padding: 30px; border-radius: 20px; border: 1px solid #333; 
}
@media (min-width: 768px) {
    .cacao-info { flex-direction: row; text-align: left; }
}
.info-text { flex: 1; min-width: 250px;}
.info-stat { width: 100%; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-box { background: #000; padding: 15px; text-align: center; border: 1px solid var(--gold); }
.stat-val { font-size: 1.8rem; font-weight: 900; color: var(--gold); display: block; }
.stat-lbl { font-size: 0.8rem; color: #aaa; text-transform: uppercase; }

/* --- SHOP (HOME PAGE) --- */
.products { padding: 60px 5%; background: #0a0503; }
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; max-width: 1300px; margin: 0 auto; 
}
.card { background: #1e1614; border: 1px solid #3e2723; border-radius: 12px; overflow: hidden; transition: 0.3s; position: relative; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.card.out-of-stock { opacity: 0.6; pointer-events: none; border-color: #333; }
.card.out-of-stock .product-img { filter: grayscale(100%); }
.img-box { width: 100%; aspect-ratio: 1 / 1; background: #000; overflow: hidden; border-bottom: 2px solid var(--gold); cursor: pointer; position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .product-img { transform: scale(1.1); }
.sold-out-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--danger); color: #fff; padding: 10px 20px; font-size: 1.2rem; font-weight: 900; border: 2px solid #fff; z-index: 10; display: none; }
.card.out-of-stock .sold-out-badge { display: block; }
.card-info { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;}
.origin-badge { font-size: 0.8rem; color: var(--accent-orange); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.price { font-size: 1.4rem; color: var(--gold); font-weight: bold; margin-bottom: 10px; display: block; }
.qty-controls { display: flex; justify-content: center; gap: 10px; align-items: center; margin-top: 10px; }
.q-btn { width: 40px; height: 40px; background: #333; color: #fff; border: none; cursor: pointer; font-weight: bold; border-radius: 5px; font-size: 1.2rem; }
.q-btn:hover { background: var(--gold); color: #000; }
.q-btn:disabled { background: #222; color: #555; cursor: not-allowed; }
.q-display { width: 40px; text-align: center; font-weight: bold; }

/* --- CONTACT --- */
.contact-section { padding: 60px 5%; background: #140f0d; border-top: 1px solid #333; }
.contact-container { display: flex; flex-direction: column; gap: 40px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) {
    .contact-container { flex-direction: row; }
}
.contact-info, .contact-form { flex: 1; }
.contact-form { background: #0a0503; padding: 25px; border: 1px solid #333; }
.c-item { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.c-icon { font-size: 1.5rem; color: var(--gold); }
.c-input { width: 100%; padding: 12px; margin-bottom: 15px; background: #000; border: 1px solid #333; color: #fff; font-family: 'Rajdhani'; font-size: 1rem; }
.c-btn { width: 100%; padding: 12px; background: #333; color: #fff; border: 1px solid #555; cursor: pointer; font-weight: bold; transition: 0.3s; }
.c-btn:hover { background: var(--gold); color: #000; }

/* --- UI ELEMENTS --- */
.cart-bar { 
    position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 200%); 
    background: rgba(255, 255, 255, 0.95); color: #000; 
    padding: 15px 25px; border-radius: 50px; 
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8); border: 2px solid var(--gold); 
    transition: 0.4s; z-index: 999; cursor: pointer; 
    width: 90%; max-width: 500px;
}
.cart-bar.active { transform: translate(-50%, 0); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.modal-box { 
    background: #140f0d; width: 100%; max-width: 650px; 
    border: 1px solid var(--gold); padding: 25px; position: relative; 
    box-shadow: 0 0 50px rgba(255, 193, 7, 0.2); 
    max-height: 90vh; overflow-y: auto; 
    border-radius: 8px;
}
.close-btn { position: absolute; top: 10px; right: 15px; color: #fff; font-size: 2rem; cursor: pointer; z-index: 100; }

.checkout-input { width: 100%; padding: 15px; margin-bottom: 15px; background: #000; border: 1px solid #333; color: #fff; font-family: 'Rajdhani'; font-size: 1rem; }
.pay-btn { width: 100%; padding: 18px; background: var(--gold); color: #000; font-weight: 900; font-size: 1.2rem; cursor: pointer; font-family: 'Orbitron'; border: none; margin-bottom: 10px;}
.coupon-box { display: flex; gap: 10px; margin-bottom: 20px; border-top: 1px solid #333; padding-top: 20px; }
.coupon-input { flex: 1; background: #000; border: 1px solid #333; color: #fff; padding: 10px; font-family: 'Rajdhani'; text-transform: uppercase; min-width: 0; }
.coupon-btn { background: #333; color: #fff; border: 1px solid #555; padding: 0 20px; cursor: pointer; font-weight: bold; }
.coupon-btn:hover { background: var(--gold); color: #000; }

.slider-container { position: relative; width: 100%; height: 0; padding-bottom: 75%; /* 4:3 Aspect Ratio */ background: #000; margin-bottom: 20px; border: 1px solid #333; overflow: hidden; }
.slider-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: var(--gold); border: none; font-size: 1.5rem; padding: 10px; cursor: pointer; z-index: 10; }
.slider-nav:hover { background: var(--gold); color: #000; }
.prev-btn { left: 0; } .next-btn { right: 0; }
.slide-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.8); color: #fff; text-align: center; padding: 10px; font-family: 'Orbitron'; font-size: 0.9rem; letter-spacing: 2px; }
.modal-desc { text-align: center; color: var(--accent-orange); font-size: 1.1rem; margin-bottom: 15px; font-style: italic; }

.invoice-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.invoice-table th { text-align: left; border-bottom: 1px solid #555; padding: 5px; }
.invoice-table td { border-bottom: 1px solid #222; padding: 5px; }
.invoice-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

footer { padding: 40px 5%; background: #000; text-align: center; border-top: 1px solid #222; }
.trust-badges { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; color: #666; font-size: 0.9rem; }

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 90px; right: 20px;
    background-color: #25d366; color: #FFF;
    border-radius: 50px; text-align: center; font-size: 30px;
    box-shadow: 2px 2px 3px #999; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: 0.3s;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { background-color: #128C7E; transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MOBILE SPECIFIC TWEAKS --- */
@media (max-width: 600px) {
    nav { padding: 10px 20px; flex-direction: column; gap: 10px; }
    .nav-links { gap: 20px; width: 100%; justify-content: center; padding-top: 5px; border-top: 1px solid #333; margin-top: 5px;}
    .nav-links a { font-size: 0.9rem; }
    .hero-content { padding: 20px; margin-top: 0; }
    .section-header { margin-bottom: 30px; }
    .grid, .process-grid, .b-grid { gap: 20px; }
    .modal-box { padding: 15px; }
    .cart-bar { flex-direction: column; gap: 5px; text-align: center; padding: 10px 20px; border-radius: 15px; bottom: 10px;}
    .invoice-actions { flex-direction: column; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 25px; bottom: 100px; right: 15px; }
}

/* --- NEW SEPARATE PAGE STYLES (Products & About) --- */
/* Products Page Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    max-width: 1300px;
    margin: 0 auto;
}
.product-card {
    background: #1e1614; /* Uses dark theme background */
    border: 1px solid #3e2723;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.product-card h2 { color: var(--gold); margin-bottom: 10px; }
.product-card p { color: var(--text-gray); margin-bottom: 10px;}
.tag {
    background: var(--accent-orange);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
    align-self: center;
}
.products-header {
    text-align: center;
    padding: 100px 20px 40px; /* Top padding clears the fixed nav */
    background: linear-gradient(to bottom, #0a0503, #140f0d);
}
.products-header h1 { color: var(--gold); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }

/* About Page USP Grid */
.about-section { 
    padding: 100px 5% 60px; /* Top padding clears fixed nav */
    text-align: center; 
    max-width: 1000px; 
    margin: 0 auto; 
}
.about-section h1 { color: var(--gold); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px;}
.usp-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.usp-box {
    flex: 1 1 280px;
    background: #140f0d;
    padding: 25px;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
}
.usp-box h3 { color: var(--gold); margin-bottom: 10px; font-family: 'Orbitron'; }
