/* =========================================================
   BİSS Cafe & Bistro — Digital Menu
   Design language: "Olive Night" — deep olive darkness,
   sand-gold brand ink, editorial serif + crisp grotesk.
   ========================================================= */

:root {
  /* palette */
  --bg: #15180f;
  --bg-2: #1b1f17;
  --surface: #22271e;
  --surface-2: #2b3126;
  --surface-3: #353c2f;
  --olive: #495444;
  --olive-2: #5d6b55;
  --sand: #d9b894;
  --sand-2: #e9d2b4;
  --sand-ink: #241c12;
  --cream: #f4ede2;
  --text: #ede6da;
  --text-2: #bcb4a6;
  --text-3: #918b7f;
  --line: rgba(237, 230, 218, .09);
  --line-2: rgba(237, 230, 218, .16);
  --sand-a12: rgba(217, 184, 148, .12);
  --sand-a24: rgba(217, 184, 148, .24);
  --danger: #e58c6f;
  --ok: #9fc18a;

  /* type */
  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* scale */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pad: clamp(18px, 5vw, 40px);

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms;
  --t: 320ms;
  --t-slow: 640ms;

  /* layers */
  --z-header: 40;
  --z-dock: 50;
  --z-view: 80;
  --z-scrim: 90;
  --z-sheet: 100;
  --z-search: 110;
  --z-waiter: 120;
  --z-intro: 1000;
  --z-toast: 1100;

  --top-h: 64px;
  --nav-h: 108px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + var(--nav-h));
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(73, 84, 68, .55), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
html.lock { overflow: hidden; }

img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 8px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--sand); color: var(--sand-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: top var(--t); }
.skip:focus { top: 12px; }

/* film grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- brand mark (recolourable mask) ---------- */
.logo-mark {
  display: inline-block;
  width: 92px;
  aspect-ratio: 511 / 209;
  background: var(--sand);
  -webkit-mask: url("/img/brand/logo-mark.webp") center / contain no-repeat;
  mask: url("/img/brand/logo-mark.webp") center / contain no-repeat;
}
.logo-mark--lg { width: 168px; }

