:root {
  --accent: #ff5a36;
  --accent-2: #e74625;
  --ink: #171717;
  --muted: #77736e;
  --bg: #f6f5f2;
  --surface: #fff;
  --surface-2: #f0efeb;
  --line: #e7e4de;
  --success: #2e8b57;
  --warning: #e0a21a;
  --shadow: 0 16px 45px rgba(24, 20, 16, 0.08);
  --radius: 24px;
  --header: 72px;
  --cat-nav: 64px;
  --menu-scroll-offset: calc(var(--header) + var(--cat-nav) + 14px);
  --nav: 76px;
  --wrap: 1244px;
}
[data-theme="dark"] {
  --ink: #f7f5f2;
  --muted: #aaa39b;
  --bg: #11110f;
  --surface: #1c1b18;
  --surface-2: #292722;
  --line: #38342f;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom));
  transition: background 0.25s, color 0.25s;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, .heading { font-family: "Plus Jakarta Sans", sans-serif; margin: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(255, 90, 54, 0.3);
  outline-offset: 2px;
}
.hidden { display: none !important; }

.app { max-width: 1280px; margin: 0 auto; }

/* Top bar */
.topbar {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--accent, #ff6b45);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 90, 54, 0.25); font-size: 14px;
  overflow: hidden; flex-shrink: 0;
}
.logo.has-image {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.logo img {
  width: 100%; height: 100%; object-fit: contain; display: block; padding: 3px;
  background: #ffffff;
}
.brand-name { font-weight: 800; font-size: 15px; line-height: 1.1; }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }
.actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  position: relative; font-size: 16px; transition: background 0.2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.profile { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge {
  position: absolute; right: -4px; top: -5px; background: var(--accent); color: #fff;
  border: 2px solid var(--surface); border-radius: 999px; min-width: 19px; height: 19px;
  padding: 0 5px; font-size: 10px; display: grid; place-items: center; font-weight: 800;
}
.dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); border: 1.5px solid var(--surface);
}

.content { padding: 0 18px; max-width: 1280px; margin: 0 auto; }

/* Hero */
.hero {
  margin: 18px auto 0; max-width: var(--wrap); height: clamp(280px, 42vw, 420px);
  border-radius: 30px; overflow: hidden; position: relative; background: #222;
}
.hero-slide { display: none; position: absolute; inset: 0; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 72%);
  pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 2; left: clamp(22px, 5vw, 72px);
  bottom: clamp(26px, 5vw, 60px); max-width: 580px; color: #fff;
}
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; opacity: 0.8; }
.hero h1 { font-size: clamp(30px, 5vw, 64px); line-height: 1.05; margin: 10px 0 14px; }
.hero p { max-width: 480px; line-height: 1.6; opacity: 0.84; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 800; transition: 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); }
.hero-dots { position: absolute; z-index: 3; bottom: 20px; right: 24px; display: flex; gap: 6px; }
.hero-dots button { width: 7px; height: 7px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.5); padding: 0; cursor: pointer; }
.hero-dots button.active { width: 22px; background: #fff; }

/* Search */
.search-row { display: flex; gap: 12px; align-items: center; margin: 22px auto 0; max-width: var(--wrap); }
.search { flex: 1; position: relative; min-width: 0; }
.search input {
  width: 100%; height: 54px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 18px; padding: 0 48px; color: var(--ink); font-size: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); font-size: 20px; display: none;
}

