:root {
    --primary-green: #2E7D32; /* Hijau Utama a*/
    --light-green: #E8F5E9; /* Hijau Muda untuk background section */
    --primary-yellow: #FFCA28; /* Kuning Cerah untuk aksen */
    --dark-yellow: #FFB300;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --dark-bg: #1B5E20; /* Hijau Gelap untuk Navbar/Footer */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--light-green);
    color: var(--text-dark);
    overflow-x: hidden;
}

.handwritten-title {
    font-family: 'Permanent Marker', cursive;
    color: var(--primary-yellow);
    letter-spacing: 2px;
}

.text-center { text-align: center; margin-bottom: 40px; font-size: 3rem; }

/* --- Navbar --- */
/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--dark-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* PERBAIKAN LOGO CONTAINER & PLACEHOLDER DI NAV */
.logo-placeholder {
    width: 45px; /* Sedikit diperbesar dari 40px */
    height: 45px; 
    background-color: var(--primary-yellow); 
    color: var(--dark-bg);
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 1.5rem; /* Ukuran ikon disesuaikan */
    overflow: hidden; /* Penting! Mencegah gambar tumpah dari lingkaran */
}

/* Jika kamu menggunakan tag <img> di dalam logo-placeholder */
.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Menyesuaikan gambar agar pas dan bulat */
}

.nav-title { font-weight: 700; color: var(--text-light); letter-spacing: 1px; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-yellow); }

.cart-link { position: relative; }
.badge {
    background: red; color: white; border-radius: 50%;
    padding: 2px 6px; font-size: 0.7rem; position: absolute; top: -10px; right: -15px;
}

.admin-login-btn {
    background: var(--primary-yellow); border: none; color: var(--dark-bg);
    padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: bold;
    display: flex; align-items: center; gap: 5px; transition: 0.3s;
}
.admin-login-btn:hover { background: var(--dark-yellow); }

/* --- Hero Section (DIKEMBALIKAN KE VERSI SEBELUMNYA) --- */
.hero {
    margin-top: 70px; min-height: 90vh;
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.9)), url('https://images.unsplash.com/photo-1550684376-efcbd6e3f031?q=80&w=1920') center/cover;
    display: flex; align-items: center; position: relative;
    padding: 0 5%; overflow: hidden; color: var(--text-light);
}

.hero-image-left { flex: 1; display: flex; align-items: center; }
.hero-image-left img {
    width: 100%; max-width: 500px; border-radius: 50%;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.5); border: 5px solid var(--primary-yellow);
}

.hero-content { flex: 1; padding-left: 30px; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-content h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-light); }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; }

.price-circle-container { margin-bottom: 30px; }
.price-circle {
    border: 3px solid var(--primary-yellow); border-radius: 50%; display: inline-flex;
    flex-direction: column; justify-content: center; align-items: center;
    width: 140px; height: 140px; text-align: center; transform: rotate(-10deg);
    background: rgba(255, 202, 40, 0.1);
}
.price-circle h3 { color: var(--primary-yellow); font-size: 1.8rem; margin: 5px 0; }
.price-circle span { font-size: 0.7rem; font-weight: bold; }

.hero-action { display: flex; align-items: center; gap: 30px; }
.social-icons i { font-size: 1.5rem; margin-right: 15px; cursor: pointer; transition: 0.3s; }
.social-icons i:hover { color: var(--primary-yellow); transform: scale(1.2); }

.btn-buy-now {
    background-color: var(--primary-yellow); color: var(--dark-bg);
    padding: 12px 30px; text-decoration: none; font-weight: 700; border-radius: 30px;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.4);
}
.btn-buy-now:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 202, 40, 0.6); }

/* --- Responsif (Pastikan ini ada di paling bawah file CSS mu) --- */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; padding-bottom: 50px;}
    .hero-image-left { margin-bottom: 30px; }
    .hero-action { justify-content: center; flex-direction: column; }
    .nav-links { display: none; }
}

/* Bagian Harga (Lingkaran) */
.price-circle-container { margin-bottom: 30px; }
.price-circle {
    border: 3px solid var(--primary-yellow); 
    border-radius: 50%; 
    display: inline-flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    width: 130px; 
    height: 130px; 
    text-align: center; 
    transform: rotate(-10deg);
    background: rgba(255, 202, 40, 0.1);
}
.price-circle h3 { color: var(--primary-yellow); font-size: 1.6rem; margin: 5px 0; }
.price-circle span { font-size: 0.7rem; font-weight: bold; color: var(--text-light); }

.hero-action { display: flex; align-items: center; gap: 30px; }
.social-icons i { font-size: 1.5rem; margin-right: 15px; cursor: pointer; transition: 0.3s; color: var(--text-light); }
.social-icons i:hover { color: var(--primary-yellow); transform: scale(1.2); }

.btn-buy-now {
    background-color: var(--primary-yellow); color: var(--dark-bg);
    padding: 12px 30px; text-decoration: none; font-weight: 700; border-radius: 30px;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.4);
}
.btn-buy-now:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 202, 40, 0.6); }

