/* ──────────────────────────────────────────────────────────
   LYNX — Café Menu (full-bleed, no phone frame)
   ────────────────────────────────────────────────────────── */

:root {
  --ink-900: #07070a;
  --ink-800: #0d0d12;
  --ink-700: #14141a;
  --ink-600: #1c1c24;
  --ink-500: #25252f;
  --line:    #2a2a35;
  --line-2:  #3a3a48;
  --bone-50: #f4efe6;
  --bone-100: #e7dfd0;
  --bone-200: #c9bfa9;
  --bone-300: #8a8273;
  --gold-500: #c9a36b;
  --gold-400: #d8b27d;
  --gold-300: #e6c594;
  --gold-glow: rgba(201, 163, 107, .35);

  /* Topbar height — JS measures and overrides on load. Fallback for FOUC. */
  --topbar-h: 132px;

  --font-en: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-ar: "Reem Kufi", "Tajawal", "Amiri", "Segoe UI", sans-serif;
  --font-ku: "Vazirmatn", "Reem Kufi", "Tajawal", "Segoe UI", sans-serif;
  --font-ui: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Suppress horizontal page scroll on `html` only (NOT body — that breaks
   vertical scroll on iOS Safari). `clip` where supported, `hidden` as fallback. */
html {
  overflow-x: hidden;
  overflow-x: clip;
}
html, body {
  margin: 0; padding: 0;
  color: var(--bone-50);
  font-family: var(--font-ui);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a1a22 0%, transparent 60%),
    radial-gradient(800px 500px at 50% 120%, #1a1611 0%, transparent 60%),
    var(--ink-900);
}
body {
  /* Reserve space for the fixed topbar so content doesn't sit under it */
  padding-top: var(--topbar-h);
  min-height: 100svh;
}
html[lang="ar"] body, html[lang="ku"] body { font-family: var(--font-ar); }
html[lang="ku"] body { font-family: var(--font-ku); }
html[lang="en"] body { font-family: var(--font-ui); }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* ──────────────────────────────────────────────────────────
   INTRO — black SVG overlay punched by claw scratches; logo on top
   ────────────────────────────────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: transparent;        /* SVG provides the overlay color */
  overflow: hidden;
  pointer-events: none;
  transition: opacity 1.4s ease;
}
.intro.fade-out { opacity: 0; }
.intro.done     { display: none; }

/* SVG always rendered. Initially the rect is fully filled (mask is fully white,
   claws are dashed-out). Once .scratching is added, claws draw and cut holes. */
.intro__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform-origin: 50% 50%;
}
.claw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.intro.scratching .claw.c1 { animation: clawDraw .45s cubic-bezier(.55, 0, .35, 1) .05s forwards; }
.intro.scratching .claw.c2 { animation: clawDraw .50s cubic-bezier(.55, 0, .35, 1) .35s forwards; }
.intro.scratching .claw.c3 { animation: clawDraw .45s cubic-bezier(.55, 0, .35, 1) .70s forwards; }
@keyframes clawDraw { to { stroke-dashoffset: 0; } }

/* Logo: large, centered. JPG has a pure-black background — `lighten` blend
   drops the black against the (lighter) intro overlay so only the lynx shape
   remains visible. */
.intro__logo {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vmin, 560px);
  height: auto;
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
  animation:
    introLogoIn  .8s cubic-bezier(.2,.7,.2,1) .15s forwards,
    introLogoOut .55s ease 1.55s forwards;
}
@keyframes introLogoIn  { to { opacity: 1; transform: translate(-50%, -50%) scale(1);    } }
@keyframes introLogoOut { to { opacity: 0; transform: translate(-50%, -50%) scale(1.06); } }

