/* ============================================================================================
   Zara's Home Food — design system (Oct 2026 redesign)
   Appetite palette (6-Oct-2026): chilli red-orange for actions, saffron for highlights, fresh
   green for ADD / savings, on a warm cream background. Fraunces for display type,
   Plus Jakarta Sans for UI. Shared by the storefront (index.html) and admin (admin.html).
   ============================================================================================ */

:root {
  color-scheme: light;

  --bg: #fff8f1;
  --surface: #ffffff;
  --surface-2: #fff1e4;
  --line: #f3e3d3;
  --line-strong: #e8d2bc;

  --ink: #1f1a17;
  --ink-2: #5d534c;
  --ink-3: #8c8178;

  --brand: #d83a22;        /* chilli red-orange: appetite + urgency */
  --brand-ink: #a82a15;
  --brand-tint: #ffe8e1;
  --brand-grad: linear-gradient(135deg, #ff7a2f 0%, #e8432a 55%, #d0301b 100%);
  --accent: #f2a007;       /* saffron / turmeric: warmth, attention */
  --accent-tint: #fff2d4;
  --fresh: #12a150;        /* fresh green: ADD, savings, "go" */
  --fresh-ink: #0b7a3b;
  --fresh-tint: #e7f7ee;

  --veg: #1d8a4a;
  --egg: #d48a06;
  --nonveg: #b3261e;
  --success: #1d8a4a;

  /* legacy names still used by admin.html / older markup */
  --brand-dark: var(--brand-ink);
  --brand-light: var(--brand-tint);
  --card: var(--surface);
  --text: var(--ink);
  --muted: var(--ink-3);
  --border: var(--line);
  --gold: var(--accent);

  --font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(60, 35, 20, 0.06), 0 1px 1px rgba(60, 35, 20, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(60, 35, 20, 0.16), 0 2px 6px rgba(60, 35, 20, 0.05);
  --shadow-lg: 0 18px 48px -12px rgba(60, 35, 20, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --tabbar-h: 64px;
  --content-w: 680px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom, 0px));
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }

.ico {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 12px; height: 12px; stroke-width: 2.4; }

h1, h2, h3 { margin: 0; }
.muted { color: var(--ink-3); font-size: 0.9rem; }
.muted.small, .small { font-size: 0.8rem; }
.muted.small { margin-top: 10px; }

/* ---------- Install banner ---------- */

#install-banner { background: var(--surface-2); border-bottom: 1px solid var(--line); }
#install-banner[hidden] { display: none; }
.install-banner-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.install-banner-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }
#install-banner-text { flex: 1; }
.install-banner-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
#install-banner-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
#install-banner-btn[hidden] { display: none; }
#install-banner-dismiss {
  width: 32px; height: 32px;
  border: none;
  background: none;
  color: var(--ink-3);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
}

/* ---------- App bar (storefront) ---------- */

.app-bar { background: var(--bg); }
.app-bar-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 4px;
}
.deliver-to {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 4px 4px 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}
.ico-brand { color: var(--brand); width: 22px; height: 22px; }
.deliver-to-text { display: flex; flex-direction: column; min-width: 0; }
.deliver-to-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
#address-bar-text {
  font-size: 0.84rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62vw;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s var(--ease), background 0.15s var(--ease);
}
.account-btn:active { transform: scale(0.96); }
.account-btn.signed-in { background: var(--brand-tint); border-color: transparent; color: var(--brand-ink); }

/* ---------- Hero / brand card ---------- */

.hero { max-width: var(--content-w); margin: 0 auto; padding: 10px 16px 4px; }
body[data-mode]:not([data-mode="instant"]) .hero { display: none; }
.hero-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  /* soft turmeric glow in the corner — warmth without a stock photo */
  content: "";
  position: absolute;
  right: -60px; top: -70px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(217, 149, 15, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: center; gap: 14px; position: relative; }
.hero-logo { width: 56px; height: 56px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.hero-titles h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-titles p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.88rem; font-weight: 500; }

.trust-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.trust-strip:empty { display: none; }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--accent-tint);
  color: #8a5a00;
  font-weight: 800;
  font-size: 0.8rem;
}
.rating-badge .ico { fill: var(--accent); stroke: var(--accent); }
.trust-list { display: contents; list-style: none; }
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}
.trust-list .ico { color: var(--veg); }

.refer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px dashed rgba(217, 149, 15, 0.55);
  background: var(--accent-tint);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.refer-card[hidden] { display: none; }
