/* Shared storefront styles. Tenant colours and fonts arrive as CSS variables. */
:root {
  --bg: #111; --surface: #1a1a1a; --surface-2: #222; --border: rgba(255,255,255,.1);
  --text: #f5f5f5; --muted: rgba(245,245,245,.62); --accent: #ff7a18; --accent-2: #ff4d2e;
  --highlight: #ffd84d; --on-accent: #fff; --veg: #46a64f; --non-veg: #e2391d;
  --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif;
  --wa: #25d366; --wa-ink: #04230f;
  --radius: 18px; --gutter: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--highlight); color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
.link { color: var(--highlight); text-underline-offset: 3px; }

.preview-bar { background: var(--highlight); color: #1a1200; text-align: center; font-size: 13px; padding: 6px var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--on-accent); box-shadow: 0 18px 40px -20px var(--accent-2); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-wa { width: 100%; background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { box-shadow: 0 16px 36px -18px var(--wa); }
.btn-wa[disabled] { opacity: .6; cursor: progress; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 16px; }
.icon-btn:hover { border-color: var(--accent); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { font-size: 26px; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 20px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.cart-btn:hover { border-color: var(--accent); }
.cart-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 44px 0 36px;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%),
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 40%); }
.eyebrow { margin: 0 0 12px; color: var(--highlight); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 11vw, 88px); letter-spacing: .01em; max-width: 12ch; }
.hero-lede { margin: 16px 0 0; color: var(--muted); max-width: 56ch; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.highlights { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.highlights li { display: flex; flex-direction: column; }
.highlights b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--highlight); }
.highlights span { font-size: 13px; color: var(--muted); }

/* Category nav */
.catnav { position: sticky; top: 60px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.catnav-inner { padding-top: 10px; padding-bottom: 10px; display: grid; gap: 10px; }
.catnav-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-snap-type: x proximity; }
.catnav-scroll::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; scroll-snap-align: start; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters { display: flex; align-items: center; gap: 12px; }
.search { flex: 1; min-width: 0; }
.search input { width: 100%; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.search input::placeholder { color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); position: relative; transition: background .15s; }
.toggle-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.toggle input:checked + .toggle-ui { background: var(--veg); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--highlight); outline-offset: 2px; }

/* Menu */
.menu { padding-top: 28px; padding-bottom: 40px; outline: none; }
.category { margin-bottom: 40px; }
.category-head { margin-bottom: 16px; }
.category-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 32px; }
.category-head p { margin: 6px 0 0; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.item { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.item.no-media { grid-template-columns: 1fr; }
.item-media { grid-column: 2; grid-row: 1; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-body { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }
.item-tags { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.diet { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; display: inline-grid; place-items: center; flex-shrink: 0; }
.diet::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.diet-veg { color: var(--veg); }
.diet-nonveg { color: var(--non-veg); }
.diet-nonveg::after { border-radius: 0; width: 0; height: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--highlight) 18%, transparent); color: var(--highlight); }
.spice { font-size: 12px; letter-spacing: -2px; }
.item-name { margin-top: 8px; font-size: 17px; font-weight: 700; }
.item-desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-size: 22px; color: var(--highlight); letter-spacing: .02em; }
.btn-add { min-width: 88px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
.btn-add:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.stepper button { width: 36px; height: 38px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 18px; font-weight: 700; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; }
.sold-out { font-size: 13px; color: var(--muted); font-weight: 600; }
.item.is-sold-out { opacity: .55; }
.item[hidden], .category[hidden] { display: none; }
.no-results { color: var(--muted); text-align: center; padding: 40px 0; }

@media (min-width: 720px) {
  .catnav-inner { grid-template-columns: 1fr auto; align-items: center; }
  .filters { width: 340px; }
  .items { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .items { grid-template-columns: repeat(3, 1fr); }
  .item { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
  .item-media { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; border-radius: 0; }
  .item-body { grid-row: 2; padding: 14px 16px 16px; }
  .item.no-media .item-body { grid-row: 1; }
}

/* Visit */
.visit { border-top: 1px solid var(--border); padding: 36px 0; background: var(--surface); }
.visit-grid { display: grid; gap: 24px; }
.visit h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 22px; margin-bottom: 8px; }
.visit p { margin: 4px 0; color: var(--muted); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; max-width: 320px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
@media (min-width: 720px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.site-foot { padding: 24px 0 110px; color: var(--muted); font-size: 13px; }
@media (min-width: 720px) { .site-foot { padding-bottom: 32px; } }

/* Floating cart bar (phones) */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 60%, transparent); }
.cartbar-btn { width: 100%; max-width: 560px; margin: 0 auto; min-height: 54px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 16px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-weight: 600; cursor: pointer; box-shadow: 0 18px 40px -16px var(--accent-2); }
@media (min-width: 720px) { .cartbar { display: none; } }
.cartbar[hidden] { display: none; }

/* Drawer (native <dialog>) */
.drawer { margin: 0 0 0 auto; padding: 0; border: 0; width: 100%; max-width: 440px; height: 100dvh; max-height: 100dvh; background: var(--surface); color: var(--text); border-left: 1px solid var(--border); }
.drawer::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.drawer[open] { animation: slide-in .22s ease-out; }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-panel { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.cart-empty { color: var(--muted); text-align: center; padding: 48px 0; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.line-name { font-weight: 600; font-size: 15px; }
.line-each { color: var(--muted); font-size: 13px; }
.line-total { font-family: var(--font-display); color: var(--highlight); font-size: 18px; text-align: right; }
.line .stepper { height: 34px; justify-self: start; }
.line .stepper button { height: 34px; width: 32px; }

.checkout { margin-top: 20px; display: grid; gap: 16px; }
.checkout fieldset { border: 0; margin: 0; padding: 0; }
.checkout legend, .field { font-size: 14px; font-weight: 600; }
.checkout legend { margin-bottom: 8px; }
.field { display: grid; gap: 6px; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font-weight: 400; font-size: 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field [aria-invalid="true"] { border-color: var(--non-veg); }
.optional { color: var(--muted); font-weight: 400; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-weight: 600; font-size: 14px; }
.choice input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.choice input:focus-visible + span { outline: 2px solid var(--highlight); outline-offset: 2px; }
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--non-veg) 18%, transparent); color: var(--text); font-size: 14px; }
.form-error a { color: var(--highlight); }
.drawer-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: grid; gap: 10px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal span { color: var(--muted); }
.subtotal b { font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.fine { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }

/* Plain pages (404) */
.plain { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); }
.plain-card { max-width: 440px; text-align: center; }
.plain-card h1 { font-size: 32px; margin-bottom: 12px; }
.plain-card p { color: var(--muted); }