/* --- Responsif HP --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 50px;
        gap: 30px;
    }
    .hero-image-left { justify-content: center; }
    .hero-image-left img { max-width: 250px !important; }
    .hero-content { align-items: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-action { flex-direction: column; gap: 20px; }
}

/* --- Menu Section --- */
.menu-section {
    padding: 80px 5%; background: var(--light-green);
}
.menu-section h2 { color: var(--primary-green); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.menu-card {
    background: var(--text-light); border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s;
    display: flex; flex-direction: column; border: 2px solid transparent;
}
.menu-card:hover { transform: translateY(-10px); border-color: var(--primary-green); }

.menu-img { width: 100%; height: 220px; object-fit: cover; }
.menu-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.menu-title { font-size: 1.3rem; color: var(--primary-green); font-weight: bold; margin-bottom: 10px; }
.menu-desc { font-size: 0.9rem; color: #666; margin-bottom: 15px; flex-grow: 1; }
.menu-price { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; color: var(--dark-bg); }

.btn-add-cart {
    background: var(--primary-green); color: var(--text-light); border: none;
    padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; transition: 0.3s;
}
.btn-add-cart:hover { background: var(--dark-bg); }

/* --- Location Section --- */
.info-section { padding: 80px 5%; background: var(--dark-bg); color: var(--text-light); }
.info-container {
    display: flex; gap: 40px; flex-wrap: wrap; background: rgba(255,255,255,0.05);
    border-radius: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.info-details { flex: 1; padding: 40px; display: flex; flex-direction: column; gap: 30px; min-width: 300px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; }
.info-item i { color: var(--primary-yellow); font-size: 2rem; }
.info-item h3 { color: var(--primary-yellow); margin-bottom: 5px; }
.map-container { flex: 1; min-width: 300px; min-height: 350px; }

/* --- Cart & Modals --- */
/* Cart styling sama persis dengan kode sebelumnya, disesuaikan warnanya sedikit */
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 400px; max-width: 100%; height: 100vh;
    background: var(--text-light); color: var(--text-dark); z-index: 1000; transition: 0.4s;
    display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 999; display: none;
}
.cart-overlay.open { display: block; }
body.cart-open { overflow: hidden; }
.cart-header {
    padding: 20px; background: var(--primary-green); color: var(--text-light);
    display: flex; justify-content: space-between; align-items: center;
}
.close-cart { cursor: pointer; font-size: 1.5rem; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.cart-item-info { min-width: 0; }
.cart-item-addons { display: block; color: #666; font-size: 0.8rem; overflow-wrap: anywhere; }
.cart-qty-controls button { background: var(--light-green); border: 1px solid var(--primary-green); width: 25px; height: 25px; cursor: pointer; border-radius: 4px; }
.cart-footer { padding: 20px; background: #fafafa; border-top: 1px solid #ddd;}
.cart-total { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; color: var(--primary-green);}
.btn-checkout { width: 100%; background: #25D366; color: white; border: none; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; cursor: pointer; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1100;
}

.modal.active {
    display: flex;
}
.modal-content { background: var(--text-light); color: var(--text-dark); padding: 30px; border-radius: 15px; width: 100%; max-width: 400px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
#addonModal .modal-content { max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px;}
.close-modal { cursor: pointer; font-size: 1.5rem; color: #999; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--primary-green);}
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; }
.addon-choice-group { margin-top: 15px; }
.form-group .addon-group-title { margin-bottom: 8px; }
.addon-radio-options { display: flex; gap: 12px; }
.form-group .addon-radio-options label {
    display: flex; flex: 1; align-items: center; gap: 8px;
    margin: 0; padding: 10px; border: 1px solid #ddd; border-radius: 8px;
    font-weight: 400; cursor: pointer;
}
.form-group .addon-radio-options input[type="radio"] {
    flex: 0 0 auto; width: auto; margin: 0; padding: 0; accent-color: var(--primary-green);
}
.addon-quantity { display: flex; justify-content: space-between; align-items: center; margin: 5px 0 15px; color: var(--primary-green); font-weight: 600; }
.addon-quantity-controls { display: flex; align-items: center; gap: 16px; }
.addon-quantity-controls button {
    width: 34px; height: 34px; border: 1px solid var(--primary-green); border-radius: 8px;
    background: var(--light-green); color: var(--primary-green); font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.addon-quantity-controls span { min-width: 20px; text-align: center; color: var(--text-dark); }
.btn-save { width: 100%; background: var(--primary-green); color: var(--text-light); padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 10px;}

/* Admin Controls on Menu Cards */
.admin-controls { display: none; margin-top: 15px; gap:10px; }
body.admin-mode .admin-controls { display: flex; }
body.admin-mode .btn-add-cart { display: none; } /* Sembunyikan tombol keranjang saat mode admin */
.btn-edit { background: var(--primary-yellow); color: var(--dark-bg); border: none; padding: 8px 10px; cursor: pointer; flex: 1; border-radius: 5px; font-weight: bold;}
.btn-delete { background: #F44336; color: white; border: none; padding: 8px 10px; cursor: pointer; flex: 1; border-radius: 5px; font-weight: bold;}

/* Admin Floating Add Button */
.admin-add-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--primary-green); color: var(--text-light);
    width: 60px; height: 60px; border-radius: 50%; z-index: 100;
    font-size: 1.5rem; border: none; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.mobile-cart-trigger { display: none; }

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; padding-bottom: 50px;}
    .hero-image-left { margin-bottom: 30px; }
    .hero-action { justify-content: center; flex-direction: column; }
    .nav-links { display: none; }
    .mobile-cart-trigger {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        min-height: 56px;
        padding: 12px 18px;
        border: 0;
        border-radius: 12px;
        background: var(--primary-green);
        color: var(--text-light);
        font: inherit;
        font-weight: 700;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        cursor: pointer;
    }
    .mobile-cart-trigger:active { background: var(--dark-bg); }
    body { padding-bottom: 80px; }
    .cart-sidebar {
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
    }
    .cart-sidebar.open { right: 0; }
    .cart-header { padding-top: max(20px, env(safe-area-inset-top)); }
    .cart-footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .admin-add-btn { bottom: 84px; }
    #addonModal { align-items: center; }
    #addonModal .modal-content {
        width: min(100%, 440px);
        padding: 22px 20px;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
    }
    #addonModal .addon-radio-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #addonModal .addon-radio-options label { min-width: 0; }
}