/* Qədim Nuxa — guest menu · design system "Nocturne" */

:root {
  --bg: #0E0D0B;
  --surface: #171512;
  --surface-2: #201D19;
  --surface-3: #2A2621;
  --line: rgba(243, 237, 226, .08);
  --line-2: rgba(243, 237, 226, .14);
  --text: #F3EDE2;
  --muted: #A39A8B;
  --faint: #6E675C;
  --accent: #D4B07A;
  --accent-ink: #1A140C;
  --accent-soft: rgba(212, 176, 122, .12);
  --wine: #9E3B33;
  --sage: #8FAE92;

  --r-card: 18px;
  --r-pill: 999px;
  --r-sheet: 26px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);

  --gutter: 16px;
  --maxw: 1100px;
  --bar-h: 56px;
  --tabs-h: 50px;
  --nav-h: calc(var(--bar-h) + var(--tabs-h));
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* set at runtime from public/assets/fonts.js (settings.fontPair) */
  --font-body: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", "Noto Sans", Georgia, "Times New Roman", serif;
  --font-ui: var(--font-body);
}


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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html.lock { overflow: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "cv11", "ss01";
}

img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus-visible { transform: none; }
.noscript { padding: 24px; text-align: center; color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ===================================================================== */
/* Hero                                                                  */
/* ===================================================================== */
.hero {
  position: relative;
  height: 62svh;
  min-height: 440px;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-media img.is-loaded { opacity: 1; }
.hero-kb { position: absolute; inset: 0; animation: kenburns 32s var(--ease) infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero-glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 46% at 74% 22%, rgba(212, 176, 122, .20), transparent 70%),
    radial-gradient(48% 38% at 18% 70%, rgba(158, 59, 51, .13), transparent 72%),
    radial-gradient(90% 70% at 50% 0%, #1E1A15 0%, var(--bg) 70%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 11, .55) 0%, rgba(14, 13, 11, 0) 26%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 13, 11, .86) 22%, rgba(14, 13, 11, .25) 58%, rgba(14, 13, 11, 0) 80%);
}
.hero--photo .hero-shade {
  background:
    linear-gradient(180deg, rgba(14, 13, 11, .6) 0%, rgba(14, 13, 11, 0) 30%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 13, 11, .9) 20%, rgba(14, 13, 11, .35) 55%, rgba(14, 13, 11, .1) 80%);
}

.hero-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
  max-width: var(--maxw); margin: 0 auto;
}
.hero-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.hero-mark svg { width: 26px; height: 26px; }
.hero-mark span { font-size: 12px; letter-spacing: .06em; color: var(--muted); }

