/* Bite Satisfaction — shared styles (colours taken from the logo) */
:root {
  --peach: #FACB93;
  --peach-soft: #FDE4C6;
  --cream: #FFF7EE;
  --white: #FFFFFF;
  --red: #CE4229;
  --red-dark: #A93320;
  --red-soft: #FBE3DC;
  --brown: #441F19;
  --brown-2: #6E4238;
  --muted: #8A6A60;
  --mustard: #D19C2D;
  --mustard-soft: #F6E7C3;
  --green: #2E7D32;
  --line: rgba(68, 31, 25, .12);
  --shadow: 0 8px 24px -12px rgba(68, 31, 25, .30);
  --shadow-lg: 0 18px 40px -16px rgba(68, 31, 25, .40);
  --radius: 18px;
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  text-decoration: none; transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-brown { background: var(--brown); color: #fff; }
.btn-brown:hover { background: #2E140F; }
.btn-ghost { background: transparent; color: var(--brown); border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--white); }
.btn-danger { background: transparent; color: var(--red); border: 2px solid var(--red-soft); }
.btn-danger:hover { background: var(--red-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px; border: 0;
  background: var(--white); color: var(--brown);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- quantity stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 2px solid var(--red); border-radius: 999px; padding: 2px; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; font-size: 16px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; }
.field > small { color: var(--muted); font-size: 13px; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--brown); caret-color: var(--red); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #A08A82; opacity: 1; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(206, 66, 41, .15); }
.input.bad { border-color: var(--red); }
.err { color: var(--red); font-size: 13px; font-weight: 700; }

/* ---------- bottom sheet / dialog ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(68, 31, 25, .55); animation: fade .2s ease; }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--cream); border-radius: 24px 24px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  animation: up .25s ease;
}
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 24px; }
@media (min-width: 640px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { border-radius: 24px; padding-bottom: 24px; }
  .sheet-grip { display: none; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--brown); color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: .25s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--red); }
