:root {
  --brand: #e2552b;
  --brand-dark: #b8401c;
  --brand-soft: #fdeee8;
  --ink: #1f1a17;
  --muted: #6f6660;
  --line: #ece6e1;
  --bg: #faf7f4;
  --card: #ffffff;
  --green: #1f8a4c;
  --green-soft: #e6f4ec;
  --red: #c62828;
  --amber: #b7791f;
  --amber-soft: #fdf3e1;
  --blue: #2563eb;
  --blue-soft: #e8efff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.4;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; background: var(--brand); color: #fff;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.green { background: var(--green); }
.btn.green:hover { background: #18703d; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.vd { display: inline-block; width: 14px; height: 14px; border: 1.5px solid; border-radius: 3px; position: relative; flex: none; vertical-align: -2px; }
.vd::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; }
.vd.veg { border-color: var(--green); } .vd.veg::after { background: var(--green); }
.vd.nonveg { border-color: var(--red); } .vd.nonveg::after { background: var(--red); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: .25s; box-shadow: var(--shadow); text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--red); }
.toast.ok { background: var(--green); }
.overlay { position: fixed; inset: 0; background: rgba(20,15,10,.45); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
.overlay.open { display: flex; }
@media (min-width: 700px) { .overlay { align-items: center; } }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 20px; }
@media (min-width: 700px) { .sheet { border-radius: 20px; } }
.sheet h2 { margin: 0 0 12px; font-size: 20px; }
.muted { color: var(--muted); }
