/* ============================================================
   GARGAGIA — Nigerian Delights in Egypt
   Color palette derived from the logo:
     Primary   #1E6B4A  (deep forest green — logo ring)
     Secondary #C8873A  (warm gold — banner text/trim)
     Accent    #D94F2B  (terracotta red — tribal motif)
     Light     #F5F0E8  (cream — logo background)
     Dark      #1A1A1A  (near-black for text)
   ============================================================ */

/* --- Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   LIGHT MODE TOKENS
   ============================================================ */
:root {
  --primary:      #1E6B4A;
  --primary-dk:   #154e35;
  --primary-lt:   #e8f5ee;
  --secondary:    #C8873A;
  --secondary-dk: #a96b25;
  --accent:       #D94F2B;
  --light:        #F5F0E8;
  --light-alt:    #EDE7D9;
  --dark:         #1A1A1A;
  --gray:         #6B7280;
  --gray-lt:      #9ca3af;
  --card-bg:      #FFFFFF;
  --body-bg:      #F5F0E8;
  --border:       #EDE7D9;
  --shadow:       0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   .22s ease;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  /* safe area for notched phones */
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-top:     env(safe-area-inset-top, 0px);
}

/* ============================================================
   DARK MODE TOKENS  (colour psychology:
     • Deep navy base  → calm, professional, premium
     • Warm cream text → easy on eyes; no harsh pure-white
     • Brighter brand greens/golds → visible on dark surfaces
     • Reduced shadows → avoid the "floating" effect on dark)
   ============================================================ */
[data-theme="dark"] {
  --primary:      #2db378;     /* brighter green, visible on dark */
  --primary-dk:   #1E6B4A;
  --primary-lt:   #0d2e1e;
  --secondary:    #e09a45;     /* slightly brighter gold */
  --secondary-dk: #c8873a;
  --accent:       #e06b4a;
  --light:        #1e2a3a;     /* deep navy surface for inputs */
  --light-alt:    #28384e;     /* borders, dividers */
  --dark:         #e8ded0;     /* warm cream — main text */
  --gray:         #94a3b8;
  --gray-lt:      #64748b;
  --card-bg:      #16202e;     /* card surface */
  --body-bg:      #0f1923;     /* deepest navy-black */
  --border:       #28384e;
  --shadow:       0 4px 16px rgba(0,0,0,.35);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--body-bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--safe-top);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; -webkit-tap-highlight-color: transparent; }

/* --- Typography -------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.25; }

/* --- Utility ----------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-oos { background: #fee2e2; color: #991b1b; }
.badge-new { background: #d1fae5; color: #065f46; }
[data-theme="dark"] .badge-oos { background: #3b1a1a; color: #fca5a5; }
[data-theme="dark"] .badge-new { background: #0d2e1e; color: #6ee7b7; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dk);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  padding-top: max(var(--safe-top), 0px);
  transition: background var(--transition);
}
[data-theme="dark"] .navbar { background: #0b1520; box-shadow: 0 2px 12px rgba(0,0,0,.6); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar__brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.navbar__logo { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,.25); }
.navbar__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar__tagline { font-size: .68rem; opacity: .75; letter-spacing: .04em; }

.navbar__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Dark mode toggle */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.dark-toggle:hover, .dark-toggle:active { background: rgba(255,255,255,.22); transform: scale(1.08); }

