:root {
  /* the bright lotus red belongs to the logo only; the UI uses a deeper wine red from the same family */
  --logo: #E91637;
  --cta: #0B8641;        /* the "go" colour: View cart, Checkout, Place order, Continue (white on it: 4.7:1) */
  --cta-dark: #06703A;
  --brand: #A3182F;      /* primary buttons, cart bar, selected states (white on it: 7.7:1) */
  --brand-dark: #7E1024; /* text on tints */
  --brand-soft: #F7ECEC; /* quiet wine tint */
  --brand-line: #E5C5CB; /* wine-tinted borders */
  --brand-ring: rgba(163, 24, 47, .14);
  --saffron: #C2410C;    /* flame / Popular icon (5.2:1 on white) */
  --trend: #0B6B5D;
  --trend-soft: #DCF5EF;
  --turmeric: #f59f00;
  --ink: #2b1a10;
  --ink-2: #5c4a3d;
  --muted: #6f6055;      /* 5.8:1 on cream, 6.0:1 on white */
  --faint: #9b8b7e;      /* non-text marks (chevrons, dots, off switch): 3.2:1 */
  --line: #efe4da;
  --bg: #fffaf5;
  --card: #ffffff;
  --veg: #2b8a3e;
  --nonveg: #b0361b;
  --ok: #237032;         /* 5.4:1 on the green tint */
  /* add-to-cart is green, like the phone app; red stays for brand, paying and navigation */
  --add: #1A9F53;        /* borders, tints */
  --add-dark: #147A40;   /* text, and fills that carry white text (5.4:1) */
  --add-soft: #E9F7EF;
  --add-line: #A8DDBE;
  --danger: #c92a2a;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(80, 40, 10, 0.08);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--ink); background: #f3ebe3;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app {
  max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--bg);
  position: relative; padding-bottom: 110px; box-shadow: 0 0 40px rgba(0,0,0,.06);
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* splash */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 80% at 50% 30%, #f4405c 0%, var(--logo) 45%, #8f0b20 100%); color: #fff;
  transition: opacity .45s ease, visibility .45s;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash .logo { width: min(240px, 64vw); height: auto; margin: 0 auto 14px; animation: pop .7s cubic-bezier(.2,1.4,.4,1) both; }
.splash h1 { margin: 0; font-size: 26px; letter-spacing: 3px; font-weight: 700; animation: rise .6s .15s both; }
.splash p { margin: 6px 0 0; opacity: .85; font-size: 14px; animation: rise .6s .25s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
/* for elements centred with translateX(-50%): keep the centring while they rise */
@keyframes riseX { from { transform: translate(-50%, 10px); opacity: 0; } }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(255,250,245,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-color: var(--line); }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title b, .topbar .title h1 { display: block; font-size: 16px; margin: 0; line-height: 1.35; }
/* headings receive focus only so screen readers start at the new screen; no ring needed */
h1[tabindex="-1"]:focus { outline: none; }
.topbar .title small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandmark { display: flex; align-items: center; gap: 10px; flex: 1; margin: 0; font-size: inherit; }
.brandmark svg { width: 34px; height: 34px; }
.brandmark b { font-size: 15px; letter-spacing: 1.5px; }
.brandmark small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; text-decoration: none; position: relative;
}
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }

/* hero */
.hero {
  margin: 4px 16px 0; height: 168px; border-radius: 22px; overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--brand), #6E0F20);
}
.hero .plates { position: absolute; inset: 0; }
.hero .plate { position: absolute; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0%, #f7efe7 60%, #e6d6c6 100%); box-shadow: 0 10px 24px rgba(60,20,0,.35); }
.hero .plate span { filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
.hero .pattern { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(#fff 1.2px, transparent 1.3px); background-size: 14px 14px; }

.rest {
  margin: -34px 16px 0; position: relative; background: var(--card); border-radius: 20px; padding: 18px 16px 16px; box-shadow: var(--shadow);
}
/* first thing on the home page: Delivery or Takeaway, as a slim switch plus one info line */
.order-type { margin: 4px 16px 0; }
.order-type .seg { margin-top: 0; }
.order-type .seg button { min-height: 40px; padding: 6px 4px; font-size: 14px; }
.order-type .seg button svg { width: 18px; height: 18px; }
.typeinfo { display: flex; gap: 8px; align-items: flex-start; margin: 8px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.typeinfo svg { width: 16px; height: 16px; margin-top: 1px; color: var(--brand-dark); }
.typeinfo b { color: var(--ink); font-weight: 600; }
.typeinfo em { color: var(--brand-dark); font-style: normal; font-weight: 600; }
/* store status in the top bar: two short right-aligned lines, centred on the 40px profile button, 12px from it */
.topbar { gap: 8px; }
.store { height: 40px; margin: 0 4px 0 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; white-space: nowrap; }
.store-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; line-height: 16px; color: var(--ok); }
.store-t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.store.closed .store-t { color: var(--danger); }
.store-s { font-size: 11.5px; line-height: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .brandmark .wordmark { height: 30px; } }
.rest h1 { margin: 0; font-size: 22px; line-height: 1.2; }
.rest .tag { margin: 2px 0 10px; color: var(--muted); font-size: 13px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.pill.open { background: #e7f5ea; color: var(--ok); }
.pill.closed { background: #fdecec; color: var(--danger); }
.pill .star { color: var(--turmeric); }

.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; margin-top: 14px; background: #f6eee6; border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 9px 4px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(80,40,10,.1); }
/* search + tabs */
.search { margin: 14px 16px 0; position: relative; }
.search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 11px 16px 11px 42px; font-size: 16px; outline: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
/* home: one search (opens the Search screen) beside the veg filter */
.findbar { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; }
.search-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); font-size: 14px; text-decoration: none; }
.search-btn svg { width: 18px; height: 18px; }
.search-btn:hover { border-color: #e2d3c6; }
.findbar .vegonly { margin: 0; min-height: 44px; flex: none; cursor: pointer; }
.vegonly { display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; font-size: 13px; color: var(--ink-2); }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--faint); border-radius: 99px; transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--veg); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.tabs { position: sticky; top: 64px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; margin-top: 8px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: #fff; }
.tabs button::after { content: ''; position: absolute; inset: -2px -3px; } /* 44px tap target */
.tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* menu */
.section { padding: 18px 16px 4px; scroll-margin-top: 120px; }
.section h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.section > p { margin: 2px 0 12px; color: var(--muted); font-size: 12.5px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: left; border: 0; padding: 0; display: flex; flex-direction: column; }
.card .art { aspect-ratio: 1 / .8; }
.card-media { position: relative; }
.add-fab-wrap { position: absolute; right: 6px; bottom: 6px; z-index: 2; }
/* the dish name is the card's link: its hit area stretches over the whole card */
.card-link { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.card:hover .card-link { text-decoration: underline; text-underline-offset: 3px; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card .name { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: flex; gap: 6px; align-items: flex-start; }
.card .price { font-size: 13.5px; font-weight: 700; margin-top: auto; padding-top: 4px; }
.card .add-fab { position: absolute; right: 8px; bottom: 8px; }

/* the photo always fills its frame and never spills out of it */
.art { position: relative; overflow: hidden; display: grid; place-items: center; font-size: 46px; background: radial-gradient(circle at 35% 30%, #fff7ee 0%, #ffe0c2 55%, #f9c79a 100%); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.art.c1 { background: radial-gradient(circle at 35% 30%, #fff7ee, #ffd8b0 55%, #f6b27a); }
.art.c2 { background: radial-gradient(circle at 35% 30%, #fffbea, #ffe8a3 55%, #f5c84c); }
.art.c3 { background: radial-gradient(circle at 35% 30%, #fff5f0, #ffd2c2 55%, #f3a184); }
.art.c4 { background: radial-gradient(circle at 35% 30%, #f6fbf3, #dcefcf 55%, #b4d99c); }
.art.c5 { background: radial-gradient(circle at 35% 30%, #fff8f2, #f6dcc8 55%, #e3b391); }
.art.c6 { background: radial-gradient(circle at 35% 30%, #fff6fa, #f8d7e3 55%, #eaa9c1); }
.art.c7 { background: radial-gradient(circle at 35% 30%, #f3faff, #d5ebf7 55%, #9fcbe6); }
.art.soldout { filter: grayscale(1); opacity: .6; }

.row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .txt { flex: 1; min-width: 0; }
.row .name { font-weight: 600; font-size: 15px; margin: 4px 0 2px; }
.row .price { font-weight: 600; font-size: 14px; }
.row .desc { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .media { width: 118px; flex: none; position: relative; padding-bottom: 16px; }
.row .media .art { width: 118px; height: 108px; border-radius: 14px; font-size: 44px; border: 0; padding: 0; }
.row .media .addwrap { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); text-align: center; }
.row .media .custom { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; }

.chilli { font-size: 11px; letter-spacing: -2px; margin-left: 6px; vertical-align: 1px; }
.vmark { width: 15px; height: 15px; border: 1.5px solid var(--veg); border-radius: 3px; display: inline-grid; place-items: center; flex: none; margin-top: 2px; }
.vmark::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--veg); }
.vmark.nv { border-color: var(--nonveg); }
.vmark.nv::after { width: 0; height: 0; border-radius: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--nonveg); }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: #8f4a00; background: #fff1d6; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }

/* add-to-cart controls: green */
.add {
  position: relative; min-width: 92px; height: 38px; border-radius: 10px; border: 1px solid var(--add-line); background: #fff; color: var(--add-dark);
  font-weight: 700; font-size: 14px; box-shadow: 0 3px 10px rgba(80,40,10,.12); letter-spacing: .5px;
}
.add:hover:not(:disabled) { background: var(--add-soft); }
.add::after { content: ''; position: absolute; inset: -3px 0; } /* 44px tap target */
.add:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.add-fab { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--add-line); background: #fff; color: var(--add-dark); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.add-fab::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; } /* 44px tap target */
.add-fab svg { stroke-width: 2.6; }
.add-fab.has { background: var(--add-dark); border-color: var(--add-dark); color: #fff; font-weight: 700; font-size: 13px; }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 10px; background: var(--add-dark); color: #fff; box-shadow: 0 3px 10px rgba(20,122,64,.3); min-width: 96px; justify-content: space-between; }
.stepper button { position: relative; width: 40px; height: 100%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: 10px; }
.stepper button::after { content: ''; position: absolute; inset: -3px -2px; } /* 44px tap target */
.stepper button svg { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper span { font-weight: 700; min-width: 20px; text-align: center; font-size: 14px; }
.stepper.light { background: #fff; color: var(--add-dark); border: 1px solid var(--add-line); box-shadow: none; height: 38px; min-width: 100px; }
.btn.btn-add { background: var(--add-dark); }
.btn.btn-add:hover { background: #0f6634; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 46px; }
.fine { padding: 24px 16px; font-size: 11.5px; color: var(--muted); line-height: 1.6; border-top: 8px solid #f6eee6; margin-top: 18px; }

/* floating cart bar */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(428px, calc(100% - 32px)); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--cta); color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(11, 134, 65, .35); animation: riseX .25s both;
}
.cartbar .cnt { font-size: 12px; opacity: .9; }
.cartbar b { display: block; font-size: 16px; }
.cartbar .go { margin-left: auto; font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* bottom action bar */
.actionbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(460px, 100%); z-index: 30;
  background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(80,40,10,.06);
}
.totalrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; }
.totalrow b { font-size: 17px; color: var(--ink); }
.btn {
  width: 100%; border: 0; border-radius: 12px; padding: 14px; font-weight: 800; font-size: 16px;
  background: var(--cta); color: #fff; box-shadow: 0 6px 16px rgba(11, 134, 65, .28); display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { background: var(--cta-dark); }
.btn:disabled { background: #d8cbbf; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink-2); box-shadow: none; }
.btn.ghost:hover { background: #faf5f0; }
.btn.small { padding: 9px 14px; width: auto; font-size: 13px; border-radius: 10px; }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; padding: 0; font-size: 13px; }

/* sheet */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(30,15,5,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(460px, 100%); max-height: 92vh; background: var(--bg); border-radius: 22px 22px 0 0; overflow: hidden; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.9,.3,1) both; }
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
.sheet .scroll { overflow-y: auto; flex: 1; }
.sheet-art { position: relative; }
.sheet .art { height: 210px; font-size: 96px; }
.sheet .close { position: absolute; top: 12px; left: 12px; z-index: 1; background: #fff; border: 0; width: 44px; height: 44px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.sheet .head { padding: 16px; background: #fff; }
.sheet .head h3 { margin: 6px 0 4px; font-size: 20px; display: flex; gap: 8px; align-items: center; }
.sheet .head .price { font-weight: 700; color: var(--ink); }
.sheet:focus { outline: none; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.small-sheet .sheet-h h3 { margin: 0; }
.sheet .head p { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.group { margin-top: 8px; background: #fff; padding: 14px 16px; }
.group .gh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.group .gh b { font-size: 15px; }
.group .req { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #f6eee6; color: var(--ink-2); }
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.choice:last-child { border-bottom: 0; }
.choice span:first-of-type { flex: 1; }
.choice input { width: 19px; height: 19px; accent-color: var(--brand); margin: 0; }
.sheet .foot { display: flex; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.sheet .foot .btn { flex: 1; }
textarea, .field input, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; font-size: 16px; outline: none; resize: vertical;
}
textarea:focus, .field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }

/* steps */
.steps { display: flex; align-items: flex-start; padding: 6px 22px 14px; background: var(--bg); }
.steps .st { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); width: 54px; }
.steps .st i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d6c7ba; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.steps .st.done i, .steps .st.on i { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps .st.on { color: var(--ink); font-weight: 600; }
.steps .bar { flex: 1; height: 2px; background: #e2d6cb; margin-top: 10px; }
.steps .bar.done { background: var(--ink); }

/* panels */
.panel { background: #fff; margin: 0 16px 12px; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 10px; font-size: 15px; }
.panel .sub { color: var(--muted); font-size: 12px; margin: -6px 0 10px; }
.timecard { display: flex; gap: 14px; align-items: center; }
.timecard .ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; background: var(--brand-soft); flex: none; }
.timecard small { color: var(--muted); font-size: 12px; }
.timecard b { display: block; font-size: 16px; margin: 1px 0 4px; }

.line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-of-type { border-bottom: 0; }
.line .art { width: 54px; height: 54px; border-radius: 12px; font-size: 28px; flex: none; }
.line .lt { flex: 1; min-width: 0; }
.line .ln { font-weight: 600; font-size: 14px; display: flex; gap: 6px; }
.line .lo { font-size: 12px; color: var(--muted); margin-top: 2px; }
.line .note { font-size: 12px; color: var(--ink-2); font-style: italic; margin-top: 2px; }
.line .lr { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.line .lp { font-weight: 700; color: var(--ink); font-size: 14px; }
.line .warn { color: var(--danger); font-size: 12px; font-weight: 600; }

.sugg { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sugg::-webkit-scrollbar { display: none; }
.sugg .card { flex: 0 0 132px; box-shadow: none; border: 1px solid var(--line); }
.sugg .card .art { font-size: 36px; }

.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; border: 1px dashed var(--brand-line); border-radius: 10px; padding: 10px 12px; font-size: 16px; text-transform: uppercase; outline: none; background: #fffaf5; }
.coupon input:focus { border-style: solid; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 12px; }
.chip b { color: var(--brand-dark); }
.applied { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #e7f5ea; color: var(--ok); border-radius: 10px; font-size: 13px; font-weight: 600; }
.applied .link { margin-left: auto; color: var(--danger); }

.bill div { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; color: var(--ink-2); }
.bill .disc { color: var(--ok); }
.bill .tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; color: var(--ink); font-weight: 700; font-size: 15px; }
.notice { font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #8a5300; margin: 0 16px 12px; }
.notice.err { background: #fdecec; color: var(--danger); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--brand); background: #fff8f3; }
.radio-card input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.radio-card .ic { font-size: 22px; width: 30px; text-align: center; }
.radio-card b { display: block; font-size: 14px; }
.radio-card small { color: var(--muted); font-size: 12px; }

/* placing + tracking */
.placing { padding: 20px 16px; }
.placing .card2 { background: #fff; border-radius: 22px; padding: 26px 20px; box-shadow: var(--shadow); text-align: center; }
.placing .card2 .ill { font-size: 64px; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.placing h1 { margin: 10px 0 4px; font-size: 22px; }
.pcount { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pcount b { color: var(--ink); }
.pcount.paused { color: var(--ink); }
.progress { height: 5px; background: #f0e6dc; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); width: 0; }
.kv { text-align: left; margin-top: 18px; font-size: 13.5px; }
.kv .r { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.kv .r:last-child { border-bottom: 0; }
.kv .r svg { color: var(--muted); width: 18px; height: 18px; margin-top: 1px; }
.placing .btns { display: grid; gap: 10px; margin-top: 22px; }

.track-hero { margin: 4px 16px 12px; border-radius: 22px; padding: 22px 18px; color: #fff; background: linear-gradient(140deg, var(--brand), #6E0F20); position: relative; overflow: hidden; }
.track-hero.bad { background: linear-gradient(140deg, #6b5a50, #43362e); }
.track-hero.good { background: linear-gradient(140deg, #3aa356, #1f6b33); }
.track-hero .ill { position: absolute; right: 14px; top: 14px; font-size: 54px; opacity: .95; }
.track-hero small { opacity: .85; font-size: 12px; }
.track-hero h2 { margin: 4px 0 6px; font-size: 21px; padding-right: 70px; }
.track-hero p { margin: 0; opacity: .92; font-size: 13.5px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 32px; font-size: 14px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: #eadfd4; }
.timeline li:last-child::before { display: none; }
.timeline li i { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d6c7ba; background: #fff; }
.timeline li.done { color: var(--ink); }
.timeline li.done i { background: var(--ok); border-color: var(--ok); }
.timeline li.done::before { background: var(--ok); }
.timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.now i { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px rgba(163,24,47,.16); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(163,24,47,.04); } }
.timeline small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.stars { display: flex; gap: 6px; margin: 4px 0 12px; }
.stars button { background: none; border: 0; font-size: 32px; color: #e2d6cb; padding: 0; line-height: 1; }
.stars button.on { color: var(--turmeric); }

.ordercard { background: #fff; border-radius: var(--radius); margin: 0 16px 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.ordercard .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ordercard .top b { font-size: 14px; }
.ordercard .items { font-size: 13px; color: var(--ink-2); margin: 8px 0 12px; }
.ordercard .acts { display: flex; gap: 8px; }
.status { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--brand-soft); color: var(--brand-dark); }
.status.completed { background: #e7f5ea; color: var(--ok); }
.status.rejected, .status.cancelled { background: #f1ecea; color: #6b5a50; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; max-width: calc(100% - 40px); box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: riseX .2s both; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #f1e8df, #f8f2ec, #f1e8df); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 520px) { body { padding: 0; } }

/* header wordmark */
.brandmark .wordmark { width: auto; height: 36px; display: block; }
/* hero: real dish photos */
.hero .plate { overflow: hidden; border: 4px solid rgba(255,255,255,.9); }
.hero .plate img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lucide icon sizing */
.art .art-ic { width: 40%; height: 40%; stroke-width: 1.5; color: rgba(43,26,16,.35); }
.chilli { display: inline-flex; gap: 0; margin-left: 6px; vertical-align: -2px; color: #e8590c; letter-spacing: 0; }
.chilli svg { width: 13px; height: 13px; stroke-width: 2.2; fill: rgba(232,89,12,.18); }
.badge svg { width: 12px; height: 12px; stroke-width: 2.4; }
.badge.trend { color: var(--trend); background: var(--trend-soft); }
.pill svg.star { width: 13px; height: 13px; color: var(--turmeric); fill: var(--turmeric); }
.section h2 svg.hic { width: 20px; height: 20px; color: var(--ink-2); }
.section h2 svg.hic-trend { color: var(--trend); }
.section h2 svg.hic-flame { color: var(--saffron); }
.empty .big { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.empty .big svg { width: 32px; height: 32px; }
.timecard .ic { color: var(--brand); }
.timecard .ic svg { width: 30px; height: 30px; }
.radio-card .ic { display: grid; place-items: center; color: var(--ink-2); }
.radio-card .ic svg { width: 22px; height: 22px; }
.radio-card:has(input:checked) .ic { color: var(--brand); }
.placing .card2 .ill { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.placing .card2 .ill svg { width: 40px; height: 40px; }
.track-hero .ill { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); }
.track-hero .ill svg { width: 30px; height: 30px; }
.stars button svg, .stars span svg { width: 30px; height: 30px; stroke-width: 1.6; }
.stars button.on svg, .stars span.on svg { fill: currentColor; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .card { flex: 0 0 150px; scroll-snap-align: start; }

/* ================= bottom navigation ================= */
.bottomnav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40; width: min(460px, 100%);
  display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(80, 40, 10, .06);
}
.bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; }
.bottomnav a svg { width: 22px; height: 22px; stroke-width: 1.9; }
.bottomnav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.bottomnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.bottomnav .nb { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
body.has-nav .app { padding-bottom: 170px; }
body.has-nav .cartbar { bottom: 74px; }
body.has-nav .toast { bottom: 150px; }

/* profile button: 40px white circle, initials in wine, or a user icon in ink-2 */
.avatar-btn { flex: none; font-weight: 700; font-size: 13px; color: var(--brand-dark); background: #fff; border: 1px solid var(--line); text-decoration: none; }
.avatar-btn svg { color: var(--ink-2); }

/* favourite heart */
.fav::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; } /* 44px tap target */
.fav { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: pointer; }
.fav svg { width: 16px; height: 16px; stroke-width: 2.2; }
.fav[aria-pressed="true"] { color: var(--brand); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.row .media .art-btn { border: 0; padding: 0; background: none; border-radius: 14px; overflow: hidden; display: block; }
.sheet-title-row { display: flex; align-items: center; gap: 10px; }
.sheet-title-row h3 { flex: 1; }
.sheet-title-row .fav { position: relative; top: auto; right: auto; box-shadow: none; background: var(--brand-soft); width: 44px; height: 44px; flex: none; }
.sheet-title-row .fav::after { display: none; }

/* ================= sign in ================= */
.auth-hero { text-align: center; padding: 12px 24px 18px; }
.auth-hero img { border-radius: 14px; }
.auth-hero h1, .auth-hero h2 { font-size: 20px; margin: 12px 0 6px; }
.auth-hero p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.5; }
.auth-box { padding: 18px 16px; }
.phone-in { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.phone-in:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.phone-in span { display: grid; place-items: center; padding: 0 12px; background: #faf5f0; color: var(--ink-2); font-weight: 600; border-right: 1px solid var(--line); }
.field .phone-in input { border: 0; box-shadow: none; border-radius: 0; font-size: 16px; letter-spacing: .5px; }
.code-in { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 24px; letter-spacing: 12px; text-align: center; font-weight: 600; outline: none; }
.code-in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.step-t { font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }
.demo-hint { display: flex; gap: 8px; font-size: 12.5px; background: #eef4ff; color: #2b5cb8; padding: 10px 12px; border-radius: 10px; margin: 0 0 10px; }
.demo-hint svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.resend { display: block; margin: 12px auto 0; }
.resend:disabled { color: var(--muted); cursor: default; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.legal { font-size: 11.5px; color: var(--muted); text-align: center; margin: 16px 0 0; line-height: 1.5; }
.legal a { color: var(--ink-2); }

/* ================= profile ================= */
.prof-card { display: flex; align-items: center; gap: 14px; margin: 4px 16px 14px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.prof-card b { display: block; font-size: 16px; }
.prof-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.prof-card .btn svg { width: 14px; height: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar.xl { width: 56px; height: 56px; font-size: 20px; }
.avatar svg { width: 26px; height: 26px; }
.avatar.muted-av { background: #f3ede7; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 16px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: center; }
.tile svg { width: 24px; height: 24px; color: var(--ink-2); }
.tile small { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--muted); font-weight: 600; }
.list-group { margin: 0 16px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-group h3 { margin: 0; padding: 14px 16px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.li { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; border: 0; border-top: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.list-group h3 + .li, .list-group > .li:first-child { border-top: 0; }
a.li:hover, button.li:hover { background: #fffaf5; }
div.li { cursor: default; }
.li-ic { width: 36px; height: 36px; border-radius: 10px; background: #f6efe8; color: var(--ink-2); display: grid; place-items: center; flex: none; }
.li-ic svg { width: 18px; height: 18px; }
.li b { display: block; font-size: 14px; font-weight: 600; }
.li small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; line-height: 1.4; }
.li .chev { color: var(--faint); width: 18px; height: 18px; }
.li.danger b, .li.danger .li-ic { color: var(--danger); }
.li.danger .li-ic { background: #fdecec; }
.ver { text-align: center; color: var(--muted); font-size: 11.5px; margin: 6px 0 0; }
.grow { flex: 1; min-width: 0; }
.notice { display: flex; gap: 8px; align-items: center; }
.notice a { color: inherit; font-weight: 700; }
.notice svg { width: 16px; height: 16px; flex: none; }

/* small bottom sheets (name, address) */
.small-sheet .pad { padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
.small-sheet h3 { margin: 0 0 14px; font-size: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.row2 .btn.ghost { border: 1px solid var(--line); }
.label-chips { display: flex; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.chip svg { width: 14px; height: 14px; }
.chip[aria-checked="true"], .chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

/* addresses */
.addr-card { display: flex; gap: 12px; align-items: flex-start; margin: 0 16px 10px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.addr-card b { font-size: 14px; }
.addr-card p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.addr-acts { display: flex; gap: 4px; }
.addr-acts .btn { padding: 7px; border: 0; }
.addr-acts svg { width: 16px; height: 16px; }
.btn.ghost-red { background: #fff; color: var(--brand); border: 1.5px dashed var(--brand-line); box-shadow: none; }
.btn.ghost-red:hover { background: var(--brand-soft); }
.addr-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 12px; }
.save-addr { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.save-addr input { width: 17px; height: 17px; accent-color: var(--brand); }

/* help & about */
.faq { padding: 4px 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex: none; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.about-hero { text-align: center; padding: 10px 16px 18px; }
.about-hero p { color: var(--muted); margin: 8px 0 0; font-size: 13px; }

/* search */
.search-top { padding: 10px 16px; }
.sm-h { font-size: 15px !important; margin-bottom: 10px !important; }

/* ================= your orders ================= */
.list-h { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 16px 16px 10px; }
.oc { margin: 0 16px 12px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.oc.live { box-shadow: 0 0 0 1.5px var(--brand-line), var(--shadow); }
.oc-top { display: flex; gap: 12px; align-items: center; }
.oc-top b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-top small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.oc-pics { display: flex; flex: none; }
.oc-pics img, .oc-pics span { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.oc-pics img + img { margin-left: -18px; }
.oc-mid { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; }
.oc-mid b { font-size: 15px; }
.oc-items { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.oc-rated { margin: 6px 0 0; font-size: 13px; color: #8a5a00; }
.oc-acts { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.oc-acts .btn { flex: 1; }
.oc-acts .btn svg { width: 15px; height: 15px; }
.oc-acts .btn.ghost { border-width: 1px; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }

/* quiet "Need help?" link on the order page; cancelling lives inside its sheet */
.help-link { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 32px); margin: 4px 16px 24px; padding: 12px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.help-link svg { width: 17px; height: 17px; }
.cancel-link { display: block; width: 100%; margin-top: 14px; padding: 12px; background: none; border: 0; border-top: 1px solid var(--line, #EFE4DA); color: #C92A2A; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
