/* ===== ROOT & RESET ===== */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #181818;
    --gold: #f5b342;
    --gold-glow: rgba(245, 179, 66, 0.3);
    --text-main: #f0f0f0;
    --text-muted: #9e9e9e;
    --radius: 16px;
    --shadow: 0 10px 40px rgba(0,0,0,0.6);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg-dark); color: var(--text-main); padding-bottom: 90px; padding-top: 10px; overflow-x: hidden; }

/* ===== ANIMATIONS ===== */
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes popIn { 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 0; height: 0; }

/* ===== HEADER ===== */
.top-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: transparent; animation: fadeIn 0.6s ease;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.greeting small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.brand-logo { font-size: 1.4rem; font-weight: 900; color: #fff; letter-spacing: 1px; }
.brand-logo span { color: var(--gold); }
.tagline { color: var(--text-muted); font-size: 0.6rem; margin-top: -2px; }
.header-right { display: flex; gap: 12px; }
.icon-btn { background: #1e1e1e; border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; display: flex; justify-content: center; align-items: center; position: relative; transition: var(--transition); }
.icon-btn:hover { background: var(--gold); color: #0a0a0a; transform: scale(1.05); }
.badge-dot { position: absolute; top: -4px; right: -4px; background: #ff3b30; color: #fff; font-size: 0.5rem; padding: 2px 6px; border-radius: 10px; font-weight: 700; }

/* ===== SEARCH BAR ===== */
.search-wrapper { display: flex; padding: 0 20px 16px; gap: 12px; animation: slideUp 0.4s ease; }
.search-bar { flex: 1; background: #1a1a1a; border-radius: 50px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #262626; transition: var(--transition); }
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.search-bar i { color: var(--text-muted); }
.search-bar input { background: transparent; border: none; outline: none; color: #fff; flex: 1; font-size: 0.9rem; }
.search-bar input::placeholder { color: #555; }
.filter-btn { background: #1a1a1a; border: 1px solid #262626; }

/* ===== HERO ===== */
.hero-carousel { padding: 0 20px; margin-bottom: 20px; animation: fadeIn 0.8s ease; }
.hero-slide { position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 24px; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 70%; }
.hero-content .tag { background: #d63031; color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 0.6rem; font-weight: 700; display: inline-block; margin-bottom: 8px; letter-spacing: 0.5px; }
.hero-content h1 { font-size: 1.8rem; line-height: 1.1; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.hero-content .hero-sub { font-size: 0.8rem; color: #ddd; margin: 6px 0 12px; font-weight: 500; }
.btn-primary { background: var(--gold); color: #0a0a0a; border: none; padding: 10px 18px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); cursor: pointer; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--gold-glow); }
.btn-primary.btn-sm { padding: 6px 14px; font-size: 0.75rem; }
.btn-primary.btn-block { width: 100%; justify-content: center; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots .dot { width: 6px; height: 6px; border-radius: 50%; background: #444; transition: var(--transition); }
.dots .dot.active { width: 18px; background: var(--gold); border-radius: 4px; }

/* ===== CATEGORIES ===== */
.categories-wrapper { padding: 0 20px 20px; }
.categories-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 60px; cursor: pointer; transition: var(--transition); animation: slideUp 0.5s ease; }
.cat-circle { width: 60px; height: 60px; background: #1a1a1a; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid #262626; transition: var(--transition); font-size: 1.4rem; color: #fff; }
.cat-item:hover .cat-circle { border-color: var(--gold); background: #222; transform: translateY(-4px); box-shadow: 0 0 15px var(--gold-glow); }
.cat-name { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* ===== POPULAR PICKS ===== */
.popular-section { padding: 0 20px 20px; animation: fadeIn 1s ease; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h2 { font-size: 1.2rem; font-weight: 700; }
.view-all { color: var(--gold); font-size: 0.8rem; text-decoration: none; display: flex; align-items: center; gap: 4px; font-weight: 600; transition: var(--transition); }
.view-all:hover { gap: 10px; }

.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pop-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: var(--transition); border: 1px solid transparent; position: relative; }
.pop-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.pop-img { width: 100%; height: 100px; object-fit: cover; display: block; }
.pop-body { padding: 8px 10px 10px; }
.pop-badge { background: #d63031; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.5rem; font-weight: 700; display: inline-block; margin-bottom: 4px; }
.pop-title { font-weight: 700; font-size: 0.8rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-desc { font-size: 0.6rem; color: var(--text-muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-footer { display: flex; justify-content: space-between; align-items: center; }
.pop-price { font-weight: 800; color: var(--gold); font-size: 0.9rem; }
.pop-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #000; border: none; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); cursor: pointer; }
.pop-btn:hover { transform: scale(1.2); box-shadow: 0 0 12px var(--gold-glow); }

/* ===== OFFER BANNER ===== */
.offer-banner { margin: 0 20px 20px; background: #fcf3e3; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; padding: 16px; position: relative; overflow: hidden; }
.offer-content { flex: 1; position: relative; z-index: 2; }
.offer-content .tag { background: var(--gold); color: #0a0a0a; padding: 2px 8px; border-radius: 4px; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.5px; }
.offer-content h3 { font-size: 1.1rem; color: #0a0a0a; margin: 4px 0; font-weight: 800; }
.offer-content p { font-size: 0.7rem; color: #333; margin-bottom: 8px; }
.offer-img-wrapper { position: relative; width: 90px; height: 80px; }
.offer-img-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.offer-discount { position: absolute; top: -10px; right: -20px; background: #d63031; color: #fff; border-radius: 50%; width: 50px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; box-shadow: 0 4px 10px rgba(214,48,49,0.4); animation: popIn 0.6s ease; }
.offer-discount small { font-size: 0.5rem; font-weight: 600; }

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #111; border-top: 1px solid #222; display: flex; justify-content: space-around; padding: 8px 0 16px; z-index: 100; animation: slideUp 0.6s ease; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 0.6rem; gap: 4px; cursor: pointer; transition: var(--transition); position: relative; flex: 1; }
.nav-item i { font-size: 1.2rem; transition: var(--transition); }
.nav-item.active { color: var(--gold); }
.nav-item.active i { transform: translateY(-2px); }
.nav-item.center-btn-wrapper { position: relative; top: -12px; }
.center-btn { width: 48px; height: 48px; background: #d63031; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(214,48,49,0.4); transition: var(--transition); margin-bottom: 2px; }
.center-btn:hover { transform: scale(1.1); }

/* ===== CART OVERLAY ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 1000; display: none; justify-content: flex-end; }
.cart-overlay.open { display: flex; }
.cart-panel { background: var(--bg-dark); width: 100%; max-width: 400px; height: 100%; padding: 20px; display: flex; flex-direction: column; border-left: 2px solid var(--gold); animation: slideUp 0.4s ease; }
.cart-header { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid #222; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 12px; background: #1a1a1a; padding: 12px; border-radius: var(--radius); align-items: center; }
.cart-item-details { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 0.9rem; }
.cart-item-meta { color: var(--text-muted); font-size: 0.75rem; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; }
.cart-qty-btn { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); border: none; color: #000; font-weight: 700; cursor: pointer; }
.cart-footer { border-top: 1px solid #222; padding-top: 16px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.total-price { color: var(--gold); }