/* CSS Variables - AUREL SIGNATURE THEME */
/* CSS Variables - AUREL SIGNATURE THEME */
:root {
    --primary:     #C62828;           /* Warna utama — diubah dinamis lewat admin */
    --primary-rgb: 198, 40, 40;       /* Komponen RGB untuk rgba() — diupdate via JS */
    --primary-dark: #8e0000;          /* Shade gelap otomatis */
    --primary-light: #ef9a9a;         /* Shade terang otomatis — diupdate via JS */
    --accent:      #F9A825;           /* Warna aksen — diubah dinamis lewat admin */
    --accent-rgb:  249, 168, 37;      /* Komponen RGB aksen */
    --glow-color:  #C62828;           /* Efek glow — diubah dinamis lewat admin */
    --light-bg:    #FEFAF6;
    --card-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.05);
    --btn-shadow:  0 6px 18px  rgba(var(--primary-rgb), 0.28);
    --discount-color: #2E7D32;
    --danger:      #E53935;
    --text-dark:   #3E2723;
    --text-muted:  #8D6E63;
}

/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; -webkit-tap-highlight-color: transparent; }
::-webkit-scrollbar { display: none; }

body { 
    background-image: url('background.jpg'); 
    background-size: cover; background-attachment: fixed; background-position: center; background-color: var(--light-bg); color: var(--text-dark); 
    padding-bottom: 100px; 
}
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.45); z-index: -1; }

