:root {
  --leaf: #1e5b3a;
  --leaf-deep: #144028;
  --leaf-soft: #e6efe8;
  --haldi: #f2b53a;
  --haldi-soft: #fdf1d6;
  --chili: #b8321f;
  --ink: #1d1b16;
  --muted: #6b675c;
  --line: #e3dfd4;
  --wash: #f5f3ee;
  --paper: #ffffff;
  --display: "Baloo Bhai 2", "Hind Vadodara", system-ui, sans-serif;
  --body: "Hind Vadodara", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --toolbar-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- signboard header ---------- */
.sign { background: var(--leaf); color: #fff; position: relative; }
.sign-inner {
  max-width: 880px; margin: 0 auto;
  padding: 22px var(--gutter) 18px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.shop-name {
  font: 700 clamp(30px, 8vw, 46px)/1.02 var(--display);
  margin: 0; letter-spacing: -0.01em;
}
.tagline { margin: 6px 0 0; color: var(--haldi); font-weight: 500; }
.lang-btn {
  flex: none; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff;
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px;
}
.lang-btn:hover { background: rgba(255,255,255,.12); }
/* scalloped awning edge */
.awning {
  height: 14px;
  background:
    radial-gradient(circle at 12px 0, var(--haldi) 11px, transparent 12px) 0 0 / 24px 14px repeat-x;
}

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.toolbar-row {
  max-width: 880px; margin: 0 auto; padding: 12px var(--gutter) 8px;
  display: flex; gap: 12px; align-items: center;
}
.search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 12px; color: var(--muted);
}
.search:focus-within { border-color: var(--leaf); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 0; background: transparent; color: var(--ink); }
.offer-switch { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; }
.offer-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch {
  width: 40px; height: 24px; border-radius: 999px; background: #cfcabd; position: relative; transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
input:checked + .switch { background: var(--chili); }
input:checked + .switch::after { transform: translateX(16px); }
input:focus-visible + .switch { outline: 3px solid var(--haldi); outline-offset: 2px; }

.chips {
  max-width: 880px; margin: 0 auto;
  display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter) 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 5px 14px; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: #fff; }

/* ---------- menu (price list) ---------- */
.menu { max-width: 880px; margin: 0 auto; padding: 8px var(--gutter) 40px; }
.state { color: var(--muted); text-align: center; padding: 48px 8px; }
.state button { margin-top: 12px; }
.cat { margin-top: 26px; scroll-margin-top: calc(var(--toolbar-h) + 8px); }
.cat h2 {
  font: 700 24px/1.2 var(--display); color: var(--leaf-deep);
  margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px;
}
.cat h2 small { font: 500 14px var(--body); color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--wash); flex: none; }
.item-main { flex: 1; min-width: 0; }
.item-line { display: flex; align-items: baseline; gap: 6px; }
.item-name { font-weight: 500; overflow-wrap: anywhere; }
.leader { flex: 1; min-width: 16px; border-bottom: 2px dotted #cdc7b8; transform: translateY(-4px); }
.price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-weight: 400; font-size: 14px; margin-right: 4px; }
.price .now { color: var(--chili); }
.item-desc { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.deal {
  display: inline-block; margin-top: 3px; font-size: 13px; font-weight: 600;
  background: var(--haldi-soft); color: #8a5a00; border-radius: 4px; padding: 0 6px;
}
.item.sold-out .item-name, .item.sold-out .price { color: var(--muted); }
.item.sold-out .thumb { filter: grayscale(1); opacity: .6; }
.act { flex: none; width: 88px; display: flex; justify-content: flex-end; }
.add {
  width: 100%; border: 1.5px solid var(--leaf); color: var(--leaf); background: var(--paper);
  border-radius: 8px; padding: 5px 0; font-weight: 600;
}
.add:hover { background: var(--leaf-soft); }
.stepper {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: var(--leaf); color: #fff; border-radius: 8px; overflow: hidden;
}
.stepper button { border: 0; background: transparent; color: #fff; width: 34px; height: 34px; font-size: 20px; line-height: 1; }
.stepper button:hover { background: var(--leaf-deep); }
.stepper output { font-weight: 600; font-variant-numeric: tabular-nums; }
.soldout-tag { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.2; }

/* ---------- visit section ---------- */
.visit { max-width: 880px; margin: 0 auto; padding: 8px var(--gutter) 32px; }
.visit h2 { font: 700 24px/1.2 var(--display); color: var(--leaf-deep); margin: 0 0 10px; }
.visit-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.visit-card iframe { display: block; width: 100%; height: 220px; border: 0; background: var(--wash); }
.visit-info { padding: 14px 16px; display: grid; gap: 6px; }
.visit-info p { margin: 0; }
.visit-info .label { color: var(--muted); font-size: 14px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--leaf);
  border: 1.5px solid var(--leaf); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 15px;
}
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 16px 110px; }

/* ---------- cart bar + sheet ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--wash) 70%, transparent);
}
.cartbar button {
  max-width: 560px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: var(--leaf); color: #fff; border: 0; border-radius: 12px;
  padding: 13px 18px; font-size: 16px; box-shadow: 0 6px 18px rgba(20,64,40,.28);
}
.cartbar-cta { margin-left: auto; font-weight: 600; background: var(--haldi); color: var(--ink); border-radius: 8px; padding: 2px 12px; }
.bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.03); } }

.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px;
  max-height: 92vh; border-radius: 18px 18px 0 0; background: var(--paper); color: var(--ink);
}
.sheet::backdrop { background: rgba(20,22,18,.45); }
.sheet[open] { display: flex; flex-direction: column; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 18px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font: 700 24px/1.2 var(--display); color: var(--leaf-deep); }
.icon-btn { border: 0; background: transparent; padding: 8px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--wash); }
.sheet-body { overflow-y: auto; padding: 4px 16px calc(20px + env(safe-area-inset-bottom)); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-lines .ln-name { flex: 1; min-width: 0; }
.cart-lines .ln-name small { display: block; color: var(--muted); }
.cart-lines .stepper { width: 96px; }
.cart-lines .ln-total { width: 64px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-lines .gone { color: var(--chili); font-size: 14px; }
.cart-empty { color: var(--muted); padding: 24px 0; text-align: center; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; font-size: 18px; }
.cart-total strong { font-size: 22px; }
.checkout { display: grid; gap: 12px; margin-top: 12px; }
.checkout h3 { margin: 8px 0 0; font: 700 20px/1.2 var(--display); color: var(--leaf-deep); }
.checkout label { display: grid; gap: 4px; font-weight: 500; font-size: 15px; }
.checkout input, .checkout textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--paper); font-size: 16px;
}
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--leaf); outline-offset: 0; border-color: var(--leaf); }
.checkout [aria-invalid="true"] { border-color: var(--chili); }
.form-error { margin: 0; color: var(--chili); font-weight: 500; min-height: 0; }
.form-error:empty { display: none; }
.primary {
  border: 0; border-radius: 10px; padding: 13px 18px; font-weight: 600; font-size: 17px;
  background: var(--leaf); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.primary.wa { background: #1f8f4e; }
.primary.wa:hover { background: #18773f; }
.primary .fill { fill: currentColor; stroke: none; }
.help { margin: 0; color: var(--muted); font-size: 14px; }

@media (min-width: 700px) {
  .act { width: 116px; }
  .item { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