.refer-card-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
}
.refer-card-text { flex: 1; display: flex; flex-direction: column; font-size: 0.8rem; color: var(--ink-2); }
.refer-card-text strong { font-size: 0.92rem; color: var(--ink); }

/* ---------- Menu toolbar (sticky search + veg + categories) ---------- */

.mode-section > main, .menu-toolbar-row, .category-nav, #repeat-order-banner { max-width: var(--content-w); }

.menu-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  margin-top: 14px;
}
.menu-toolbar-row { display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 10px 16px 8px; }

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
#menu-search {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 0.95rem;
  color: var(--ink);
}
#menu-search::placeholder { color: var(--ink-3); }

.veg-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; flex-shrink: 0; }
.veg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.veg-toggle-track {
  position: relative;
  width: 44px; height: 26px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s var(--ease);
}
.veg-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}
.veg-toggle-thumb .diet-mark { width: 11px; height: 11px; border-width: 1.5px; }
.veg-toggle-thumb .diet-mark::after { width: 4px; height: 4px; }
.veg-toggle input:checked + .veg-toggle-track { background: var(--veg); }
.veg-toggle input:checked + .veg-toggle-track .veg-toggle-thumb { transform: translateX(18px); }
.veg-toggle input:focus-visible + .veg-toggle-track { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.veg-toggle-label { font-size: 0.82rem; font-weight: 800; color: var(--ink-2); }

.category-nav[hidden] { display: none; }
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 auto;
  padding: 2px 16px 12px;
  scrollbar-width: none;
  scroll-padding: 0 16px;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.category-nav button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chip-media { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-left: -6px; }

/* ---------- Menu list ---------- */

main { max-width: var(--content-w); margin: 0 auto; padding: 0 16px 16px; }

.category-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: 130px;
}
.category-count { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; color: var(--ink-3); }

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.menu-item:last-of-type { border-bottom: none; }
.menu-item.has-photo { align-items: flex-start; }
.menu-item .info { flex: 1; min-width: 0; }
.dish-meta { display: flex; align-items: center; gap: 8px; min-height: 16px; margin-bottom: 4px; }
.menu-item .name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.menu-item .price { margin-top: 4px; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.menu-item .dish-desc {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 0.83rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-side { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.has-photo .dish-side { width: 124px; }
.dish-photo {
  width: 124px; height: 124px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.has-photo .item-action { margin-top: -20px; position: relative; }
.menu-item.sold-out .info, .menu-item.sold-out .dish-photo { opacity: 0.45; filter: grayscale(0.6); }

.bestseller-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #b06d00;
}
.bestseller-tag .ico { fill: var(--accent); stroke: var(--accent); }

/* Veg / egg / non-veg marks (Indian food-label convention) */
.diet-mark {
  display: inline-grid;
  place-items: center;
  width: 15px; height: 15px;
  flex: 0 0 auto;
  border: 1.6px solid var(--veg);
  border-radius: 3px;
  background: #fff;
  vertical-align: -2px;
}
.diet-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--veg); }
.diet-mark.diet-egg { border-color: var(--egg); }
.diet-mark.diet-egg::after { background: var(--egg); }
.diet-mark.diet-nonveg { border-color: var(--nonveg); }
.diet-mark.diet-nonveg::after {
  width: 8px; height: 7px;
  border-radius: 0;
  background: var(--nonveg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.add-btn {
  position: relative;
  width: 104px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.12s var(--ease), background 0.15s var(--ease);
}
.add-btn:hover { background: var(--brand-tint); }
.add-btn:active { transform: scale(0.95); }
.add-plus { position: absolute; top: 2px; right: 7px; font-size: 0.85rem; font-weight: 700; }

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 104px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: pop 0.22s var(--ease);
}
.qty-control button {
  width: 36px; height: 100%;
  border: none;
  background: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.qty-control button:active { background: rgba(0, 0, 0, 0.12); }
.qty-control .qty-num { font-weight: 800; font-size: 0.95rem; }

.sold-out-tag {
  display: inline-grid;
  place-items: center;
  width: 104px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-3);
  font-weight: 700;
  font-size: 0.8rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 56px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.88rem;
}
.empty-state .ico { width: 34px; height: 34px; color: var(--line-strong); margin-bottom: 4px; }
.empty-state strong { color: var(--ink); font-size: 1rem; }

.skeleton-item {
  height: 92px;
  margin: 14px 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.skeleton-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ---------- Repeat order / combo suggestion ---------- */

#repeat-order-banner { margin: 14px auto 0; padding: 0 16px; }
#repeat-order-banner[hidden] { display: none; }
.repeat-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.repeat-banner-inner strong { color: var(--ink); font-size: 0.95rem; }
#repeat-order-btn, #combo-add-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}
#repeat-order-btn:disabled { background: var(--success); cursor: default; }

#combo-suggestion {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 82px);
  z-index: 29;
  padding: 0 12px;
}
#combo-suggestion[hidden] { display: none; }
.combo-suggestion-inner {
  max-width: calc(var(--content-w) - 8px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px 10px 14px;
  font-size: 0.82rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-md);
}
#combo-add-btn { background: var(--accent); }

/* ---------- Floating cart bar ---------- */

.cart-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
  max-width: calc(var(--content-w) - 8px);
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--r-lg);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(140, 51, 32, 0.6);
  z-index: 30;
}
.cart-bar.visible { display: flex; animation: bar-in 0.32s var(--ease); }
@keyframes bar-in { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-info { display: flex; flex-direction: column; line-height: 1.2; }
.cart-info .cart-count { font-size: 0.74rem; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; }
.cart-info strong { font-size: 1.1rem; font-weight: 800; }
.cart-info.pop { animation: pop 0.25s var(--ease); }
.cart-bar button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 16px 11px 18px;
  border-radius: var(--r-md);
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}
.cart-bar button:active { background: rgba(255, 255, 255, 0.26); }

