

@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600&family=Syne:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --brand:        #D85A30;
  --brand-dark:   #993C1D;
  --brand-light:  #FAEEDA;
  --brand-pale:   #FDF6F1;
  --green:        #2E7D32;
  --green-bg:     #EAF3DE;
  --red:          #A32D2D;
  --red-bg:       #FCEBEB;
  --amber:        #854F0B;
  --amber-bg:     #FAEEDA;
  --bg:           #F7F4F1;
  --surface:      #FFFFFF;
  --surface-2:    #F2EFEB;
  --border:       rgba(0,0,0,0.08);
  --border-md:    rgba(0,0,0,0.13);
  --text-1:       #1A1714;
  --text-2:       #5C5651;
  --text-3:       #9B9490;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 12px 32px rgba(0,0,0,0.12);
  --nav-h:        64px;
  --font-display: 'Clash Display', sans-serif;
  --font-ui:      'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Full-page hero background image — covers navbar + hero only */
.hero-bg-wrapper {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.15) 85%, transparent 100%),
    url('assets/background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Utilities ── */
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.hidden { display: none !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 99px; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}
.nav-logo span { color: var(--brand); }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--brand-pale);
  color: var(--brand);
}
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-delivery-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
}
.nav-delivery-badge .dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}
.cart-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.cart-btn:active { transform: translateY(0); }
.cart-count {
  background: #fff;
  color: var(--brand);
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: all var(--transition); }

/* ================================================================
   PAGES (single-page sections)
   ================================================================ */
.page { display: none; }
.page.active { display: block; }

/* ================================================================
   HERO / HOMEPAGE
   ================================================================ */
.hero {
  background: transparent;
  border-bottom: none;
  padding: 80px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: #FFB347;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero h1 em { color: #FFB347; font-style: normal; }
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.hero-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  min-width: 180px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-card-label { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-card-value { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; }
.hero-card-value.timer { color: #FFB347; font-variant-numeric: tabular-nums; font-family: var(--font-ui); }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-ui);
  letter-spacing: 0.2px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(216,90,48,0.25);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(216,90,48,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-ui);
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); }

/* How it works strip */
.how-it-works {
  padding: 48px 24px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
  text-align: center;
  color: var(--text-1);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-icon { font-size: 28px; margin-bottom: 10px; }
.step-num { font-size: 11px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 4px; }
.step-title { font-size: 14px; font-weight: 500; color: var(--text-1); }
.schedule-strip {
  background: var(--text-1);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.schedule-item:last-child { border-right: none; }
.schedule-icon { font-size: 18px; }
.schedule-time { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 1px; }
.schedule-label { font-size: 15px; font-weight: 500; }

/* ================================================================
   MENU PAGE
   ================================================================ */
.menu-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.menu-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3); margin-bottom: 10px; }
.cat-filter { display: flex; flex-direction: column; gap: 2px; }
.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  text-align: left;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.cat-btn:hover { background: var(--brand-pale); color: var(--brand); }
.cat-btn.active { background: var(--brand-pale); color: var(--brand); font-weight: 500; }
.cat-btn .cat-emoji { font-size: 16px; }

.menu-main {}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.menu-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-width: 220px;
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--brand); }
.search-box svg { color: var(--text-3); flex-shrink: 0; }
.search-box input { border: none; outline: none; background: none; font-size: 14px; color: var(--text-1); width: 100%; }
.search-box input::placeholder { color: var(--text-3); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.food-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.food-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.food-card.oos { opacity: 0.55; pointer-events: none; }
.food-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  line-height: 1;
  flex-shrink: 0;
  height: 140px;
  overflow: hidden;
  background: var(--surface-2);
}
.food-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.food-body { padding: 14px 14px 12px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.food-name { font-size: 14px; font-weight: 500; color: var(--text-1); line-height: 1.3; }
.food-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; flex: 1; }
.food-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.food-price { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text-1); }
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: all var(--transition);
  flex-shrink: 0;
}
.add-btn:hover { background: var(--brand-dark); transform: scale(1.08); }
.food-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: var(--surface);
  color: var(--text-1);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.qty-val { font-size: 14px; font-weight: 500; min-width: 16px; text-align: center; }
