/* RESET & VARIABEL GLOBAL */
:root {
    --color-caramel: #D98324;
    --color-caramel-hover: #B86B1A;
    --color-soft-green: #E8F0E5;
    --color-dark-green: #4A5D4E;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-bg: #FDFBF7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Mengaktifkan efek scroll mulus saat menu produk diklik */
html {
    scroll-behavior: smooth;
}

}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* =========================================
   1. NAVBAR & DROPDOWN MENU UTAMA
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ditinggikan agar dropdown tidak tertutup elemen lain */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Kerapian barisan menu Desktop */
.nav-links.desktop-only {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Tombol Menu Utama */
.nav-item, .dropbtn {
    background-color: transparent;
    color: var(--color-dark-green);
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    font-family: inherit;
}

.nav-item:hover, .dropbtn:hover {
    color: var(--color-caramel);
}

/* Area Induk Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Kotak Hitam Dropdown (Disembunyikan secara default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2000;
    border-radius: 6px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

/* Desain Link di dalam Dropdown */
.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #34495e;
    color: var(--color-caramel);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Memicu kotak turun saat di-hover */
.dropdown:hover .dropdown-content {
    display: block;
}


/* =========================================
   2. KOMPONEN UMUM (TOMBOL, HERO, PRODUK)
========================================= */
.btn-primary {
    background-color: var(--color-caramel);
    color: var(--color-white);
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-caramel-hover);
}

.btn-secondary {
    background-color: var(--color-soft-green);
    color: var(--color-dark-green);
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline {
    border: 2px solid var(--color-caramel);
    color: var(--color-caramel);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.hero-section {
    background: linear-gradient(rgba(232, 240, 229, 0.85), rgba(253, 251, 247, 0.95)), url('../assets/img/banner-hero.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--color-soft-green);
    padding: 80px 5%;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--color-dark-green);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.section-center {
    text-align: center;
    padding: 60px 5%;
}

.product-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 5%;
    flex-wrap: wrap;
}

.product-card {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-caramel);
    margin: 10px 0 20px 0;
}

/* =========================================
   3. KOMPONEN EKSTRA & FOOTER
========================================= */
#floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-dark-green);
    color: var(--color-white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 3000; /* Paling depan */
    font-weight: bold;
    transition: 0.3s;
}

#floating-cart.hidden {
    display: none;
}

footer {
    background-color: var(--color-dark-green);
    color: var(--color-soft-green);
    padding: 50px 5% 20px 5%;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-link {
    display: block;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 10px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--color-caramel);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* =========================================
   4. RESPONSIVE & SIDEBAR MOBILE
   (Wajib diletakkan di paling bawah)
========================================= */
.mobile-only { display: none; }

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    z-index: 4000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.close-sidebar {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.sidebar-content button, .sidebar-content a {
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    color: var(--color-dark-green);
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.social-icons a {
    text-decoration: none;
    font-size: 1.1rem;
    background: var(--color-soft-green);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--color-dark-green);
    font-weight: bold;
}

/* =========================================
   1. MARQUEE (RUNNING TEXT)
========================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--color-dark-green); /* Warna gelap memberi kesan eksklusif */
    color: var(--color-white);
    padding: 18px 0;
    display: flex;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite; /* Kecepatan jalan teks */
}

.marquee-content span {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 40px;
    letter-spacing: 3px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   2. PREMIUM SPOTLIGHT (ASYMMETRIC LAYOUT)
========================================= */
.premium-spotlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Akan turun ke bawah otomatis jika dibuka di HP */
}

.spotlight-text {
    flex: 1;
    min-width: 320px;
    text-align: left;
}

.spotlight-text h2 {
    font-size: 2.8rem;
    color: var(--color-dark-green);
    margin-bottom: 20px;
    line-height: 1.2;
}

.spotlight-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.8;
}

.spotlight-image {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.spotlight-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    /* Efek Solid Offset Shadow yang sangat kekinian */
    box-shadow: -20px 20px 0px var(--color-soft-green); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.spotlight-image img:hover {
    transform: translate(10px, -10px);
    box-shadow: -30px 30px 0px var(--color-caramel);
}

@media (max-width: 768px) {
    /* Menampilkan tombol hamburger di HP */
    .mobile-only {
        display: block !important;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--color-dark-green);
        cursor: pointer;
        padding: 5px 10px;
    }
    
    /* Memaksa menu desktop bersembunyi di HP */
    .nav-links.desktop-only { 
        display: none !important; 
    }
    
    .hero-content h1 { font-size: 2rem; }
    
    .product-section { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .product-card { 
        width: 100%; 
        max-width: 350px; 
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-link {
        text-align: center;
    }
}