/* ---------- Bottom tab bar ---------- */

.mode-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 31;
  display: flex;
  justify-content: center;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.mode-btn {
  position: relative;
  flex: 1;
  max-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.mode-btn .mode-icon { width: 24px; height: 24px; }
.mode-btn.active { color: var(--brand); }
.mode-btn.active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 28px; height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 3px 3px;
  background: var(--brand);
}
.mode-btn:active .mode-icon { transform: scale(0.9); }

/* ---------- Form pages (Subscribe / Party / My orders) ---------- */

.form-page { max-width: var(--content-w); margin: 0 auto; padding: 20px 16px 40px; }
.form-page h2, .modal-sheet h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 6px;
}
.form-page > .muted { margin: 0 0 18px; }

.form-row { margin-bottom: 16px; }
.form-row > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}
.form-row input, .form-row select, .form-row textarea,
#sub-new-address-fields textarea, #sub-new-address-fields input[type=text],
#bulk-new-address-fields textarea, #bulk-new-address-fields input[type=text],
#chk-new-address-fields textarea, #chk-new-address-fields input[type=text],
#top-new-address-fields textarea, #top-new-address-fields input[type=text],
#lp-search {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
#sub-new-address-fields > *, #bulk-new-address-fields > *, #chk-new-address-fields > *, #top-new-address-fields > * { margin-bottom: 8px; }
.form-row textarea, [id$="-new-address-fields"] textarea { resize: vertical; min-height: 72px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
[id$="-new-address-fields"] textarea:focus, [id$="-new-address-fields"] input:focus, #lp-search:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c8178' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.primary-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 14px;
  border-radius: var(--r-md);
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(140, 51, 32, 0.65);
  transition: transform 0.12s var(--ease), opacity 0.15s var(--ease), background 0.15s var(--ease);
}
.primary-btn:hover { background: var(--brand-ink); }
.primary-btn:active { transform: scale(0.98); }
.primary-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

.secondary-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s var(--ease), transform 0.12s var(--ease);
}
.secondary-btn:active { transform: scale(0.98); background: var(--surface-2); }

.link-btn {
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
}

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.84rem; color: var(--ink-2); }
.checkbox-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }

.address-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.address-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.address-option input { margin-top: 3px; accent-color: var(--brand); width: auto; min-height: 0; }
.address-option .addr-label { font-weight: 800; }
.address-option .addr-text { color: var(--ink-2); }

.dev-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  color: #7a5000;
  font-size: 0.84rem;
  font-weight: 600;
}
.form-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #fdecea;
  color: var(--nonveg);
  font-size: 0.86rem;
  font-weight: 600;
}
.form-error[hidden] { display: none; }