/* Cart button */
.navbar__cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--secondary);
  color: #fff;
  padding: .5rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  min-height: 38px;
}
.navbar__cart-btn:hover, .navbar__cart-btn:active { background: var(--secondary-dk); transform: scale(1.04); }
.cart-icon { font-size: 1.05rem; }
.cart-label { display: none; }
@media (min-width: 400px) { .cart-label { display: inline; } }
.cart-count {
  position: absolute;
  top: -.35rem;
  right: -.35rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 1.15rem;
  height: 1.15rem;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1.5px solid var(--primary-dk);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(150deg, var(--primary-dk) 0%, var(--primary) 55%, #2a8a60 100%);
  color: #fff;
  padding: 3rem 1rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
[data-theme="dark"] .hero { background: linear-gradient(150deg, #050d14 0%, #0b1a10 55%, #0d2217 100%); }
.hero__logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border: 3px solid rgba(255,255,255,.25);
  position: relative;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .5rem; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.hero__tagline { font-size: 1rem; opacity: .85; margin-bottom: 1.5rem; }
.hero__cta {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: .7rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(200,135,58,.4);
  position: relative;
}
.hero__cta:hover, .hero__cta:active { background: var(--secondary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,135,58,.5); }

/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.categories {
  background: var(--card-bg);
  position: sticky;
  top: 66px;
  z-index: 90;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.categories__scroll {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .7rem 1rem;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.categories__scroll::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .38rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray);
  transition: all var(--transition);
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================================
   MENU SECTIONS
   ============================================================ */
.menu { padding: 1.75rem 1rem calc(5rem + var(--safe-bottom)); }
.menu__section { margin-bottom: 2.75rem; }
.menu__section-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.1rem;
  padding-bottom: .45rem;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
@media (max-width: 600px) {
  .menu__grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
}
@media (max-width: 380px) {
  .menu__grid { grid-template-columns: 1fr; }
}

/* Menu Card */
.menu-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
.menu-card:active { transform: scale(.98); }
.menu-card.out-of-stock { opacity: .6; pointer-events: none; }

.menu-card__img-wrap { position: relative; }
.menu-card__img { width: 100%; height: 170px; object-fit: cover; }
@media (max-width: 600px) { .menu-card__img { height: 130px; } }

.menu-card__img-placeholder {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
@media (max-width: 600px) { .menu-card__img-placeholder { height: 130px; font-size: 2.5rem; } }

.menu-card__oos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
}

.menu-card__body { padding: .85rem; flex: 1; display: flex; flex-direction: column; }
.menu-card__name { font-family: var(--font-head); font-size: 1rem; margin-bottom: .2rem; color: var(--dark); }
.menu-card__desc { font-size: .8rem; color: var(--gray); flex: 1; margin-bottom: .65rem; line-height: 1.4; }
.menu-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.menu-card__price { font-size: 1rem; font-weight: 800; color: var(--primary); }

.add-btn {
  background: var(--primary);
  color: #fff;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  min-height: 34px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.add-btn:hover { background: var(--primary-dk); }
.add-btn:active { transform: scale(.95); }

/* ============================================================
   CART DRAWER — bottom sheet on mobile, right panel on desktop
   ============================================================ */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }

/* ── Mobile: bottom sheet (default) ── */
.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 92dvh;
  background: var(--card-bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.28);
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.4,0,.2,1), background var(--transition);
  padding-bottom: calc(.5rem + var(--safe-bottom));
  overflow: hidden;
}
.cart-drawer.open { transform: translateY(0); }

/* Drag handle */
.cart-drag-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .65rem 0 .3rem;
  cursor: grab;
  flex-shrink: 0;
  background: var(--card-bg);
  transition: background var(--transition);
}
.cart-drag-handle__pill {
  width: 40px;
  height: 4px;
  background: var(--gray-lt);
  border-radius: 999px;
  opacity: .6;
  transition: opacity .15s, width .15s;
}
.cart-drag-handle:active .cart-drag-handle__pill { width: 52px; opacity: .9; }

/* ── Tablet/Desktop: right-side panel ── */
@media (min-width: 641px) {
  .cart-drawer {
    top: 0;
    bottom: auto;
    left: auto;
    right: -110%;
    width: min(440px, 100vw);
    height: 100%;
    max-height: none;
    border-radius: 0;
    transform: none;
    box-shadow: -8px 0 40px rgba(0,0,0,.25);
    transition: right .32s cubic-bezier(.4,0,.2,1), background var(--transition);
    padding-bottom: var(--safe-bottom);
  }
  .cart-drawer.open { right: 0; transform: none; }
  .cart-drag-handle { display: none; }
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem 1.25rem;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
[data-theme="dark"] .cart-drawer__header { background: #0b1520; }
.cart-drawer__header h2 { font-size: 1.1rem; }
.cart-close {
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
  padding: .3rem .55rem;
  border-radius: 8px;
  transition: background var(--transition);
  min-width: 40px;
  min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.cart-close:hover { background: rgba(255,255,255,.2); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; -webkit-overflow-scrolling: touch; }
.cart-empty { text-align: center; color: var(--gray); padding: 3rem 0; }
.cart-empty__icon { font-size: 3.5rem; margin-bottom: 1rem; }

.cart-item {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__price { font-size: .8rem; color: var(--gray); }
.cart-item__qty { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--light);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  min-width: 28px;
}
.qty-btn:hover, .qty-btn:active { background: var(--primary); color: #fff; }
.qty-display { font-size: .9rem; font-weight: 700; min-width: 1.2rem; text-align: center; }
.cart-item__remove { color: var(--accent); font-size: 1.1rem; padding: .25rem; min-width: 32px; min-height: 32px; display: flex; align-items: center; justify-content: center; }

/* ─── Two-Step Cart ─────────────────────────────────────────── */
.cart-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Step 1 footer */
.cart-step1-footer {
  padding: .9rem 1.25rem calc(.9rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card-bg);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--primary);
}
.cart-step1-actions {
  display: flex;
  gap: .6rem;
}
.add-more-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .5rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  color: var(--gray);
  font-size: .82rem;
  font-weight: 600;
  background: transparent;
  transition: border-color var(--transition), color var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.add-more-btn:hover, .add-more-btn:active {
  border-color: var(--primary);
  color: var(--primary);
}
.proceed-btn {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.proceed-btn:hover { background: var(--primary-dk); }
.proceed-btn:active { transform: scale(.97); }
.proceed-btn:disabled { opacity: .45; pointer-events: none; }

/* Step 2: checkout body scrolls */
.cart-checkout-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: .75rem 1.25rem calc(1.25rem + var(--safe-bottom));
}

/* Step 2: back button in header */
.cart-back-btn {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  padding: .3rem .1rem;
  white-space: nowrap;
  min-width: 60px;
}
.cart-close-2 { margin-left: auto; }

/* Mini order summary at top of checkout */
.checkout-summary {
  margin: 0 1.25rem .5rem;
  padding: .65rem .85rem;
  background: var(--light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.checkout-summary__items { margin-bottom: .35rem; }
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--gray);
  line-height: 1.6;
}
.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px solid var(--border);
  padding-top: .3rem;
  margin-top: .3rem;
}

/* Cart item right column */
.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
}
.cart-item__subtotal { font-weight: 700; font-size: .9rem; color: var(--primary); }

/* Checkout form */
.checkout-form label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .2rem; color: var(--dark); }
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  margin-bottom: .65rem;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  background: var(--light);
  color: var(--dark);
  -webkit-appearance: none;
}
.checkout-form input::placeholder,
.checkout-form textarea::placeholder { color: var(--gray-lt); opacity: 1; }
.checkout-form input:focus,
.checkout-form textarea:focus { outline: none; border-color: var(--primary); background: var(--card-bg); }
.checkout-form textarea { resize: vertical; min-height: 55px; }
/* dark mode: ensure inputs are clearly visible */
[data-theme="dark"] .checkout-form input,
[data-theme="dark"] .checkout-form textarea {
  background: #1a2535;
  border-color: #2d3f58;
  color: #e8ded0;
}
[data-theme="dark"] .checkout-form input::placeholder,
[data-theme="dark"] .checkout-form textarea::placeholder { color: #4e6080; }
[data-theme="dark"] .checkout-form input:focus,
[data-theme="dark"] .checkout-form textarea:focus { border-color: var(--primary); background: #1e2d40; }

.order-actions { display: flex; flex-direction: column; gap: .55rem; }

/* WhatsApp button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  background: #25D366;
  color: #fff;
  padding: .8rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  min-height: 48px;
}
.whatsapp-btn:hover { background: #1da851; }
.whatsapp-btn:active { transform: scale(.98); }
.whatsapp-btn:disabled { opacity: .5; pointer-events: none; }
.whatsapp-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Pay Online button */
.pay-online-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: .8rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
  min-height: 48px;
  border: none;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.pay-online-btn:hover { opacity: .9; }
.pay-online-btn:active { transform: scale(.98); }

/* Call button */
.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-direction: column;
  width: 100%;
  background: var(--secondary);
  color: #fff;
  padding: .7rem .9rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 48px;
}
.call-btn:hover { background: var(--secondary-dk); }
.call-btn:active { transform: scale(.98); }

.order-divider {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  color: var(--gray-lt);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.order-divider::before,
.order-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   COMING SOON MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.coming-soon-modal {
  background: var(--card-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  position: relative;
  animation: modalPop .3s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes modalPop { from { opacity:0; transform: scale(.88) translateY(12px); } to { opacity:1; transform: scale(1) translateY(0); } }

.modal-close-x {
  position: absolute;
  top: .85rem; right: .85rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--light);
  color: var(--gray);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  border: 1.5px solid var(--border);
}
.modal-close-x:hover, .modal-close-x:active { background: var(--light-alt); }
[data-theme="dark"] .modal-close-x { background: #1e2a3a; border-color: #2d3f58; color: #94a3b8; }

.coming-soon__icon { font-size: 3rem; margin-bottom: .75rem; }
.coming-soon__title { font-family: var(--font-head); font-size: 1.5rem; color: var(--dark); margin-bottom: .75rem; }

.coming-soon__badge {
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: .3rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.coming-soon__text {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: .65rem;
}
.coming-soon__sub {
  font-size: .8rem;
  color: var(--gray-lt);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.coming-soon__dismiss {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: .8rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  min-height: 48px;
}
.coming-soon__dismiss:hover { background: var(--primary-dk); }
.coming-soon__dismiss:active { transform: scale(.98); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: calc(1.25rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 2rem);
}
.toast {
  background: var(--dark);
  color: var(--body-bg);
  padding: .6rem 1.2rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  animation: toastIn .28s forwards, toastOut .28s 2.2s forwards;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.toast.success { background: var(--primary); color: #fff; }
[data-theme="dark"] .toast { background: #e8ded0; color: #0f1923; }
[data-theme="dark"] .toast.success { background: var(--primary); color: #fff; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1.5rem 1rem calc(1.5rem + var(--safe-bottom));
  font-size: .82rem;
  transition: background var(--transition);
}
[data-theme="dark"] .site-footer { background: #060e17; }
.site-footer strong { color: var(--secondary); }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, var(--light-alt) 50%, var(--light) 75%);
  background-size: 200%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { height: 280px; border-radius: var(--radius); }
@media (max-width: 600px) { .skeleton-card { height: 220px; } }

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */
body.admin-body { background: #f1f5f9; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  padding: 1rem;
}
.admin-login__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-login__logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; }
.admin-login__title { font-family: var(--font-head); color: var(--primary); margin-bottom: .25rem; }
.admin-login__sub { color: var(--gray); font-size: .88rem; margin-bottom: 1.5rem; }
.admin-login__card label { text-align: left; display: block; font-size: .82rem; font-weight: 600; margin-bottom: .2rem; }
.admin-login__card input {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.admin-login__card input:focus { outline: none; border-color: var(--primary); }
.login-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: .75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition);
  min-height: 48px;
}
.login-btn:hover { background: var(--primary-dk); }
.login-error { color: var(--accent); font-size: .85rem; margin-top: .5rem; display: none; }

/* Admin layout */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--primary-dk);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: -260px;
  height: 100%;
  z-index: 150;
  transition: left .3s ease;
}
.admin-sidebar.open { left: 0; }
@media (min-width: 768px) { .admin-sidebar { position: static; left: 0 !important; } }

.admin-sidebar__brand { padding: 1.5rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-sidebar__logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: .5rem; }
.admin-sidebar__name { font-family: var(--font-head); font-size: 1rem; }
.admin-sidebar__tag { font-size: .7rem; opacity: .65; }

.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  min-height: 44px;
}
.admin-nav__item:hover,
.admin-nav__item.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: var(--secondary);
}
.admin-nav__icon { font-size: 1.1rem; width: 22px; text-align: center; }

.admin-nav__logout { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.12); }
.logout-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  transition: color var(--transition);
}
.logout-btn:hover { color: #fff; }

.admin-main { flex: 1; margin-left: 0; min-width: 0; }
@media (min-width: 768px) { .admin-main { margin-left: 240px; } }

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar__title { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.sidebar-toggle { display: flex; flex-direction: column; gap: 4px; padding: .3rem; }
.sidebar-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; }
@media (min-width: 768px) { .sidebar-toggle { display: none; } }

.admin-content { padding: 1.5rem; max-width: 1100px; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); text-align: center; }
.stat-card__icon { font-size: 2rem; margin-bottom: .5rem; }
.stat-card__val { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-card__label { font-size: .78rem; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; }

/* Admin panels */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.panel-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.panel-card__title {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--light-alt);
}

/* Form helpers */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  font-size: .9rem;
  transition: border-color var(--transition);
  background: #f8fafc;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 70px; }

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .9rem; transition: all var(--transition); min-height: 40px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dk); }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; min-height: 34px; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 1rem; }