.menu-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-3);
}
.menu-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-3);
  font-size: 15px;
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ================================================================
   CART DRAWER (desktop: sidebar; mobile: bottom sheet)
   ================================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--surface);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-2);
  transition: all var(--transition);
}
.close-btn:hover { background: var(--border); }
.cart-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px; }
.cart-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-3);
}
.cart-empty-icon { font-size: 40px; margin-bottom: 12px; }
.cart-empty p { font-size: 14px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 500; white-space: normal; overflow: hidden; word-break: break-word; line-height: 1.3; }
.cart-item-price { font-size: 13px; color: var(--text-3); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.cart-item-sub { font-size: 14px; font-weight: 500; }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.delivery-options { margin-bottom: 14px; }
.delivery-option-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 8px; }
.delivery-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.delivery-opt {
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
.delivery-opt:hover { border-color: var(--brand); }
.delivery-opt.selected { border-color: var(--brand); background: var(--brand-pale); }
.delivery-opt input { display: none; }
.delivery-opt-name { font-size: 13px; font-weight: 500; margin-bottom: 1px; }
.delivery-opt-price { font-size: 12px; color: var(--text-3); }
.delivery-opt.selected .delivery-opt-price { color: var(--brand); }
.cart-summary { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.sum-row.total { font-size: 16px; font-weight: 600; color: var(--text-1); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; }
.sum-row.total span:last-child { color: var(--brand); }
.checkout-btn {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
}
.checkout-btn:hover { background: var(--brand-dark); }

/* ================================================================
   CHECKOUT PAGE
   ================================================================ */
.checkout-layout {
  max-width: 600px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.checkout-form-card, .checkout-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.section-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-1);
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
.form-label span { color: var(--text-3); font-weight: 400; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(216,90,48,0.1);
}
.form-textarea { resize: none; height: 80px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkout-items-list { margin-bottom: 16px; }
.co-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.co-item:last-child { border-bottom: none; }
.co-item-name { color: var(--text-2); }
.co-item-name span { color: var(--text-3); font-size: 12px; }
.co-item-price { font-weight: 500; }
.co-divider { height: 1px; background: var(--border); margin: 12px 0; }
.co-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; }
.co-total-row span:last-child { color: var(--brand); }
.pay-btn {
  width: 100%;
  margin-top: 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(216,90,48,0.25);
}
.pay-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.pay-security {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.unavail-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.unavail-opt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--border-md); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition); }
.unavail-opt:hover { border-color: var(--brand); background: var(--brand-pale); }
.unavail-opt input:checked + span { font-weight: 500; color: var(--brand); }
.unavail-opt input { margin: 0; }
.friend-fields { background: var(--surface-2); padding: 12px; border-radius: var(--radius-md); }

/* ================================================================
   ORDER CONFIRMATION
   ================================================================ */
.confirmation-page {
  max-width: 520px;
  margin: 48px auto;
  padding: 0 24px;
  text-align: center;
}
.confirm-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.confirm-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.confirm-sub { font-size: 16px; color: var(--text-2); margin-bottom: 28px; }
.order-id-card {
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px rgba(216,90,48,0.08);
}
.order-id-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3); margin-bottom: 6px; }
.order-id-val { font-family: var(--font-ui); font-size: 36px; font-weight: 700; color: var(--brand); letter-spacing: 3px; margin-bottom: 8px; }
.order-id-msg { font-size: 14px; color: var(--text-3); }
.confirm-details-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 20px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row-key { color: var(--text-3); flex-shrink: 0; }
.confirm-row-val { font-weight: 500; text-align: right; }
.delivery-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
}

/* ================================================================
   ADMIN DASHBOARD
   ================================================================ */