.summary-line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; color: var(--ink-2); }
.summary-line[hidden] { display: none; }
.charges-toggle { width: 100%; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.charges-toggle > span:first-child { border-bottom: 1px dashed var(--ink-3, #999); }
.charges-toggle .chev { display: inline-block; font-size: 0.75em; transition: transform .2s; }
.charges-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.charges-detail { margin: -2px 0 10px; padding: 8px 12px 2px; background: var(--surface-2, #faf6f2); border-radius: 10px; }
.charges-detail .summary-line { font-size: 0.82rem; margin-bottom: 6px; }
.charges-detail small { color: var(--ink-3, #999); }
.summary-line.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.plan-card {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.plan-card .plan-price { color: var(--brand); font-weight: 800; font-size: 1.05rem; }
.plan-card.unavailable { background: var(--surface-2); box-shadow: none; }
.plan-card.unavailable .muted { margin: 0; }

.bulk-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 0.9rem;
  font-weight: 600;
}
.bulk-menu-item .muted { display: block; font-weight: 500; font-size: 0.8rem; }
.bulk-menu-item .qty-input {
  width: 64px;
  min-height: 40px;
  padding: 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  text-align: center;
  font-weight: 700;
}
#bulk-estimate { margin: 8px 0; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--ink-2);
}

/* ---------- Bottom sheets ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(31, 26, 23, 0);
  transition: background 0.24s var(--ease);
}
.modal-overlay.visible { display: flex; background: rgba(31, 26, 23, 0.5); }
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: var(--content-w);
  max-height: 90vh;
  overflow-y: auto;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateY(40px);
  opacity: 0;
  animation: sheet-in 0.32s var(--ease) forwards;
}
@keyframes sheet-in { to { transform: none; opacity: 1; } }
.sheet-handle { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 999px; background: var(--line-strong); }
.modal-sheet > .muted { margin: 0 0 16px; }
.close-x {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

#cart-items { margin: 10px 0 18px; }

.status-banner { text-align: center; padding: 36px 10px 20px; }
.status-banner .big-check {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e5f4ea;
  color: var(--success);
  font-size: 2.4rem;
  font-weight: 800;
  animation: pop 0.4s var(--ease);
}
.status-banner p { color: var(--ink-2); }

/* ---------- Referral / loyalty ---------- */

#referral-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--accent);
  background: var(--accent-tint);
}
#referral-code-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); }
#referral-share-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

#loyalty-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--accent-tint);
  font-size: 0.86rem;
  color: #6b4700;
}
#loyalty-banner[hidden] { display: none; }

/* ---------- Map picker ---------- */

.map-pick-btn {
  width: 100%;
  min-height: 46px;
  margin-bottom: 10px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--brand);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
.map-pick-btn[hidden] { display: none; }
#location-picker-overlay .modal-sheet { max-width: 520px; }
#lp-map { width: 100%; height: 300px; margin: 6px 0 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
#lp-resolved-box { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--brand-tint); }
#lp-resolved-box p { margin: 0; }

/* ---------- My orders ---------- */

.order-card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.order-card-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.order-card-header strong { font-size: 1rem; }
.order-card .items-line { margin: 6px 0; font-size: 0.88rem; color: var(--ink-2); }

.status-stepper { display: flex; align-items: flex-start; margin: 14px 0 8px; }
.status-step {
  position: relative;
  flex: 1;
  padding-top: 18px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-3);
}
.status-step::before {
  content: "";
  position: absolute;
  top: 2px; left: 50%;
  width: 12px; height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--line-strong);
  z-index: 1;
}
.status-step::after {
  content: "";
  position: absolute;
  top: 7px; left: -50%;
  width: 100%; height: 2px;
  background: var(--line-strong);
}
.status-step:first-child::after { display: none; }
.status-step.done { color: var(--ink-2); }
.status-step.done::before, .status-step.done::after, .status-step.current::after { background: var(--success); }
.status-step.current { color: var(--brand); font-weight: 800; }
.status-step.current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
}
.help-btn:active { background: var(--brand-tint); }

.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.order-actions button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}
.order-actions button.rated { border-color: var(--success); color: var(--success); }

.star-picker { display: flex; justify-content: center; gap: 8px; margin: 14px 0; font-size: 2.2rem; }
.star-btn { padding: 0; border: none; background: none; line-height: 1; color: var(--line-strong); cursor: pointer; transition: transform 0.12s var(--ease); }
.star-btn:active { transform: scale(0.85); }
.star-btn.filled { color: var(--accent); }
.stars-readonly { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.stars-readonly .empty { color: var(--line-strong); }

.issue-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.84rem;
}
.issue-card .issue-status { font-weight: 800; }
.issue-card .issue-status.open { color: var(--brand); }
.issue-card .issue-status.resolved { color: var(--success); }
.issue-card img { max-width: 120px; margin-top: 8px; border-radius: var(--r-sm); }
#issue-photo-preview { max-width: 160px; margin-top: 10px; border-radius: var(--r-sm); }