/* ---------- shared atoms ---------- */
.eyebrow {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow__rule { width: 28px; height: 1px; background: currentColor; opacity: .7; }

.btn {
  --b-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--text);
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform var(--t-fast) var(--ease-out), background var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), opacity var(--t);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--sand { --b-bg: var(--sand); color: var(--sand-ink); box-shadow: 0 10px 30px -12px rgba(217, 184, 148, .55); }
.btn--sand::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) {
  .btn--sand:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-out); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { background: var(--surface-3); }
}
.btn--ghost { --b-bg: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--grow { flex: 1; justify-content: space-between; }
.btn--icon { width: 52px; padding: 0; flex: none; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  color: var(--text);
  background: rgba(34, 39, 30, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform var(--t-fast) var(--ease-out), background var(--t);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--sand); color: var(--sand-ink);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.badge--dot { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 4px; right: 14px; box-shadow: 0 0 0 2px rgba(27, 31, 23, .9); }
.badge.pop { animation: pop 520ms var(--spring); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.price { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; font-weight: 600; color: var(--sand-2); letter-spacing: .01em; }
.price .cur { font-weight: 500; opacity: .75; margin-right: 1px; font-size: .86em; }

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background:
    radial-gradient(80% 60% at 50% 45%, #56624f 0%, var(--olive) 45%, #2f372b 100%);
  clip-path: inset(0 0 0 0);
}
.intro__mark { position: relative; width: min(58vw, 300px); aspect-ratio: 511 / 209; }
.intro__body { width: 100%; height: auto; clip-path: inset(0 50% 0 50%); filter: blur(6px); opacity: 0; }
.intro__dot {
  position: absolute; left: 39.3%; top: 0; width: 7.4%; aspect-ratio: 1;
  border-radius: 50%; background: var(--sand); opacity: 0; transform: translateY(-160%);
}
.intro__tag { margin: 0; color: #fff; font-size: 11px; letter-spacing: 1.4em; padding-left: 1.4em; opacity: 0; }
.intro__line { position: absolute; bottom: 14%; left: 50%; width: 1px; height: 56px; background: linear-gradient(var(--sand), transparent); transform: scaleY(0); transform-origin: top; }

.intro.play .intro__body { animation: introBody 1100ms var(--ease-out) 120ms forwards; }
.intro.play .intro__dot { animation: introDot 760ms var(--spring) 980ms forwards; }
.intro.play .intro__tag { animation: introTag 1000ms var(--ease-out) 900ms forwards; }
.intro.play .intro__line { animation: introLine 800ms var(--ease-out) 1300ms forwards; }
.intro.leave { animation: introLeave 900ms var(--ease-io) forwards; }
.intro.leave > * { transition: opacity 400ms, transform 900ms var(--ease-io); opacity: 0; transform: translateY(-40px) scale(.96); }

@keyframes introBody { to { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; } }
@keyframes introDot { 0% { opacity: 0; transform: translateY(-260%); } 30% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
@keyframes introTag { from { opacity: 0; letter-spacing: 1.4em; } to { opacity: .92; letter-spacing: .62em; padding-left: .62em; } }
@keyframes introLine { to { transform: scaleY(1); } }
@keyframes introLeave { to { clip-path: inset(0 0 100% 0); } }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  display: flex; align-items: center; gap: 12px;
  transition: background var(--t) var(--ease-out), box-shadow var(--t), transform var(--t) var(--ease-out);
}
.topbar.is-solid {
  background: rgba(21, 24, 15, .78);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.topbar__logo { display: flex; padding: 8px 0; }
.topbar__actions { margin-left: auto; display: flex; gap: 10px; }
.table-pill {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: var(--sand); background: var(--sand-a12);
  box-shadow: inset 0 0 0 1px var(--sand-a24);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--top-h) + 32px) var(--pad) calc(104px + var(--safe-b));
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--olive); }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1600ms var(--ease-io);
  filter: saturate(.92) contrast(1.02);
}
.hero__media img.on { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21, 24, 15, .6) 0%, rgba(21, 24, 15, .2) 24%, rgba(21, 24, 15, .78) 52%, var(--bg) 96%),
    radial-gradient(120% 80% at 0% 100%, rgba(73, 84, 68, .6), transparent 60%);
}
.hero__inner { max-width: 640px; }
.hero__eyebrow { margin-bottom: 18px; }
.hero__title {
  margin: 0 0 28px;
  font-family: var(--serif); font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(46px, 12.5vw, 96px);
  line-height: .98; letter-spacing: -.025em;
  color: var(--cream);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > * , .hero__title .line--italic { display: inline-block; }
.line--italic { font-style: italic; font-weight: 300; color: var(--sand-2); }
.hero__ctas { display: flex; gap: 12px; margin-bottom: 22px; }
.hero__tiles { display: grid; gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: var(--r);
  background: rgba(34, 39, 30, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform var(--t-fast) var(--ease-out), background var(--t);
}
.tile:active { transform: scale(.98); }
@media (hover: hover) { .tile:hover { background: rgba(53, 60, 47, .7); } .tile:hover .tile__arrow { transform: translateX(4px); color: var(--sand); } }
.tile__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-a12); color: var(--sand); }
.tile__txt { display: grid; line-height: 1.3; }
.tile__txt b { font-weight: 600; font-size: 15px; }
.tile__txt small { color: var(--text-2); font-size: 13px; }
.tile__arrow { margin-left: auto; width: 18px; height: 18px; color: var(--text-3); transition: transform var(--t) var(--ease-out), color var(--t); }
.hero__scroll { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); width: 1px; height: 30px; background: var(--line-2); overflow: hidden; display: none; }
.hero__scroll span { position: absolute; inset: 0; background: var(--sand); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* hero entrance (after intro) */
.reveal-hero .hero__eyebrow,
.reveal-hero .hero__title .line > *,
.reveal-hero .hero__ctas,
.reveal-hero .tile { animation: rise 1000ms var(--ease-out) both; }
.reveal-hero .hero__title .line:nth-child(1) > * { animation-delay: 80ms; }
.reveal-hero .hero__title .line:nth-child(2) { animation: rise 1100ms var(--ease-out) 180ms both; }
.reveal-hero .hero__ctas { animation-delay: 320ms; }
.reveal-hero .tile:nth-child(1) { animation-delay: 420ms; }
.reveal-hero .tile:nth-child(2) { animation-delay: 500ms; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.is-loading .hero__inner { opacity: 0; }

/* =========================================================
   MENU NAV (segments + chips)
   ========================================================= */
.menu { position: relative; padding-bottom: 40px; }
.menu-nav {
  position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 30;
  padding: 10px 0 8px;
  background: linear-gradient(var(--bg) 70%, rgba(21, 24, 15, 0));
}
.menu-nav { transition: transform 420ms var(--ease-out), background var(--t); }
.hide-top .topbar { transform: translateY(-100%); }
.hide-top .menu-nav.is-stuck { transform: translateY(calc(-1 * var(--top-h))); }
.nav-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--olive-2), var(--sand)); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; transition: opacity var(--t); }
.menu-nav.is-stuck .nav-prog { opacity: .9; }
.menu-nav.is-stuck { background: rgba(21, 24, 15, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line); }
.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin: 0 var(--pad) 10px; padding: 4px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.seg__ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px;
  background: var(--sand); transition: transform 520ms var(--ease-out), width 520ms var(--ease-out);
  box-shadow: 0 6px 20px -8px rgba(217, 184, 148, .6);
}
.seg button {
  position: relative; z-index: 1; min-height: 40px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: color var(--t) var(--ease-out);
}
.seg button[aria-selected="true"] { color: var(--sand-ink); }

.chips-row { display: flex; align-items: center; gap: 4px; padding: 0 calc(var(--pad) - 6px); }
.tool-btn { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--sand); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform var(--t-fast), background var(--t); }
.tool-btn:active { transform: scale(.9); }
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn .badge { top: -4px; right: -4px; }
.chips {
  flex: 1; min-width: 0;
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 2px 14px 4px; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: center;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t), background var(--t), box-shadow var(--t);
}
.chip.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--sand-a24); }
.chip.is-active::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); margin-right: 8px; vertical-align: middle; transform: translateY(-1px); }

/* =========================================================
   MENU BODY
   ========================================================= */
.menu__layout { padding: 8px var(--pad) 0; }
.menu__aside { display: none; }
.menu__body { min-width: 0; }