.admin-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.admin-subtitle { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border);
}
.admin-tab {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.admin-tab.active { background: var(--surface); color: var(--text-1); box-shadow: var(--shadow-sm); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Stock management */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.stock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition);
}
.stock-card:hover { box-shadow: var(--shadow-sm); }
.stock-thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stock-info { flex: 1; min-width: 0; }
.stock-name { font-size: 14px; font-weight: 500; margin-bottom: 1px; }
.stock-price { font-size: 13px; color: var(--text-3); }
.toggle-wrap { flex-shrink: 0; }
.toggle {
  position: relative;
  width: 44px; height: 24px;
  background: var(--border-md);
  border-radius: 99px;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(20px); }

/* Orders table */
.orders-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
}
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.orders-table td {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--brand-pale); }
.order-id-cell { font-family: var(--font-ui); font-weight: 600; color: var(--brand); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
}
.status-paid { background: var(--green-bg); color: var(--green); }
.status-pending { background: var(--amber-bg); color: var(--amber); }
.admin-empty {
  text-align: center;
  padding: 48px;
  color: var(--text-3);
  font-size: 15px;
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.stat-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text-1); }

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text-1);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #1B5E20; }
.toast.error { background: #B71C1C; }

/* ================================================================
   MOBILE NAV MENU
   ================================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: 16px 20px 24px;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  opacity: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  transform: translateX(-10px);
  opacity: 0;
}
.mobile-menu.open .mobile-menu-links a {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu.open .mobile-menu-links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-links a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu-links a:hover, .mobile-menu-links a.active {
  background: var(--brand-pale);
  color: var(--brand);
  transform: translateX(4px);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .menu-layout { grid-template-columns: 1fr; }
  .menu-sidebar {
    position: static;
    padding: 14px 16px;
  }
  .cat-filter { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cat-btn { padding: 6px 12px; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .navbar { padding: 0 12px; gap: 10px; }
  .nav-links, .nav-delivery-badge { display: none; }
  .hamburger { display: flex; }
  .nav-logo { font-size: 17px; }
  .cart-btn { padding: 7px 12px; font-size: 13px; }

  .hero { padding: 36px 16px 48px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; color: rgba(255,255,255,0.85); }
  .hero-cards { gap: 8px; }
  .hero-card { min-width: 130px; padding: 12px 14px; }
  .hero-card-value { font-size: 17px; }

  .schedule-strip { gap: 0; padding: 12px 16px; overflow-x: auto; justify-content: flex-start; }
  .schedule-item { padding: 0 14px; white-space: nowrap; flex-shrink: 0; }

  .how-it-works { padding: 28px 16px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .menu-layout { padding: 12px; gap: 12px; }
  .menu-top { flex-direction: column; align-items: stretch; }
  .menu-title { font-size: 20px; }
  .search-box { min-width: unset; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .menu-section-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .food-thumb { height: 130px; font-size: 40px; }
  .food-thumb img { height: 130px; }
  .food-name { font-size: 13px; line-height: 1.3; }
  .food-price { font-size: 13px; }
  .food-body { padding: 10px 10px 8px; gap: 4px; }

  .cart-drawer { width: 100%; top: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 90vh; }
  .cart-drawer { transform: translateY(100%); }
  .cart-drawer.open { transform: translateY(0); }

  .checkout-layout { padding: 12px; gap: 12px; }
  .checkout-form-card, .checkout-summary-card { padding: 16px 14px; border-radius: var(--radius-lg); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section-heading { font-size: 17px; }

  .admin-layout { padding: 12px; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .orders-table th, .orders-table td { padding: 10px 12px; font-size: 13px; }
  .orders-table { display: block; overflow-x: auto; }

  .toast-container { bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

  .confirmation-page { margin: 20px auto; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }

  .pack-card-header { gap: 6px; }
  .pack-progress-wrap { min-width: 80px; }
  .active-pack-banner { font-size: 12px; padding: 8px 10px; }
}

@media (max-width: 480px) {
  .hero-cards { flex-direction: column; align-items: center; }
  .hero-card { width: 100%; max-width: 240px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .menu-section-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .food-thumb { height: 120px; font-size: 38px; }
  .food-thumb img { height: 120px; }
  .food-body { padding: 9px 9px 7px; gap: 4px; }
  .food-name { font-size: 12px; }
  .food-price { font-size: 12px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-opts { grid-template-columns: 1fr; }
  .add-btn { width: 28px; height: 28px; font-size: 17px; }
}

/* ================================================================
   SOUP PICKER MODAL
   ================================================================ */
.soup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.soup-modal-overlay.open { opacity: 1; }
.soup-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.soup-modal-overlay.open .soup-modal { transform: translateY(0); }
.soup-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.soup-modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.soup-modal-sub { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.soup-options { display: flex; flex-direction: column; gap: 8px; }
.soup-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  text-align: left;
}
.soup-option:hover { border-color: var(--brand); background: var(--brand-pale); }
.soup-option-emoji {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.soup-option-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-1); }
.soup-option-price { font-size: 13px; font-weight: 600; color: var(--brand); }

