:root {
  --ink: #1e293b;
  --muted: #64748b;
  --paper: #fffdf8;
  --panel: #ffffff;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --blue: #2563eb;
  --green: #15803d;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
[hidden] { display: none !important; }
button, a { font: inherit; }
button, a[role="button"] { cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}
.shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 253, 248, 0.93);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(12px);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.04em; font-size: 22px; }
.brand span { color: var(--orange); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.text-link { color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 700; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.primary-button { color: #fff; background: var(--orange); }
.primary-button { padding: 13px 20px; }
.secondary-button { padding: 11px 16px; color: var(--orange-dark); background: #fff7ed; }
.primary-button:hover { background: var(--orange-dark); box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22); transform: translateY(-1px); }
.secondary-button:hover { background: #ffedd5; }
.content { width: min(720px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding-bottom: 12px; }
.hero-card {
  height: 220px;
  color: #fff;
  background: linear-gradient(145deg, #fb923c, #ea580c 62%, #9a3412);
  overflow: hidden;
}
.hero-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.hero-card-label { margin: 0; padding: 76px 24px 0; font-size: 12px; font-weight: 800; letter-spacing: 0.13em; text-align: center; text-transform: uppercase; opacity: 0.8; }
.hero-card p:last-child { margin: 8px 24px 0; font-size: 22px; font-weight: 800; text-align: center; }
.kitchen-summary { padding: 16px 0 8px; }
.name-row, .cuisine-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero h1 { min-width: 0; margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.04em; }
.rating { flex: 0 0 auto; color: var(--ink); font-size: 14px; font-weight: 700; }
.cuisine-row { justify-content: flex-start; margin-top: 6px; color: var(--muted); font-size: 14px; }
.home-kitchen-badge { padding: 2px 7px; color: var(--blue); background: #eff6ff; border-radius: 6px; font-size: 11px; font-weight: 700; }
.hero-copy { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.kitchen-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.status::before { width: 8px; height: 8px; content: ""; background: var(--green); border-radius: 50%; }
.status.closed::before { background: #94a3b8; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 4px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.section-heading p { display: none; }
.menu-grid { padding-bottom: 92px; }
.category { margin-top: 20px; }
.category:first-child { margin-top: 10px; }
.category h3 { margin: 0 0 2px; color: #9ca3af; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.menu-item h4 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.menu-item p { margin: 6px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.item-info { min-width: 0; }
.item-price { margin: 0; font-size: 15px; font-weight: 800; }
.veg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border: 2px solid var(--green); border-radius: 50%; }
.item-actions { display: flex; flex-direction: column; justify-content: flex-start; align-items: end; gap: 8px; min-width: 72px; }
.item-image { width: 64px; height: 64px; margin: 0 0 2px; object-fit: cover; border-radius: 8px; }
.empty-state, .loading-state, .error-state { padding: 40px 20px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 16px; }
.error-state { color: #b91c1c; border-color: #fecaca; background: #fff7f7; }
.footer { padding: 22px 0 34px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; text-align: center; }
.item-add { min-width: 64px; padding: 6px 12px; color: var(--orange-dark); background: transparent; border: 1px solid var(--orange-dark); border-radius: 8px; font-size: 12px; font-weight: 800; }
.item-add:hover { color: #fff; background: var(--orange); }
.item-add:disabled { color: #94a3b8; background: #e5e7eb; cursor: not-allowed; }
.cart-bar { position: fixed; right: 14px; bottom: 14px; left: 14px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(520px, calc(100% - 28px)); margin: auto; padding: 12px 12px 12px 16px; color: #fff; background: #1e293b; border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25); }
.cart-bar strong { display: block; }
.cart-bar small { color: #cbd5e1; }
.cart-bar[hidden] { display: none; }
.cart-panel { margin: 8px auto 32px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cart-panel[hidden] { display: none; }
.cart-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-panel h2 { margin: 0; font-size: 22px; }
.tracking-panel { margin-top: 12px; margin-bottom: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tracking-panel[hidden] { display: none; }
.tracking-panel .section-heading { margin-top: 0; }
.tracking-form { display: grid; gap: 12px; margin-top: 16px; }
.tracking-form label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.tracking-form input { width: 100%; padding: 12px 14px; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; }
.tracking-form input:focus { outline: 3px solid rgba(37, 99, 235, 0.18); border-color: var(--blue); }
.tracking-result { margin-top: 18px; padding: 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.tracking-result[hidden] { display: none; }
.tracking-status { display: inline-flex; padding: 5px 9px; color: #166534; background: #dcfce7; border-radius: 999px; font-size: 13px; font-weight: 800; }
.tracking-result p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.tracking-items { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; color: var(--ink); font-size: 14px; list-style: none; }
.tracking-result .secondary-button { margin-top: 14px; }
.cart-items { display: grid; gap: 10px; margin: 20px 0; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row strong, .cart-row span { display: block; }
.cart-row small { color: var(--muted); }
.quantity-control { display: inline-flex; align-items: center; gap: 8px; }
.quantity-control button { width: 28px; height: 28px; color: var(--ink); background: #fff7ed; border: 0; border-radius: 50%; font-weight: 800; }
.checkout-form { display: grid; gap: 12px; max-width: 620px; margin-top: 24px; }
.checkout-form label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.checkout-form input, .checkout-form select, .checkout-form textarea { width: 100%; padding: 12px 14px; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; }
.checkout-form textarea { min-height: 84px; resize: vertical; }
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus { outline: 3px solid rgba(37, 99, 235, 0.18); border-color: var(--blue); }
.checkout-total { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.form-error { padding: 10px 12px; color: #b91c1c; background: #fff7f7; border: 1px solid #fecaca; border-radius: 12px; }
.form-error[hidden] { display: none; }
.success-card { padding: 22px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 18px; }
.success-card h3 { margin: 0 0 8px; }
.success-card p { margin: 6px 0; }
.success-card a { color: #166534; font-weight: 800; }
.subtle-note { margin: 0; color: var(--muted); font-size: 13px; }
.verification-step { display: grid; gap: 10px; padding: 12px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; }
.verification-step p { margin: 0; color: #1e3a8a; font-size: 13px; }
.recaptcha-container { position: absolute; width: 0; height: 0; overflow: hidden; }
/* ── Live drop hero (plan §9.8) ─────────────────────────────────────── */
.drop-hero { margin: 4px auto 8px; padding: 18px; color: #fff; background: linear-gradient(140deg, #c2410c, #ea580c 55%, #9a3412); border-radius: 18px; box-shadow: var(--shadow); }
.drop-hero[hidden] { display: none; }
.drop-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drop-live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.drop-live-dot::before { width: 8px; height: 8px; content: ""; background: #fef08a; border-radius: 50%; }
.drop-hero.live .drop-live-dot::before { animation: drop-pulse 1.4s ease-in-out infinite; }
@keyframes drop-pulse { 50% { opacity: 0.3; } }
.drop-countdown { padding: 5px 11px; color: #7c2d12; background: #fef3c7; border-radius: 999px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.drop-hero h2 { margin: 12px 0 4px; font-size: 22px; letter-spacing: -0.03em; }
.drop-hero .drop-copy { margin: 0; color: #ffedd5; font-size: 14px; }
.drop-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.drop-plates { color: #fef3c7; }
.drop-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.drop-qty-label { font-size: 13px; font-weight: 800; }
.drop-chip { min-width: 44px; padding: 9px 14px; color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; font-weight: 800; }
.drop-chip:hover { background: rgba(255, 255, 255, 0.28); }
.drop-chip.selected { color: #7c2d12; background: #fef3c7; border-color: #fef3c7; }
.drop-chip:disabled { color: #fed7aa; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); cursor: not-allowed; }
.drop-action { margin-left: auto; padding: 10px 18px; color: #7c2d12; background: #fff; border-radius: 999px; font-weight: 800; }
.drop-action:disabled { color: #cbd5e1; background: #e5e7eb; cursor: not-allowed; }
.drop-dishes { display: grid; gap: 8px; margin-top: 14px; }
.drop-dishes[hidden] { display: none; }
.drop-dish { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 12px; }
.drop-dish.sold-out { opacity: 0.6; }
.drop-dish-info { display: grid; gap: 2px; }
.drop-dish-info strong { font-size: 14px; }
.drop-dish-info small { color: #ffedd5; font-size: 12px; font-weight: 700; }
.drop-dish-controls { display: flex; align-items: center; gap: 8px; }
.drop-dish-qty { min-width: 22px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.drop-alerts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.drop-alerts button, .drop-alerts a { padding: 7px 13px; color: #7c2d12; background: rgba(255, 255, 255, 0.9); border: 0; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; }
.drop-alerts .drop-alerts-note { color: #ffedd5; }
.drop-total { margin-top: 12px; font-size: 15px; font-weight: 800; }
.drop-upi { display: grid; gap: 8px; margin-top: 12px; padding: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.drop-upi[hidden] { display: none; }
.drop-upi strong { font-size: 15px; }
.drop-upi code { padding: 3px 7px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; word-break: break-all; }
.drop-upi .upi-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.drop-upi input { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.waiting-note { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .content { width: min(100% - 28px, 560px); }
  .topbar { padding-inline: 14px; }
  .text-link { display: none; }
  .hero-card, .hero-card img { height: 180px; }
  .hero h1 { font-size: 22px; }
  .cart-panel { padding: 18px; }
  .cart-row { grid-template-columns: 1fr auto; }
  .cart-row > :last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