.section-intro { padding: 40px 0 8px; }
.section-intro__no { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--sand); font-size: 15px; }
.section-intro h2 {
  margin: 4px 0 0; font-family: var(--serif); font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(40px, 11vw, 72px); line-height: 1; letter-spacing: -.03em; color: var(--cream);
}
.section-intro h2 em { font-weight: 300; color: var(--sand-2); }

.cat { padding-top: 28px; scroll-margin-top: calc(var(--top-h) + var(--nav-h) + 4px); }
.cat__banner {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 9; margin-bottom: 18px; background: var(--surface);
  isolation: isolate;
}
.cat__banner img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.cat__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(21, 24, 15, .88)); }
.cat__banner .cat__head { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; margin: 0; }
.cat__head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.cat__head h3 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(26px, 7vw, 36px); letter-spacing: -.015em; line-height: 1.05; color: var(--cream);
}
.cat__count { margin-left: auto; font-size: 12px; letter-spacing: .16em; color: var(--text-3); text-transform: uppercase; white-space: nowrap; }
.cat__banner .cat__count { color: var(--text-2); }

.items { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* photo card — gallery (default) */
.item {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t), background var(--t);
}
.item:has(.item__open:active) { transform: scale(.975); }
.item__open { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.item__add { position: relative; z-index: 2; }
.item__add-n { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .item:hover { box-shadow: inset 0 0 0 1px var(--sand-a24), 0 18px 40px -24px rgba(0, 0, 0, .8); } .item:hover .item__ph img { transform: scale(1.06); } }
.item__ph { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.item__ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(transparent, rgba(21, 24, 15, .55)); pointer-events: none; }
.item__ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out); }
.item__ph img.ok { opacity: 1; }
.item__kcal { position: absolute; z-index: 1; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--cream); background: rgba(21, 24, 15, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.fav-mark { position: absolute; z-index: 1; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--sand-ink); transform: scale(0); transition: transform 420ms var(--spring); }
.fav-mark svg { width: 15px; height: 15px; fill: currentColor; stroke-width: 0; }
.is-fav .fav-mark { transform: scale(1); }
.item__txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.item__name { font-family: var(--serif); font-weight: 450; font-variation-settings: "opsz" 24; font-size: 16.5px; line-height: 1.2; letter-spacing: -.005em; color: var(--text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__desc { display: none; font-size: 13.5px; line-height: 1.45; color: var(--text-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.item__foot .price { font-size: 15px; }
.item__add {
  margin-left: auto; width: 40px; height: 40px; margin-block: -4px; margin-right: -4px; border-radius: 50%; display: grid; place-items: center;
  color: var(--sand); box-shadow: inset 0 0 0 1px var(--sand-a24); background: rgba(217, 184, 148, .06);
  transition: background var(--t), color var(--t), transform var(--t-fast);
}
.item__add:active { transform: scale(.88); }
.item__add svg { width: 16px; height: 16px; }
.item__add.in { background: var(--sand); color: var(--sand-ink); box-shadow: 0 6px 16px -6px rgba(217, 184, 148, .7); }
.item.is-off { opacity: .5; }
.tag-off { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--danger); font-weight: 600; }
.noal { display: none; font-size: 11.5px; color: var(--text-3); font-style: italic; }
.no-al .noal { display: block; }

/* photo card — list mode */
.view-list .items { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.view-list .item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); }
.view-list .item__ph { width: 96px; border-radius: 12px; }
.view-list .item__ph::after, .view-list .item__kcal { display: none; }
.view-list .fav-mark { top: 4px; right: 4px; width: 22px; height: 22px; }
.view-list .fav-mark svg { width: 12px; height: 12px; }
.view-list .item__txt { padding: 0; }
.view-list .item__name { font-size: 18px; }
.view-list .item__desc { display: -webkit-box; }

/* typographic row (no photo) */
.row-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline;
  width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line);
  transition: background var(--t);
}
.row-item:last-child { border-bottom: 0; }
.row-item__name { font-family: var(--serif); font-weight: 450; font-variation-settings: "opsz" 24; font-size: 18px; line-height: 1.25; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.row-item__name span { overflow-wrap: anywhere; }
.row-fav { display: none; width: 14px; height: 14px; margin-left: 6px; fill: var(--sand); stroke: none; vertical-align: -1px; }
.row-item.is-fav .row-fav { display: inline-block; }
.row-item .noal { grid-column: 1 / -1; }
.row-item__name::after { content: ""; flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.row-item .price { font-size: 15.5px; }
.row-item__desc { grid-column: 1 / -1; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.row-item.is-off { opacity: .5; }
.rows { padding: 2px 14px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.items + .rows { margin-top: 10px; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

.skeleton { display: grid; gap: 10px; padding-top: 24px; }
.skeleton i { display: block; height: 116px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { text-align: center; padding: 72px var(--pad) calc(120px + var(--safe-b)); border-top: 1px solid var(--line); margin-top: 40px; display: grid; justify-items: center; gap: 10px; }
.footer__tag { margin: 0 0 18px; letter-spacing: .6em; padding-left: .6em; font-size: 10.5px; color: var(--text-2); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; }
.footer__links svg { width: 17px; height: 17px; color: var(--sand); }
.footer__note { max-width: 420px; margin: 0; font-size: 13px; color: var(--text-3); }
.footer__fine { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

/* =========================================================
   DOCK
   ========================================================= */
.dock {
  position: fixed; z-index: var(--z-dock); left: 50%; bottom: calc(12px + var(--safe-b));
  transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 2px; padding: 6px;
  border-radius: 999px;
  background: rgba(27, 31, 23, .82);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -14px rgba(0, 0, 0, .7);
  transition: transform 520ms var(--ease-out), opacity var(--t);
}
.dock.is-hidden { transform: translate(-50%, 140%); opacity: 0; }
.dock__btn {
  position: relative; display: grid; justify-items: center; gap: 1px;
  min-width: 58px; min-height: 50px; padding: 6px 6px 4px; border-radius: 999px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: var(--text-2);
  transition: color var(--t), background var(--t), transform var(--t-fast);
}
.dock__btn svg { width: 20px; height: 20px; }
.dock__btn:active { transform: scale(.92); }
.dock__btn--hero { background: var(--sand); color: var(--sand-ink); min-width: 64px; }
.dock__btn .badge { top: 0; right: 6px; }

/* =========================================================
   SCRIM / SHEETS
   ========================================================= */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(8, 10, 6, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 420ms var(--ease-out); }
.scrim.on { opacity: 1; }

.sheet {
  position: fixed; z-index: var(--z-sheet); left: 0; right: 0; bottom: 0;
  max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -1px 0 var(--line-2), 0 -30px 80px -20px rgba(0, 0, 0, .6);
  transform: translateY(105%);
  transition: transform 560ms var(--ease-out);
  overscroll-behavior: contain;
}
.sheet.on { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet__grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); z-index: 3; }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 4; }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__head { padding: 28px var(--pad) 8px; }
.sheet__title { margin: 6px 0 0; font-family: var(--serif); font-weight: 380; font-size: 34px; letter-spacing: -.02em; line-height: 1.05; color: var(--cream); }
.sheet__foot { display: flex; gap: 10px; align-items: center; padding: 14px var(--pad) calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg-2); }
.sheet__foot--stack { flex-direction: column; align-items: stretch; }
.sheet__foot .row { display: flex; gap: 10px; }
.total { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.total b { font-family: var(--serif); font-weight: 450; font-size: 28px; color: var(--cream); font-variant-numeric: tabular-nums; }
.hint { margin: 0; font-size: 12.5px; color: var(--text-3); }

/* product sheet */
.sheet--product { max-height: 94dvh; }
.p-hero { position: relative; margin: 0; aspect-ratio: 5 / 4; background: var(--surface); overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg-2)); }
.p-hero--empty { aspect-ratio: auto; height: 120px; background: radial-gradient(100% 140% at 50% 0%, var(--olive), var(--bg-2)); display: grid; place-items: center; }
.p-hero--empty::after { display: none; }
.p-hero--empty .logo-mark { width: 84px; opacity: .45; }
.p-body { padding: 4px var(--pad) 24px; position: relative; }
.p-title { margin: 8px 0 12px; font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 96; font-size: clamp(32px, 8.5vw, 44px); line-height: 1.02; letter-spacing: -.025em; color: var(--cream); }
.p-desc { margin: 0 0 18px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.p-meta { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p-meta li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.p-meta svg { width: 15px; height: 15px; color: var(--sand); }
.p-allergens h4 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.p-allergens h4 svg { width: 14px; height: 14px; }
.p-allergens ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p-allergens li { padding: 6px 11px; border-radius: 8px; font-size: 13px; background: rgba(229, 140, 111, .1); color: #f0b39e; box-shadow: inset 0 0 0 1px rgba(229, 140, 111, .22); }

.stepper { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background var(--t-fast); }
.stepper button:active { background: var(--surface-2); }
.stepper svg { width: 18px; height: 18px; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper--sm button { width: 36px; height: 36px; }
#pAdd b { font-variant-numeric: tabular-nums; font-weight: 700; }

.ghost-img { position: fixed; z-index: calc(var(--z-sheet) + 5); object-fit: cover; pointer-events: none; border-radius: 12px; transform-origin: 0 0; will-change: transform, border-radius; }

/* list sheet */
.l-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px var(--pad); border-bottom: 1px solid var(--line); }
.l-item__ph { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--sand); }
.l-item__ph img { width: 100%; height: 100%; object-fit: cover; }
.l-item__name { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.l-item__sub { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.empty { padding: 48px var(--pad); text-align: center; color: var(--text-2); display: grid; justify-items: center; gap: 12px; }
.empty__art { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--sand); box-shadow: inset 0 0 0 1px var(--line); }
.empty__art svg { width: 30px; height: 30px; }
.empty h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--cream); }
.empty p { margin: 0; max-width: 300px; font-size: 14px; }

/* waiter mode */
.waiter {
  position: fixed; inset: 0; z-index: var(--z-waiter); overflow-y: auto;
  background: var(--cream); color: #1d2118;
  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--pad) calc(40px + var(--safe-b));
  animation: fadeUp 420ms var(--ease-out);
}
.waiter__close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; color: #1d2118; background: rgba(0, 0, 0, .06); box-shadow: none; }
.waiter__table { margin: 0; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: #6b5a43; font-weight: 600; }
.waiter__title { margin: 6px 0 22px; font-family: var(--serif); font-weight: 400; font-size: 44px; letter-spacing: -.02em; }
.waiter__list { list-style: none; margin: 0; padding: 0; counter-reset: w; }
.waiter__list li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); font-size: 22px; line-height: 1.25; }
.waiter__list b { font-family: var(--serif); font-size: 30px; font-weight: 500; color: #6b5a43; font-variant-numeric: tabular-nums; }
.waiter__total { margin: 20px 0 0; text-align: right; font-size: 18px; color: #4a4a40; font-variant-numeric: tabular-nums; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* =========================================================
   SEARCH
   ========================================================= */
.search {
  position: fixed; inset: 0; z-index: var(--z-search);
  background: rgba(21, 24, 15, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  animation: fadeIn 260ms var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search__bar { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pad) 12px; border-bottom: 1px solid var(--line); }
.search__icon { color: var(--sand); }
.search__bar input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; font-family: var(--serif); font-size: 24px; color: var(--cream); }
.search__bar input::placeholder { color: var(--text-3); }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__cancel { min-height: 44px; padding: 0 6px; color: var(--sand); font-weight: 500; font-size: 15px; }
.search__body { flex: 1; overflow-y: auto; padding: 12px var(--pad) 40px; }
.s-group { margin: 18px 0 6px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.s-res { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.s-res__ph { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-family: var(--serif); color: var(--sand); }
.s-res__ph img { width: 100%; height: 100%; object-fit: cover; }
.s-res__name { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.s-res__name mark { background: none; color: var(--sand); }
.s-res__cat { display: block; font-size: 12.5px; color: var(--text-3); }
.s-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.s-sugg .chip { background: var(--surface); }

/* =========================================================
   FULL VIEWS (builder, club)
   ========================================================= */
.view {
  position: fixed; inset: 0; z-index: var(--z-view);
  background: var(--bg); display: flex; flex-direction: column;
  animation: viewIn 620ms var(--ease-out);
}
.view.out { animation: viewOut 360ms var(--ease-in) forwards; }
@keyframes viewIn { from { clip-path: circle(0% at var(--ox, 50%) var(--oy, 90%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 90%)); } }
@keyframes viewOut { to { opacity: 0; transform: scale(.98); } }
.view__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--pad) 6px; }
.view__label { margin: 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); font-weight: 500; }

/* ---- builder ---- */
.builder { background: radial-gradient(120% 70% at 50% 30%, #2a3125 0%, var(--bg) 70%); }
.b-progress { display: flex; gap: 6px; flex: 1; max-width: 220px; }
.b-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.b-progress i::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.b-progress i.done::after { transform: scaleX(1); }
.b-stage { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 6px var(--pad) 0; overflow: hidden; }
.b-copy { text-align: center; }
.b-title { margin: 6px 0 2px; font-family: var(--serif); font-weight: 360; font-variation-settings: "opsz" 120; font-size: clamp(30px, 8vw, 46px); letter-spacing: -.025em; line-height: 1.05; color: var(--cream); }
.b-hint { margin: 0; color: var(--text-2); font-size: 14.5px; }
.b-copy .eyebrow { justify-content: center; }
.b-copy.swap > * { animation: rise 600ms var(--ease-out) both; }
.b-copy.swap > *:nth-child(2) { animation-delay: 60ms; }
.b-copy.swap > *:nth-child(3) { animation-delay: 120ms; }

.b-table { position: relative; display: grid; place-items: center; min-height: 0; }
.b-cloth { position: absolute; width: min(86vw, 52vh, 440px); aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(217, 184, 148, .035) 0 6deg, transparent 6deg 12deg); }
.b-plate {
  --size: min(56vw, 30vh, 340px);
  position: relative; width: var(--size); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f7f1e7 0 52%, #ece3d4 53% 58%, #f6efe4 59% 66%, #e4d9c8 67% 100%);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85), inset 0 -8px 18px rgba(0, 0, 0, .1), 0 0 0 1px rgba(255, 255, 255, .05);
}
.b-plate__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-style: italic; color: #a5967f; font-size: 15px; line-height: 1.3; transition: opacity var(--t); }
.b-plate.has .b-plate__empty { opacity: 0; }
.b-food {
  position: absolute; left: 50%; top: 50%;
  width: var(--s, 30%); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0));
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55), 0 0 0 3px #fbf7f0;
  background: #d9c9b1; display: grid; place-items: center;
  animation: plateIn 700ms var(--spring) both;
  transition: transform 600ms var(--ease-out), width 600ms var(--ease-out);
}
.b-food img { width: 100%; height: 100%; object-fit: cover; }
.b-food span { font-family: var(--serif); font-size: clamp(9px, 2.5vw, 12px); line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #3e3528; text-align: center; padding: 8px; }
.b-food.drink { box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55), 0 0 0 3px #fbf7f0, 0 0 0 7px rgba(255, 255, 255, .25); }
@keyframes plateIn { from { opacity: 0; transform: translate(-50%, -50%) translate(var(--x, 0), calc(var(--y, 0px) - 40px)) scale(.3) rotate(-30deg); } }

.b-options { display: flex; gap: 10px; overflow-x: auto; padding: 14px var(--pad) 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.b-options::-webkit-scrollbar { display: none; }
.b-opt {
  flex: none; width: 138px; scroll-snap-align: start; text-align: left;
  border-radius: var(--r); overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); position: relative;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t);
}
.b-opt:active { transform: scale(.96); }
.b-opt__ph { aspect-ratio: 16 / 11; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.b-opt__ph img { width: 100%; height: 100%; object-fit: cover; }
.b-opt__ph span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 34px; color: var(--sand); opacity: .8; }
.b-opt__ph:has(span) { background: radial-gradient(120% 120% at 30% 20%, var(--olive-2), var(--surface-2)); }
.b-opt__txt { padding: 9px 11px 11px; display: grid; gap: 2px; }
.b-opt__name { font-family: var(--serif); font-size: 15px; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-opt .price { font-size: 13.5px; }
.b-opt__tick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 24, 15, .6); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); color: transparent; transition: background var(--t), color var(--t), transform var(--t) var(--spring); }
.b-opt__tick svg { width: 15px; height: 15px; stroke-width: 2.4; }
.b-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--sand); }
.b-opt[aria-pressed="true"] .b-opt__tick { background: var(--sand); color: var(--sand-ink); box-shadow: none; transform: scale(1.1); }
.b-bar { display: flex; align-items: center; gap: 10px; padding: 12px var(--pad) calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: rgba(21, 24, 15, .9); }
.b-sum { display: grid; margin-right: auto; line-height: 1.15; }
.b-sum b { font-family: var(--serif); font-weight: 450; font-size: 26px; color: var(--cream); font-variant-numeric: tabular-nums; }
.b-sum small { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.b-bar #bPrev { width: 52px; padding: 0; }

.b-summary { list-style: none; margin: 0; padding: 0 var(--pad); display: grid; gap: 0; overflow-y: auto; max-height: 34vh; }
.b-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.b-summary li span:first-child { font-family: var(--serif); }

/* ---- club ---- */
.club { background: radial-gradient(100% 60% at 50% 20%, #2d3528, var(--bg) 70%); }
.club__body { flex: 1; overflow-y: auto; padding: 10px var(--pad) calc(40px + var(--safe-b)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 22px; max-width: 560px; width: 100%; margin: 0 auto; }
.card3d { perspective: 1000px; }
.mcard {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; aspect-ratio: 1.586; border-radius: 22px; padding: 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, #5c6a53 0%, var(--olive) 40%, #2c3428 100%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(233, 210, 180, .35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 400ms var(--ease-out);
  display: flex; flex-direction: column; overflow: hidden; color: var(--cream);
}
.mcard::before { content: ""; position: absolute; inset: 10px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(217, 184, 148, .45); pointer-events: none; }
.mcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 60% at var(--gx) var(--gy), rgba(255, 240, 215, .55), transparent 60%);
}
.mcard .logo-mark { width: 96px; }
.mcard__label { margin-top: auto; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--sand-2); }
.mcard__count { font-family: var(--serif); font-weight: 350; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.mcard__count small { font-size: 18px; color: var(--sand-2); }
.stamps { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 12px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-3); font-family: var(--serif); font-size: 15px; position: relative; }
.stamp.on { background: radial-gradient(circle at 35% 30%, var(--sand-2), var(--sand) 60%, #b8956f); box-shadow: 0 8px 20px -8px rgba(217, 184, 148, .7); color: var(--sand-ink); }
.stamp.on::before { content: ""; width: 46%; aspect-ratio: 511 / 209; background: var(--sand-ink); -webkit-mask: url("/img/brand/logo-mark.webp") center / contain no-repeat; mask: url("/img/brand/logo-mark.webp") center / contain no-repeat; }
.stamp.new { animation: stampIn 700ms var(--spring); }
@keyframes stampIn { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } }
.club h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--cream); letter-spacing: -.01em; }
.club p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; min-height: 52px; border-radius: 14px; border: 0; padding: 0 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 22px; letter-spacing: .4em; font-variant-numeric: tabular-nums; text-align: center; color: var(--cream); }
.code-row input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sand); }
.field__err { min-height: 18px; font-size: 13px; color: var(--danger); }
.reward-box { padding: 18px; border-radius: var(--r); background: var(--sand-a12); box-shadow: inset 0 0 0 1px var(--sand-a24); display: grid; gap: 8px; }
.reward-box b { font-family: var(--serif); font-weight: 450; font-size: 20px; color: var(--sand-2); }
.soon { text-align: center; padding: 30px 0; display: grid; gap: 12px; justify-items: center; }
.soon .logo-mark { width: 120px; opacity: .8; }