/* ================================================================
   MENU SECTIONS (grouped view)
   ================================================================ */
.menu-section { margin-bottom: 32px; width: 100%; }
.menu-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* ================================================================
   SOUP MODAL — ADDON + CONFIRM BUTTON
   ================================================================ */
.soup-option.selected {
  border-color: var(--brand);
  background: var(--brand-pale);
}
.soup-addon {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.soup-addon-label { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.soup-confirm-btn {
  width: 100%;
  margin-top: 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-ui);
  transition: all var(--transition);
  cursor: pointer;
}
.soup-confirm-btn:hover:not(:disabled) { background: var(--brand-dark); }
.soup-confirm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ================================================================
   MEAL BUILDER MODAL
   ================================================================ */
.meal-builder { max-height: 85vh; overflow-y: auto; }
.builder-section { margin-bottom: 16px; }
.builder-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.builder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.builder-row:last-child { border-bottom: none; }
.builder-row-emoji {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.builder-row-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.builder-row-name small { font-size: 11px; color: var(--text-3); font-weight: 400; }
.builder-plate-info {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--brand-pale);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--amber);
  border: 1px solid rgba(216,90,48,0.15);
}
.builder-plate-info strong { color: var(--brand-dark); }

/* ================================================================
   PACK PANEL
   ================================================================ */
#pack-panel { display: flex; flex-direction: column; gap: 12px; }

.pack-card {
  background: var(--surface);
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.pack-card.pack-full { border-color: var(--brand); }
.pack-card.pack-active { border: 2px solid var(--brand); box-shadow: 0 0 0 3px rgba(216,90,48,0.15); }

.pack-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pack-card-title { font-weight: 600; font-size: 14px; color: var(--text-1); white-space: nowrap; }

.pack-progress-wrap { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 120px; }
.pack-progress-bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.pack-progress-fill { height: 100%; background: var(--brand); border-radius: 99px; transition: width 0.3s ease; }
.pack-progress-label { font-size: 11px; color: var(--text-3); white-space: nowrap; }

.pack-remove-btn {
  background: none; border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  padding: 3px 8px; font-size: 11px; color: var(--red); cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.pack-remove-btn:hover { background: var(--red-bg); border-color: var(--red); }

.pack-portions { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.pack-portion-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); padding: 4px 0;
}
.pack-portion-row span:first-child { flex: 1; }

.pack-soup-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.pack-soup-select {
  flex: 1; border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  padding: 5px 8px; font-size: 13px; font-family: var(--font-body);
  background: var(--surface); color: var(--text-1); outline: none;
}
.pack-soup-select:focus { border-color: var(--brand); }

.pack-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border);
}

.add-pack-btn {
  width: 100%;
  padding: 11px;
  border: 2px dashed var(--border-md);
  border-radius: var(--radius-lg);
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.add-pack-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-pale); }

/* ================================================================
   ACTIVE PACK SYSTEM
   ================================================================ */
.pack-active {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px rgba(216,90,48,0.15);
}
.pack-active-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pack-switch-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.pack-switch-btn:hover { background: var(--brand-pale); border-color: var(--brand); }