.rating-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: #7a5000;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ---------- AI chat (only shown when the owner switches it on) ---------- */

#chat-widget {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 40;
  transition: bottom 0.25s var(--ease);
}
#chat-widget[hidden] { display: none; }
#chat-widget.lifted { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 150px); }
#chat-toggle-btn {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
#chat-panel[hidden] { display: none; }
#chat-panel {
  position: absolute;
  right: 0; bottom: 64px;
  width: min(360px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
#chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
#chat-close-btn { border: none; background: none; font-size: 1.3rem; line-height: 1; color: var(--ink-3); cursor: pointer; }
#chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.chat-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bubble.chat-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.chat-assistant { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
#chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
#chat-input { flex: 1; min-height: 42px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.88rem; }
#chat-send-btn { padding: 9px 16px; border-radius: 999px; border: none; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; font-size: 0.85rem; }
#chat-send-btn:disabled { opacity: 0.6; cursor: default; }

.chat-recommendation { max-width: 92% !important; background: var(--surface) !important; border: 1px solid var(--brand) !important; }
.chat-recommendation .rec-note { margin: 0 0 8px; font-size: 0.85rem; color: var(--ink); }
.chat-recommendation .rec-note.rec-unmatched { margin-top: 8px; font-size: 0.78rem; color: var(--ink-3); }
.chat-recommendation .rec-items { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-recommendation .rec-items li { display: flex; justify-content: space-between; font-size: 0.85rem; }
.chat-recommendation .rec-total { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px dashed var(--line-strong); font-weight: 800; color: var(--ink); font-size: 0.9rem; }
.chat-recommendation .rec-add-btn { width: 100%; margin-top: 10px; padding: 10px; border-radius: var(--r-sm); border: none; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; font-size: 0.85rem; }
.chat-recommendation .rec-add-btn:disabled { background: var(--success); cursor: default; }

/* ---------- Admin dashboard header (admin.html) ---------- */

header.topbar {
  background: var(--ink);
  color: #fff;
  padding: 18px 16px 16px;
  text-align: center;
}
header.topbar h1 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
header.topbar p { margin: 6px 0 0; font-size: 0.82rem; opacity: 0.85; }

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: 18px; }
  .hero-card { padding: 22px 24px; }
  .hero-titles h1 { font-size: 2rem; }
  .menu-item { padding: 22px 0; }
  .modal-overlay { align-items: center; }
  .modal-sheet { max-width: 560px; border-radius: var(--r-xl); max-height: 86vh; }
  .sheet-handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Checkout cart lines ---------- */

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.cart-line-name { font-weight: 700; font-size: 0.9rem; line-height: 1.3; min-width: 0; }
.cart-line-name span { display: block; font-weight: 500; font-size: 0.78rem; color: var(--ink-3); }
.cart-line-total { min-width: 52px; text-align: right; font-weight: 800; font-size: 0.92rem; }
.qty-control.qty-sm { width: 88px; height: 34px; box-shadow: none; animation: none; }
.qty-control.qty-sm button { width: 30px; }

#checkout-overlay #place-order-btn {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -10px 20px 6px var(--bg), 0 10px 24px -10px rgba(140, 51, 32, 0.65);
}

/* ---------- Install: app-bar chip, iPhone guide, post-order suggestion ---------- */

.app-bar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.install-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.install-chip:active { transform: scale(0.96); }