/* toast */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(92px + var(--safe-b));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--cream); color: #1d2118;
  font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); text-align: left; line-height: 1.35;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
}
.toast svg { width: 17px; height: 17px; color: #4b6b3a; stroke-width: 2.4; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* fly-to-list dot */
.fly { position: fixed; z-index: var(--z-toast); width: 14px; height: 14px; border-radius: 50%; background: var(--sand); pointer-events: none; box-shadow: 0 0 20px var(--sand); }


/* =========================================================
   "RIGHT NOW" RAIL
   ========================================================= */
.now { margin: 18px calc(-1 * var(--pad)) 8px; padding-top: 18px; }
.now__head { padding: 0 var(--pad) 14px; }
.now__title { margin: 6px 0 0; font-family: var(--serif); font-weight: 360; font-variation-settings: "opsz" 120; font-size: clamp(30px, 8.4vw, 48px); line-height: 1.02; letter-spacing: -.025em; color: var(--cream); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ok); animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.now__rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 4px var(--pad) 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.now__rail::-webkit-scrollbar { display: none; }
.now-card {
  position: relative; flex: none; width: min(70vw, 280px); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  scroll-snap-align: start; isolation: isolate; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -30px rgba(0, 0, 0, .9);
  transition: transform var(--t-fast) var(--ease-out);
}
.now-card:has(.item__open:active) { transform: scale(.97); }
.now-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1200ms var(--ease-out); }
.now-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 24, 15, 0) 40%, rgba(21, 24, 15, .92) 100%); }
@media (hover: hover) { .now-card:hover > img { transform: scale(1.05); } }
.now-card__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: grid; gap: 4px; }
.now-card__cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); font-weight: 500; }
.now-card b { font-family: var(--serif); font-weight: 420; font-size: 21px; line-height: 1.12; color: var(--cream); letter-spacing: -.01em; }
.now-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.now-card .price { font-size: 16px; }
.now-card .item__add { background: rgba(21, 24, 15, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* filter bar */
.filter-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--sand-a12); box-shadow: inset 0 0 0 1px var(--sand-a24); color: var(--sand-2); font-size: 13.5px; font-weight: 500; animation: fadeUp 420ms var(--ease-out); }
.filter-bar svg { width: 17px; height: 17px; }
.filter-bar span { flex: 1; min-width: 0; }
.filter-bar button { min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sand); color: var(--sand-ink); font-weight: 600; font-size: 13px; }