/* ──────────────────────────────────────────────────────────
   FIXED TOPBAR — header + cats glued together, never moves
   ────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7,7,10,.97) 0%, rgba(7,7,10,.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.header { padding: 12px 16px 6px; }
.header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; max-width: 960px; margin: 0 auto;
  min-width: 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 0;             /* shrink first when space is tight */
  min-width: 0;            /* allow flex children to shrink below intrinsic size */
  overflow: hidden;
}
.brand__mark {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden; background: var(--ink-800);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(201,163,107,.08), 0 6px 18px rgba(0,0,0,.5);
}
.brand__mark img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.22) translateY(-7%);
}
.brand__txt {
  line-height: 1;
  min-width: 0;
  overflow: hidden;
}
.brand__name {
  font-family: var(--font-en);
  font-size: 24px; letter-spacing: .3em;
  color: var(--bone-50); font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .22em;
  color: var(--bone-300); text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ar"] .brand__tag, html[lang="ku"] .brand__tag {
  font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; text-transform: none;
}
.lang { flex: 0 0 auto; }    /* keep lang switcher at its natural size */

/* ─── Lang switcher ─── */
.lang { position: relative; }
.lang__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,163,107,.35);
  background: linear-gradient(180deg, rgba(201,163,107,.12), rgba(201,163,107,.02));
  color: var(--bone-50);
  transition: all .25s ease;
}
.lang__trigger:hover, .lang__trigger:active {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, rgba(201,163,107,.22), rgba(201,163,107,.06));
  box-shadow: 0 0 22px var(--gold-glow);
}
.lang__globe { color: var(--gold-400); display: grid; place-items: center; }

/* Glyph in the trigger — supports Arabic, Kurdish, and English in one stack */
.lang__current {
  font-family: "Reem Kufi", "Vazirmatn", "Cormorant Garamond", "Tajawal", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-300);
  min-width: 28px;
  text-align: center;
}
.lang__current[data-lang="en"] {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}

.lang__chev {
  width: 10px; height: 10px; color: var(--gold-400);
  transition: transform .25s ease;
}
.lang.is-open .lang__chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 200px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, #15151c 0%, #0a0a0e 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 0 1px rgba(201,163,107,.06);
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px) scale(.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
html[dir="rtl"] .lang__menu {
  inset-inline-end: auto;
  inset-inline-start: 0;
  transform-origin: top left;
}
.lang.is-open .lang__menu {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.lang__option {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: start;
  transition: background .2s ease;
  color: var(--bone-100);
}
.lang__option:hover, .lang__option:focus-visible {
  background: rgba(201,163,107,.08);
  outline: none;
}
.lang__option.is-active {
  background: rgba(201,163,107,.14);
  color: var(--gold-300);
}

/* Per-lang glyph in the dropdown — explicitly font-stacked for each language */
.lang__opt-glyph {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 600;
  color: var(--gold-400);
  flex: 0 0 auto;
}
.lang__opt-glyph[data-lang="ar"] { font-family: "Reem Kufi", "Tajawal", system-ui, sans-serif; }
.lang__opt-glyph[data-lang="ku"] { font-family: "Vazirmatn", "Reem Kufi", "Tajawal", system-ui, sans-serif; }
.lang__opt-glyph[data-lang="en"] {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; letter-spacing: .04em;
}
.lang__option.is-active .lang__opt-glyph {
  background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-900);
}
.lang__opt-text { flex: 1; min-width: 0; line-height: 1.2; }
.lang__opt-name {
  font-size: 15px; font-weight: 600;
  color: var(--bone-50);
}
html[lang="ar"] .lang__opt-name, html[lang="ku"] .lang__opt-name { font-family: var(--font-ar); }
.lang__opt-sub {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .2em;
  color: var(--bone-300);
  text-transform: uppercase;
  margin-top: 2px;
}
.lang__option.is-active .lang__opt-sub { color: var(--gold-400); }
.lang__check {
  width: 18px; height: 18px;
  color: var(--gold-400);
  opacity: 0;
  transition: opacity .2s ease;
  flex: 0 0 auto;
}
.lang__option.is-active .lang__check { opacity: 1; }

/* ──────────────────────────────────────────────────────────
   CATEGORY TABS  (live inside .topbar so they share sticky)
   ────────────────────────────────────────────────────────── */
.cats {
  padding: 10px 0 12px;
}
.cats__scroll {
  display: flex; gap: 8px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  max-width: 960px; margin: 0 auto;
}
.cats__scroll::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-700);
  color: var(--bone-200);
  font-size: 14px; font-weight: 500;
  letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s ease;
  scroll-snap-align: center;
  white-space: nowrap;
}
.cat .glyph {
  font-size: 16px;
  line-height: 1;
  transition: filter .3s ease;
  filter: grayscale(.2);
}
.cat.is-active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--ink-900);
  box-shadow: 0 0 22px var(--gold-glow);
}
.cat.is-active .glyph { filter: grayscale(0); }