.install-guide { text-align: center; }
.install-guide-icon { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 16px; box-shadow: var(--shadow-md); }
.install-guide > div > .muted { margin: 4px 0 18px; }
.install-steps { list-style: none; margin: 0 0 8px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.install-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.4;
}
.step-num {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 0.85rem;
}
.ico-inline { width: 18px; height: 18px; vertical-align: -4px; color: #007aff; }

.confirm-install {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}
.confirm-install img { width: 44px; height: 44px; border-radius: 11px; }
.confirm-install div { flex: 1; display: flex; flex-direction: column; font-size: 0.8rem; color: var(--ink-3); }
.confirm-install strong { font-size: 0.92rem; color: var(--ink); }
.confirm-install button {
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ---------- Kitchen closed / live order status (Oct 2026) ---------- */

.store-closed {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(var(--content-w) - 32px);
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
}
.store-closed div { display: flex; flex-direction: column; font-size: 0.82rem; opacity: 0.95; }
.store-closed strong { font-size: 0.95rem; }
.sc-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: #ff8a80; box-shadow: 0 0 0 4px rgba(255,138,128,0.25); }
@media (min-width: 720px) { .store-closed { margin-left: auto; margin-right: auto; } }
.add-btn:disabled { color: var(--ink-3); background: var(--surface-2); box-shadow: none; cursor: not-allowed; }
.sold-out-tag { flex-direction: column; line-height: 1.15; }
.sold-out-tag small { font-size: 0.66rem; font-weight: 600; }
.cart-bar.closed { background: var(--ink-2); }
.cart-bar button:disabled { opacity: 0.5; }

.order-eta { margin: 4px 0 0; font-size: 0.86rem; color: var(--ink-2); }
.order-rejected {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 4px;
  padding: 12px;
  border-radius: var(--r-md);
  background: #fdecea;
  color: #8a1c15;
  font-size: 0.84rem;
}
.order-rejected strong { font-size: 0.92rem; }
.kitchen-reply {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
  font-size: 0.84rem;
}
.kitchen-reply strong { font-size: 0.78rem; color: var(--brand-ink); }

/* ---------- Swiggy-style menu browsing (Oct 2026) ---------- */

.filter-chips { display: flex; gap: 8px; overflow-x: auto; max-width: var(--content-w); margin: 0 auto; padding: 0 16px 10px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.fchip .ico { color: var(--accent); fill: var(--accent); stroke: var(--accent); }
.fchip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.fchip .diet-mark { width: 13px; height: 13px; }

.section-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 22px 0 12px; }
.top-picks { margin: 0 -16px; padding: 0 0 6px; border-bottom: 8px solid var(--surface-2); }
.top-picks .section-title { padding: 0 16px; }
.picks-strip { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 16px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.picks-strip::-webkit-scrollbar { display: none; }
.pick-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pick-card img { width: 100%; height: 140px; object-fit: cover; }
.pick-art {
  height: 72px;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--brand-tint), var(--accent-tint));
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.pick-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.pick-body h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.3; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.pick-foot .add-btn, .pick-foot .qty-control, .pick-foot .sold-out-tag { width: 84px; height: 34px; font-size: 0.82rem; }

.dish-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #e5f4ea;
  color: #1d8a4a;
  font-size: 0.72rem;
  font-weight: 800;
}
.dish-rating .ico { fill: #1d8a4a; stroke: #1d8a4a; }
.dish-rating span { font-weight: 600; opacity: 0.8; }

.cat-section { border-bottom: 8px solid var(--surface-2); margin: 0 -16px; padding: 0 16px; scroll-margin-top: 150px; }
.cat-section:last-child { border-bottom: none; }
button.category-heading {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 20px 0 6px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.category-heading .chev { transition: transform 0.2s var(--ease); color: var(--ink-3); }
.cat-section.collapsed .chev { transform: rotate(-90deg); }
.cat-section.collapsed .cat-body { display: none; }
.cat-section.collapsed .category-heading { padding-bottom: 20px; }

.menu-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 28;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: bottom 0.25s var(--ease);
}
body.has-cart.has-combo .menu-fab { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 150px); }
.pick-foot .add-plus { right: 5px; }
body.has-cart .menu-fab { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 92px); }
body[data-mode]:not([data-mode="instant"]) .menu-fab { display: none; }
@media (min-width: 760px) { .menu-fab { right: calc(50% - var(--content-w) / 2 + 16px); } }
.cat-sheet .cat-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.cart-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.tool-btn input { accent-color: var(--brand); }
.section-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
#complete-meal { margin-bottom: 18px; }
.meal-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.meal-strip::-webkit-scrollbar { display: none; }
.meal-card {
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.meal-card img { width: 100%; height: 80px; object-fit: cover; border-radius: 10px; }
.meal-name { font-size: 0.8rem; font-weight: 700; line-height: 1.3; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meal-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 0.85rem; }
.meal-foot button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--brand); font-size: 1.1rem; font-weight: 800; cursor: pointer; }