/* Active pack banner above menu grid */
.active-pack-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--brand-pale);
  border: 1.5px solid rgba(216,90,48,0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--amber);
}
.active-pack-banner strong { color: var(--brand-dark); }
.pack-switch-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pack-switch-pill {
  background: var(--surface);
  border: 1.5px solid var(--border-md);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.pack-switch-pill:hover { border-color: var(--brand); color: var(--brand); }
.pack-switch-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pack-new-btn {
  margin-left: auto;
  background: none;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.pack-new-btn:hover { background: var(--brand); color: #fff; }

/* ── Login Gate ─────────────────────────────────────────────── */
.login-gate-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.login-gate-card .form-input {
  text-align: left;
}

/* ── Admin Order Cards — Mobile ─────────────────────────────── */
.order-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.order-card-left {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}
.order-card-right {
  padding: 14px 16px;
}

@media (max-width: 640px) {
  .order-card-grid {
    grid-template-columns: 1fr;
  }
  .order-card-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
  }
  .order-card-right {
    padding: 12px 14px;
  }
}

/* ── Admin Order Cards — Extra Polish ───────────────────────── */
.order-card-left .order-total-box {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
}

/* Week header revenue pill wraps on small screens */
@media (max-width: 480px) {
  .admin-layout { padding: 8px; }
  .order-card-left,
  .order-card-right { padding: 10px 12px; }

  /* Order header bar: stack order ID and time */
  .order-header-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .order-header-bar .order-time {
    margin-left: 0 !important;
  }

  /* Pack blocks smaller on mobile */
  .pack-block-inner {
    font-size: 12px;
  }

  /* Total box full width */
  .order-total-box {
    font-size: 13px;
  }
}

/* ── Admin Order Cards — Full Mobile Fix ────────────────────── */
#orders-tbody {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
#orders-tbody * {
  box-sizing: border-box;
  max-width: 100%;
  word-break: break-word;
}
.order-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}
.order-card-left {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.order-card-right {
  padding: 14px 16px;
  min-width: 0;
}
.order-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.order-time {
  font-size: 12px;
  color: var(--text-3);
  margin-left: auto;
}

@media (max-width: 640px) {
  .order-card-grid {
    grid-template-columns: 1fr;
  }
  .order-card-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
  }
  .order-card-right {
    padding: 12px 14px;
  }
  .order-time {
    margin-left: 0;
    width: 100%;
  }
}

/* ================================================================
   MOBILE RESPONSIVENESS — GLOBAL FIX
   ================================================================ */

/* Prevent any element from causing horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

/* ── Navbar mobile fix ──────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
    gap: 8px;
    height: 56px;
  }

  /* Hide login text, show only icon-style on mobile */
  #nav-user-info span {
    display: none;
  }
  #nav-user-info button {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Compact cart button */
  .cart-btn {
    padding: 7px 10px;
    font-size: 13px;
    gap: 5px;
  }

  /* nav-right stays compact */
  .nav-right {
    gap: 6px;
    flex-shrink: 0;
  }
}

/* ── Floating cart button on mobile ────────────────────────── */
@media (max-width: 480px) {
  /* Hide cart from navbar on very small screens */
  #cart-btn {
    display: none;
  }

  /* Floating cart button bottom-right */
  #floating-cart-btn {
    display: flex;
  }
}

/* Floating cart button — hidden on desktop */
#floating-cart-btn {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 199;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  cursor: pointer;
}
#floating-cart-btn .cart-count {
  background: #fff;
  color: var(--brand);
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Hero section mobile ────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .hero-card {
    flex: 1 1 120px;
    min-width: 100px;
    max-width: 160px;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ── Schedule strip mobile ──────────────────────────────────── */
@media (max-width: 480px) {
  .schedule-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    overflow-x: unset;
  }
  .schedule-item {
    padding: 12px 10px;
    white-space: normal;
  }
}

/* ── Menu layout mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  .menu-layout {
    padding: 10px;
    gap: 10px;
  }
  .menu-section {
    margin-bottom: 24px;
  }
  .menu-section-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  /* Login banner fits screen */
  #menu-login-banner > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ── Pack panel mobile ──────────────────────────────────────── */