/* ──────────────────────────────────────────────────────────
   FEATURED — horizontal scroll-snap slider (swipe + snap)
   ────────────────────────────────────────────────────────── */
.featured {
  padding: 24px 0 12px;
  text-align: center;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
.featured__label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .4em; color: var(--bone-300);
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 0 16px;
}
html[lang="ar"] .featured__label, html[lang="ku"] .featured__label {
  font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; text-transform: none;
}
.featured__rule {
  display: inline-block;
  width: 28px; height: 1px; background: var(--gold-500);
  margin: 0 10px; vertical-align: middle;
}

.featured__stage {
  position: relative;
  margin-top: 8px;
}
.featured__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Generous side padding so the first/last cards can snap to true center,
     and vertical padding to give the active card room to scale up */
  padding: 26px max(20px, calc(50% - 80px)) 22px;
  scroll-behavior: smooth;
}
.featured__track::-webkit-scrollbar { display: none; }

.featured__card {
  flex: 0 0 160px;
  height: 160px;
  position: relative;
  border-radius: 50%;
  cursor: pointer;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(0.82);
  opacity: .68;
  transition: transform .45s cubic-bezier(.25,.8,.25,1), opacity .45s ease;
  will-change: transform;
}
.featured__card.is-center {
  transform: scale(1.06);
  opacity: 1;
}
.featured__card .ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .5s ease;
}
.featured__card.is-center .ring {
  border-color: rgba(201,163,107,.45);
  animation: ringPulse 2.4s ease-in-out infinite;
}
.featured__card .img {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-700);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.65);
  transition: box-shadow .5s ease, border-color .5s ease;
}
.featured__card.is-center .img {
  border-color: rgba(201,163,107,.6);
  box-shadow: 0 22px 50px rgba(0,0,0,.7), 0 0 40px rgba(201,163,107,.32);
}

/* IMG MUST sit ABOVE the .ph placeholder/text so the photo is visible */
.featured__card .img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  z-index: 3;
}
/* No text inside the circles — user wants images only.
   `.ph` colored gradient stays as a fallback if an image ever fails. */
.featured__card .img .ph__icon { display: none; }

.featured__card .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 4;
}

.featured__caption {
  text-align: center;
  margin-top: 22px;
  margin-bottom: 4px;
  min-height: 60px;
  position: relative;
  padding: 0 16px;
}
.featured__caption .name {
  font-family: var(--font-en);
  font-size: 26px; font-weight: 500;
  color: var(--bone-50);
  letter-spacing: .04em;
}
html[lang="ar"] .featured__caption .name,
html[lang="ku"] .featured__caption .name { font-family: var(--font-ar); letter-spacing: 0; font-weight: 600; }
.featured__caption .price {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .25em;
  color: var(--gold-400);
  margin-top: 6px;
  text-transform: uppercase;
}

/* Dots: lots of breathing room so they never crowd caption above or items below */
.featured__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 28px;
  margin-bottom: 24px;
  padding: 6px 16px;
}
.featured__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2);
  transition: width .35s ease, background .35s ease;
  cursor: pointer;
}
.featured__dot.is-active { width: 22px; background: var(--gold-500); border-radius: 3px; }

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,163,107,.0); }
  50%      { box-shadow: 0 0 0 6px rgba(201,163,107,.06); }
}

/* ──────────────────────────────────────────────────────────
   MENU LIST  (all sections rendered for scroll-spy)
   ────────────────────────────────────────────────────────── */
.menu {
  max-width: 960px; margin: 0 auto;
  padding: 8px 20px 80px;
}
.menu-section {
  /* Scroll-margin so smooth-scroll lands below the fixed topbar */
  scroll-margin-top: calc(var(--topbar-h) + 8px);
  margin-bottom: 28px;
}
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 4px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.section__title {
  font-family: var(--font-en);
  font-size: 32px; font-weight: 500;
  letter-spacing: .04em;
  color: var(--bone-50);
}
html[lang="ar"] .section__title, html[lang="ku"] .section__title {
  font-family: var(--font-ar); letter-spacing: 0; font-weight: 600;
}
.section__count {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .2em;
  color: var(--bone-300); text-transform: uppercase;
}