/* ---------- Offers + free delivery (6-Oct-2026) ---------- */
.offers-row { display: flex; gap: 10px; overflow-x: auto; margin: 14px -18px -4px; padding: 0 18px 4px; scrollbar-width: none; position: relative; }
.offers-row::-webkit-scrollbar { display: none; }
.offer-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(29, 138, 74, 0.45);
  background: #f0f8f3;
  color: #1d6b3d;
}
.offer-card .ico { flex: 0 0 auto; color: #1d8a4a; }
.offer-card div { display: flex; flex-direction: column; line-height: 1.25; }
.offer-card strong { font-size: 0.82rem; color: var(--ink); }
.offer-card span { font-size: 0.74rem; }
.free-tag { color: #1d8a4a; font-weight: 800; }
#s-delivery s { color: var(--ink-3); font-weight: 500; }
.free-del-hint { margin: -4px 0 8px; padding: 8px 10px; border-radius: 10px; background: #f0f8f3; color: #1d6b3d; font-size: 0.8rem; font-weight: 700; }
.cart-info .cart-count { text-transform: none; letter-spacing: 0; font-size: 0.76rem; }

/* ---------- Payment choice + UPI pay screen (6-Oct-2026) ---------- */
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.pay-option input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand); }
.pay-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pay-text { display: flex; flex-direction: column; line-height: 1.25; }
.pay-text strong { font-size: 0.95rem; }
.pay-text small { color: var(--ink-3); font-size: 0.78rem; }

.upi-sheet { text-align: center; }
.upi-kicker { margin: 4px 0 2px; color: var(--success); font-weight: 800; font-size: 0.85rem; }
.upi-sheet h2 { font-size: 2rem; margin-bottom: 2px; }
.upi-sheet > .muted { margin: 0 0 16px; }
a.upi-pay-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.upi-qr-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 16px 0 12px; }
.upi-qr { width: 200px; height: 200px; padding: 10px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.upi-qr svg { width: 100%; height: 100%; display: block; }
.upi-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  font-size: 0.85rem;
}
.upi-id-row span { color: var(--ink-3); font-weight: 700; }
.upi-id-row strong { flex: 1; word-break: break-all; }
.upi-id-row button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 800; font-size: 0.78rem; cursor: pointer; }
.upi-utr { text-align: left; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.upi-utr label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.upi-utr input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.upi-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 4px; }
.upi-done .big-check { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e5f4ea; color: var(--success); font-size: 1.9rem; font-weight: 800; }

