@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ===== PALET WARNA BARU: Emas, Telor Asin, Hitam ===== */
:root {
    /* Emas / Kuningan sebagai warna utama yang mencolok */
    --primary-color: #D4AF37; 
    
    /* Telor Asin sebagai warna sekunder / aksen */
    --secondary-color: #76B5A0;

    /* Hitam pekat sebagai latar belakang utama untuk kesan mewah */
    --background-color: #121212;

    /* Abu-abu gelap untuk latar belakang kartu/konten */
    --card-bg-color: #1E1E1E;

    /* Putih pudar untuk teks agar tidak terlalu menyilaukan */
    --text-color: #E0E0E0;

    /* Putih cerah untuk judul agar menonjol */
    --heading-color: #FFFFFF;

    /* Abu-abu terang untuk teks sekunder/deskripsi */
    --light-text-color: #A0A0A0;
    
    /* Warna teks untuk tombol dengan background emas (agar kontras) */
    --button-text-color: #1E1E1E;

    /* Bayangan yang lebih halus untuk dark mode */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

    /* Gradient baru dari Emas ke Telor Asin */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* ===== LOADING SCREEN ===== */
#loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--background-color); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 10000;
    transition: opacity 0.5s ease;
}
.loader {
    border: 8px solid var(--secondary-color); border-top: 8px solid var(--primary-color);
    border-radius: 50%; width: 60px; height: 60px;
    animation: spin 1.5s linear infinite; margin-bottom: 20px;
}
#loading-overlay p { color: var(--primary-color); font-weight: 600; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===== HEADER ===== */
header {
    background: var(--card-bg-color); /* Latar belakang header diubah */
    box-shadow: var(--shadow);
    padding: 1rem 0; position: sticky; top: 0; z-index: 1000; width: 100%;
    border-bottom: 1px solid #333; /* Garis bawah halus */
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 1.8rem; font-weight: 700; background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.header-right { display: flex; align-items: center; gap: 2rem; }

/* NAVIGASI DESKTOP (DI ATAS) */
.desktop-nav ul { list-style: none; display: flex; gap: 2rem; }
.desktop-nav .nav-link {
    text-decoration: none; color: var(--text-color); font-weight: 600;
    position: relative; transition: color 0.3s ease; padding: 5px 0;
}
.desktop-nav .nav-link::after {
    content: ''; position: absolute; width: 0; height: 3px; display: block;
    margin-top: 5px; right: 0; background: var(--primary-color);
    transition: width 0.3s ease;
}
.desktop-nav .nav-link:hover::after, .desktop-nav .nav-link.active::after {
    width: 100%; left: 0;
}
.desktop-nav .nav-link:hover, .desktop-nav .nav-link.active { color: var(--primary-color); }

/* IKON KERANJANG */
.cart-icon-wrapper { position: relative; }
.cart-icon-wrapper .cart-link { color: var(--text-color); }
.cart-icon-wrapper .fa-shopping-cart { font-size: 1.5rem; }
#cart-count {
    position: absolute; top: -10px; right: -10px; background: var(--primary-color);
    color: var(--button-text-color); /* Teks diubah agar kontras */
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.8rem; font-weight: 700;
}

/* NAVIGASI MOBILE (DI BAWAH) - Disembunyikan di Desktop */
.mobile-nav { display: none; }


/* ===== HALAMAN & SECTION UMUM ===== */
.page { display: none; animation: fadeIn 0.5s ease-in-out; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-padding { padding: 60px 0; }
.section-title { text-align: center; font-size: 2.5rem; color: var(--heading-color); margin-bottom: 1rem; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--gradient); margin: 10px auto 0; border-radius: 2px; }
.section-subtitle { text-align: center; color: var(--light-text-color); max-width: 600px; margin: 0 auto 40px auto; }