/* =========================================================
   PRODUCT SHEET EXTRAS
   ========================================================= */
.p-actions { position: absolute; top: 14px; left: 14px; z-index: 4; display: flex; gap: 8px; }
.p-actions .icon-btn { background: rgba(21, 24, 15, .5); }
#pFav[aria-pressed="true"] { color: var(--sand-ink); background: var(--sand); box-shadow: none; }
#pFav[aria-pressed="true"] svg { fill: currentColor; }
#pFav.burst { animation: burst 600ms var(--spring); }
#pFav.burst::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--sand); animation: ring 600ms var(--ease-out) forwards; }
@keyframes burst { 0% { transform: scale(.7); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.sheet--product .sheet__scroll { touch-action: pan-y; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.p-nav { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.p-nav__btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background var(--t-fast), opacity var(--t); }
.p-nav__btn:active { background: var(--surface-2); }
.p-nav__btn[disabled] { opacity: .3; pointer-events: none; }
.p-nav__btn svg { width: 17px; height: 17px; }
.p-nav__no { min-width: 44px; text-align: center; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.p-price { margin: -4px 0 14px; font-size: 22px; }
.p-price .price { font-family: var(--serif); font-weight: 450; }
.p-desc { margin: 0 0 18px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.p-desc p { margin: 0; }
.p-dl { margin: 0; display: grid; gap: 0; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.p-dl > div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.p-dl > div:last-child { border-bottom: 0; }
.p-dl dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); font-weight: 600; margin-bottom: 3px; }
.p-dl dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.p-hero--empty { position: relative; }
.p-hero__mono { position: absolute; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 120px; line-height: 1; color: var(--sand); opacity: .14; }
.p-pair { margin-top: 22px; }
.p-pair h4 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.p-pair__rail { display: flex; gap: 10px; overflow-x: auto; scroll-padding: 0 var(--pad); margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x pan-y; }
.p-pair__rail::-webkit-scrollbar { display: none; }
.pair { flex: none; width: 118px; display: grid; gap: 4px; text-align: left; scroll-snap-align: start; }
.pair__ph { width: 118px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, var(--olive-2), var(--surface-2)); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.pair__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) var(--ease-out); }
.pair:active .pair__ph img { transform: scale(.94); }
.pair__ph i { font-family: var(--serif); font-size: 38px; font-weight: 300; color: var(--sand); }
.pair__name { font-family: var(--serif); font-size: 14.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pair .price { font-size: 13px; }

/* =========================================================
   PANEL SHEET (categories · filters · favourites)
   ========================================================= */
.sheet--panel { max-height: 90dvh; }
.sheet--panel .sheet__scroll { padding-bottom: calc(20px + var(--safe-b)); }
.sheet--panel .sheet__foot { padding-bottom: calc(14px + var(--safe-b)); }
.cg-sec { display: flex; align-items: baseline; gap: 10px; margin: 18px var(--pad) 10px; font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--cream); }
.cg-sec span { font-style: italic; font-weight: 300; font-size: 14px; color: var(--sand); }
.cg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 var(--pad); }
.cg-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; text-align: left; isolation: isolate;
  background: radial-gradient(120% 120% at 20% 10%, var(--olive-2), var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--line);
  animation: rise 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms);
  transition: transform var(--t-fast) var(--ease-out);
}
.cg-card:active { transform: scale(.96); }
.cg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cg-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 24, 15, .05) 30%, rgba(21, 24, 15, .88)); }
.cg-card > i { position: absolute; right: 12px; top: 2px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 64px; color: var(--sand); opacity: .35; }
.cg-card__txt { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; line-height: 1.15; }
.cg-card b { font-family: var(--serif); font-weight: 450; font-size: 17px; color: var(--cream); }
.cg-card small { font-size: 12px; color: var(--text-2); }
.cg-card.is-here { box-shadow: inset 0 0 0 2px var(--sand); }
.cg-card.is-here::before { content: "Buradasın"; position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; background: var(--sand); color: var(--sand-ink); }

