/* =========================================================
   1. BASE & RESET (PONDASI UTAMA)
========================================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Poppins', sans-serif; 
}

html { 
    scroll-behavior: smooth; 
    background-color: #1e110e !important; 
    overscroll-behavior-y: none;
}

body { 
    background-color: #f8f9fa; 
    color: #333; 
    line-height: 1.6; 
    width: 100%; 
    max-width: 100vw; 
    overflow-x: clip; 
    min-height: 100vh;
    overscroll-behavior-y: none;
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* =========================================================
   2. NAVBAR (MENU ATAS)
========================================================= */
.navbar { 
    background-color: #0d0807; 
    position: -webkit-sticky; 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    transform: translate3d(0, 0, 0); 
    will-change: position, transform;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    padding: 15px 20px; /* Jarak normal untuk versi Laptop/PC */
}

.logo-img { 
    height: 55px; 
    width: auto; 
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { font-size: 1.6rem; font-weight: 700; color: #3e2723; text-decoration: none; }
.logo span { color: #8d6e63; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 25px; }
.nav-links a { color: #faf6f6; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: #8d6e63; }

.btn-nav-checkout { background: #3e2723; color: #fff !important; padding: 10px 24px; border-radius: 30px; font-weight: 600; }

/* Hamburger Menu (Sembunyi di Laptop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.4s ease;
}

/* =========================================================
   3. TOAST NOTIFICATIONS (NOTIFIKASI MENGAMBANG)
========================================================= */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #3e2723; color: white; padding: 14px 20px; border-radius: 8px; font-size: 0.9rem; animation: slideIn 0.3s ease forwards; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-left: 5px solid #8d6e63;}
.toast.success { background: #27ae60; border-left-color: #1e8449; }
.toast.error { background: #e74c3c; border-left-color: #c0392b; }
@keyframes slideIn { from{transform: translateX(100%); opacity:0;} to{transform: translateX(0); opacity:1;} }

/* =========================================================
   4. HERO SLIDER (BANNER UTAMA)
========================================================= */
.hero-slider { position: relative; width: 100%; height: 550px; overflow: hidden; background-color: #281815; }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out; }
.slide.active { opacity: 1; visibility: visible; }
.slide-content { max-width: 800px; margin: 0 auto; animation: fadeInUp 0.8s ease forwards; width: 100%; }
@keyframes fadeInUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.badge-hero { background: rgba(255, 255, 255, 0.2); padding: 6px 15px; border-radius: 20px; font-size: 0.85rem; display: inline-block; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.4); font-weight: 600; }
.slide h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.slide p { font-size: 1.1rem; color: #eee; margin-bottom: 30px; font-weight: 300; }

.btn-primary { background: #d35400; color: #fff; padding: 14px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; transition: 0.3s; }
.btn-primary:hover { background: #e67e22; transform: scale(1.05); }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.4); color: #fff; border: none; font-size: 1.5rem; padding: 15px 20px; cursor: pointer; border-radius: 50%; z-index: 10; transition: 0.3s; }
.slider-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots { position: absolute; bottom: 25px; width: 100%; text-align: center; z-index: 10; }
.dot { display: inline-block; width: 12px; height: 12px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; margin: 0 6px; cursor: pointer; transition: 0.3s; }
.dot.active, .dot:hover { background: #fff; transform: scale(1.3); }

/* =========================================================
   5. HALAMAN PRODUK & FORMULIR
========================================================= */
.landing-container { max-width: 1200px; margin: 60px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 0 20px; }

.product-visual { position: relative; }
.main-image { width: 100%; height: 750px; object-fit: cover; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.visual-text { position: absolute; bottom: 30px; left: 30px; right: 30px; background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: 12px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.rating { color: #f39c12; font-size: 1.1rem; margin-bottom: 5px; }
.rating span { color: #888; font-size: 0.85rem; }
.visual-text h2 { margin: 5px 0 10px; font-size: 1.5rem; color: #3e2723; }
.visual-text p { font-size: 0.95rem; color: #555; margin-bottom: 15px;}
.flavor-notes .tag { background: #efebe9; color: #4e342e; font-size: 0.8rem; padding: 5px 12px; border-radius: 20px; font-weight: 600; display: inline-block; margin-right: 5px; }

.product-details { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); border: 1px solid #f1f1f1; }
.detail-header h3 { font-size: 1.3rem; color: #3e2723; margin-bottom: 10px; font-weight:700; }
.price { font-size: 2.2rem; color: #2c3e50; font-weight: 700; }
.price span { font-size: 1rem; font-weight: 400; color: #888; }
.divider { border: 0; border-top: 1px dashed #ddd; margin: 25px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; width: 100%; }
.form-group { margin-bottom: 15px; width: 100%; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #4e342e; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; background: #fafafa; outline: none; transition: 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #8d6e63; background: #fff; box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1); }

.qty-box { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; height: 50px; width: 100%; }
.qty-box button { background: #eee; border: none; width: 45px; font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.qty-box button:hover { background: #ddd; }
.qty-box input { border: none !important; border-radius: 0 !important; text-align: center; font-weight: bold; background: #fff !important; font-size: 1.1rem; width: 100%; }

.promo-box { display: flex; gap: 10px; margin-bottom: 5px; margin-top: 20px; width: 100%; }
.promo-box input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; text-transform: uppercase; width: 100%; }
.promo-box button { background: #8d6e63; color: white; border: none; padding: 0 25px; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
#promoMessage { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }

.summary { background: #fdfcfb; padding: 20px; border-radius: 8px; margin-bottom: 25px; border: 1px solid #eee; width: 100%; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 1rem; color: #555; }
.sum-row.discount { color: #27ae60; }
.sum-row.total { border-top: 1px dashed #ccc; padding-top: 15px; margin-top: 5px; font-size: 1.3rem; color: #3e2723; }

.btn-submit { background: #27ae60; color: #fff; width: 100%; padding: 18px; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: #219150; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3); }

/* =========================================================
   6. ULASAN & LACAK PESANAN
========================================================= */
.reviews-section { padding: 60px 20px; margin-top: 40px; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { font-size: 2rem; color: #3e2723; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: #7f8c8d; font-size: 0.95rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; align-items: stretch; }
.review-card { background: #fff; padding: 25px; border-radius: 12px; border-left: 4px solid #8d6e63; box-shadow: 0 4px 15px rgba(0,0,0,0.02); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.review-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.review-stars { color: #f39c12; margin-bottom: 10px; font-size: 1.1rem; }
.review-text { font-style: italic; color: #555; margin-bottom: 15px; font-size: 0.95rem; flex-grow: 1; }
.review-author { margin-top: auto; } 
.review-author strong { display: block; color: #3e2723; }
.review-author small { color: #999; font-size: 0.8rem; }

.tracking-section { padding: 60px 20px; margin-bottom: 40px; }
.tracking-wrapper { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); border: 1px solid #f1f1f1; }
.tracking-form { display: flex; gap: 10px; max-width: 500px; margin: 30px auto; width: 100%; }
.tracking-form input { flex: 1; padding: 14px; border: 1px solid #ddd; border-radius: 8px; outline: none; font-size: 0.95rem; width: 100%; }
.tracking-form input:focus { border-color: #8d6e63; }
.btn-track { background: #3e2723; color: white; border: none; padding: 14px 25px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-track:hover { background: #281815; }

.tracking-result { background: #fdfcfb; padding: 30px; border-radius: 12px; border: 1px solid #eee; max-width: 600px; margin: 40px auto 0; }
.tracking-result h4 { color: #3e2723; font-size: 1.1rem; margin-bottom: 25px; text-align: center; border-bottom: 1px dashed #ddd; padding-bottom: 15px; }
.timeline { position: relative; padding-left: 35px; border-left: 3px solid #ddd; margin-left: 20px; }
.timeline-step { position: relative; margin-bottom: 30px; opacity: 0.4; transition: 0.3s; }
.timeline-step.active { opacity: 1; }
.timeline-icon { position: absolute; left: -50px; top: -2px; width: 28px; height: 25px; background: #fff; border-radius: 50%; text-align: center; line-height: 25px; border: 2px solid #ddd; font-size: 0.85rem; }
.timeline-step.active .timeline-icon { border-color: #27ae60; background: #e8f5e9; }
.timeline-content h5 { color: #333; font-size: 1rem; margin-bottom: 4px; font-weight: 600; }
.timeline-content small { color: #666; font-size: 0.85rem; display: block; }

/* =========================================================
   7. FOOTER & MODAL & WHATSAPP
========================================================= */
footer { background: #1e110e; color: #bcaaa4; padding: 50px 20px; text-align: center; font-size: 0.95rem; border-top: 5px solid #3e2723; margin-top: 80px; }
.footer-brand { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 15px; letter-spacing: 1px; }
.footer-brand span { color: #8d6e63; }
footer p { margin-bottom: 8px; color: #e7e1df; font-weight: 300; }
footer .copyright { font-size: 0.8rem; margin-top: 25px; color: #e2dedd; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.social-links { margin-top: 25px; display: flex; justify-content: center; gap: 15px; }
.social-circle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: #ffffff !important; color: #1e110e !important; border-radius: 50%; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.social-circle svg { width: 20px !important; height: 20px !important; }
.social-circle:hover { background-color: #8d6e63 !important; color: #ffffff !important; transform: translateY(-4px); box-shadow: 0 6px 15px rgba(141, 110, 99, 0.4); }

.float-wa { position: fixed; width: auto; padding: 12px 24px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF !important; border-radius: 50px; font-size: 0.95rem; font-weight: 600; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: all 0.3s ease; }
.float-wa:hover { background-color: #128c7e; transform: translateY(-4px); box-shadow: 0 6px 20px rgba(18, 140, 126, 0.6); }

.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.75); z-index:2000; overflow-y:auto; padding:20px; }
.modal-content { background:#fff; max-width:550px; margin:40px auto; padding:40px; border-radius:16px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.pay-details-box { background: #fafafa; border: 1px solid #eee; padding: 25px; border-radius: 12px; text-align: center; margin-bottom: 25px; }
.btn-verify { background: #2980b9; color: white; border: none; padding: 16px; border-radius: 8px; font-weight: 600; font-size: 1.05rem; width: 100%; cursor: pointer; }

/* =========================================================
   8. RESPONSIVE MOBILE & TABLET (FIX FINAL)
========================================================= */
@media(max-width: 850px) {
    /* Layout Utama Mobile */
    .landing-container { 
        display: flex; 
        flex-direction: column; 
        margin: 20px auto; 
        gap: 20px; 
        padding: 0 15px; 
        width: 100%; 
    }

    /* 🚀 FIX TERBARU: Navbar HP dipangkas ketebalannya, Logo & Menu dinaikkan agar rapi */
    .navbar {
        padding-top: 20px; /* Jarak atas pas, tidak nabrak jam, tidak terlalu turun */
        padding-bottom: 15px; /* Pangkas hitam bawah biar seimbang dengan atas */
    }

    /* Navbar Mobile */
    .nav-container { display: flex; justify-content: space-between; align-items: center; }
    .menu-toggle { display: flex; z-index: 1001; }
    
    .nav-links {
        position: absolute;
        /* 🚀 FIX TERBARU: Menu otomatis nempel persis di garis bawah navbar hitam */
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #0d0807;
        flex-direction: column; 
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: -1; 
    }

    .nav-links.active { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
    .nav-links a { font-size: 1.1rem; } 
    
    /* Area Gambar Produk */
    .product-visual { display: flex; flex-direction: column; width: 100%; }
    .main-image { 
        width: 100%;
        height: auto; 
        max-height: 450px; 
        object-fit: contain; 
        border-radius: 12px; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
        background-color: #1a100d; 
    }

    .visual-text { position: static; margin: 15px 0 0 0; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; background: #fff; border-radius: 12px; backdrop-filter: none; width: 100%; }
    .visual-text h2 { font-size: 1.4rem; }
    .flavor-notes { display: flex; flex-wrap: wrap; gap: 8px; }
    .flavor-notes .tag { margin-right: 0; }
    
    /* Area Form Produk */
    .product-details { padding: 25px 15px; width: 100%; border-radius: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    
    .promo-box { flex-direction: column; width: 100%; }
    .promo-box button { width: 100%; padding: 14px; }
    
    /* Hero Slider Mobile */
    .hero-slider { height: 530px; } 
    .slide h1 { font-size: 1.8rem; margin-bottom: 12px; line-height: 1.3; padding: 0 10px; }
    .slide p { font-size: 0.95rem; margin-bottom: 22px; padding: 0 15px; }
    .badge-hero { font-size: 0.75rem; padding: 5px 15px; margin-bottom: 12px; }
    .btn-primary { padding: 12px 22px; font-size: 0.95rem; }
    .slider-btn { display: none; }
    
    /* Ulasan Horizontal Ala Shopee */
    .reviews-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: 20px; gap: 15px; -webkit-overflow-scrolling: touch; width: 100%; }
    .review-card { flex: 0 0 85%; scroll-snap-align: center; margin-bottom: 5px; }
    .reviews-grid::-webkit-scrollbar { height: 6px; }
    .reviews-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
    .reviews-grid::-webkit-scrollbar-thumb { background: #8d6e63; border-radius: 10px; }

    /* Lacak Pesanan & Modal Mobile */
    .tracking-wrapper { padding: 25px 15px; width: 100%; }
    .tracking-result { padding: 20px 15px; width: 100%; }
    .tracking-form { flex-direction: column; width: 100%; }
    .btn-track { width: 100%; }
    .modal-content { width: 92%; padding: 25px 15px; margin: 20px auto; }
    .pay-details-box { padding: 15px; }
    
    /* TOMBOL WA MOBILE DIKEMBALIKAN KE KODE ASLI */
    .float-wa { bottom: 20px; right: 20px; padding: 10px 18px; font-size: 0.85rem; z-index: 9999; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4); }
}