/* =====================================================================
   Savasaachi Takeaway – customer website
   Direction: warm editorial food brand. Cream ground, deep ink text,
   Fraunces for the name & section titles, DM Sans for everything you read.
   The brand colour (Settings → Store & branding) drives every accent.
   ===================================================================== */
:root {
  --brand: #c2410c;
  --brand-ink: #fff;
  --brand-deep: color-mix(in srgb, var(--brand) 72%, #1a0d07);
  --brand-tint: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 16%, #fff);
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #6f665f;
  --line: #ece5dd;
  --soft: #f5efe8;
  --ok: #15803d;
  --warn: #b45309;
  --err: #b91c1c;
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(31, 26, 23, .05);
  --shadow-2: 0 10px 30px rgba(31, 26, 23, .08);
  --shadow-3: 0 24px 60px rgba(31, 26, 23, .18);
  --topbar-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-ui); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h2 { font-size: 1.15rem; font-weight: 700; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grow { flex: 1; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; color: var(--ink); background: var(--surface); transition: transform .08s, background .15s, box-shadow .15s, border-color .15s, filter .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-tint); }
.btn-light { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-light:hover { background: #fff7f1; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: var(--soft); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--ink); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--line); }

/* ---------- Announcement + top bar ---------- */
.announcement { background: var(--brand-deep); color: #fff; text-align: center; padding: 9px 16px; font-size: .9rem; font-weight: 500; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid rgba(31, 26, 23, .06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand img { height: 42px; width: auto; max-width: 140px; object-fit: contain; border-radius: 10px; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.top-cart { min-width: 64px; }
.top-cart.bump, .cart-fab.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(0, 0, 0, .22), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); }
.hero::before { /* fine dot texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%); mask-image: linear-gradient(90deg, transparent 20%, #000 75%); }
.hero.has-image { background: #120c09; }
.hero.has-image::before { opacity: 1; background: var(--hero-img) center/cover no-repeat; -webkit-mask-image: none; mask-image: none; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 12, 9, .88) 0%, rgba(18, 12, 9, .55) 55%, rgba(18, 12, 9, .25) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; margin: 18px 0 14px; text-wrap: balance; }
.hero-tag { margin: 0 0 28px; font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: rgba(255, 255, 255, .88); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-alert { margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .25); font-weight: 500; max-width: 52ch; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #fca5a5; }
.status-open i { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.hero-card { background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px; padding: 8px 18px;
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.hc-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.hc-row + .hc-row { border-top: 1px solid rgba(255, 255, 255, .14); }
.hc-row b { display: block; font-size: .98rem; }
.hc-row small { display: block; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.hc-ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.hc-ic svg { width: 20px; height: 20px; }

/* ---------- Category bar ---------- */
.cat-nav { position: sticky; top: var(--topbar-h); z-index: 30; background: rgba(251, 248, 244, .86); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid var(--line); }
.cat-nav-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.search { display: flex; align-items: center; gap: 8px; flex: 0 0 240px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 0; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.cat-scroller { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.cat-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px 0; }
.cat-links::-webkit-scrollbar { display: none; }
.cat-links a { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; transition: background .15s, color .15s; }
.cat-links a:hover { background: var(--soft); }
.cat-links a.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); }
.cat-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); font-size: 1.4rem; line-height: 1; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.cat-arrow:hover { background: var(--soft); }
.cat-arrow.left { left: -4px; }
.cat-arrow.right { right: -4px; }
.cat-scroller::before, .cat-scroller::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .15s; }
.cat-scroller::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.cat-scroller::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.fade-left .cat-scroller::before, .fade-right .cat-scroller::after { opacity: 1; }
.cat-all { position: relative; flex: 0 0 auto; }
.cat-all .btn { height: 44px; }
.cat-all-list { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; max-height: min(70vh, 520px); overflow-y: auto; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); padding: 6px; z-index: 30; }
.cat-all-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.cat-all-list a:hover { background: var(--soft); }
.cat-all-list small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Menu ---------- */
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; padding-top: 32px; padding-bottom: 72px; align-items: start; }
.menu-cat { margin-bottom: 44px; }
.cat-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.cat-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.95rem); letter-spacing: -.015em; text-transform: none; }
.cat-count { color: var(--muted); font-size: .9rem; font-weight: 500; }
.cat-schedule { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.cat-schedule svg { width: 14px; height: 14px; }
.cat-desc { color: var(--muted); margin: -6px 0 16px; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item-card { position: relative; display: flex; align-items: stretch; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.item-card:active { transform: translateY(0) scale(.995); }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-card h3 { font-size: 1.04rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -.005em; }
.item-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.price { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; margin-right: 2px; }
.price small { font-weight: 500; font-size: .78rem; color: var(--muted); }
.item-media { position: relative; flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: flex-end; }
.has-img .item-media { width: 116px; }
.item-img { width: 116px; height: 116px; border-radius: 14px; object-fit: cover; }
.item-add { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .15s; }
.item-add svg { width: 20px; height: 20px; }
.item-card:hover .item-add { transform: scale(1.08); }
.has-img .item-add { position: absolute; right: -6px; bottom: -6px; border: 3px solid #fff; width: 42px; height: 42px; }
.item-card.sold-out { cursor: not-allowed; box-shadow: none; }
.item-card.sold-out:hover { transform: none; border-color: var(--line); }
.item-card.sold-out .item-body, .item-card.sold-out .item-img { opacity: .5; }
.soldout-chip { align-self: flex-end; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.has-img .soldout-chip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag-popular { background: var(--brand-tint); color: var(--brand-deep); }
.tag-spicy { background: #fee2e2; color: #b91c1c; }
.tag-vegetarian, .tag-vegan { background: #dcfce7; color: #15803d; }
.tag-gluten-free { background: #e0f2fe; color: #0369a1; }
.tag-new { background: #ede9fe; color: #6d28d9; }
.chillies { display: inline-flex; gap: 1px; margin-left: 6px; vertical-align: -0.12em; white-space: nowrap; }
.chillies svg { width: 1.05em; height: 1.05em; }
.chillies .ch-body { fill: #e03131; }
.chillies .ch-stem { stroke: #2f9e44; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }

/* ---------- Basket ---------- */
.cart { position: sticky; top: calc(var(--topbar-h) + 84px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; max-height: calc(100vh - var(--topbar-h) - 104px); overflow: hidden; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.cart-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.cart-count { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; display: inline-grid; place-items: center; }
.cart-close { display: none; }
.cart-lines { overflow-y: auto; padding: 0 20px; flex: 1; }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 0 30px; color: var(--muted); }
.cart-empty b { color: var(--ink); font-size: 1rem; }
.cart-empty-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 8px; }
.cart-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--soft); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cart-line .opts { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.cart-line .lt { font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.mini-qty button { border: 0; background: none; width: 30px; height: 30px; cursor: pointer; font-size: 1.05rem; color: var(--brand); border-radius: 50%; }
.mini-qty button:hover { background: var(--brand-tint); }
.mini-qty span { min-width: 18px; text-align: center; font-size: .9rem; font-weight: 700; }
.cart-foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); background: #fffdfb; }
.cart-foot .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 1.02rem; }
.cart-foot .row strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.cart-hint { margin: 0 0 12px; font-size: .86rem; color: var(--warn); }
.hint-bar { display: block; height: 6px; border-radius: 999px; background: #fde7cf; margin-top: 6px; overflow: hidden; }
.hint-bar span { display: block; height: 100%; background: var(--warn); border-radius: 999px; }
.cart-fab { display: none; }

/* ---------- Item dialog ---------- */
.modal { border: 0; padding: 0; border-radius: 26px; width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-3); background: var(--surface); color: var(--ink); overflow: hidden; }
.modal[open] { animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal::backdrop { background: rgba(31, 26, 23, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { display: flex; flex-direction: column; max-height: calc(100vh - 40px); position: relative; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-1); }
.modal-img { width: 100%; height: 240px; object-fit: cover; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-body h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; padding-right: 44px; letter-spacing: -.015em; }
.allergen-line { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; font-size: .9rem; margin: 0 0 8px; }
.allergen-line small { color: var(--muted); }
.opt-group { margin: 20px 0; }
.opt-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.opt-group-head strong { font-size: 1rem; }
.req { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.req.need { background: var(--brand-tint); color: var(--brand-deep); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); flex: 0 0 auto; margin: 0; }
.opt .grow { font-size: .95rem; font-weight: 500; }
.opt .op { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.modal-foot { display: flex; gap: 12px; padding: 14px 24px 18px; border-top: 1px solid var(--line); align-items: center; background: #fffdfb; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; }
.qty-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); font-size: 1.2rem; cursor: pointer; color: var(--brand); box-shadow: var(--shadow-1); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.form-error { color: var(--err); padding: 0 24px 14px; margin: 0; font-size: .9rem; background: #fffdfb; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-3); opacity: 0; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Forms & cards (checkout, account, order pages) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .86rem; font-weight: 600; color: #3d3632; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea, .voucher input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .voucher input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.card h2 { font-size: 1.12rem; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .93rem; }
.alert-error { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert ul { margin: 0; padding-left: 18px; }

/* Checkout */
.checkout { padding-top: 24px; padding-bottom: 64px; }
.checkout h1 { margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; text-decoration: none; font-weight: 600; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: calc(var(--topbar-h) + 16px); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); padding: 5px; border-radius: 14px; margin-bottom: 16px; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; text-align: center; padding: 11px; border-radius: 10px; font-weight: 600; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.seg-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--brand); }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.pay-opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-opt span { display: flex; flex-direction: column; }
.pay-opt small { color: var(--muted); }
.summary-lines .sl { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.summary-lines .sl small { display: block; color: var(--muted); }
.voucher { display: flex; gap: 8px; margin-top: 14px; }
.voucher input { text-transform: uppercase; }
.totals .row { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.totals .discount { color: var(--ok); }
.totals .total { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--line); margin: 8px 0 14px; padding-top: 10px; }

/* Order tracking */
.order-hero { text-align: center; padding: 34px 22px; }
.order-hero h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.eta { font-size: 1.1rem; }
.progress { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.progress li { position: relative; font-size: .82rem; color: var(--muted); padding-top: 34px; }
.progress li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--soft); border: 2px solid var(--line); z-index: 1; }
.progress li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done span { background: var(--brand); border-color: var(--brand); }
.progress li.done::before { background: var(--brand); }
.progress li.current span { box-shadow: 0 0 0 6px var(--brand-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px var(--brand-tint); } }

/* Account */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.order-list { display: grid; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.order-row div { display: flex; flex-direction: column; }
.badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); white-space: nowrap; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-rejected, .badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-new, .badge-accepted, .badge-ready, .badge-out_for_delivery { background: #fef3c7; color: #92400e; }

/* Sign-in pages (glass) sit flush under the top bar */
.page-auth main { background: var(--bg); }
.page-auth .footer { margin-top: 0; }
.glass-scene { font-family: var(--font-ui); }
.glass-card h1 { font-family: var(--font-display); }

/* ---------- Footer ---------- */
.footer { background: #1b1411; color: #cfc4bb; padding: 56px 0 24px; margin-top: 24px; }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 40px; }
.f-name { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.f-tag { color: #a99d93; margin: 0 0 14px; }
.f-title { display: block; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer p { margin: 4px 0; }
.f-phone { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.hours { border-collapse: collapse; font-size: .92rem; width: 100%; max-width: 360px; }
.hours td { padding: 4px 14px 4px 0; vertical-align: top; }
.hours td:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: #fff; font-weight: 600; }
.today-pill { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: var(--brand); color: #fff; vertical-align: 1px; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-links a { color: #cfc4bb; text-decoration: none; }
.f-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #3a2e28; margin-top: 40px; padding-top: 18px; font-size: .85rem; color: #8f837a; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .item-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  /* basket becomes a bottom drawer + floating button */
  .menu-layout { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart { position: fixed; inset: auto 0 0 0; top: auto; border-radius: 24px 24px 0 0; max-height: 85vh; z-index: 55; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-3); border: 0; }
  .cart.open { transform: none; }
  .cart-close { display: inline-grid; }
  .cart-foot { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .cart-fab { display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; align-items: center; gap: 12px; padding: 15px 20px; border: 0; border-radius: 18px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 40%, rgba(0, 0, 0, .25)); }
  .cart-fab span:nth-child(2) { flex: 1; text-align: left; }
  .cart-fab-count { background: rgba(255, 255, 255, .22); border-radius: 8px; padding: 2px 9px; }
  body.page-menu { padding-bottom: 92px; }
  .toast { bottom: 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
  .hero-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding: 6px 18px; }
  .hc-row + .hc-row { border-top: 0; }
  .checkout-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 60px; }
  html { scroll-padding-top: 170px; }
  .wrap { padding: 0 16px; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.1rem; }
  .brand img { height: 36px; }
  .brand-name { font-size: 1.05rem; }
  .hide-xs { display: none; }
  .topnav .btn-sm { padding: 8px 12px; }

  /* search gets its own full-width row; categories scroll underneath */
  .cat-nav-inner { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .search { flex: 1 1 100%; order: 1; height: 42px; }
  .cat-scroller { order: 2; flex: 1 1 0; }
  .cat-all { order: 3; }
  .cat-all .btn { height: 38px; width: 38px; padding: 0; }
  .cat-all span { display: none; }
  .cat-arrow { display: none !important; }
  .cat-links a { padding: 8px 14px; font-size: .9rem; }
  .cat-all-list { position: fixed; left: 16px; right: 16px; width: auto; top: calc(var(--topbar-h) + 110px); }

  .hero-inner { padding-top: 32px; padding-bottom: 32px; gap: 22px; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); margin-top: 14px; }
  .hero-tag { margin-bottom: 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-card { grid-template-columns: 1fr; padding: 4px 16px; }
  .hc-row { padding: 11px 0; }
  .hc-row + .hc-row { border-top: 1px solid rgba(255, 255, 255, .14); }

  .menu-layout { padding-top: 22px; }
  .menu-cat { margin-bottom: 32px; }
  .item-grid { grid-template-columns: 1fr; gap: 10px; }
  .item-card { padding: 14px; }
  .has-img .item-media, .item-img { width: 96px; }
  .item-img { height: 96px; }

  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .modal-card { max-height: 92vh; }
  .modal-img { height: 200px; }
  .modal-body { padding: 20px; }
  .modal-foot { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); }
  .modal-foot .btn-lg { padding: 13px 16px; font-size: .98rem; }

  .field-row.two { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 18px; border-radius: 16px; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row > strong { grid-column: 2; }
  .progress li { font-size: .72rem; }
  .footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hours { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Phones: compact hero so the menu starts sooner */
@media (max-width: 640px) {
  .hero-card { grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 4px 14px; }
  .hc-row { padding: 10px 0; gap: 10px; align-items: flex-start; }
  .hc-row + .hc-row { border-top: 0; }
  .hc-row:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .hc-ic { flex-basis: 32px; height: 32px; border-radius: 10px; }
  .hc-ic svg { width: 17px; height: 17px; }
  .hc-row b { font-size: .9rem; }
  .hc-row small { font-size: .8rem; line-height: 1.35; }
  .status { font-size: .8rem; padding: 6px 12px; }
  .hero-cta .btn-lg { padding: 12px 16px; font-size: .95rem; }
}

/* ---------- Hero info card v2: solid white, two big tiles ---------- */
.hero-card {
  display: block; position: relative; color: var(--ink);
  background: #fff; border: 0; border-radius: 26px; padding: 22px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 30px 70px rgba(20, 8, 2, .35), 0 0 0 6px rgba(255, 255, 255, .14);
  transform: rotate(-1.2deg);
}
.hc-eyebrow { margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.hc-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: 18px;
  background: var(--brand-tint); color: var(--ink); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.hc-opt:hover { transform: translateY(-3px); background: var(--brand-soft); box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 22%, transparent); }
.hc-opt .hc-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: var(--brand); color: #fff; }
.hc-opt .hc-ic svg { width: 20px; height: 20px; }
.hc-label { font-weight: 700; font-size: .95rem; }
.hc-big { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; color: var(--brand); margin: 6px 0 4px; }
.hc-big small { font-family: var(--font-ui); font-size: .95rem; font-weight: 600; margin-left: 4px; color: var(--brand-deep); letter-spacing: 0; }
.hc-sub { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.hc-today {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--soft); font-size: .92rem; color: var(--ink);
}
.hc-today b { margin-right: 4px; }
.hc-today > span:nth-child(2) { flex: 1; min-width: 0; }
.hc-today svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; flex: 0 0 auto; }
.hc-today.status-open .hc-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.hero.has-image .hero-card { box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .12); }

@media (max-width: 960px) {
  .hero-card { transform: none; display: block; padding: 18px; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero-card { display: block; padding: 14px; border-radius: 22px; }
  .hc-eyebrow { margin-bottom: 10px; }
  .hc-options { gap: 10px; }
  .hc-opt { padding: 12px; border-radius: 16px; }
  .hc-opt .hc-ic { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 4px; }
  .hc-opt .hc-ic svg { width: 17px; height: 17px; }
  .hc-big { font-size: 2.1rem; }
  .hc-today { margin-top: 10px; padding: 10px 12px; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-card { transform: none; } }

/* ---------- Basket panel (opened from the top-bar button / "View order") ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 54; background: rgba(31, 26, 23, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
body.cart-open { overflow: hidden; }
.toast { z-index: 70; }

@media (min-width: 961px) {
  /* computers: slides in from the right as a floating panel */
  body.cart-open .cart {
    position: fixed; top: 16px; right: 16px; bottom: 16px; z-index: 60;
    width: min(420px, calc(100vw - 32px)); max-height: none;
    border: 0; border-radius: 24px; box-shadow: var(--shadow-3);
    animation: slideIn .28s cubic-bezier(.2, .8, .2, 1);
  }
  body.cart-open .cart-close { display: inline-grid; }
  body.cart-open .cart-head { padding: 22px 22px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  body.cart-open .cart-lines { padding: 0 22px; }
  body.cart-open .cart-foot { padding: 16px 22px 22px; }
  body.cart-open .cart-empty { padding-top: 60px; }
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.top-cart { position: relative; }
.top-cart.has-items::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; }
.allergy-field > span { color: #9a3412; }
.allergy-field input { background: #fff7ed; border-color: #fed7aa; }
.allergy-field input:focus { border-color: #f97316; }