.item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 6px;
  align-items: center;
  border-bottom: 1px solid rgba(42,42,53,.6);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
  position: relative;
  min-width: 0;
}
.item:active { transform: scale(.99); }
@media (hover: hover) {
  .item:hover { background: rgba(255,255,255,.02); }
  .item:hover .item__name { color: var(--gold-300); }
}
.item__thumb {
  width: 72px; height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-700);
  border: 1px solid var(--line);
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.item__thumb > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  z-index: 2;
}
.item__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.4) 100%);
  z-index: 3;
  pointer-events: none;
}
.item__body { min-width: 0; overflow: hidden; }
.item__name {
  font-family: var(--font-en);
  font-size: 19px; font-weight: 500;
  color: var(--bone-50);
  letter-spacing: .02em;
  transition: color .25s ease;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ar"] .item__name, html[lang="ku"] .item__name {
  font-family: var(--font-ar); letter-spacing: 0; font-weight: 600;
}
.item__desc {
  font-size: 13.5px;
  color: var(--bone-300);
  margin-top: 5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.item__price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-400);
  text-align: end;
  white-space: nowrap;
  line-height: 1.2;
}
.item__price .from {
  display: block;
  font-size: 8.5px;
  letter-spacing: .25em;
  color: var(--bone-300);
  margin-bottom: 3px;
}
html[lang="ar"] .item__price .from, html[lang="ku"] .item__price .from {
  font-family: var(--font-ar); letter-spacing: 0; font-size: 10px;
}

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(201,163,107,.1);
  border: 1px solid rgba(201,163,107,.3);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .15em;
  text-transform: uppercase;
  margin-inline-start: 8px;
  vertical-align: middle;
}
html[lang="ar"] .tag, html[lang="ku"] .tag {
  font-family: var(--font-ar); letter-spacing: 0; font-size: 10px; text-transform: none;
}

/* ──────────────────────────────────────────────────────────
   PLACEHOLDER ARTWORK (fallback when an image fails to load)
   ────────────────────────────────────────────────────────── */
.ph {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%),
    repeating-linear-gradient(135deg,
      hsl(var(--h, 30) 35% 22%) 0 8px,
      hsl(var(--h, 30) 35% 18%) 8px 16px);
}
.ph__icon {
  position: absolute; inset: 0;
  z-index: 1;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .2em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  text-align: center;
  padding: 6px;
}
.ph__icon.big { font-size: 14px; }

