/* Strasbourg — shared design tokens and components */

:root {
  --bg: #F5F3F0;
  --surface: #FFFFFF;
  --surface-2: #F9F7F4;
  --ink: #141414;
  --ink-2: #5F5A54;
  --ink-3: #9C958D;
  --line: #ECE7E1;
  --red: #E3242B;
  --red-ink: #C81D23;
  --red-soft: #FDEBEC;
  --green: #1F9D57;
  --tint: #FBF1E6;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .04), 0 2px 8px rgba(20, 20, 20, .04);
  --shadow-md: 0 8px 30px rgba(20, 20, 20, .10);
  --shadow-lg: 0 24px 60px rgba(20, 20, 20, .22);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.locked { overflow: hidden; }
:lang(ko) body { word-break: keep-all; }

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.icon { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 2.5px solid var(--red); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px;
  transition: transform .15s var(--ease), background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-soft { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost-red { background: var(--red-soft); color: var(--red-ink); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  transition: transform .15s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.92); }

/* ---------- Stepper ---------- */

.stepper {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stepper button {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
}
.stepper button .icon { width: 16px; height: 16px; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Sheets ---------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 16, 12, 0);
  transition: background .28s var(--ease);
}
.sheet-backdrop.open { background: rgba(20, 16, 12, .45); }

.sheet {
  position: relative;
  width: 100%; max-height: 92vh; max-height: 92dvh;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 20px calc(20px + var(--safe-b));
  transform: translateY(100%);
  transition: transform .32s var(--ease);
  box-shadow: var(--shadow-lg);
}
.sheet-backdrop.open .sheet { transform: translateY(0); }

.sheet-grip {
  width: 40px; height: 5px; border-radius: 3px; background: var(--line);
  margin: 0 auto 12px;
}

.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.sheet-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

@media (min-width: 720px) {
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet {
    max-width: 480px; border-radius: var(--r-xl);
    padding: 24px 28px 28px;
    transform: translateY(24px) scale(.98); opacity: 0;
    transition: transform .28s var(--ease), opacity .2s;
  }
  .sheet-backdrop.open .sheet { transform: none; opacity: 1; }
  .sheet-grip { display: none; }
  .sheet.wide { max-width: 640px; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; z-index: 200;
  bottom: calc(96px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 14px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
}
.toast .icon { width: 18px; height: 18px; color: #6EE7A0; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Food image tile ---------- */

.food-img {
  display: grid; place-items: center; overflow: hidden;
  background: var(--tint); border-radius: var(--r-md);
}
.food-img img { width: 86%; height: 86%; object-fit: contain; }
.food-img img.photo { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