/* Header & Navbar */
.datetime-container { background: var(--primary); color: white; padding: 10px 0; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 6%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.nav-logo { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }

/* PERBAIKAN LOGO: Efek Glow Merah & Hijau */
.logo { font-size: 19px; font-weight: 700; color: var(--primary); text-shadow: 0 0 8px var(--glow-color); }
.logo span { color: #2E7D32; text-shadow: 0 0 8px rgba(46, 125, 50, 0.4); }

.nav-right-icon { font-size: 18px; color: var(--accent); background: #fff3f0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgba(255, 87, 51, 0.15); }

/* App Views */
.app-view { display: none; animation: fadeIn 0.3s ease-in-out; }
.app-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Section */
.hero { 
    padding: 40px 6% 20px; 
    text-align: center; 
    /* Tambahkan baris ini sebagai cadangan: */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/800x400?text=Selamat+Datang');
    background-size: cover;
    background-position: center;
}

.main-logo-container { width: 100px; height: 100px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid #fff; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.main-logo-container img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: 22px; line-height: 1.3; font-weight: 800; color: #222;}

/* PERUBAHAN DI SINI: Efek Glow Merah pada Slogan & Deskripsi */
.hero h1 span { 
    color: var(--primary); 
    text-shadow: 0 0 12px var(--glow-color), 0 0 24px var(--glow-color); 
}
.hero-desc { 
    font-size: 13px; 
    color: #ffffff; /* Ubah ke putih agar glow terlihat jelas */
    margin-top: 8px; 
    padding: 0 8%; 
    line-height: 1.5; 
    font-weight: 600; 
    text-shadow: 0px 0px 10px var(--glow-color), 0px 0px 20px var(--glow-color); 
}

/* Search Section */
.search-section { padding: 10px 6%; position: sticky; top: 64px; z-index: 999; background: transparent; }
.search-container { position: relative; background: white; border-radius: 15px; display: flex; align-items: center; padding: 0 15px; box-shadow: var(--card-shadow); border: 1.5px solid rgba(45, 90, 39, 0.1); }
.search-input { width: 100%; border: none; padding: 14px 10px; outline: none; font-size: 13px; font-weight: 500; background: transparent;}

/* Promo Slider */
.promo-slider { margin: 15px 6% 25px; overflow: hidden; border-radius: 18px; box-shadow: var(--card-shadow); position: relative; background: #eee; }
.slides { display: flex; transition: transform 0.6s ease-in-out; }
.slide { position: relative; min-width: 100%; }
.slide img { width: 100%; height: 180px; object-fit: cover; display: block; }
.promo-tag-slider { position: absolute; top: 15px; right: 15px; background: var(--accent); color: white; padding: 5px 15px; border-radius: 50px; font-size: 11px; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 10; text-transform: uppercase; border: 2px solid white; animation: pulse 2s infinite; }
.slide-dots { position: absolute; bottom: 10px; width: 100%; display: flex; justify-content: center; gap: 6px; }
.slide-dots span { width: 7px; height: 7px; background: rgba(255,255,255,0.5); border-radius: 50%; transition: 0.3s; cursor: pointer; display: inline-block; }
.slide-dots span.active { background: #fff; width: 18px; border-radius: 10px; }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 15px 6% 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 10px 20px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.9); color: var(--text-muted); border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: var(--card-shadow); cursor: pointer; transition: 0.2s; }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.35); }

/* Menu List Horizontal */
.menu-grid { display: flex; flex-direction: column; gap: 15px; padding: 0 6% 120px 6%; }

.menu-card { background: rgba(255, 255, 255, 0.95); border-radius: 20px; padding: 12px; display: flex; flex-direction: row; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.menu-card:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.img-box { width: 95px; height: 95px; border-radius: 16px; overflow: hidden; margin-right: 15px; flex-shrink: 0; position: relative; cursor: zoom-in; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.promo-tag-menu { position: absolute; top: 0; left: 0; background: var(--accent); color: white; padding: 3px 8px; border-bottom-right-radius: 10px; font-size: 9px; font-weight: 800; }
.menu-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.menu-card h3 { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-tag { font-size: 15px; font-weight: 800; color: var(--primary); }

.action-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.lbl-stok { font-size: 9px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.lbl-tersedia { color: #2E7D32; background: #e8f5e9; }
.lbl-habis { color: var(--danger); background: #ffebee; }
.add-btn { padding: 6px 16px; background: var(--primary); color: white; border: none; border-radius: 50px; font-weight: 700; font-size: 11px; cursor: pointer; box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.22); }
.add-btn:disabled { background: #eee !important; color: #aaa; box-shadow: none; cursor: not-allowed; }
.qty-controls { display: flex; align-items: center; background: #f1f3f5; border-radius: 50px; padding: 2px 4px; border: 1px solid #e9ecef; }
.qty-btn { background: white; border: none; color: var(--primary); font-weight: 800; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.qty-val { color: var(--text-dark); font-weight: 800; font-size: 13px; width: 24px; text-align: center; }

/* Info Tab Styles */
.page-header { padding: 25px 6% 15px; }
.page-header h2 { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.page-header p { font-size: 12px; color: var(--text-muted); font-weight: 500;}
.app-card { background: rgba(255, 255, 255, 0.9); border-radius: 20px; padding: 20px; margin: 15px 6%; box-shadow: var(--card-shadow); border: 1px solid rgba(45, 90, 39, 0.1); }
.card-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--accent); }
.profile-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.profile-header img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #eee; object-fit: cover;}
.profile-header h3 { font-size: 16px; font-weight: 800; color: #333;}
#store-status { display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 11px; font-weight: 800; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; border: 1.5px solid transparent; }
.status-open { background: #e8f5e9; color: #2E7D32; border-color: #2E7D32; }
.status-closed { background: #ffebee; color: var(--danger); border-color: var(--danger); }
.profile-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 15px; font-weight: 500;}
.info-list .info-item { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dark); margin-bottom: 8px; font-weight: 600; }
.info-list .info-item i { width: 20px; text-align: center; color: var(--accent); }
.maps-address { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; font-weight: 500;}
.maps-frame { width: 100%; height: 160px; border-radius: 12px; overflow: hidden; border: 1px solid #eee; margin-bottom: 15px; }
.btn-outline { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 12px; text-decoration: none; transition: 0.2s; }
.disclaimer-list { list-style: none; }
.disclaimer-list li { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 8px; line-height: 1.5; font-weight: 500;}
.disclaimer-list li i { color: var(--primary); margin-top: 2px; }
.app-footer { text-align: center; padding: 20px 6% 40px; }
.social-links { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 16px; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #bc1888); }
.social-btn.facebook { background: #1877F2; }
.social-btn.whatsapp { background: #25D366; }
.app-footer p { font-size: 10px; color: #aaa; margin-bottom: 4px; font-weight: 500;}

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: white; display: flex; justify-content: space-around; padding: 10px 0 15px; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); z-index: 2000; border-top: 1px solid #f1f1f1; }
.nav-item { background: none; border: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; width: 50%; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.nav-item i { font-size: 20px; margin-bottom: 2px; transition: 0.2s; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-3px); }

/* ========================================= */
/* FLOATING CART (FAB) & DOSSIER SYSTEM      */
/* ========================================= */

.cart-fab {
    position: fixed;
    bottom: 95px; 
    right: 20px; 
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none; 
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
    z-index: 1999;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-fab:active { transform: scale(0.9); }

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
    z-index: 2000; display: none; opacity: 0; transition: opacity 0.3s;
}
.cart-overlay.show { opacity: 1; }

.cart-dossier {
    position: fixed; bottom: -100%; left: 0; width: 100%;
    max-height: 88vh; background: #fff;
    border-top-left-radius: 30px; border-top-right-radius: 30px;
    z-index: 2001; padding: 20px; display: flex; flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.cart-dossier.show { bottom: 0; }

.dossier-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.dossier-header h3 { font-size: 16px; font-weight: 800; color: #333; }
.close-dossier { background: #f1f3f5; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.dossier-content { overflow-y: auto; flex: 1; padding-bottom: 10px; padding-right: 5px; }
.dossier-content::-webkit-scrollbar { width: 4px; }
.dossier-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

.note-input { width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.05); font-size: 12px; outline: none; background: rgba(255,255,255,0.6); }
.discount-notice { font-size: 11px; font-weight: 700; padding: 8px; border-radius: 12px; text-align: center; margin-bottom: 10px; }
.notice-off { background: rgba(0,0,0,0.03); color: #777; }
.notice-on { background: rgba(46, 125, 50, 0.1); color: var(--discount-color); animation: pulse 2s infinite; }
.shipping-select { background: rgba(255,255,255,0.7); border: 1.5px solid rgba(0,0,0,0.05); color: var(--text-dark); padding: 12px; border-radius: 12px; font-size: 12px; font-weight: 700; width: 100%; outline: none; }

.cart-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; border-top: 1.5px dashed rgba(0,0,0,0.1); padding-top: 15px; }
.clear-btn { background: rgba(229, 57, 53, 0.1); color: var(--danger); border: none; width: 40px; height: 40px; border-radius: 12px; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.clear-btn:active { transform: scale(0.9); background: rgba(229, 57, 53, 0.2); }
.checkout-btn { background: var(--primary); color: white; padding: 14px 24px; border-radius: 50px; border: none; font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.28); transition: 0.2s;}
.checkout-btn:active { transform: scale(0.95); }

/* ========================================= */
/* ANIMASI GAMBAR TERBANG JATUH KE KERANJANG */
/* ========================================= */
.flying-item {
    position: fixed;
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 3px solid white;
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

/* Modals & Lightbox */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 3000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.show { opacity: 1; }
.modal-box { background: white; width: 85%; max-width: 320px; border-radius: 24px; padding: 25px 20px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.15); transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.show .modal-box { transform: translateY(0) scale(1); }
.modal-icon { width: 60px; height: 60px; background: #ffebee; color: var(--danger); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 15px; }
.modal-title { font-size: 18px; font-weight: 800; color: #333; margin-bottom: 8px; }
.modal-text { font-size: 12px; color: #666; margin-bottom: 22px; line-height: 1.5; font-weight: 500;}
.modal-actions { display: flex; gap: 10px; }
.btn-cancel-modal { flex: 1; padding: 12px; border-radius: 14px; border: none; background: #f1f3f5; color: #555; font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.2s; }
.btn-confirm-modal { flex: 1; padding: 12px; border-radius: 14px; border: none; background: var(--danger); color: white; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 6px 15px rgba(230, 57, 70, 0.3); transition: 0.2s; }
.btn-cancel-modal:active, .btn-confirm-modal:active { transform: scale(0.95); }

.lightbox-content { position: relative; max-width: 85%; max-height: 80%; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.show .lightbox-content { transform: scale(1); }
.lightbox-content img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.3); display: block; }
.lightbox-close { position: absolute; top: -15px; right: -15px; width: 36px; height: 36px; background: white; color: var(--danger); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: 2px solid #eee; z-index: 10; }

#itemModal .modal-box { width: 90%; max-width: 380px; background: #fff; transform: translateY(100vh); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 80vh; overflow-y: auto !important; }
#itemModal.show .modal-box { transform: translateY(0); }
#modal-item-img { border-top-left-radius: 24px; border-top-right-radius: 24px; }
#modal-item-note:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.15); }

/* Splash Screen */
#splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 99999; transition: opacity 0.6s ease-out, visibility 0.6s; }
.splash-content { text-align: center; }
.splash-logo { width: 140px; margin-bottom: 20px; animation: pulse-logo 1.8s infinite ease-in-out; }
.splash-title { font-family: 'Poppins', sans-serif; color: var(--primary); font-weight: 800; letter-spacing: 1px; margin-bottom: 15px; }
.splash-loader { width: 120px; height: 4px; background: #f0f0f0; border-radius: 10px; margin: 0 auto 10px; overflow: hidden; }
.loader-bar { width: 40%; height: 100%; background: var(--primary); border-radius: 10px; animation: loading 1.5s infinite ease-in-out; }
.splash-text { font-size: 11px; color: #888; font-weight: 500; }
@keyframes pulse-logo { 0% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 0.9; } }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.splash-hidden { opacity: 0; visibility: hidden; }

/* Track Box */
.track-box { background: white; padding: 20px; margin: 15px 6% 25px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; border: 1px solid #f0f0f0; }
.track-box h3 { font-size: 14px; font-weight: 800; color: #333; margin-bottom: 15px; }
.track-box h3 i { color: var(--primary); }
.track-input-group { display: flex; gap: 8px; align-items: center; width: 100%; }
.track-input-group input { flex: 1; min-width: 0; padding: 12px 15px; border: 1.5px solid #eee; border-radius: 10px; outline: none; text-transform: uppercase; font-weight: 700; font-size: 13px; background: #fafafa; color: #333; }
.track-input-group button { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.22); }

/* ========================================= */
/* DARK MODE STYLES                          */
/* ========================================= */
body.dark-mode {
    --light-bg: #121212;
    --text-dark: #f5f5f5;
    --text-muted: #aaaaaa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: var(--light-bg);
}

body.dark-mode::before {
    background: rgba(0, 0, 0, 0.85); 
}

body.dark-mode .navbar,
body.dark-mode .menu-card,
body.dark-mode .app-card,
body.dark-mode .track-box,
body.dark-mode .cart-dossier,
body.dark-mode .modal-box,
body.dark-mode .bottom-nav,
body.dark-mode .search-container {
    background: #1e1e1e !important;
    border-color: #333 !important;
    color: var(--text-dark) !important;
}

body.dark-mode .search-input,
body.dark-mode .track-input-group input,
body.dark-mode .note-input,
body.dark-mode .shipping-select {
    background: #2a2a2a !important;
    color: #fff !important;
    border-color: #444 !important;
}

body.dark-mode .tab-btn { background: #2a2a2a; color: #ccc; border-color: #444; }
body.dark-mode .tab-btn.active { background: var(--accent); color: #fff; }

body.dark-mode .qty-controls,
body.dark-mode .qty-btn {
    background: #333 !important;
    color: #fff !important;
    border-color: #444 !important;
}
body.dark-mode .qty-val { color: #fff; }

/* Memperbaiki warna background inline dari JS */
body.dark-mode [style*="background: white"], 
body.dark-mode [style*="background:#f1f3f5"], 
body.dark-mode [style*="background: #fdfdfd"], 
body.dark-mode [style*="background: #f8f9fa"],
body.dark-mode [style*="background: #fff8f6"],
body.dark-mode [style*="background: #fff5f2"] 
{
    background-color: #2a2a2a !important;
    color: #f5f5f5 !important;
    border-color: #444 !important;
}

body.dark-mode .dossier-header h3,
body.dark-mode .card-title,
body.dark-mode .page-header h2,
body.dark-mode .modal-title {
    color: var(--text-dark) !important;
}

body.dark-mode .nav-right-icon {
    background: #2a2a2a;
    border-color: #444;
}

/* ========================================= */
/* PERBAIKAN WARNA TAMPILAN (DARK MODE)      */
/* ========================================= */

body.dark-mode .hero h1 { color: #ffffff !important; }
body.dark-mode div[style*="background: #f1f3f5"] { background-color: #2a2a2a !important; }
body.dark-mode button[onclick*="changeModalQty"] { background-color: #444 !important; color: #ffffff !important; }
body.dark-mode span#modal-item-qty { color: #ffffff !important; }
body.dark-mode .payment-card div h4, body.dark-mode .payment-card div p { color: #2ecc71 !important; }

body.dark-mode #modal-item-title,
body.dark-mode #modal-item-desc,
body.dark-mode #itemModal label,
body.dark-mode #itemModal span {
    color: #f5f5f5 !important;
}

body.dark-mode [style*="background:#f9f9f9"] {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

body.dark-mode #modal-item-note,
body.dark-mode #cust-name,
body.dark-mode #cust-wa,
body.dark-mode #cust-address {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border-color: #444 !important;
}

/* 6. PERBAIKAN TEKS KERANJANG / RINCIAN PESANAN DI DARK MODE */
body.dark-mode #cart-item-list div[style*="color:#333;"] {
    color: #ffffff !important;
}
body.dark-mode #cart-item-list div[style*="color:#888;"] {
    color: #aaaaaa !important;
}
body.dark-mode #cart-item-list span[style*="color:#333;"] {
    color: #ffffff !important;
}
body.dark-mode #cart-item-list button[style*="background:white;"] {
    background-color: #444 !important;
    color: #ffffff !important;
}
body.dark-mode #cart-item-list > div {
    border-bottom-color: #444 !important; /* Garis pemisah antar item */
}
body.dark-mode .cart-footer div[style*="color: #777;"] {
    color: #cccccc !important; /* Teks "Total Belanja" */
}

/* ========================================= */
/* EFEK KUNANG-KUNANG RAHASIA (PURE CSS)     */
/* ========================================= */

.firefly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    pointer-events: none;
    display: none; 
    overflow: hidden;
}

body.dark-mode .firefly-container {
    display: block;
    background: #000; 
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f9fb55;
    border-radius: 50%;
    box-shadow: 0 0 10px #f9fb55, 0 0 20px rgba(249, 251, 85, 0.5);
    opacity: 0;
}

@keyframes fly {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(100px, -150px); opacity: 0.5; }
    90% { opacity: 1; }
    100% { transform: translate(-50px, -300px); opacity: 0; }
}

@keyframes flicker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); box-shadow: 0 0 20px #f9fb55; }
}

.firefly:nth-child(1) { left: 10%; bottom: 10%; animation: fly 12s infinite, flicker 3s infinite; }
.firefly:nth-child(2) { left: 30%; bottom: 20%; animation: fly 15s infinite 1s, flicker 4s infinite; }
.firefly:nth-child(3) { left: 50%; bottom: 5%; animation: fly 10s infinite 2s, flicker 2s infinite; }
.firefly:nth-child(4) { left: 70%; bottom: 15%; animation: fly 18s infinite 0.5s, flicker 5s infinite; }
.firefly:nth-child(5) { left: 90%; bottom: 25%; animation: fly 14s infinite 3s, flicker 3s infinite; }
.firefly:nth-child(6) { left: 15%; bottom: 30%; animation: fly 11s infinite 1.5s, flicker 4s infinite; }
.firefly:nth-child(7) { left: 40%; bottom: 40%; animation: fly 13s infinite 2.5s, flicker 2s infinite; }
.firefly:nth-child(8) { left: 60%; bottom: 10%; animation: fly 16s infinite 0.2s, flicker 3s infinite; }
.firefly:nth-child(9) { left: 80%; bottom: 35%; animation: fly 12s infinite 4s, flicker 4s infinite; }
.firefly:nth-child(10) { left: 25%; bottom: 5%; animation: fly 14s infinite 1s, flicker 2s infinite; }

/* Gaya untuk opsi yang dinonaktifkan */
select option:disabled {
    color: var(--text-muted); /* Menggunakan warna abu-abu dari root CSS kamu */
    background-color: #f0f0f0;
    font-style: italic;
}

/* Styling untuk navigasi kapsul Sub-Kategori */
.sub-cat-nav-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sub-cat-nav-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* =========================================
   MODAL PILIHAN LAYANAN (DINE IN / DELIVERY)
========================================= */
#service-choice-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    z-index: 10001; backdrop-filter: blur(8px); padding: 20px;
}
.choice-box {
    background: white; width: 100%; max-width: 400px; border-radius: 32px;
    padding: 35px 25px; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
body.dark-mode .choice-box { background: #1a1a1a; color: white; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.btn-choice {
    border: 2px solid #f0f0f0; background: #fafafa; padding: 20px 10px; border-radius: 20px;
    cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.btn-choice i { font-size: 24px; color: var(--primary); }
.btn-choice span { font-size: 13px; font-weight: 700; color: #333; line-height: 1.4; }
.btn-choice:hover { border-color: var(--primary); background: #fff8f6; transform: translateY(-3px); }
body.dark-mode .btn-choice { background: #222; border-color: #333; }
body.dark-mode .btn-choice span { color: #eee; }

.modal-addon {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 10002; display: flex; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(5px);
}
.addon-content {
    background: white; width: 100%; max-width: 500px;
    border-top-left-radius: 25px; border-top-right-radius: 25px;
    animation: slideUp 0.3s ease-out; overflow: hidden;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.addon-header img { width: 100%; height: 200px; object-fit: cover; }
.btn-close-addon {
    position: absolute; top: 15px; right: 15px; background: white;
    border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 20px; font-weight: bold; cursor: pointer;
}
.addon-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.addon-price-main { font-size: 20px; font-weight: 800; color: var(--primary); margin: 10px 0; }

.addon-section h3 { font-size: 14px; font-weight: 800; color: #333; margin-bottom: 15px; }
.addon-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px; border: 1.5px solid #eee; border-radius: 12px;
    margin-bottom: 10px; cursor: pointer; transition: 0.2s;
}
.addon-item.selected { border-color: var(--primary); background: #fff5f5; }
.addon-item input { width: 18px; height: 18px; accent-color: var(--primary); }

.addon-footer {
    display: flex; gap: 15px; padding: 20px; border-top: 1px solid #eee; background: white;
}
.qty-control { display: flex; align-items: center; gap: 15px; border: 1px solid #ddd; border-radius: 10px; padding: 5px 15px; }
.qty-control button { background: none; border: none; font-size: 20px; font-weight: bold; cursor: pointer; color: var(--primary); }
.btn-primary-addon {
    flex: 1; background: var(--primary); color: white; border: none;
    padding: 15px; border-radius: 12px; font-weight: 800; cursor: pointer;
}

/* ==========================================
   BLOG / SEO STYLES
   ========================================== */
.blog-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: 0.2s;
}
.blog-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}
.blog-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}
.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-date {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
}
.blog-card-snippet {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