/* Sections */
.section { max-width: var(--wrap); margin: 30px auto 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.section-head h2 { font-size: 22px; }
.section-head small { color: var(--muted); font-size: 13px; }
.see { color: var(--accent); font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* Offers */
.offer-row {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  touch-action: pan-x pan-y; scroll-snap-type: x proximity;
}
.offer-row::-webkit-scrollbar { display: none; }
.offer {
  flex: 0 0 300px; min-height: 150px; border-radius: 22px; padding: 20px; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow); scroll-snap-align: start;
  flex-shrink: 0;
}
.offer::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  right: -55px; top: -60px; background: rgba(255, 255, 255, 0.12); pointer-events: none;
}
.offer .hot-badge {
  position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px); padding: 2px 12px; border-radius: 30px;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
}
.offer .discount { font-size: 32px; font-family: "Plus Jakarta Sans"; font-weight: 800; line-height: 1; }
.offer h3 { font-size: 15px; margin-top: 6px; }
.offer p { font-size: 12px; opacity: 0.85; margin: 5px 0 0; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 8px; }
.offer-foot .valid { font-size: 11px; opacity: 0.75; }
.offer button {
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.14);
  color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.offer:nth-child(5n+1) { background: linear-gradient(135deg, #ff6a45, #d83d20); }
.offer:nth-child(5n+2) { background: linear-gradient(135deg, #e8a72e, #bb7311); }
.offer:nth-child(5n+3) { background: linear-gradient(135deg, #218c8e, #126164); }
.offer:nth-child(5n+4) { background: linear-gradient(135deg, #9162a5, #603675); }
.offer:nth-child(5n+5) { background: linear-gradient(135deg, #679b56, #376d2d); }
.offers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.offers-grid .offer { flex: none; min-width: 0; min-height: 130px; }

/* Bento categories — 2 columns on mobile/tablet, 3 on large desktop */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento-tile {
  position: relative; border-radius: 18px; overflow: hidden; height: 118px; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s;
}
.bento-tile:hover { transform: translateY(-2px); }
.bento-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 10, 8, 0.72) 100%); }
.bento-chip {
  position: absolute; left: 10px; bottom: 10px; color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}
.bento-chip .swatch { width: 7px; height: 7px; border-radius: 2px; }
.bento-count {
  position: absolute; top: 10px; right: 10px; background: var(--surface);
  color: var(--ink); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px;
}

/* Bestsellers — circular cards with floating add button (V1 C pattern) */
.bestseller-row {
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 4px 14px; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.bestseller-row::-webkit-scrollbar { display: none; }
.best-card {
  flex: 0 0 auto; width: 104px; text-align: center; cursor: pointer;
  scroll-snap-align: start;
}
.best-photo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto;
}
.best-photo {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.best-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.best-add {
  position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 2px solid var(--surface); font-size: 16px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1;
  padding: 0; z-index: 3; box-shadow: 0 2px 8px rgba(255, 90, 54, 0.35); cursor: pointer;
  transform: translate(12%, 12%);
}
.best-name {
  font-size: 12px; font-weight: 700; margin-top: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.best-price { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.bestseller-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 6px 0;
}
.bestseller-grid .best-item { text-align: center; cursor: pointer; }
.bestseller-grid .best-photo-wrap {
  position: relative; width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; margin: 0 auto;
}
.bestseller-grid .best-photo {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.bestseller-grid .best-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bestseller-grid .best-add {
  position: absolute; bottom: 0; right: 0; transform: translate(12%, 12%);
}
.bestseller-grid .best-item .best-name { margin-top: 6px; }
.bestseller-grid .best-item .best-price { margin-top: 1px; }

/* Category nav — sticky wrapper + inner scroll row (fixes iOS mWeb horizontal swipe) */
.menu-main { min-width: 0; }
.category-nav-wrap {
  position: sticky;
  top: var(--header);
  z-index: 20;
  margin: 0 0 18px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.category-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
  padding: 12px 0;
  max-width: 100%;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 10px 15px; white-space: nowrap; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: 0.2s; scroll-snap-align: start;
}
.cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Menu layout */
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.category-section { scroll-margin-top: var(--menu-scroll-offset); }
.category-label {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 12px;
  scroll-margin-top: var(--menu-scroll-offset);
}
.category-label .swatch { width: 9px; height: 9px; border-radius: 3px; }
.category-label h3 { font-size: 16px; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.item-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 10px;
  display: flex; gap: 12px; min-height: 132px; transition: 0.2s; cursor: pointer; align-items: stretch;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item-photo { width: 100px; height: 100px; border-radius: 16px; overflow: hidden; position: relative; flex: 0 0 100px; align-self: center; }
.item-photo > img { width: 100%; height: 100%; object-fit: cover; }
.veg {
  position: absolute; left: 6px; top: 6px; background: rgba(255, 255, 255, 0.92);
  border-radius: 7px; padding: 4px;
}
.veg i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #278a47; }
.veg.nonveg i { background: #c63c2c; }
.fav-mini {
  position: absolute; bottom: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: transparent; border: none; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; line-height: 0;
}
.item-body {
  flex: 1 1 auto; min-width: 0; width: 100%;
  display: flex; flex-direction: column; gap: 4px; padding: 2px 0;
}
.item-name { font-weight: 800; font-size: 14px; line-height: 1.25; }
.item-desc {
  font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1 1 auto;
}
.item-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
}
.item-bottom .price { justify-self: start; text-align: left; }
.item-bottom .add-pill,
.item-bottom .qty { justify-self: end; margin-left: 0; }
.price { font-weight: 800; font-size: 14px; }
.add-pill {
  border: 0; background: rgba(255, 90, 54, 0.12); color: var(--accent-2);
  border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 12px; white-space: nowrap;
  justify-self: end;
}
.item-bottom .qty { justify-self: end; white-space: nowrap; }
.add { border: 0; background: var(--accent); color: #fff; width: 36px; height: 36px; border-radius: 12px; font-size: 20px; }
.qty { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.qty button { border: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 800; }
.qty span { min-width: 16px; text-align: center; font-weight: 800; }
.no-results { text-align: center; padding: 50px 20px; color: var(--muted); grid-column: 1 / -1; }

/* Side cart */
.side-cart {
  position: sticky; top: calc(var(--header) + 20px); align-self: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); overflow: hidden;
}
.cart-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-head h3 { font-size: 18px; }
.cart-body { padding: 0 18px; max-height: 360px; overflow-y: auto; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; line-height: 1.6; }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-weight: 800; font-size: 13px; }
.cart-price { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cart-total { font-weight: 800; font-size: 13px; white-space: nowrap; }
.summary { padding: 18px; border-top: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 13px; }
.summary-row.total { font-size: 18px; font-weight: 800; margin-top: 14px; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.coupon button { border: 0; background: var(--ink); color: var(--surface); border-radius: 12px; padding: 0 14px; font-weight: 800; white-space: nowrap; }
.coupon-msg { font-size: 12px; margin-top: -8px; margin-bottom: 8px; }
.cta {
  width: 100%; border: 0; background: var(--accent); color: #fff; border-radius: 14px;
  padding: 14px; font-weight: 800; font-size: 14px; transition: 0.2s;
}
.cta:hover:not(:disabled) { background: var(--accent-2); }
.cta:disabled { opacity: 0.45; cursor: not-allowed; }

/* Bottom nav */
.bottom-nav {
  position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; height: var(--nav);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: clamp(10px, 8vw, 100px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.nav-item {
  border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; min-width: 62px; position: relative;
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-item .nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; line-height: 0; font-size: 20px;
}
.nav-icon-img,
.cart-icon-nav {
  width: 22px; height: 22px; display: block; object-fit: contain; pointer-events: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.nav-item:not(.active) .nav-icon-img,
.nav-item:not(.active) .cart-icon-nav {
  filter: grayscale(0.15) brightness(1.02);
  opacity: 0.9;
}
.nav-item.active {
  color: var(--accent);
  opacity: 1;
}
.nav-item.active .nav-icon-img,
.nav-item.active .cart-icon-nav {
  filter: none;
  opacity: 1;
}

/* Sheets */
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.52); z-index: 70;
  opacity: 0; pointer-events: none; transition: 0.25s;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 71; left: 50%; bottom: 0; width: min(720px, 100%);
  max-height: min(92vh, 900px); transform: translate(-50%, 105%);
  background: var(--surface); border-radius: 28px 28px 0 0; transition: 0.3s;
  display: flex; flex-direction: column; overflow: hidden;
}
.sheet.show { transform: translate(-50%, 0); }
.handle {
  width: 42px; height: 5px; background: var(--line); border-radius: 99px; margin: 10px auto 0; flex-shrink: 0;
  cursor: grab; touch-action: none;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.sheet-head h2 { font-size: 20px; }
.close {
  border: 0; background: var(--surface-2); color: var(--ink);
  width: 36px; height: 36px; border-radius: 12px; font-size: 20px;
}
.sheet-body {
  flex: 1 1 auto; overflow-y: auto; padding: 16px 22px 24px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.sheet-foot {
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); flex-shrink: 0; background: var(--surface);
}
.sheet-empty { padding: 50px 0; text-align: center; color: var(--muted); line-height: 1.6; }

/* Detail */
.detail-hero, .detail-img { height: 220px; border-radius: 22px; overflow: hidden; margin-bottom: 16px; }
.detail-img { position: relative; }
.detail-hero > img, .detail-img > img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 22px; margin: 0 0 6px; }
.detail-desc { color: var(--muted); line-height: 1.6; margin: 0 0 14px; font-size: 14px; }
.detail-price { font-size: 20px; font-weight: 800; color: var(--accent-2); margin-bottom: 4px; }
.detail-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.variant-group { margin: 16px 0 12px; }
.variant-group .label { display: block; font-size: 12px; color: var(--muted); font-weight: 800; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.variant-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-pill {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; cursor: pointer; background: var(--bg);
}
.variant-pill.active { border-color: var(--accent); background: rgba(255, 90, 54, 0.1); color: var(--accent); }
.addon-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.addon-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.favourite-toggle {
  background: transparent; border: none; cursor: pointer; color: var(--muted);
  display: inline-grid; place-items: center; padding: 0; line-height: 0;
}
.favourite-toggle.active { color: var(--accent); }
.fav-icon { display: block; object-fit: contain; pointer-events: none; }
.fav-icon-header { width: 18px; height: 18px; }
.fav-icon-toggle { width: 17px; height: 17px; }
.fav-icon-mini { width: 13px; height: 13px; }
.fav-icon-row { width: 18px; height: 18px; }
.notification-icon { display: block; object-fit: contain; pointer-events: none; }
.notification-icon-header { width: 20px; height: 20px; }
.cart-icon { display: block; object-fit: contain; pointer-events: none; }
.cart-icon-header { width: 20px; height: 20px; }
.cart-icon-nav { width: 22px; height: 22px; }
.nav-icon-cart { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.fav-mini.active, .favourite-toggle.active, .icon-btn.active { background: transparent; }
.detail-fav {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 28px; height: 28px;
  border-radius: 50%; background: transparent; border: none;
  display: grid; place-items: center; box-shadow: none;
}
.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.reviews-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.reviews-head h3 { font-size: 16px; margin: 0; }
.reviews-head .avg { font-size: 12px; color: var(--muted); font-weight: 700; }
.reviews-row {
  display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  touch-action: pan-x; scroll-snap-type: x proximity; padding: 2px 2px 8px;
}
.reviews-row::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(78vw, 280px); scroll-snap-align: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; min-height: 118px; display: flex; flex-direction: column; gap: 8px;
}
.review-card .review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-card .review-name { font-weight: 800; font-size: 13px; line-height: 1.2; }
.review-card .review-date { font-size: 11px; color: var(--muted); white-space: nowrap; }
.review-card .review-stars { color: var(--warning); font-size: 12px; letter-spacing: 1px; }
.review-card .review-text {
  font-size: 12.5px; line-height: 1.55; color: var(--ink); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.write-review-btn { width: 100%; margin-top: 14px; }
.menu-all-item .price-add { margin-left: auto; flex-shrink: 0; }
.qty-inline { display: flex; align-items: center; gap: 10px; }
.qty-inline button {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font-weight: 800;
}
.qty-inline span { font-weight: 800; min-width: 20px; text-align: center; }

/* Forms */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; color: var(--muted); font-weight: 800; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 14px; padding: 13px; font-size: 16px;
}
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input[type="date"], .form-field input[type="time"] {
  min-height: 48px; color-scheme: light; text-align: left; text-align-last: left;
  -webkit-appearance: none; appearance: none;
}
.form-field input[type="date"]::-webkit-date-and-time-value,
.form-field input[type="time"]::-webkit-date-and-time-value {
  text-align: left; margin: 0; min-width: 100%;
}
.form-field input[type="date"]::-webkit-datetime-edit,
.form-field input[type="time"]::-webkit-datetime-edit {
  text-align: left; padding: 0; width: 100%; display: inline-flex; justify-content: flex-start;
}
.form-field input[type="date"]::-webkit-calendar-picker-indicator,
.form-field input[type="time"]::-webkit-calendar-picker-indicator {
  margin-left: auto; opacity: 0.55;
}
[data-theme="dark"] .form-field input[type="date"], [data-theme="dark"] .form-field input[type="time"] { color-scheme: dark; }
.booking-date-time { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.booking-date-time .form-field { min-width: 0; }
.custom-select { position: relative; width: 100%; }
.custom-select-trigger {
  width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink); font-size: 16px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.select-chevron { color: var(--muted); font-size: 18px; line-height: 1; transition: transform 0.2s; }
.custom-select.is-open .select-chevron { transform: rotate(180deg); }
.custom-select-menu {
  display: none; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
}
.custom-select.is-open .custom-select-menu { display: grid; }
.custom-select-menu button {
  min-height: 42px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: var(--surface); color: var(--ink); text-align: left; font-weight: 700;
}
.custom-select-menu button:hover, .custom-select-menu button:focus-visible { background: rgba(255, 90, 54, 0.1); color: var(--accent); }
.custom-select-menu.option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-select-menu.option-grid button { text-align: center; }
.custom-select.compact { width: min(144px, 48vw); }
.custom-select.compact .custom-select-trigger { min-height: 36px; padding: 7px 10px; border-radius: 10px; font-size: 12px; }
.custom-select.compact .custom-select-menu { position: absolute; z-index: 2; width: inherit; min-width: 144px; right: 0; }
.segmented, .fulfil-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.segment, .fulfil-opt {
  border: 1px solid var(--line); background: var(--bg); padding: 12px; border-radius: 14px;
  font-weight: 800; text-align: center; cursor: pointer;
}
.segment.active, .fulfil-opt.active { border-color: var(--accent); background: rgba(255, 90, 54, 0.1); color: var(--accent); }

/* Profile & lists */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-2); border-radius: 18px; margin-bottom: 16px; }
.avatar {
  width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; flex-shrink: 0;
}
.menu-row, .fav-item, .notif-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu-row, .fav-item { cursor: pointer; }
.menu-row:last-child, .fav-item:last-child, .notif-item:last-child { border-bottom: 0; }
.menu-row .row-icon {
  width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.menu-row .row-main { flex: 1; min-width: 0; }
.menu-row .row-title { font-weight: 800; font-size: 14px; }
.menu-row .row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fav-item img, .menu-all-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fav-remove { background: none; border: none; color: var(--accent); font-size: 18px; cursor: pointer; }
.notif-item .icon { font-size: 22px; width: 36px; text-align: center; flex-shrink: 0; }
.notif-item .msg { flex: 1; font-size: 13px; line-height: 1.4; }
.notif-item .time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Showcase */
.showcase-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 160px;
  max-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  background: var(--surface-2);
}
.showcase-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-banner-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, #fff), var(--surface-2));
}
.about-map-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.about-map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.about-tagline { margin-top: 0; }
.showcase-cover .badge-top {
  position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.6);
  color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.showcase-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.showcase-highlights .chip { background: var(--surface-2); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.showcase-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn-outline {
  flex: 1; min-width: 100px; background: transparent; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; font-weight: 700; font-size: 13px; color: var(--ink);
}

/* Table booking */
.booking-summary {
  margin-bottom: 18px; padding: 14px; border: 1px solid rgba(46, 139, 87, 0.3);
  border-radius: 16px; background: rgba(46, 139, 87, 0.1);
}
.booking-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.booking-status {
  padding: 3px 8px; border-radius: 999px; background: rgba(46, 139, 87, 0.18);
  color: var(--success); font-size: 10px; font-weight: 800; text-transform: uppercase;
}
.booking-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; font-size: 13px; }
.booking-summary-grid span { color: var(--muted); }
.booking-summary-grid strong { color: var(--ink); }
.booking-expiry { color: var(--muted); font-size: 12px; }
.booking-expiry strong { color: var(--accent); }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.booking-action, .booking-cancel {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 800;
}
.booking-action.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.booking-cancel { color: var(--accent); }
.table-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.table-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 10px; }
.table-legend span, .table-option small {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  font-size: 10px; font-weight: 800; text-transform: capitalize;
}
.table-legend span { padding: 3px 8px; }
.table-option {
  min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center;
  font-weight: 700; font-size: 13px; cursor: pointer; background: var(--bg); color: var(--ink);
}
.table-option strong { display: block; margin-bottom: 5px; }
.table-option small { padding: 2px 7px; }
.table-option.selected { border-color: var(--accent); background: rgba(255, 90, 54, 0.1); color: var(--accent); }
.status-available small, .table-legend .available { background: rgba(46, 139, 87, 0.14); color: var(--success); }
.status-occupied { cursor: not-allowed; background: color-mix(in srgb, var(--surface-2) 70%, #d96a4c 30%); }
.status-occupied small, .table-legend .occupied { background: rgba(217, 106, 76, 0.16); color: #b8452b; }
.status-reserved { cursor: not-allowed; background: color-mix(in srgb, var(--surface-2) 70%, #e0a21a 30%); }
.status-reserved small, .table-legend .reserved { background: rgba(224, 162, 26, 0.18); color: #936400; }
.status-booked { cursor: not-allowed; background: color-mix(in srgb, var(--surface-2) 70%, #ff5a36 30%); }
.status-booked small { background: rgba(255, 90, 54, 0.16); color: var(--accent-2); }
.table-option:disabled { opacity: 1; }

/* Order tracking */
.confirm-box { text-align: center; padding: 24px 10px 10px; }
.confirm-icon {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(46, 139, 87, 0.12);
  display: grid; place-items: center; font-size: 34px; margin: 0 auto 16px; color: var(--success);
}
.order-chip { display: inline-block; margin-top: 10px; background: var(--surface-2); padding: 7px 16px; border-radius: 10px; font-weight: 800; }
.wa-cta {
  margin-top: 16px; width: 100%; padding: 14px; border-radius: 14px; border: none;
  background: #25d366; color: #fff; font-weight: 800; font-size: 14px;
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.progress-steps { display: flex; justify-content: space-between; margin: 24px 0; position: relative; }
.progress-steps::before {
  content: ""; height: 4px; background: var(--line); position: absolute;
  top: 18px; left: 10%; right: 10%; z-index: 0;
}
.step { display: flex; flex-direction: column; align-items: center; z-index: 1; gap: 4px; }
.step .circle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--muted);
}
.step.active .circle { background: var(--accent); color: #fff; }
.step.done .circle { background: var(--success); color: #fff; }
.step span { font-size: 11px; color: var(--muted); font-weight: 600; }
.step.active span { color: var(--ink); }

/* Misc */
.star-rating { display: flex; gap: 5px; font-size: 28px; }
.star { color: var(--line); cursor: pointer; }
.star.active { color: #e7a51c; }
.address-card {
  background: var(--bg); border-radius: 12px; padding: 12px 16px; border: 1px solid var(--line);
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tier-badge { display: inline-block; padding: 2px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; background: #e7a51c; color: #1e1e1e; }
.toggle-switch {
  position: relative; width: 50px; height: 26px; background: var(--line); border-radius: 13px; cursor: pointer;
}
.toggle-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  background: #fff; border-radius: 50%; transition: 0.3s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch.active { background: var(--accent); }
.toggle-switch.active::after { left: 26px; }
.lang-select { background: var(--bg); border: 1px solid var(--line); border-radius: 30px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink); }
.menu-all-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-all-item .info { flex: 1; min-width: 0; }
.menu-all-item .cat-tag { font-size: 10px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 20px; display: inline-block; margin-top: 2px; }
.menu-all-item .price-add { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-all-item .add-btn { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; }
.map-placeholder {
  background: var(--surface-2); border-radius: 14px; height: 120px;
  display: grid; place-items: center; color: var(--muted); font-size: 14px; margin: 12px 0;
}
.qr-landing { text-align: center; padding: 40px 10px; }
.qr-landing .qr-icon { font-size: 72px; margin-bottom: 12px; }
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(var(--nav) + 20px);
  transform: translate(-50%, 20px); background: var(--ink); color: var(--surface);
  padding: 12px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: 0.25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.showcase-details { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.showcase-details .row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.showcase-details .row i { width: 22px; font-style: normal; color: var(--accent); }
.showcase-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin: 6px 0 4px; }
.showcase-rating .stars { color: var(--warning); letter-spacing: 1px; }
.order-status { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); text-transform: capitalize; }
.order-status.delivered { background: rgba(46, 139, 87, 0.15); color: var(--success); }
.order-status.preparing { background: rgba(255, 90, 54, 0.12); color: var(--accent); }
.order-status.cancelled { background: rgba(198, 60, 44, 0.12); color: #c63c2c; }
.contact-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.actions .hide-mobile { display: grid; }
#sheetContent > [id$="View"] {
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
#menuAnchor { scroll-margin-top: calc(var(--header) + 12px); height: 1px; }

@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-layout { grid-template-columns: 1fr; }
  .side-cart { display: none; }
  .item-grid { grid-template-columns: 1fr; }
  .category-nav-wrap {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 600px) {
  .content { padding: 0 12px; }
  .topbar { padding: 10px 12px; }
  .actions { gap: 5px; flex-shrink: 0; }
  .icon-btn { width: 38px; height: 38px; font-size: 15px; border-radius: 12px; }
  .actions .hide-mobile { display: none; }
  .hero { height: clamp(260px, 72vw, 320px); border-radius: 24px; margin-top: 12px; }
  .hero h1 { font-size: clamp(26px, 7vw, 32px); }
  .hero p { font-size: 13px; margin-bottom: 14px; }
  .hero-copy { left: 18px; right: 18px; bottom: 28px; max-width: none; }
  .hero-actions .btn { padding: 10px 14px; font-size: 13px; }
  .hero-dots { bottom: 14px; right: 16px; }
  .search-row { margin-top: 14px; gap: 8px; }
  .search input { height: 50px; font-size: 14px; padding-left: 42px; }
  .section { margin-top: 24px; }
  .section-head h2 { font-size: 19px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento-tile { height: 100px; }
  .best-card { width: 92px; }
  .best-photo-wrap { width: 92px; height: 92px; }
  .best-add { width: 26px; height: 26px; font-size: 14px; }
  .offer { flex: 0 0 260px; }
  .offers-grid { grid-template-columns: 1fr; }
  .bestseller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .item-photo { width: 88px; height: 88px; flex-basis: 88px; }
  .sheet { max-height: 94vh; width: 100%; border-radius: 24px 24px 0 0; }
  .booking-date-time { grid-template-columns: 1fr; gap: 0; }
  .form-field input[type="date"],
  .form-field input[type="time"] {
    text-align: left;
    padding-left: 13px;
    padding-right: 13px;
  }
  .table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero, .detail-img { height: 200px; }
  .bottom-nav { gap: 6px; }
  .nav-item { min-width: 54px; font-size: 10px; }
  .toast { bottom: calc(var(--nav) + 12px); }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bento-tile { height: 92px; }
  .bento-chip { font-size: 12px; }
  .logo { width: 38px; height: 38px; font-size: 12px; }
}