.pay-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.pay-status.ok { background: #e5f4ea; color: #1d6b3d; }
.pay-status.wait { background: var(--accent-tint); color: #7a5000; }
.pay-status.due { background: #fdecea; color: #8a1c15; }
.pay-status button { padding: 7px 12px; border: none; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: 0.78rem; cursor: pointer; }

/* ---------- Dish options ("Customisable") ---------- */
.custom-caption { display: block; margin-top: 4px; text-align: center; font-size: 0.7rem; color: var(--ink-3); }
.has-photo .custom-caption { margin-top: 2px; }
.menu-item .price small { font-weight: 500; color: var(--ink-3); font-size: 0.75rem; }
.opt-head { display: flex; align-items: center; gap: 8px; padding-right: 40px; }
.opt-head h2 { font-size: 1.25rem; margin: 0; }
.opt-list { display: flex; flex-direction: column; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt-row:last-child { border-bottom: none; }
.opt-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.opt-row.is-off { opacity: 0.5; cursor: not-allowed; }
.opt-label { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.opt-price { font-weight: 800; }
.opt-foot { display: flex; gap: 12px; align-items: center; }
.opt-foot .qty-control { flex: 0 0 110px; height: 52px; animation: none; }
.opt-foot .primary-btn { margin: 0; }

/* ---------- Appetite colour pass (6-Oct-2026) ---------- */

/* Warm band behind the top of the page: saffron glow into chilli, the brand card floats on it */
body[data-mode="instant"] .app-bar,
body:not([data-mode]) .app-bar { background: transparent; }
body[data-mode="instant"]::before,
body:not([data-mode])::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 210px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 196, 61, 0.55), transparent 60%),
    var(--brand-grad);
  border-radius: 0 0 28px 28px;
  z-index: -1;
}
body { position: relative; z-index: 0; }
body[data-mode="instant"] .deliver-to,
body:not([data-mode]) .deliver-to { color: #fff; }
body[data-mode="instant"] .deliver-to .ico-brand,
body:not([data-mode]) .deliver-to .ico-brand { color: #fff; }
body[data-mode="instant"] .deliver-to-label,
body:not([data-mode]) .deliver-to-label { color: #fff; }
body[data-mode="instant"] #address-bar-text,
body:not([data-mode]) #address-bar-text { color: rgba(255, 255, 255, 0.85); }
body[data-mode="instant"] .account-btn:not(.signed-in),
body:not([data-mode]) .account-btn:not(.signed-in) { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.45); color: #fff; box-shadow: none; }
body[data-mode="instant"] .account-btn.signed-in,
body:not([data-mode]) .account-btn.signed-in { background: #fff; color: var(--brand-ink); }
body[data-mode="instant"] .install-chip,
body:not([data-mode]) .install-chip { background: #fff; color: var(--brand-ink); }
.hero-card { box-shadow: 0 18px 40px -18px rgba(168, 42, 21, 0.45), 0 2px 6px rgba(60, 35, 20, 0.06); }
.hero-card::before { background: radial-gradient(circle, rgba(242, 160, 7, 0.22), transparent 65%); }

/* ADD = fresh green (positive, "go"); stepper filled green once added */
.add-btn { color: var(--fresh); border-color: #cfe9d9; }
.add-btn:hover { background: var(--fresh-tint); }
.qty-control { background: var(--fresh); }
.qty-control.qty-sm { background: var(--fresh); }
.meal-foot button { color: var(--fresh); }

/* Primary actions + cart bar: chilli gradient */
.primary-btn { background: var(--brand-grad); box-shadow: 0 12px 26px -12px rgba(216, 58, 34, 0.75); }
.primary-btn:hover { background: var(--brand-grad); filter: brightness(1.05); }
.cart-bar { background: var(--brand-grad); box-shadow: 0 16px 34px -12px rgba(216, 58, 34, 0.7); }
.cart-bar.closed { background: var(--ink-2); }
#repeat-order-btn, .confirm-install button, .pay-status button, #install-banner-btn { background: var(--brand-grad); }

/* Saffron highlights: bestseller, ratings badge, offers */
.bestseller-tag { color: #c2410c; }
.bestseller-tag .ico { fill: var(--accent); stroke: var(--accent); }
.rating-badge { background: var(--accent-tint); color: #8a5300; }
.dish-rating { background: var(--fresh-tint); color: var(--fresh-ink); }
.dish-rating .ico { fill: var(--fresh); stroke: var(--fresh); }
.offer-card { background: linear-gradient(135deg, #fff6df, #ffeccf); border-color: rgba(242, 160, 7, 0.55); color: #8a5300; }
.offer-card .ico { color: #e07a00; }
.free-tag, .free-del-hint { color: var(--fresh-ink); }
.free-del-hint { background: var(--fresh-tint); }

/* Category headings: small saffron underline accent */
.category-heading > span:first-child { position: relative; }
.cat-section .category-heading > span:first-child::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 28px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.section-title { position: relative; }
.pick-art { background: linear-gradient(135deg, #ffb347 0%, #ff7a2f 55%, #e8432a 100%); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.pick-card { box-shadow: 0 14px 30px -16px rgba(168, 42, 21, 0.35); }

/* Chips: active = chilli */
.category-nav button.active { background: var(--brand); border-color: var(--brand); }
.fchip.active { background: var(--brand); border-color: var(--brand); }
.mode-btn.active { color: var(--brand); }
.menu-fab { background: #2b1d17; }

/* ---------- Footer: legal details (FSSAI) ---------- */
.site-footer { display: flex; flex-direction: column; gap: 3px; max-width: var(--content-w); margin: 8px auto 0; padding: 22px 16px 8px; border-top: 1px dashed var(--line-strong); color: var(--ink-3); font-size: 0.75rem; line-height: 1.45; }
.site-footer strong { color: var(--ink-2); font-size: 0.82rem; }
.site-footer .fssai { font-weight: 700; color: var(--ink-2); }
body[data-mode]:not([data-mode="instant"]) .site-footer { display: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.footer-links a { color: var(--ink-2); font-weight: 600; }

.cancel-order-btn { margin-top: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--nonveg); background: var(--surface); color: var(--nonveg); font-weight: 800; font-size: 0.82rem; cursor: pointer; }
.order-cancelled { background: var(--surface-2); color: var(--ink-2); }

.bill-mini { font-size: 0.78rem; color: var(--ink-3); margin: 4px 0; }
.bill-mini summary { cursor: pointer; }
.bill-mini div { padding: 4px 0 0 14px; }