/* ===== KONTEN HALAMAN ===== */
.hero { background: var(--gradient); color: var(--heading-color); padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.product-card { background: var(--card-bg-color); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; border: 1px solid #333; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); border-color: var(--primary-color); }
.product-image { width: 100%; height: 200px; object-fit: cover; }
.product-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.2rem; color: var(--heading-color); }
.product-info .price { font-size: 1.3rem; font-weight: 700; color: var(--primary-color); margin: 0.5rem 0; }
.product-info p { color: var(--light-text-color); font-size: 0.9rem; margin-bottom: 1rem; flex-grow: 1; }
.add-to-cart-btn { background: var(--primary-color); color: var(--button-text-color); border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; font-weight: 700; transition: background-color 0.3s ease; width: 100%; }
.add-to-cart-btn:hover { background-color: #B8860B; } /* Emas yang lebih gelap saat hover */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--card-bg-color); padding: 2rem; border-radius: 10px; box-shadow: var(--shadow); border-left: 5px solid var(--secondary-color); }
.testimonial-card p { font-style: italic; color: var(--light-text-color); margin-bottom: 1rem; }
.testimonial-card h4 { color: var(--primary-color); text-align: right; }
.social-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.social-btn { padding: 15px 30px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s ease; }
.social-btn:hover { transform: scale(1.05); }
.social-btn.whatsapp { background-color: #25D366; }
.social-btn.whatsapp-group { background-color: #128C7E; }
#cart-items-container { margin-bottom: 2rem; }
.cart-item { display: flex; align-items: center; background: var(--card-bg-color); padding: 1rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 1rem; gap: 1rem; border: 1px solid #333; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { color: var(--heading-color); }
.cart-item-info .price { color: var(--primary-color); font-weight: 600; }
.cart-item-quantity { display: flex; align-items: center; gap: 0.5rem; }
.quantity-btn { background: #333; color: var(--primary-color); border: none; width: 25px; height: 25px; border-radius: 50%; cursor: pointer; font-weight: bold; }
#cart-summary { text-align: right; margin-top: 2rem; }
#cart-summary h3 { font-size: 1.8rem; color: var(--heading-color); margin-bottom: 1rem; }
#cart-summary h3 span { color: var(--primary-color); }
#order-buttons { margin-top: 1rem; }
#order-buttons h4 { margin-bottom: 0.5rem; color: var(--light-text-color); }
.order-btn { padding: 12px 25px; border: none; border-radius: 8px; color: #FFF; font-size: 1rem; font-weight: 600; cursor: pointer; margin-left: 10px; transition: opacity 0.3s ease; }
.order-btn:hover { opacity: 0.9; }
.order-btn.whatsapp { background: #25D366; }
.order-btn.telegram { background: #0088cc; }
#cart-empty-msg.visible, #order-buttons.visible { display: block; }
.payment-methods, .contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.payment-card, .contact-card { background: var(--card-bg-color); padding: 2rem; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid #333; }
.payment-card h3, .contact-card h3 { color: var(--primary-color); margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.payment-card p, .contact-card p { margin-bottom: 0.5rem; }
.qris-image { max-width: 250px; margin-top: 1rem; display: block; border-radius: 8px; }
.payment-confirmation { margin-top: 3rem; padding: 2rem; background: rgba(212, 175, 55, 0.1); border-left: 5px solid var(--primary-color); border-radius: 8px; color: var(--text-color); }
.payment-confirmation h3 { color: var(--primary-color); margin-bottom: 0.5rem; }

/* ===== FOOTER ===== */
footer { background: var(--card-bg-color); color: var(--light-text-color); text-align: center; padding: 2rem 0; margin-top: 40px; border-top: 1px solid #333; }

/* ===== RESPONSIVE DESIGN (BREAKPOINT 768px) ===== */
@media (max-width: 768px) {
    body { padding-bottom: 80px; }
    .desktop-nav { display: none; }
    .mobile-nav {
        display: flex; justify-content: space-around; align-items: center;
        position: fixed; bottom: 0; left: 0; right: 0; height: 65px;
        background-color: var(--card-bg-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        z-index: 1001; border-top: 1px solid #333;
    }
    .mobile-nav .nav-link {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; color: var(--light-text-color);
        font-size: 0.75rem; flex-grow: 1; padding: 8px 0; transition: color 0.3s ease;
    }
    .mobile-nav .nav-link i { font-size: 1.4rem; margin-bottom: 4px; }
    .mobile-nav .nav-link.active { color: var(--primary-color); }
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .cart-item { flex-direction: column; align-items: flex-start; }
    #cart-summary { text-align: center; }
    #order-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    .order-btn { width: 90%; margin: 0; }
    footer { margin-bottom: 65px; }
}