.f-group { padding: 10px var(--pad) 14px; }
.f-label { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.f-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.f-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: background var(--t), color var(--t); }
.f-seg button svg { width: 18px; height: 18px; }
.f-seg button[aria-pressed="true"] { background: var(--sand); color: var(--sand-ink); }
.f-toggle { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.f-toggle > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.f-toggle b { font-weight: 600; font-size: 15px; }
.f-toggle small { color: var(--text-3); font-size: 12.5px; }
.f-toggle__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(159, 193, 138, .12); color: var(--ok); }
.switch { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); transition: background var(--t); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform 360ms var(--spring); }
[aria-pressed="true"] > .switch { background: var(--ok); }
[aria-pressed="true"] > .switch::after { transform: translateX(18px); }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip { display: inline-flex; align-items: center; gap: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--t), color var(--t), box-shadow var(--t), gap var(--t); }
.f-chip svg { width: 0; height: 15px; stroke-width: 2.2; transition: width var(--t) var(--ease-out); }
.f-chip[aria-pressed="true"] { gap: 6px; color: #f0b39e; background: rgba(229, 140, 111, .12); box-shadow: inset 0 0 0 1px rgba(229, 140, 111, .4); }
.f-chip[aria-pressed="true"] svg { width: 15px; }
.f-note { display: flex; gap: 8px; margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.f-note svg { width: 15px; height: 15px; margin-top: 2px; color: var(--sand); }

.l-item__main { display: grid; text-align: left; min-width: 0; }
.l-item__acts { display: flex; align-items: center; gap: 6px; }
.l-item__acts .item__add { margin: 0; }
button.l-item__ph { padding: 0; }
.mini-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.mini-btn svg { width: 18px; height: 18px; }
.mini-btn--fav { color: var(--sand); }
.mini-btn--fav svg { fill: currentColor; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 560px) {
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .view-list .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__tiles { grid-template-columns: 1fr 1fr; }
  .sheet { left: 50%; right: auto; width: min(560px, 100%); margin-left: calc(min(560px, 100%) / -2); }
}

@media (min-width: 1024px) {
  :root { --top-h: 76px; --nav-h: 64px; }
  .dock { display: none; }
  .toast { bottom: 32px; }
  .logo-mark { width: 108px; }

  .hero { min-height: 92vh; padding-bottom: 80px; }
  .hero__media { left: 46%; border-radius: 0 0 0 var(--r-xl); overflow: hidden; }
  .hero__veil { background: linear-gradient(90deg, var(--bg) 46%, rgba(21, 24, 15, .25) 70%, rgba(21, 24, 15, .1)), linear-gradient(180deg, transparent 70%, var(--bg)); }
  .hero__inner { max-width: 600px; }
  .hero__scroll { display: block; }

  .menu-nav { padding: 12px 0; }


  .menu__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; max-width: 1280px; margin: 0 auto; }
  .menu__aside { display: block; position: sticky; top: calc(var(--top-h) + var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--top-h) - var(--nav-h) - 40px); overflow-y: auto; padding: 24px 0; scrollbar-width: thin; }
  .aside__sec { margin: 0 0 6px; padding-top: 18px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); }
  .aside__link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; font-size: 14.5px; color: var(--text-3); text-align: left; transition: color var(--t), transform var(--t) var(--ease-out); }
  .aside__link::before { content: ""; width: 0; height: 1px; background: var(--sand); transition: width var(--t) var(--ease-out); }
  .aside__link:hover { color: var(--text); }
  .aside__link.is-active { color: var(--cream); }
  .aside__link.is-active::before { width: 18px; }

  .items { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .view-list .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .view-list .item { grid-template-columns: 120px minmax(0, 1fr); padding: 12px; }
  .view-list .item__ph { width: 120px; }
  .menu-nav .chips { display: none; }
  .menu-nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .menu-nav .seg { margin: 0; flex: 0 1 520px; }
  .chips-row { padding: 0; gap: 8px; }
  .tool-btn { width: 44px; height: 44px; }
  .now { margin-left: 0; margin-right: 0; }
  .now__head, .now__rail { padding-left: 0; padding-right: 0; }
  .now-card { width: 250px; }
  .rows { columns: 2; column-gap: 40px; padding: 6px 22px; }
  .row-item { break-inside: avoid; }
  .cat__banner { aspect-ratio: 21 / 8; }

  .sheet--product, .sheet--list, .sheet--panel {
    top: 50%; bottom: auto; left: 50%; right: auto; width: min(560px, 92vw); margin: 0;
    max-height: 88vh; border-radius: var(--r-xl);
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform 520ms var(--ease-out), opacity 360ms var(--ease-out);
  }
  .sheet.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .sheet__grab { display: none; }
  .p-hero { border-radius: var(--r-xl) var(--r-xl) 0 0; }

  .b-stage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; align-items: center; max-width: 1180px; margin: 0 auto; width: 100%; }
  .b-copy { text-align: left; }
  .b-copy .eyebrow { justify-content: flex-start; }
  .b-plate { --size: min(40vw, 54vh, 460px); }
  .b-options { justify-content: safe center; flex-wrap: wrap; overflow: visible; max-height: 34vh; overflow-y: auto; }
  .b-opt { width: 150px; }
  .b-bar { justify-content: center; }
  .b-bar .b-sum { margin-right: 0; flex: 0 1 900px; }
}

@media (max-height: 640px) and (max-width: 1023px) {
  .b-plate { --size: min(60vw, 32vh); }
  .b-opt { width: 120px; }
  .b-opt__ph { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero__media img.on { animation: none; transform: none; }
  .rv { opacity: 1; transform: none; }
}