@media (max-width: 480px) {
  .pack-card {
    padding: 10px;
  }
  .pack-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pack-progress-wrap {
    width: 100%;
    min-width: unset;
  }
}

/* ── Checkout mobile ────────────────────────────────────────── */
@media (max-width: 480px) {
  .checkout-layout {
    padding: 10px;
  }
  .checkout-form-card,
  .checkout-summary-card {
    padding: 14px 12px;
  }
  .delivery-opts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .pay-btn {
    font-size: 15px;
    padding: 14px;
  }
}

/* ── Cart drawer mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
  }
  .cart-body {
    padding: 12px 14px;
  }
  .cart-footer {
    padding: 12px 14px;
  }
  .cart-item {
    gap: 8px;
  }
  .cart-item-thumb {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .cart-item-name {
    font-size: 13px;
  }
  .cart-item-price {
    font-size: 12px;
  }
}

/* ── Soup / drink modals mobile ─────────────────────────────── */
@media (max-width: 480px) {
  .soup-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
  }
  .soup-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

/* ── Admin mobile ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .admin-tabs {
    gap: 4px;
  }
  .admin-tab {
    font-size: 12px;
    padding: 7px 10px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
  }
}

/* ── Confirmation page mobile ───────────────────────────────── */
@media (max-width: 480px) {
  .confirmation-page {
    padding: 16px 12px;
  }
  .confirm-details-card {
    padding: 14px 12px;
  }
  .order-id-card {
    padding: 16px 12px;
  }
}

/* ── Floating cart: show on mobile, hide navbar cart ─────────── */
@media (max-width: 480px) {
  #cart-btn { display: none !important; }
  #floating-cart-btn { display: flex !important; }
}

/* ── WhatsApp Support Float Button ──────────────────────────── */
#support-btn {
  position: fixed;
  bottom: 88px;
  right: 16px;
  z-index: 198;
  width: 48px;
  height: 48px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
#support-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.support-tooltip {
  position: absolute;
  right: 56px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#support-btn:hover .support-tooltip {
  opacity: 1;
}

/* On desktop, position support btn above floating cart area */
@media (min-width: 481px) {
  #support-btn {
    bottom: 24px;
    right: 80px;
  }
}

/* ================================================================
   SMOOTH ANIMATIONS + TRANSITIONS
   ================================================================ */

/* Page transitions */
.page { animation: pageFadeIn 0.35s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Food cards */
.food-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}
.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Buttons */
.btn-primary, .btn-secondary, .soup-confirm-btn, .add-btn, .cart-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn-primary:active, .btn-secondary:active,
.soup-confirm-btn:active, .add-btn:active {
  transform: scale(0.96);
}

/* Add button pulse when item added */
@keyframes addPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.add-btn.pulse { animation: addPulse 0.3s ease; }

/* Cart badge bounce */
@keyframes badgeBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.cart-count.bounce { animation: badgeBounce 0.35s ease; }

/* Celebration bounce */
@keyframes bounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* Modal slide up */
.soup-modal-overlay.open .soup-modal {
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Cart drawer smooth */
.cart-drawer { transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }

/* Pack panel fade in */
#pack-panel { animation: panelFade 0.3s ease both; }
@keyframes panelFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero badge pulse */
.pulse {
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

/* Floating buttons */
#floating-cart-btn, #support-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#floating-cart-btn:active { transform: scale(0.93); }

/* Category filter buttons */
.cat-btn { transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.cat-btn:active { transform: scale(0.95); }

/* Toast slide in */
.toast { animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Stock toggle */
.toggle { transition: background 0.25s ease; }

/* Admin order cards */
#orders-tbody > div { animation: pageFadeIn 0.4s ease both; }

/* ── Tour ───────────────────────────────────────────────────── */
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 4000px rgba(0,0,0,0.45), 0 0 0 3px #E85D26; }
  50%       { box-shadow: 0 0 0 4000px rgba(0,0,0,0.45), 0 0 0 6px #E85D26; }
}

/* Hide review footer on admin page */
#page-admin.active ~ footer,
body.admin-active footer {
  display: none !important;
}