/* Menu table */
.menu-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead { background: var(--light-alt); }
th { padding: .75rem 1rem; text-align: left; font-weight: 700; color: var(--dark); white-space: nowrap; }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--light-alt); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

.item-img-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.item-emoji-thumb { width: 48px; height: 48px; border-radius: 8px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  top: 3px; left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::after { transform: translateX(18px); }

/* Modal (admin) */
.modal-overlay.admin-modal {
  z-index: 300;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--light-alt);
}
.modal__header h3 { font-family: var(--font-head); color: var(--primary); }
.modal__body { padding: 1.5rem; }
.modal__footer { display: flex; gap: .75rem; justify-content: flex-end; padding: 1rem 1.5rem; border-top: 1px solid var(--light-alt); }

/* Image preview */
.img-preview-wrap { margin-top: .5rem; }
.img-preview { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; display: none; }

/* Settings specific */
.settings-section { margin-bottom: 1.5rem; }
.settings-section h4 { font-size: 1rem; color: var(--primary); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }

/* ============================================================
   TABLET RESPONSIVE
   ============================================================ */
@media (min-width: 600px) and (max-width: 900px) {
  .navbar__title { font-size: 1.2rem; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.2rem; }
}

@media (min-width: 900px) {
  .menu__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__logo { width: 130px; height: 130px; }
}

/* ============================================================
   LANDSCAPE PHONE
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 1.5rem 1rem 2rem; }
  .hero__logo { width: 70px; height: 70px; }
}
