/* Vyne Orders — shared brand styles */
:root {
  --espresso: #2A120D;
  --espresso-2: #3A1D15;
  --espresso-3: #4C2A1F;
  --sand: #EBCFAA;
  --sand-2: #F5E4CA;
  --cream: #FBF3E6;
  --pine: #1F3B2E;
  --pine-2: #2A4D3C;
  --sage: #A3B18A;
  --blush: #E8B4A0;
  --terra: #C9532F;
  --terra-2: #E0683F;
  --muted: #6A4A3A;
  --line: rgba(42, 18, 13, .14);
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --hand: "Amatic SC", "Bradley Hand", cursive;
  --r: 14px;
  --shadow: 0 1px 2px rgba(42,18,13,.08), 0 6px 20px rgba(42,18,13,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body); color: var(--espresso); background: var(--sand-2);
  font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: .04em; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--espresso); color: var(--sand-2); font-weight: 600; font-size: 15px;
  transition: transform .08s ease, background .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.terra { background: var(--terra); color: #fff; }
.btn.pine { background: var(--pine); color: var(--sand-2); }
.btn.ghost { background: transparent; color: var(--espresso); border-color: var(--line); }
.btn.light { background: var(--cream); color: var(--espresso); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--terra); border-color: rgba(201,83,47,.4); }
.btn.big { min-height: 54px; font-size: 17px; padding: 0 24px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--cream); display: inline-grid; place-items: center; font-size: 18px; line-height: 1; padding: 0;
}

/* Inputs */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; outline: none;
}
.input:focus { border-color: var(--espresso-3); box-shadow: 0 0 0 3px rgba(201,83,47,.15); }
textarea.input { min-height: 70px; resize: vertical; }

/* Veg mark */
.veg { width: 14px; height: 14px; border: 1.5px solid #2E7D32; border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.veg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2E7D32; }
.veg.non { border-color: #A33A1F; }
.veg.non::after { background: #A33A1F; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--cream); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.chip.on { background: var(--espresso); color: var(--sand-2); border-color: var(--espresso); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--espresso); color: var(--sand-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 18px; line-height: 1; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }

/* Modal / sheet */
.overlay { position: fixed; inset: 0; background: rgba(42,18,13,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet {
  background: var(--cream); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  animation: up .2s ease;
}
@media (min-width: 720px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 22px; }
}
.sheet h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 26px; }
.sheet .sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80;
  background: var(--espresso); color: var(--sand-2); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
  animation: up .2s ease;
}
.toast.err { background: var(--terra); color: #fff; }

/* Bill rows */
.rows { display: grid; gap: 6px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row.total { font-weight: 800; font-size: 20px; padding-top: 8px; border-top: 1.5px dashed var(--line); margin-top: 4px; }
.row.dim { color: var(--muted); font-size: 14px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sand); color: var(--espresso); }
.badge.terra { background: var(--terra); color: #fff; }
.badge.pine { background: var(--pine); color: var(--sand-2); }
.badge.sage { background: var(--sage); color: var(--pine); }
.badge.blush { background: var(--blush); color: var(--espresso); }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty .hand { font-size: 28px; color: var(--espresso-3); display: block; }
