/* =========================================================================
   CSS VARIABLES & RESET
   ========================================================================= */
:root {
    --primary: #3E2723;
    --primary-light: #5D4037;
    --accent: #D4AF37;
    --accent-hover: #B5952F;
    --secondary: #FF3366;
    --bg-light: #FAFAFA;
    --bg-off-white: #F9F5F0;
    --bg-white: #FFFFFF;
    --text-dark: #1F1F1F;
    --text-gray: #666666;
    --text-light: #F5F5F5;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(62, 39, 35, 0.08);
    --shadow-lg: 0 20px 40px rgba(62, 39, 35, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.section-header { text-align: center; margin-bottom: 60px; position: relative; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 15px; position: relative; display: inline-block; }
.section-header p { color: var(--text-gray); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 36px; border-radius: 50px; font-weight: 600; cursor: pointer;
    font-size: 1rem; transition: var(--transition); position: relative; overflow: hidden; z-index: 1;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(62, 39, 35, 0.2); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(62, 39, 35, 0.3); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-gold { background: linear-gradient(45deg, var(--accent), #F7EF8A); color: var(--primary); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); filter: brightness(1.1); }

/* =========================================================================
   PRELOADER
   ========================================================================= */
#preloader {
    position: fixed; top: 40px; left: 0; width: 100%; height: calc(100% - 40px);
    background: var(--bg-white); z-index: 99999;
    display: flex; justify-content: center; align-items: center; transition: opacity 0.6s ease;
}
.loader-wrapper { text-align: center; }
.choco-loader {
    width: 80px; height: 80px; background: #D2691E; border-radius: 12px; margin: 0 auto 20px;
    position: relative; overflow: hidden; box-shadow: 0 10px 20px rgba(210, 105, 30, 0.3);
}
.choco-loader::before { content: '🍫'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 40px; z-index: 2; }
.choco-liquid { position: absolute; bottom: 0; left: 0; width: 100%; height: 0%; background: #5D4037; animation: fillUp 2.5s infinite ease-in-out; }
@keyframes fillUp { 0% { height: 0%; } 50% { height: 100%; } 100% { height: 0%; opacity: 0; } }

/* =========================================================================
   MARQUEE
   ========================================================================= */
.marquee-strip {
    position: fixed; top: 0; left: 0; width: 100%; height: 40px; background: var(--primary);
    color: var(--accent); z-index: 1002; overflow: hidden; display: flex; align-items: center;
    white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.marquee-content {
    display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite;
    font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
}
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* =========================================================================
   HEADER
   ========================================================================= */
header {
    position: fixed; top: 40px; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding: 18px 0;
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--primary); display: flex; flex-direction: column; line-height: 1; }
.logo span { font-size: 0.75rem; color: var(--accent); font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: 2px; margin-top: 5px; text-transform: uppercase; }
.nav-menu { display: flex; gap: 40px; align-items: center; }
.nav-link { font-weight: 500; color: var(--text-dark); position: relative; font-size: 0.95rem; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--secondary); bottom: -4px; left: 0; transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-icons { display: flex; gap: 25px; align-items: center; }
.icon-btn { position: relative; font-size: 1.25rem; color: var(--primary); cursor: pointer; transition: var(--transition); }
.icon-btn:hover { color: var(--secondary); transform: scale(1.1); }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--secondary); color: white; font-size: 0.7rem; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 700; }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-top: 180px; padding-bottom: 100px; min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at top right, #FFF8E1 0%, #FDFBF7 50%, #ffffff 100%); }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: 0.6; }
.shape-1 { width: 400px; height: 400px; background: rgba(255, 51, 102, 0.08); top: 10%; right: -100px; }
.shape-2 { width: 500px; height: 500px; background: rgba(212, 175, 55, 0.08); bottom: 10%; left: -150px; }
.hero-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: 3.8rem; margin-bottom: 25px; letter-spacing: -1px; }
.hero-text .highlight { color: var(--secondary); font-style: italic; font-family: 'Playfair Display', serif; }
.hero-text p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 40px; max-width: 550px; }
.hero-features { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.feature-tag { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--primary); background: white; padding: 10px 20px; border-radius: 30px; box-shadow: var(--shadow-sm); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card { width: 400px; height: 500px; background: linear-gradient(135deg, var(--primary), #281815); border-radius: 40px 10px 40px 10px; position: relative; transform: rotate(-6deg); box-shadow: 25px 25px 80px rgba(62, 39, 35, 0.25); display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; transition: var(--transition); overflow: hidden; }
.hero-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); animation: rotateBg 10s linear infinite; }
@keyframes rotateBg { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.hero-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-icon { font-size: 7rem; margin-bottom: 30px; color: var(--accent); z-index: 1; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================================================
   SHOP
   ========================================================================= */
.shop-section { background: var(--bg-white); position: relative; z-index: 5; }
.tabs-wrapper { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; margin-top: -80px; position: relative; z-index: 10; border: 1px solid rgba(0,0,0,0.03); }
.category-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn { padding: 12px 30px; border: 1px solid #eee; border-radius: 50px; background: white; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 500; transition: var(--transition); color: var(--text-gray); display: flex; align-items: center; gap: 10px; }
.tab-btn:hover, .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(62, 39, 35, 0.2); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }

.product-card { background: white; border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); border: 1px solid #f0f0f0; position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-12px); border-color: transparent; }
.product-img-box { height: 260px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.product-bg-gradient { position: absolute; top: 0; left: 0; right: 0; bottom: 0; transition: transform 0.6s ease; }
.product-card:hover .product-bg-gradient { transform: scale(1.1); }
.product-icon { font-size: 5rem; color: rgba(255,255,255,0.9); z-index: 1; transition: var(--transition); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); }
.product-card:hover .product-icon { transform: scale(1.1) rotate(5deg); }
.badge { position: absolute; top: 20px; left: 20px; padding: 6px 14px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: white; z-index: 2; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.badge.bestseller { background: var(--primary); }
.badge.new { background: var(--secondary); }
.badge.trending { background: var(--accent); }
.product-info { padding: 25px; }
.product-title { font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }
.product-desc { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.rating-box { display: flex; gap: 5px; color: var(--accent); font-size: 0.85rem; margin-bottom: 20px; }
.price-box { display: flex; justify-content: space-between; align-items: center; }
.current-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.old-price { text-decoration: line-through; color: #bbb; font-size: 0.9rem; margin-left: 10px; }
.add-cart-btn { width: 45px; height: 45px; border-radius: 50%; background: var(--bg-light); color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); border: 1px solid #eee; }
.add-cart-btn:hover { background: var(--primary); color: white; transform: rotate(90deg); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-section { background: var(--bg-off-white); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.story-img { height: 550px; background: linear-gradient(135deg, #FFF0F3, #FFE4E1); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: var(--shadow-md); }
.story-content h3 { font-size: 2.5rem; margin-bottom: 25px; }
.story-content p { margin-bottom: 25px; color: var(--text-gray); font-size: 1.05rem; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-card { background: white; padding: 45px 35px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.03); transition: var(--transition); position: relative; overflow: hidden; height: 100%; }
.testimonial-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.testimonial-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.testimonial-card:hover::before { transform: scaleX(1); }
.testimonial-stars { margin-bottom: 20px; color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; position: relative; z-index: 2; }
.quote-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text-dark); font-style: italic; line-height: 1.7; margin-bottom: 35px; position: relative; z-index: 2; }
.bg-quote { position: absolute; top: 10px; right: 20px; font-size: 8rem; color: rgba(62, 39, 35, 0.04); font-family: serif; pointer-events: none; z-index: 1; transition: var(--transition); }
.testimonial-card:hover .bg-quote { transform: rotate(10deg) scale(1.1); color: rgba(212, 175, 55, 0.1); }
.client-info { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; padding-top: 25px; border-top: 1px solid #f5f5f5; }
.client-avatar { width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent), #F7EF8A); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.25); flex-shrink: 0; }
.client-details h5 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--primary); font-family: 'Poppins', sans-serif; }
.client-details span { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-section { background: var(--primary); color: white; padding: 100px 0; position: relative; overflow: hidden; }
.contact-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; position: relative; z-index: 2; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 16px 20px; margin-bottom: 20px; border: none; border-radius: 8px; font-family: 'Poppins', sans-serif; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.contact-form input::placeholder { color: rgba(255,255,255,0.6); }
.contact-form input:focus, .contact-form textarea:focus { background: rgba(255,255,255,0.15); border-color: var(--accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { background: #281815; color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--accent); padding-left: 8px; }

/* =========================================================================
   CART SIDEBAR
   ========================================================================= */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-sidebar { position: fixed; top: 0; right: 0; width: 420px; max-width: 90%; height: 100%; background: white; z-index: 2001; transform: translateX(100%); transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar.active { transform: translateX(0); }
.cart-header { padding: 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); }
.cart-body { flex: 1; overflow-y: auto; padding: 25px; }
.cart-item { display: flex; gap: 20px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #f5f5f5; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
.cart-footer { padding: 25px; border-top: 1px solid #eee; background: #FAFAFA; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); }

/* =========================================================================
   TOAST
   ========================================================================= */
#toast-container { position: fixed; top: 60px; right: 20px; z-index: 10000; }
.toast { background: white; color: var(--text-dark); padding: 18px 28px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 15px; display: flex; align-items: center; gap: 15px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-left: 5px solid var(--primary); }
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #4CAF50; }
.toast i { font-size: 1.2rem; }
.toast.success i { color: #4CAF50; }

/* =========================================================================
   WHATSAPP
   ========================================================================= */
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; width: 65px; height: 65px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4); z-index: 900; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-features { justify-content: center; }
    .hero-text p { margin: 0 auto 40px; }
    .hero-visual { margin-top: 50px; }
    .hero-card { margin: 0 auto; }
    .story-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 0; right: 0; width: 85%; height: 100vh; background: white; flex-direction: column; justify-content: center; transform: translateX(100%); transition: var(--transition); box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1000; }
    .nav-menu.active { transform: translateX(0); }
    .mobile-menu-btn { display: block; z-index: 1001; }
    .section-header h2 { font-size: 2.2rem; }
    .hero-text h1 { font-size: 2.8rem; }
    .tabs-wrapper { margin-top: 0; border-radius: 0; box-shadow: none; border: none; padding: 20px 0; }
    .hero-card { width: 100%; height: 400px; }
}