/* ──────────────────────────────────────────────────────────
   SLIDEOVER (item detail)
   ────────────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: linear-gradient(180deg, #15151c 0%, #0a0a0e 100%);
  border-top: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  padding: 8px 0 calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .55s cubic-bezier(.2,.85,.2,1);
  max-height: 88svh;
  overflow: hidden;
  box-shadow: 0 -30px 80px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
  width: min(560px, 100%);
  margin: 0 auto;
}
.sheet.is-open { transform: translateY(0); }
.sheet__handle {
  width: 44px; height: 5px;
  background: var(--line-2);
  border-radius: 999px;
  margin: 8px auto 4px;
  cursor: grab;
}
.sheet__scroll {
  overflow-y: auto;
  padding: 8px 22px 22px;
  -webkit-overflow-scrolling: touch;
}
.sheet__hero {
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 24px rgba(0,0,0,.4);
}
.sheet__hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  z-index: 2;
}
.sheet__hero .ph__icon { font-size: 14px; }
.sheet__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(7,7,10,.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--bone-50);
  z-index: 5;
  transition: background .25s ease, transform .25s ease;
}
.sheet__close:hover { background: var(--ink-700); transform: rotate(90deg); }
.sheet__cat {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .35em;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-top: 18px;
}
html[lang="ar"] .sheet__cat, html[lang="ku"] .sheet__cat {
  font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; text-transform: none;
}
.sheet__name {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 500;
  margin: 6px 0 4px;
  color: var(--bone-50);
  letter-spacing: .02em;
  line-height: 1.1;
}
html[lang="ar"] .sheet__name, html[lang="ku"] .sheet__name {
  font-family: var(--font-ar); letter-spacing: 0; font-weight: 700; font-size: 30px;
}
.sheet__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.sheet__section { margin-top: 22px; }
.sheet__sectionLabel {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .35em;
  color: var(--bone-300);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
html[lang="ar"] .sheet__sectionLabel, html[lang="ku"] .sheet__sectionLabel {
  font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; text-transform: none;
}
.sheet__sectionLabel::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.sheet__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bone-100);
}

.variants { display: grid; gap: 8px; }
.variant {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all .25s ease;
}
.variant:active { transform: scale(.99); }
.variant.is-selected {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, rgba(201,163,107,.12), rgba(201,163,107,.04));
  box-shadow: 0 0 0 1px rgba(201,163,107,.5), 0 0 24px rgba(201,163,107,.18);
}
.variant__label {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--bone-50);
}
html[lang="ar"] .variant__label, html[lang="ku"] .variant__label {
  font-family: var(--font-ar);
}
.variant__price {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gold-400);
}
.variant.is-selected .variant__price { color: var(--gold-300); }

/* sheet content stagger (only the slide-over, NOT the page) */
.sheet.is-open .sheet__hero    { animation: rise .55s ease .05s both; }
.sheet.is-open .sheet__cat     { animation: rise .55s ease .15s both; }
.sheet.is-open .sheet__name    { animation: rise .55s ease .2s  both; }
.sheet.is-open .sheet__tags    { animation: rise .55s ease .25s both; }
.sheet.is-open .sheet__section { animation: rise .55s ease .3s  both; }
.sheet.is-open .sheet__section + .sheet__section { animation-delay: .38s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 30px 16px 50px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .35em;
  color: var(--bone-300);
  text-transform: uppercase;
  position: relative; z-index: 2;
}
html[lang="ar"] .footer, html[lang="ku"] .footer {
  font-family: var(--font-ar); letter-spacing: 0; font-size: 12px; text-transform: none;
}
.footer__rule {
  width: 28px; height: 1px; background: var(--gold-500);
  margin: 0 auto 16px;
}

/* ──────────────────────────────────────────────────────────
   RTL TWEAKS
   ────────────────────────────────────────────────────────── */
html[dir="rtl"] .item { grid-template-columns: 80px 1fr auto; }
html[dir="rtl"] .item__price { text-align: start; }
html[dir="rtl"] .lang { direction: ltr; }
html[dir="rtl"] .featured__caption .price,
html[dir="rtl"] .item__price,
html[dir="rtl"] .variant__price { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .menu          { padding: 8px 24px 120px; }
  .section__head { padding: 24px 4px 16px; }
  .featured      { padding: 32px 16px 48px; }
}

@media (max-width: 560px) {
  :root { --topbar-h: 118px; }
  .header { padding: 10px 14px 4px; }
  .brand__mark   { width: 40px; height: 40px; }
  .brand__name   { font-size: 20px; letter-spacing: .26em; }
  .brand__tag    { font-size: 10px; }
  html[lang="ar"] .brand__tag,
  html[lang="ku"] .brand__tag { font-size: 11px; }
  .lang__trigger { padding: 7px 11px; }
  .lang__current { font-size: 12px; }
  .cats          { padding: 8px 0 10px; }
  .cat           { padding: 8px 14px; font-size: 13px; }

  .featured                 { padding: 18px 0 8px; }
  .featured__card           { flex: 0 0 130px; height: 130px; }
  .featured__track          { gap: 14px; padding: 22px max(16px, calc(50% - 65px)) 18px; }
  .featured__caption        { margin-top: 18px; min-height: 52px; }
  .featured__caption .name  { font-size: 22px; }
  .featured__dots           { margin-top: 22px; margin-bottom: 18px; }

  .section__title { font-size: 24px; }
  .menu           { padding: 8px 16px 60px; }
  .item           { gap: 12px; grid-template-columns: 64px minmax(0, 1fr) auto; padding: 14px 4px; }
  .item__thumb    { width: 64px; height: 64px; }
  .item__name     { font-size: 17px; }
  .item__desc     { font-size: 12.5px; }
}

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