.hero-content {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) 64px;
  will-change: transform, opacity;
}
.hero-rule { width: 36px; height: 1px; background: var(--accent); opacity: .7; margin-bottom: 18px; }
.hero-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 13vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--text);
}
.hero-tagline {
  margin-top: 14px;
  max-width: 30em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.4;
  color: rgba(243, 237, 226, .82);
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.hero-hours { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.hero-hours svg { width: 16px; height: 16px; color: var(--accent); }
.pill-table {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px 0 11px; border-radius: var(--r-pill);
  background: rgba(212, 176, 122, .12); border: 1px solid rgba(212, 176, 122, .32);
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.pill-table svg { width: 15px; height: 15px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: var(--r-pill);
  color: var(--muted); font-size: 11.5px; letter-spacing: .08em;
  opacity: 0; animation: fadeIn 1s .9s var(--ease) forwards;
}
.scroll-cue svg { width: 18px; height: 18px; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---- Logo drawn in code, top-centre of the hero (full menu) ---- */
.hero { justify-content: flex-start; }
.hero-content {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(max(14px, env(safe-area-inset-top)) + clamp(64px, 11vh, 96px));
}
.hero-content { flex: 1; }
.hero-anim { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-meta { justify-content: center; margin-top: auto; padding-top: 22px; }
.hero-anim > .qn-logo { opacity: 1; transform: none; animation: none; }
.qn-logo {
  --gold: #D4B07A; --gold-deep: #B8873A;
  display: flex; flex-direction: column; align-items: center;
  width: min(460px, 88vw); margin: 0 auto; color: var(--text); font-weight: 400;
}
.qn-mtn { display: block; width: 41%; height: auto; overflow: visible; margin-bottom: -2px; }
.qn-ridge, .qn-glint { fill: none; stroke-linejoin: miter; stroke-linecap: butt; stroke-miterlimit: 8; }
.qn-ridge { stroke: url(#qnGold); stroke-width: 6; filter: drop-shadow(0 0 6px rgba(212, 176, 122, .18)); }
.qn-glint { stroke: url(#qnGlint); stroke-width: 6; stroke-dasharray: .07 1.2; stroke-dashoffset: .07; opacity: 0; mix-blend-mode: screen; }
.qn-name {
  display: block; margin-top: 6px;
  font: 700 clamp(42px, 12.4vw, 72px)/1 "Gelasio", Georgia, "Times New Roman", serif;
  letter-spacing: .005em; color: #F3EDE2; white-space: nowrap;
}
.qn-word { display: inline-block; white-space: nowrap; }
.qn-ch { display: inline-block; }
.qn-sub { display: flex; align-items: center; justify-content: center; gap: 4.5%; width: 100%; margin-top: .9em; font-size: clamp(11px, 3.1vw, 16px); }
.qn-rule { flex: 1; height: 2px; border-radius: 2px; }
.qn-rule--l { background: linear-gradient(90deg, rgba(212, 176, 122, 0), var(--gold) 55%, var(--gold-deep)); }
.qn-rule--r { background: linear-gradient(270deg, rgba(212, 176, 122, 0), var(--gold) 55%, var(--gold-deep)); }
.qn-restoran {
  font: 400 1em/1 "Montserrat", "Inter", system-ui, sans-serif; letter-spacing: .52em; margin-right: -.52em;
  color: var(--gold); white-space: nowrap;
}
.qn-slogan {
  display: block; margin-top: .55em;
  font: italic 500 clamp(18px, 5.4vw, 28px)/1.25 "Gelasio", Georgia, serif; letter-spacing: .02em;
  color: rgba(243, 237, 226, .86);
}

/* entrance: ridge draws itself → letters rise out of a soft blur → rules + RESTORAN open from the centre → slogan settles;
   afterwards a faint glint travels along the ridge now and then */
@media (prefers-reduced-motion: no-preference) {
  .qn-ridge { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: qnDraw 1.5s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
  .qn-glint { animation: qnGlint 7s 2.6s cubic-bezier(.45, 0, .25, 1) infinite; }
  .qn-ch {
    opacity: 0; transform: translateY(.32em) scale(.98); filter: blur(7px);
    animation: qnRise .95s calc(.45s + var(--k) * 55ms) cubic-bezier(.2, .8, .2, 1) forwards;
  }
  .qn-rule { transform: scaleX(0); animation: qnRule 1.1s 1.05s cubic-bezier(.2, .8, .2, 1) forwards; }
  .qn-rule--l { transform-origin: 100% 50%; }
  .qn-rule--r { transform-origin: 0 50%; }
  .qn-restoran { clip-path: inset(0 50% 0 50%); opacity: 0; animation: qnOpen 1.1s 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
  .qn-slogan { opacity: 0; transform: translateY(8px); filter: blur(4px); animation: qnSettle 1s 1.55s cubic-bezier(.2, .8, .2, 1) forwards; }
}
@keyframes qnDraw { to { stroke-dashoffset: 0; } }
@keyframes qnRise { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes qnRule { to { transform: scaleX(1); } }
@keyframes qnOpen { to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes qnSettle { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes qnGlint {
  0% { stroke-dashoffset: .07; opacity: 0; }
  6% { opacity: .9; }
  26% { stroke-dashoffset: -1.05; opacity: .9; }
  30%, 100% { stroke-dashoffset: -1.05; opacity: 0; }
}

/* hero entrance */
.hero-anim > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease-out) forwards; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===================================================================== */
/* Language segmented control                                            */
/* ===================================================================== */
.lang {
  position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr);
  padding: 3px; border-radius: var(--r-pill);
  background: rgba(23, 21, 18, .62); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.lang button {
  position: relative; z-index: 1;
  min-width: 40px; height: 30px; padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.lang button[aria-pressed="true"] { color: var(--accent-ink); }
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: var(--r-pill); background: var(--accent);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .42s var(--ease-out);
}
.lang--sm button { min-width: 34px; height: 28px; padding: 0 8px; font-size: 11.5px; }

/* ===================================================================== */
/* Sticky nav                                                            */
/* ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14, 13, 11, .88);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  transition: box-shadow .3s var(--ease);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.nav.is-stuck { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; }

.nav-bar {
  position: relative; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
}
.nav-title { position: relative; flex: 1; min-width: 0; height: 30px; }
.nav-title > span {
  position: absolute; left: 0; top: 0; line-height: 30px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.nav-menu { font-size: 22px; }
.nav-name { font-size: 20px; opacity: 0; transform: translateY(8px); }
.nav.is-stuck .nav-menu { opacity: 0; transform: translateY(-8px); }
.nav.is-stuck .nav-name { opacity: 1; transform: none; }

.nav-tools { display: flex; align-items: center; gap: 6px; margin-right: -8px; }
.nav-tools .lang { opacity: 0; transform: translateX(8px); pointer-events: none; visibility: hidden;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s .35s; }
.nav.is-stuck .nav-tools .lang { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }

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

/* Search field (overlays the nav bar) */
.search {
  position: absolute; inset: 8px var(--gutter);
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px 0 14px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-2);
  opacity: 0; visibility: hidden; transform: scaleX(.92); transform-origin: right center;
  transition: opacity .25s var(--ease), transform .4s var(--ease-out), visibility 0s .4s;
}
.search > svg { width: 18px; height: 18px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  font-size: 16px; padding: 0 4px; outline: none;
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search .icon-btn { width: 32px; height: 32px; }
.search .icon-btn svg { width: 18px; height: 18px; }
.nav.is-searching .search { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav.is-searching .nav-title, .nav.is-searching .nav-tools { opacity: 0; pointer-events: none; }
.nav-title, .nav-tools { transition: opacity .2s var(--ease); }

/* Tabs */
.tabs-wrap { position: relative; }
.tabs-wrap::before, .tabs-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 1px; width: 20px; z-index: 2; pointer-events: none;
}
.tabs-wrap::before { left: 0; background: linear-gradient(90deg, rgba(14, 13, 11, .95), rgba(14, 13, 11, 0)); }
.tabs-wrap::after { right: 0; background: linear-gradient(270deg, rgba(14, 13, 11, .95), rgba(14, 13, 11, 0)); }
.tabs {
  position: relative; height: var(--tabs-h);
  display: flex; align-items: stretch; gap: 4px;
  padding: 0 calc(var(--gutter) - 6px);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none;
  display: inline-flex; align-items: center;
  padding: 0 10px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-current="true"] { color: var(--text); }
.tab[hidden] { display: none; }
.tab:focus-visible { outline-offset: -6px; }
.tab-ind {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100px;
  border-radius: 2px; background: var(--accent);
  transform-origin: left center;
  transform: translateX(var(--x, 0px)) scaleX(var(--w, 0));
  transition: transform .45s var(--ease-out);
}
.tab-ind.no-anim { transition: none; }

/* ===================================================================== */
/* Sections                                                              */
/* ===================================================================== */
main { padding-bottom: 40px; }
.block { padding-top: 34px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--accent);
  margin-bottom: 8px;
}
.eyebrow svg { width: 18px; height: 18px; }
.block-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; line-height: 1.15; letter-spacing: -.005em;
}
.block-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.cat { content-visibility: auto; contain-intrinsic-size: auto 900px; scroll-margin-top: calc(var(--nav-h) + 8px); }
.cat[hidden], .block[hidden] { display: none; }
.cat-note {
  margin-top: 10px; max-width: 40em;
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
  padding-left: 12px; border-left: 1px solid rgba(212, 176, 122, .4);
}
.cat-count { font-size: 13px; color: var(--faint); padding-bottom: 5px; white-space: nowrap; }

/* ===================================================================== */
/* Collections — horizontal showcase strips                              */
/* ===================================================================== */
.colls[hidden] { display: none; }
.coll { padding-top: 30px; }
.coll + .coll { padding-top: 26px; }
.coll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.coll-titles { min-width: 0; }
.coll .eyebrow { margin-bottom: 6px; }
.eyebrow-rule { width: 18px; height: 1px; background: currentColor; opacity: .8; }
.coll--compact .block-title { font-size: 24px; }

.strip-nav { display: none; gap: 8px; flex: none; padding-bottom: 4px; }
.strip-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
  transition: opacity .25s var(--ease), background-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.strip-btn svg { width: 18px; height: 18px; stroke-width: 1.9; }
.strip-btn svg.flip { transform: scaleX(-1); }
.strip-btn:hover:not([disabled]) { background: var(--surface-3); color: var(--accent); }
.strip-btn:active:not([disabled]) { transform: scale(.94); }
.strip-btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .strip-nav { display: flex; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .4s var(--ease-out); }
  .coll:hover .strip-nav, .coll:focus-within .strip-nav { opacity: 1; transform: none; }
  .coll.no-nav .strip-nav { display: none; }
}

.strip-wrap { position: relative; }
/* edge fades: solid-colour overlays (cheaper and more robust than mask-image on a scroller) */
.strip-wrap::before, .strip-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 36px; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.strip-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(14, 13, 11, .7) 40%, rgba(14, 13, 11, 0) 100%); }
.strip-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg) 0%, rgba(14, 13, 11, .7) 40%, rgba(14, 13, 11, 0) 100%); }
.strip-wrap.is-start::before, .strip-wrap.is-end::after, .strip-wrap.is-static::before, .strip-wrap.is-static::after { opacity: 0; }
.strip {
  --pad: var(--gutter);
  display: flex; gap: 12px;
  margin-top: 16px; padding: 4px var(--pad) 10px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: none; scroll-snap-align: start; }
.strip > *:focus-within { z-index: 1; }

/* feature cards — large image cards */
.feat {
  position: relative;
  width: min(76vw, 300px); aspect-ratio: 4 / 5;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line) inset, 0 18px 40px -26px rgba(0, 0, 0, .9);
  transform: translateZ(0);
}
.feat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(243, 237, 226, .07) inset; pointer-events: none; }
.feat-main { position: absolute; inset: 0; display: block; text-align: left; width: 100%; border-radius: inherit; }
.feat-main:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }
.feat-media { position: absolute; inset: 0; transition: transform .9s var(--ease-out); }
.feat-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 9, 8, .95) 0%, rgba(10, 9, 8, .72) 30%, rgba(10, 9, 8, .08) 62%, rgba(10, 9, 8, 0) 100%);
}
.feat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 70px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.feat-name { font-family: var(--font-display); font-weight: 500; font-size: 23px; line-height: 1.18; letter-spacing: -.005em; }
.feat-desc {
  font-size: 13px; line-height: 1.45; color: rgba(243, 237, 226, .7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feat-price { font-family: var(--font-body); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; font-size: 15.5px; margin-top: 3px; }
.feat .slot { position: absolute; right: 14px; bottom: 16px; }
.feat .badges { margin: 0 0 2px; }
.feat.is-soldout .feat-media { filter: grayscale(.85) brightness(.7); }
.feat.is-soldout .feat-name, .feat.is-soldout .feat-price, .feat.is-soldout .feat-desc { opacity: .55; }
@media (hover: hover) { .feat:hover .feat-media { transform: scale(1.04); } }

/* compact cards — ~2.3 visible on phones */
.ccard { position: relative; width: calc((100vw - var(--gutter) - 2 * 12px) / 2.3); max-width: 196px; }
.ccard-main { display: flex; flex-direction: column; width: 100%; text-align: left; border-radius: 16px; }
.ccard-main:focus-visible { outline-offset: 3px; }
.ccard-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform .3s var(--ease);
}
.ccard-media .ph svg { width: 40%; }
.ccard-tags { position: absolute; left: 8px; top: 8px; }
.ccard-tags .badges { margin: 0; }
.ccard-tags .badge { background: rgba(14, 13, 11, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ccard-name {
  margin-top: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.3em);
}
.ccard-price { margin-top: 4px; font-size: 14.5px; }
.ccard { container-type: inline-size; }
.ccard .slot { position: absolute; right: 8px; top: calc(100cqw - 44px); }
.ccard .slot .soldout { margin: 10px 0 0; }
.ccard-main:active .ccard-media { transform: scale(.98); }
.ccard.is-soldout .ccard-media { opacity: .5; filter: grayscale(.8); }
.ccard.is-soldout .ccard-name, .ccard.is-soldout .ccard-price { opacity: .55; }
@media (hover: hover) { .ccard-main:hover .ccard-media { transform: scale(1.02); } .ccard-main:hover .ccard-name { color: #FFF8EC; } }

/* staggered entrance for strips (cards slide in from the right once the section is reached) */
.js-reveal .coll.reveal { opacity: 1; transform: none; }
/* NB: never transform the snap children themselves — snap positions follow transformed boxes,
   so the strip would settle 28px off. The card fades; its contents slide. */
.js-reveal .coll.reveal .coll-head, .js-reveal .coll.reveal .strip > * { opacity: 0; }
.js-reveal .coll.reveal .coll-head { transform: translateY(12px); }
.js-reveal .coll.reveal .strip > * > * { transform: translateX(28px); }
.js-reveal .coll.reveal.is-in { animation: none; }
.js-reveal .coll.reveal.is-in .coll-head { animation: rise .7s var(--ease-out) var(--d, 0ms) both; }
.js-reveal .coll.reveal.is-in .strip > * { animation: fadeIn .7s var(--ease) calc(var(--d, 0ms) + 80ms + var(--ci, 0) * 50ms) both; }
.js-reveal .coll.reveal.is-in .strip > * > * { animation: slideIn .9s var(--ease-out) calc(var(--d, 0ms) + 80ms + var(--ci, 0) * 50ms) both; }
@keyframes slideIn { to { transform: none; } }

/* Placeholder art (no photo) */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(212, 176, 122, .07), transparent 70%),
    radial-gradient(120% 100% at 50% 50%, var(--surface-2) 30%, var(--surface) 100%);
  color: rgba(212, 176, 122, .55);
}
.ph svg { width: 38%; max-width: 64px; height: auto; }
.feat .ph { align-items: start; padding-top: 24%; }
.feat .ph svg { width: 30%; max-width: 92px; color: rgba(212, 176, 122, .4); }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.photo.is-loaded { opacity: 1; }

/* Items */
.items { margin-top: 10px; }
.item { position: relative; }
.items--list .item { border-bottom: 1px solid var(--line); }
.items--list .item:last-child { border-bottom: 0; }
.item-main {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 14px;
  padding: 18px 0; text-align: left; border-radius: 12px;
}
.item-main:focus-visible { outline-offset: 2px; }
.item-text { display: flex; flex-direction: column; min-height: 108px; min-width: 0; }
.item-name { font-size: 16.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.item-desc {
  margin-top: 5px; font-size: 13.5px; line-height: 1.48; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--font-body); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
/* one consistent ₼ across every font pair (Noto Sans ₼-only subset, see fonts.js) */
.cur { font-family: "Noto Sans", var(--font-body); font-weight: inherit; font-style: normal; }
.item-foot .price { font-size: 15.5px; }
.unit { font-size: 12.5px; color: var(--faint); }
.item-media {
  position: relative; width: 108px; height: 108px; border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.item-media .ph svg { width: 44%; }
.items--list .item .slot { position: absolute; right: 6px; top: calc(18px + 108px - 6px - 36px); }
.item-main:active .item-media { transform: scale(.98); }
.item-media { transition: transform .25s var(--ease); }

/* Grid layout (category.layout = "grid") */
.items--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 16px; }
.gcard { border: 0; container-type: inline-size; }
.gcard-main { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; border-radius: 16px; position: relative; }
.gcard-main:focus-visible { outline-offset: 3px; }
.gcard-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform .3s var(--ease);
}
.gcard-media .ph svg { width: 38%; }
.gcard-tags { position: absolute; left: 8px; top: 8px; }
.gcard-tags .badges { margin: 0; }
.gcard-tags .badge { background: rgba(14, 13, 11, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gcard-body { display: flex; flex-direction: column; flex: 1; padding-top: 11px; min-width: 0; }
.gcard-name { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.gcard-desc {
  margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gcard .item-foot { padding-top: 7px; }
.gcard .item-foot .price { font-size: 15px; }
.gcard .slot { position: absolute; right: 8px; top: calc(100cqw - 44px); }
.gcard .slot .soldout { margin: 8px 0 0; }
.gcard.is-soldout .gcard-media { opacity: .45; filter: grayscale(.8); }
.gcard.is-soldout .gcard-name, .gcard.is-soldout .gcard-desc, .gcard.is-soldout .price { opacity: .5; }
.gcard-main:active .gcard-media { transform: scale(.98); }
@media (hover: hover) { .gcard-main:hover .gcard-media { transform: scale(1.015); } .gcard-main:hover .gcard-name { color: #FFF8EC; } }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px 0 7px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap;
  color: var(--muted); background: rgba(243, 237, 226, .05); border: 1px solid var(--line);
}
.badge svg { width: 12px; height: 12px; }
.badge--signature { color: #E7A49B; background: rgba(158, 59, 51, .16); border-color: rgba(158, 59, 51, .38); }
.badge--chef { color: var(--accent); background: var(--accent-soft); border-color: rgba(212, 176, 122, .3); }
.badge--spicy { color: #E59572; background: rgba(208, 105, 62, .12); border-color: rgba(208, 105, 62, .3); }
.badge--vegetarian { color: var(--sage); background: rgba(143, 174, 146, .1); border-color: rgba(143, 174, 146, .28); }
.badge--new { color: var(--text); background: transparent; border-color: var(--line-2); }
.feat .badge { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(14, 13, 11, .55); }

/* Sold out */
.item.is-soldout .item-name, .item.is-soldout .item-desc, .item.is-soldout .item-foot .price { opacity: .5; }
.item.is-soldout .item-media { opacity: .45; filter: grayscale(.8); }
.soldout {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; color: var(--text);
  background: rgba(14, 13, 11, .82); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.items--list .item .slot .soldout { margin-top: 6px; }

/* Add button + stepper */
.add-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7), 0 0 0 3px rgba(14, 13, 11, .35);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.add-btn svg { width: 18px; height: 18px; stroke-width: 2.1; }
.add-btn:hover { background: #DFBD8A; }
.add-btn:active { transform: scale(.9); }
.add-btn--lg { width: 42px; height: 42px; }
.add-btn--lg svg { width: 20px; height: 20px; }

.stepper {
  display: inline-flex; align-items: center; justify-content: space-between;
  height: 36px; min-width: 96px; padding: 0 3px; border-radius: var(--r-pill);
  background: rgba(23, 21, 18, .9); border: 1px solid rgba(212, 176, 122, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7);
}
.stepper button {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.stepper button:hover { background: var(--accent-soft); }
.stepper button:active { transform: scale(.88); }
.stepper button svg { width: 16px; height: 16px; stroke-width: 2.1; }
.stepper .qty { min-width: 22px; text-align: center; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.stepper--lg { height: 48px; min-width: 124px; padding: 0 5px; background: var(--surface-2); border-color: var(--line-2); box-shadow: none; }
.stepper--lg button { width: 38px; height: 38px; }
.stepper--lg .qty { font-size: 16px; }
.stepper--sm { height: 32px; min-width: 88px; background: var(--surface-2); border-color: var(--line-2); box-shadow: none; }
.stepper--sm button { width: 26px; height: 26px; }
.slot-pop { animation: pop .32s var(--ease-out); }
@keyframes pop { from { transform: scale(.86); opacity: .4; } to { transform: none; opacity: 1; } }

/* Empty search */
.empty { padding: 64px 12px 40px; text-align: center; }
.empty[hidden] { display: none; }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.empty-ico svg { width: 24px; height: 24px; }
.empty h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; }
.empty p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); }
.js-reveal .reveal.is-in { animation: rise .7s var(--ease-out) var(--d, 0ms) both; }

/* ===================================================================== */
/* Footer                                                                */
/* ===================================================================== */
.footer { margin-top: 32px; padding: 44px 0 calc(120px + var(--safe-b)); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.foot-brand { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.foot-intro { margin-top: 10px; max-width: 34em; color: var(--muted); font-size: 14px; line-height: 1.6; }
.foot-list { margin-top: 26px; display: grid; gap: 2px; }
.foot-row {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0;
  border-bottom: 1px solid var(--line); text-align: left; width: 100%;
}
.foot-row:last-child { border-bottom: 0; }
.foot-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; }
.foot-ico svg { width: 18px; height: 18px; }
.foot-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.foot-label { font-size: 12px; color: var(--faint); letter-spacing: .02em; }
.foot-val { font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.foot-val b { font-weight: 600; }
.foot-act { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.foot-act svg { width: 16px; height: 16px; }
a.foot-row:hover .foot-val, button.foot-row:hover .foot-val { color: var(--accent); }
.foot-note { margin-top: 22px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.foot-copy { margin-top: 18px; font-size: 12px; color: var(--faint); }

/* ===================================================================== */
/* Dock: order pill + cart bar                                           */
/* ===================================================================== */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 var(--gutter) calc(14px + var(--safe-b));
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
.cartbar {
  width: 100%; max-width: 520px; height: 58px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px 0 8px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .3);
  transform: translateY(calc(100% + 30px)); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .3s var(--ease);
}
.cartbar.is-shown { transform: none; opacity: 1; }
.cartbar.is-hidden { visibility: hidden; }
.cartbar-ico {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(26, 20, 12, .1);
}
.cartbar-ico svg { width: 21px; height: 21px; stroke-width: 1.8; }
.cartbar-ico.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.12); } 100% { transform: none; } }
.cartbar-label { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.cartbar-label .sep { opacity: .45; }
.cartbar-total { margin-left: auto; font-weight: 700; font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.cartbar-total svg { width: 18px; height: 18px; stroke-width: 2; }
.roll { display: inline-block; overflow: hidden; vertical-align: bottom; }
.roll > span { display: inline-block; }
.roll-in { animation: rollIn .38s var(--ease-out); }
@keyframes rollIn { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }

.order-pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 16px 0 14px; border-radius: var(--r-pill);
  background: rgba(32, 29, 25, .92); border: 1px solid var(--line-2); color: var(--text);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
  font-size: 13.5px; font-weight: 500;
  animation: rise .5s var(--ease-out) both;
}
.order-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.order-pill[data-status="served"] .dot { background: var(--sage); box-shadow: 0 0 0 4px rgba(143, 174, 146, .15); }
.order-pill[data-status="cancelled"] .dot { background: var(--wine); box-shadow: 0 0 0 4px rgba(158, 59, 51, .18); }
.order-pill .muted { color: var(--muted); }
.order-pill svg { width: 16px; height: 16px; color: var(--muted); }

/* fly-to-cart */
.fly { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
.fly-dot {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--accent) center / cover no-repeat;
  box-shadow: 0 0 0 3px rgba(14, 13, 11, .6), 0 8px 20px rgba(0, 0, 0, .5);
  will-change: transform, opacity;
}

/* toast */
.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 90;
  max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: var(--r-pill);
  background: var(--text); color: var(--accent-ink); font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .8);
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.toast svg { width: 17px; height: 17px; stroke-width: 2.2; color: #2F7D55; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ===================================================================== */
/* Sheets                                                                */
/* ===================================================================== */
.layer { position: fixed; inset: 0; z-index: 70; }
.scrim {
  position: absolute; inset: 0; background: rgba(5, 4, 3, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.layer.is-open .scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(100svh - 28px);
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
  transform: translateY(100%);
  transition: transform .5s var(--ease-out);
  overflow: hidden;
  outline: none;
}
.layer.is-open .sheet { transform: translateY(var(--drag, 0px)); }
.layer.is-dragging .sheet { transition: none; }
.layer.is-closing .sheet { transition-duration: .36s; transition-timing-function: var(--ease); }
.grab {
  position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 5;
  display: grid; place-items: center; touch-action: none; cursor: grab;
}
.grab::before { content: ""; width: 38px; height: 4px; border-radius: 4px; background: rgba(243, 237, 226, .28); }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-foot {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px var(--gutter) calc(14px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--surface);
}
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14, 13, 11, .6); color: var(--text); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sheet-close svg { width: 18px; height: 18px; }

/* Detail sheet */
.d-media { position: relative; height: min(46svh, 360px); background: var(--surface-2); touch-action: none; overflow: hidden; }
.d-media .ph svg { width: 22%; max-width: 96px; }
.d-media-inner { position: absolute; inset: 0; transform: scale(1.06); opacity: 0; transition: transform .8s var(--ease-out), opacity .5s var(--ease); }
.layer.is-open .d-media-inner { transform: none; opacity: 1; }
.d-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, var(--surface), rgba(23, 21, 18, 0)); pointer-events: none; }
.d-body { padding: 4px var(--gutter) 22px; }
.d-body > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.layer.is-open .d-body > * { opacity: 1; transform: none; }
.layer.is-open .d-body > *:nth-child(2) { transition-delay: .04s; }
.layer.is-open .d-body > *:nth-child(3) { transition-delay: .08s; }
.layer.is-open .d-body > *:nth-child(4) { transition-delay: .12s; }
.layer.is-open .d-body > *:nth-child(5) { transition-delay: .16s; }
.layer.is-open .d-body > *:nth-child(n+6) { transition-delay: .2s; }
.d-title { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; }
.d-sub { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; }
.d-sub .price { font-size: 18px; }
.d-desc { margin-top: 14px; font-size: 15px; line-height: 1.6; color: rgba(243, 237, 226, .8); }
/* dish details: weight, nutrition, cooking time, allergens */
.unit + .info-short::before { content: "·"; margin-right: 8px; }
.d-info { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.d-info-h { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.d-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d-fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; min-width: 0; }
.d-fact-v { display: block; font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-fact-v small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.d-fact-k { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: var(--muted); overflow-wrap: break-word; hyphens: auto; }
.d-allergens { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d-allergens .d-fact-k { margin: 0 4px 0 0; width: 100%; }
.d-allergen { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.d-incart { margin-top: 14px; font-size: 13px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.d-incart svg { width: 15px; height: 15px; }
.field { margin-top: 20px; display: block; }
.field-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field-label svg { width: 16px; height: 16px; }
.input, .textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text);
  padding: 12px 14px; font-size: 16px; line-height: 1.45;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.textarea { min-height: 76px; resize: none; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus { outline: none; border-color: rgba(212, 176, 122, .7); background: #24211C; }
.input[readonly] { color: var(--accent); background: var(--accent-soft); border-color: rgba(212, 176, 122, .3); }
.field-hint { margin-top: 6px; font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 8px; }

.btn {
  flex: 1; min-height: 52px; padding: 0 20px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15.5px; font-weight: 600; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  transition: background-color .2s var(--ease), transform .15s var(--ease), opacity .2s var(--ease);
}
.btn:hover { background: #DFBD8A; }
.btn-lbl { line-height: 1.25; }
.nowrap { white-space: nowrap; }
@media (max-width: 360px) {
  .sheet-foot { gap: 10px; }
  .sheet-foot .btn { padding: 0 14px; font-size: 15px; }
  .stepper--lg { min-width: 108px; }
  .stepper--lg button { width: 34px; height: 34px; }
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; stroke-width: 2; }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--surface-3); }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn .dots { display: inline-flex; gap: 4px; }
.btn .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; animation: dot 1.1s var(--ease) infinite; }
.btn .dots i:nth-child(2) { animation-delay: .15s; }
.btn .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { opacity: 1; } }

/* Cart sheet */
.c-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 28px var(--gutter) 14px; touch-action: none; border-bottom: 1px solid var(--line); }
.c-head .sheet-close { position: static; margin-top: 2px; flex: none; }
.c-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.c-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.c-lines { padding: 0 var(--gutter); }
.c-line { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-thumb { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.c-thumb .ph svg { width: 52%; }
.c-info { min-width: 0; }
.c-top { display: flex; justify-content: space-between; gap: 10px; }
.c-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.c-line-total { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-unit { margin-top: 2px; font-size: 12.5px; color: var(--faint); }
.c-note-btn {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  font-size: 13px; color: var(--muted); text-align: left;
}
.c-note-btn svg { width: 15px; height: 15px; flex: none; }
.c-note-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-note-btn.has-note { color: var(--text); font-style: italic; }
.c-note-edit { margin-top: 8px; }
.c-note-edit .textarea { min-height: 60px; font-size: 15px; padding: 10px 12px; }
.c-ctrl { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 6px 4px; border-radius: 8px; }
.c-remove svg { width: 16px; height: 16px; }
.c-remove:hover { color: #E7A49B; }
.c-line.is-soldout .c-name, .c-line.is-soldout .c-line-total { opacity: .5; text-decoration: line-through; text-decoration-color: rgba(243, 237, 226, .4); }
.c-flag { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #E7A49B; }
.c-flag svg { width: 14px; height: 14px; }
.c-line.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.c-extra { padding: 4px var(--gutter) 8px; }
.c-sum { margin: 18px var(--gutter) 8px; padding: 16px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 8px; font-size: 14px; }
.c-sum-row { display: flex; justify-content: space-between; color: var(--muted); }
.c-sum-row span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.c-sum-total { padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 16px; }
.c-sum-total span:last-child { color: var(--accent); font-size: 18px; }
.c-msg {
  width: 100%; margin: 0; padding: 11px 14px; border-radius: 14px;
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(158, 59, 51, .14); border: 1px solid rgba(158, 59, 51, .4); color: #F1C2BB; font-size: 13.5px; line-height: 1.45;
  animation: rise .35s var(--ease-out) both;
}
.c-msg svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.c-msg[hidden] { display: none; }
.c-empty { padding: 48px var(--gutter) 40px; text-align: center; color: var(--muted); }
.c-empty .empty-ico { margin-bottom: 14px; }
.c-empty h3 { font-family: var(--font-display); font-weight: 500; color: var(--text); font-size: 21px; margin-bottom: 6px; }
.c-hint { padding: 0 var(--gutter) 14px; font-size: 12.5px; color: var(--faint); }

/* Full-screen variants */
.layer--full .sheet { top: 0; max-height: none; border-radius: 0; transform: translateY(24px); opacity: 0; transition: transform .55s var(--ease-out), opacity .4s var(--ease); }
.layer--full.is-open .sheet { transform: none; opacity: 1; }
.layer--full .scrim { background: var(--bg); }

/* AR / 3D view */
.ar-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--muted); font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; vertical-align: middle;
}
.ar-chip svg { width: 13px; height: 13px; flex: none; }
/* "AR" mark on card photos — dark glass, brass hairline, sits in the free top-right corner */
.ar-mark {
  position: absolute; top: 7px; right: 7px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 5px; border-radius: var(--r-pill);
  background: rgba(14, 13, 11, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(212, 176, 122, .28) inset;
  color: var(--accent); font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; line-height: 1;
}
.ar-mark svg { width: 12px; height: 12px; flex: none; opacity: .9; }
.gcard-media .ar-mark, .ccard-media .ar-mark { top: 8px; right: 8px; }
.feat .ar-mark { top: 14px; right: 14px; height: 24px; padding: 0 9px 0 7px; font-size: 11.5px; }
.feat .ar-mark svg { width: 14px; height: 14px; }
.is-soldout .ar-mark { opacity: .55; }
.d-ar {
  margin-top: 18px; width: 100%; min-height: 50px; padding: 0 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; border: 1px solid rgba(212, 176, 122, .38); background: var(--accent-soft);
  color: var(--accent); font-weight: 600; font-size: 15px; transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.d-ar svg { width: 20px; height: 20px; flex: none; }
.d-ar:active { transform: scale(.985); }
.layer--ar .sheet { bottom: 0; height: 100%; background: radial-gradient(120% 70% at 50% 45%, #241F19 0%, var(--bg) 70%); }
.ar-wrap { position: relative; height: 100%; display: flex; flex-direction: column; }
.ar-top { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 6px; }
.ar-top > div { flex: 1; min-width: 0; }
.ar-top .sheet-close { position: static; flex: none; width: 44px; height: 44px; }
.ar-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.ar-sub { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 14px; }
.ar-stage { position: relative; flex: 1; min-height: 220px; }
.ar-stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: var(--accent); }
.ar-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.ar-status[hidden] { display: none; }
.ar-status svg { width: 28px; height: 28px; }
.ar-status.is-error { color: #E6A39C; }
.ar-spin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: ar-spin 1s linear infinite; }
@keyframes ar-spin { to { transform: rotate(360deg); } }
.ar-foot { flex: none; display: grid; gap: 12px; padding: 10px var(--gutter) calc(16px + var(--safe-b)); max-width: 560px; width: 100%; margin: 0 auto; }
.ar-hint { margin: 0; min-height: 1.4em; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ar-foot .btn { width: 100%; }
.ar-foot .btn[hidden] { display: none; }
.ar-foot .btn svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .ar-spin { animation-duration: 3s; } }

/* Order status view */
.ov { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px calc(28px + var(--safe-b)); }
.ov-check { width: 96px; height: 96px; color: var(--sage); }
.ov-check circle { stroke-dasharray: 289; stroke-dashoffset: 289; animation: draw .9s .15s var(--ease-out) forwards; }
.ov-check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .75s var(--ease-out) forwards; }
.ov-check.is-static circle, .ov-check.is-static path { animation: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ov-label { margin-top: 26px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.ov-num { font-family: var(--font-display); font-weight: 500; font-size: 64px; line-height: 1.05; color: var(--text); font-variant-numeric: lining-nums; }
.ov-title { margin-top: 14px; font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.ov-msg { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 22em; }
.ov > * { opacity: 0; animation: rise .7s var(--ease-out) forwards; }
.ov > *:nth-child(1) { opacity: 1; animation: none; }
.ov > *:nth-child(2) { animation-delay: .5s; }
.ov > *:nth-child(3) { animation-delay: .58s; }
.ov > *:nth-child(4) { animation-delay: .66s; }
.ov > *:nth-child(5) { animation-delay: .74s; }
.ov > *:nth-child(n+6) { animation-delay: .82s; }
.steps { position: relative; margin-top: 36px; width: 100%; max-width: 340px; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps-track { position: absolute; top: 11px; left: 16.66%; right: 16.66%; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.steps-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--ease-out); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; color: var(--faint); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); display: grid; place-items: center; transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.step-dot svg { width: 13px; height: 13px; stroke-width: 2.6; color: var(--accent-ink); opacity: 0; transition: opacity .3s var(--ease); }
.step.is-done { color: var(--muted); }
.step.is-done .step-dot { background: var(--accent); border-color: var(--accent); }
.step.is-done .step-dot svg { opacity: 1; }
.step.is-current { color: var(--text); font-weight: 600; }
.step.is-current .step-dot { border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 5px var(--accent-soft); }
.step.is-current .step-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.step.is-current .step-dot svg { display: none; }
.ov-cancel { margin-top: 30px; padding: 12px 16px; border-radius: 14px; background: rgba(158, 59, 51, .14); border: 1px solid rgba(158, 59, 51, .4); color: #F1C2BB; font-size: 14px; }
.ov-meta { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.ov-meta b { color: var(--text); font-weight: 600; }
.ov-actions { margin-top: 30px; width: 100%; max-width: 340px; display: grid; gap: 10px; }
.ov-updated { margin-top: 12px; font-size: 12px; color: var(--faint); }

/* Waiter view — high contrast */
.layer--light .scrim { background: #F6F1E7; }
.layer--light .sheet { background: #F6F1E7; color: #15110B; box-shadow: none; }
.wv { padding: max(20px, env(safe-area-inset-top)) 22px calc(28px + var(--safe-b)); max-width: 680px; margin: 0 auto; width: 100%; }
.wv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wv-brand { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #6B4E22; }
.wv-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #15110B; color: #F6F1E7; }
.wv-close svg { width: 20px; height: 20px; stroke-width: 2; }
.wv-table { margin-top: 26px; font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.05; }
.wv-lead { margin-top: 6px; font-size: 15px; color: #5A5146; }
.wv-list { margin-top: 24px; border-top: 2px solid #15110B; }
.wv-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(21, 17, 11, .16); }
.wv-qty { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wv-name { font-size: 20px; font-weight: 700; line-height: 1.25; }
.wv-alt { margin-top: 2px; font-size: 14px; color: #5A5146; }
.wv-note { margin-top: 6px; display: inline-block; padding: 4px 10px; border-radius: 8px; background: #EADFC9; font-size: 15px; font-weight: 600; color: #3B2A10; }
.wv-price { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wv-onote { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #EADFC9; font-size: 16px; font-weight: 600; color: #3B2A10; }
.wv-onote small { display: block; font-size: 12.5px; font-weight: 500; color: #6B5A3D; margin-bottom: 2px; }
.wv-sum { margin-top: 20px; display: grid; gap: 6px; font-size: 16px; color: #3D362D; }
.wv-sum div { display: flex; justify-content: space-between; }
.wv-total { margin-top: 6px; padding-top: 12px; border-top: 2px solid #15110B; font-size: 24px; font-weight: 700; color: #15110B; }

/* Error state */
.load-error { padding: 80px 24px; text-align: center; color: var(--muted); }
.load-error h2 { font-family: var(--font-display); color: var(--text); font-weight: 500; font-size: 24px; margin-bottom: 8px; }
.load-error .btn { margin-top: 22px; flex: none; min-width: 180px; }

/* Loading skeleton (no web-font text → nothing to swap) */
.hero--loading .hero-content { padding-bottom: 64px; }
.boot-mark { width: 30px; height: 30px; color: var(--accent); opacity: .8; margin-bottom: 22px; }
.skeleton { max-width: var(--maxw); margin: 0 auto; padding: 26px var(--gutter); }
.sk {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  border-radius: 12px;
  animation: shimmer 1.6s var(--ease) infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-name { width: min(70%, 380px); height: 52px; border-radius: 14px; }
.sk-line { width: min(52%, 300px); height: 16px; margin-top: 16px; opacity: .7; }
.sk-tabs { height: 28px; width: 82%; margin-bottom: 30px; border-radius: 999px; opacity: .6; }
.sk-title { width: 46%; height: 26px; margin-bottom: 18px; }
.sk-strip { display: flex; gap: 12px; margin-bottom: 34px; overflow: hidden; }
.sk-card { flex: none; width: min(76vw, 300px); aspect-ratio: 4 / 5; border-radius: var(--r-card); }
.sk-row { height: 108px; margin-bottom: 14px; opacity: .7; }
.page.is-entering { animation: pageIn .6s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================================================================== */
/* Larger screens                                                        */
/* ===================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero { height: 58svh; }
  .hero-content { padding-bottom: 76px; }
  .block-title { font-size: 34px; }
  .items--list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .items--list .item, .items--list .item:last-child { border-bottom: 0; border-top: 1px solid var(--line); }
  .items--list .item:nth-child(-n+2) { border-top: 0; }
  .item-main { grid-template-columns: minmax(0, 1fr) 120px; }
  .item-media { width: 120px; height: 120px; }
  .item-text { min-height: 120px; }
  .items--list .item .slot { top: calc(18px + 120px - 6px - 36px); }
  .items--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .strip { --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); gap: 16px; }
  .strip-wrap::before, .strip-wrap::after { width: max(36px, calc((100vw - var(--maxw)) / 2 + 8px)); }
  .feat { width: 300px; }
  .ccard { width: 200px; max-width: none; }
  .coll--compact .block-title { font-size: 28px; }
  .layer:not(.layer--full) .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: min(88svh, 860px);
    border-radius: var(--r-sheet);
    transform: translate(-50%, calc(-50% + 30px)) scale(.98); opacity: 0;
    transition: transform .5s var(--ease-out), opacity .35s var(--ease);
  }
  .layer:not(.layer--full).is-open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .grab { display: none; }
  .footer .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0 48px; }
  .foot-list { margin-top: 0; }
  .foot-note, .foot-copy { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .items--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .cartbar { max-width: 460px; }
}
@media (hover: hover) {
  .item-main:hover .item-name { color: #FFF8EC; }
  .item-main:hover .item-media { transform: scale(1.015); }
}

/* ===================================================================== */
/* Reduced motion                                                        */
/* ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .hero-kb, .sk { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   PDF-layout menu (developer switch "Ətraflı menyu" on) — the owner's design:
   cream paper, gold double frame, sticky search + category chips, dark bands,
   dotted leaders; 2 columns from 760px. All classes prefixed sm- (no clashes).
   ========================================================================== */
html.is-simple {
  --sm-bg: #F8F2E4;
  --sm-ink: #2B1D14;
  --sm-gold: #A9822F;
  --sm-gold-light: #E9CF8E;
  --sm-soft: #8C7A63;
  --sm-line: rgba(169, 130, 47, .35);
  --sm-serif: "Gelasio", Georgia, serif;
  --sm-sans: "Montserrat", system-ui, sans-serif;
  background: var(--sm-bg);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}
@media (prefers-reduced-motion: reduce) { html.is-simple { scroll-behavior: auto; } }
html.is-simple body { background: var(--sm-bg); color: var(--sm-ink); font-family: var(--sm-serif); }
html.is-simple .boot { visibility: hidden; }
html.is-simple .skip { display: none; }

.sm {
  max-width: 980px;
  margin: 14px auto;
  border: 1.5px solid var(--sm-gold);
  outline: .5px solid var(--sm-gold);
  outline-offset: -6px;
  position: relative;
  padding: 0 0 24px;
  min-height: calc(100vh - 28px);
  font-family: var(--sm-serif);
  color: var(--sm-ink);
}
@media (max-width: 1008px) { .sm { margin-inline: 14px; } }
.sm::before, .sm::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  background: var(--sm-gold); transform: rotate(45deg); top: -6px;
}
.sm::before { left: -6px; }
.sm::after { right: -6px; }

.sm-hero { text-align: center; padding: 30px 20px 14px; }
.sm-logo { line-height: 0; }
.sm-logo img { display: block; width: min(400px, 82vw); height: auto; margin: 0 auto; }
.sm-mountain { width: 90px; height: 28px; display: block; margin: 0 auto 6px; color: var(--sm-gold); }
.sm-brand { font: 700 clamp(34px, 8vw, 52px)/1.05 var(--sm-serif); letter-spacing: .5px; }
.sm-sub {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 400 12px/1.4 var(--sm-sans); color: var(--sm-gold); letter-spacing: .45em; margin: 8px 0 6px;
}
.sm-sub::before, .sm-sub::after { content: ""; width: 56px; height: 1px; background: var(--sm-gold); }
.sm-slogan { font: italic 500 16px/1.4 var(--sm-serif); color: var(--sm-soft); }

.sm-sticky {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 242, 228, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line);
  padding: 10px 16px;
}
.sm-search {
  display: flex; align-items: center; gap: 8px; color: var(--sm-soft);
  background: rgba(255, 255, 255, .53); border: 1px solid var(--sm-line); border-radius: 999px;
  padding: 8px 14px; margin-bottom: 10px; cursor: text;
}
.sm-search input {
  border: 0; outline: 0; background: transparent; width: 100%; min-width: 0;
  font: 16px var(--sm-sans); color: var(--sm-ink); -webkit-appearance: none; appearance: none;
}
.sm-search input::placeholder { color: var(--sm-soft); }
.sm-search:focus-within { border-color: var(--sm-gold); }
.sm-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sm-chips::-webkit-scrollbar { display: none; }
.sm-chip {
  flex: none; white-space: nowrap;
  font: 600 12px/1.2 var(--sm-sans); letter-spacing: .03em;
  color: var(--sm-ink); border: 1px solid var(--sm-line);
  padding: 7px 13px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s;
}
.sm-chip.active { background: var(--sm-ink); color: var(--sm-gold-light); border-color: var(--sm-ink); }
.sm-chip:focus-visible { outline: 2px solid var(--sm-gold); outline-offset: 2px; }

.sm-menu { padding: 22px 18px 0; }
@media (min-width: 760px) { .sm-menu { columns: 2; column-gap: 28px; padding: 28px 34px 0; } }
.sm-section { margin-bottom: 20px; break-inside: avoid; display: inline-block; width: 100%; }

.sm-band {
  position: relative; background: var(--sm-ink); color: var(--sm-gold-light);
  border-radius: 6px; text-align: center;
  font: 700 15px/1.3 var(--sm-serif); letter-spacing: .06em;
  padding: 8px 34px; margin-bottom: 8px;
}
.sm-band::before, .sm-band::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px;
  background: var(--sm-gold); transform: translateY(-50%) rotate(45deg);
}
.sm-band::before { left: 13px; }
.sm-band::after { right: 13px; }

.sm-item { display: flex; align-items: baseline; gap: 6px; padding: 6px 4px; font-size: 16px; line-height: 1.35; }
.sm-name { flex: none; max-width: 75%; }
.sm-dots { flex: 1; min-width: 14px; transform: translateY(-3px); border-bottom: 1.5px dotted var(--sm-soft); opacity: .7; }
.sm-price { flex: none; font: 600 14px var(--sm-sans); color: var(--sm-gold); white-space: nowrap; }
.sm-item mark { background: var(--sm-gold-light); color: inherit; border-radius: 2px; }
.sm-item.is-out .sm-name { color: var(--sm-soft); text-decoration: line-through; }
.sm-item.is-out .sm-price { color: var(--sm-soft); font-style: italic; font-weight: 400; }

.sm-empty { text-align: center; color: var(--sm-soft); font-style: italic; padding: 30px 0; column-span: all; }

.sm-foot {
  text-align: center; font: 12px/1.5 var(--sm-sans); color: var(--sm-soft);
  margin-top: 10px; padding: 16px 20px 0; border-top: 1px solid var(--sm-line);
}
.sm-foot .sm-slogan { display: block; margin-top: 6px; }

@media (max-width: 420px) { .sm { margin: 8px; } html.is-simple { scroll-padding-top: 120px; } }
@media print { .sm-sticky { display: none; } .sm { border: 0; outline: 0; } }

/* attribution line for licensed 3D models (CC-BY) under the AR viewer */
.ar-credit { margin: 6px 0 0; font-size: 11px; line-height: 1.4; color: var(--faint); text-align: center; }
.ar-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(243, 237, 226, .25); text-underline-offset: 2px; }
