/* ════════════════════════════════════════════════════════════
   TEMA: classic (premium / fine-dining) — stillər
   Rənglər :root palitra dəyişənlərindən: --bg --card --text --muted --accent --soft
   Tipoqrafiya: Fraunces (display) + Inter (body/UI).
   Sifariş (pv-*) və AI köməkçi stilləri ayrıdır → themes/_base/
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  /* törəmə tokenlər (palitradan) */
  --line:       color-mix(in srgb, var(--text) 12%, transparent);
  --line-soft:  color-mix(in srgb, var(--text) 7%,  transparent);
  --gold-soft:  color-mix(in srgb, var(--accent) 13%, transparent);
  --surface:    color-mix(in srgb, var(--text) 3%, var(--bg));

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.page { max-width: 700px; margin: 0 auto; padding-bottom: 140px; }

/* Reveal: məzmunu ASLA gizlətmir (menyu kritikdir). Yalnız incə yuxarı-sürüşmə. */
html.js .reveal { opacity: 1; }
html.js .reveal:not(.is-in) { transform: translateY(14px); }
.reveal.is-in { transform: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }

/* ════════ HERO ════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 26px 26px;
}
.hero-cover {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.06) 52%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 60%, color-mix(in srgb, var(--bg) 60%, transparent) 80%, var(--bg) 100%);
}
/* Cover yoxdursa: zərif accent mesh (generic gradient deyil) */
.hero--plain { min-height: 268px; }
.hero--plain .hero-veil {
  background:
    radial-gradient(120% 80% at 12% -10%, var(--gold-soft) 0%, transparent 55%),
    radial-gradient(90% 70% at 95% 8%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}

.hero-body { position: relative; z-index: 3; }
.brand {
  width: 92px; height: 92px; border-radius: 24px; object-fit: cover;
  background: var(--card);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 50%, transparent) inset, 0 18px 40px -14px rgba(0,0,0,.5);
  border: 1px solid var(--line-soft); margin-bottom: 18px;
}
.brand--letter {
  display: grid; place-items: center;
  font-family: 'Fraunces', Georgia, serif; font-size: 40px; font-weight: 600; color: var(--accent);
}
.hero-name {
  font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto;
  font-size: clamp(30px, 8vw, 42px); font-weight: 600; line-height: 1.04; letter-spacing: -.015em;
}
.hero-about {
  margin-top: 12px; max-width: 46ch; color: var(--muted);
  font-size: 15px; line-height: 1.6;
}

/* Dil seçici — hero üzərində buzlu */
.lang-switch { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 5; display: flex; gap: 6px; }
.lang-btn {
  font: 600 12px/1 'Inter', sans-serif; padding: 8px 13px; border-radius: 999px;
  background: rgba(18,18,18,.4); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); transition: background .18s, transform .12s; cursor: pointer;
}
.lang-btn:active { transform: scale(.94); }
.lang-btn.active { background: var(--accent); border-color: var(--accent); }

/* ════════ ƏLAQƏ ════════ */
.info { padding: 6px 26px 4px; }
.info-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.chip-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.chip-meta svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; flex-shrink: 0; }

.info-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.act {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 17px; border-radius: 13px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--text);
  font: 600 13.5px 'Inter', sans-serif; transition: transform .12s, border-color .18s;
}
.act:active { transform: scale(.96); }
.act svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.act--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.act--solid svg { stroke: #fff; }
.act--wa { background: #25D366; border-color: #25D366; color: #fff; }
.act--wa svg { stroke: #fff; }

.info-social { display: flex; gap: 10px; margin-top: 18px; }
.info-social:empty { display: none; }
.info-social a {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-soft); transition: transform .12s;
}
.info-social a:active { transform: scale(.92); }
.info-social svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* ════════ MENYU AYIRICISI ════════ */
.rule { display: flex; align-items: center; gap: 16px; margin: 34px 26px 8px; }
.rule-line { flex: 1; height: 1px; background: var(--line); }
.rule-word {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500;
  font-size: 15px; color: var(--muted); letter-spacing: .02em;
}

/* ════════ YAPIŞQAN NAVİQASİYA ════════ */
.catnav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.catnav-track { display: flex; gap: 8px; overflow-x: auto; padding: 12px 26px; scrollbar-width: none; scroll-padding: 0 26px; }
.catnav-track::-webkit-scrollbar { display: none; }
.cat-pill {
  white-space: nowrap; flex-shrink: 0; cursor: pointer;
  font: 600 13.5px 'Inter', sans-serif; padding: 8px 16px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.cat-pill.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ════════ BÖLMƏLƏR ════════ */
.menu { padding: 0 26px; }
.cat { scroll-margin-top: 66px; padding-top: 30px; }

.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.cat-thumb {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background-size: cover; background-position: center; border: 1px solid var(--line-soft);
}
.cat-titles { flex-shrink: 0; }
.cat-name {
  font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto;
  font-size: 25px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
}
.cat-count { display: block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.cat-rule { flex: 1; height: 1px; background: var(--line-soft); align-self: center; margin-top: 6px; }

/* alt-kateqoriya */
.subcat { display: flex; align-items: center; gap: 14px; margin: 24px 0 6px; }
.subcat::before, .subcat::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.subcat span {
  font: 600 11px/1 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}

/* ════════ MƏHSUL ════════ */
.items { margin-top: 6px; }
.item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.item:last-child { border-bottom: 0; }
.item-main { flex: 1; min-width: 0; }
.item-head { display: flex; align-items: baseline; gap: 6px; }
.item-name { font: 600 15.5px/1.3 'Inter', sans-serif; }
.item-dots { flex: 1; min-width: 14px; align-self: flex-end; border-bottom: 1.5px dotted var(--line); transform: translateY(-5px); }
.item-price {
  font: 700 15px 'Inter', sans-serif; color: var(--accent);
  font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0;
}
.item-desc {
  color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 5px; max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 14px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.35);
}

/* ════════ FOOTER ════════ */
.foot { text-align: center; padding: 48px 26px 10px; border-top: 1px solid var(--line-soft); margin: 40px 26px 0; }
.foot-name { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600; }
.foot-by { margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.foot-by strong { color: var(--accent); font-weight: 600; }

/* ════════ YUXARI QAYIT ════════ */
.totop {
  position: fixed; left: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 55;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--line); box-shadow: 0 10px 26px -10px rgba(0,0,0,.4);
  display: grid; place-items: center; transition: transform .15s, opacity .2s;
}
.totop:active { transform: scale(.9); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ════════ BOŞ / TAPILMADI ════════ */
.state { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 30px; gap: 10px; }
.state-mark { font-size: 30px; color: var(--accent); opacity: .8; }
.state h1 { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 600; }
.state p { color: var(--muted); font-size: 15px; max-width: 34ch; }

/* ════════ HƏRƏKƏTİ AZALT ════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .hero-cover { transform: none; }
}

/* ════════ ÇAP ════════ */
@media print {
  .catnav, .totop, .lang-switch, #pv-order, .ai-fab, .ai-panel, .info-actions { display: none !important; }
  .page { max-width: 100%; padding: 0; }
  .hero { min-height: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .item { break-inside: avoid; }
  body { color: #000; background: #fff; }
}

/* ════════ color-mix dəstəyi olmayan brauzerlər ════════ */
@supports not (color: color-mix(in srgb, red, blue)) {
  body { --line: rgba(128,128,128,.28); --line-soft: rgba(128,128,128,.16); --gold-soft: var(--soft); --surface: var(--soft); }
  .catnav { background: var(--bg); }
}

/* ════════ geniş ekran (masaüstü) ════════ */
@media (min-width: 720px) {
  .hero { min-height: 380px; border-radius: 0 0 4px 4px; }
  .hero-name { font-size: 46px; }
  .cat-name { font-size: 28px; }
  .item-img { width: 104px; height: 104px; }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  MÜASİRLİK QATI — animasiyalar, axtarış, lightbox        ║
   ║  (aşağıdakılar yuxarıdakı bazanın üstünə əlavədir)       ║
   ╚══════════════════════════════════════════════════════════╝ */

/* — Sürüşmə proqressi: ən üstdə incə accent xətti — */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* — HERO girişi: cover yavaş nəfəs alır (Ken Burns), məzmun pillə-pillə qalxır — */
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.hero-cover { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-body > * { animation: heroUp .65s cubic-bezier(.2,.7,.2,1) both; }
.hero-body > *:nth-child(1) { animation-delay: .05s; }
.hero-body > *:nth-child(2) { animation-delay: .16s; }
.hero-body > *:nth-child(3) { animation-delay: .27s; }

/* — Canlı axtarış — */
.searchwrap {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 26px 4px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.searchwrap:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.searchwrap svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: 500 14.5px 'Inter', sans-serif; padding: 13px 0; outline: none;
}
.search::placeholder { color: var(--muted); }
.search::-webkit-search-cancel-button { display: none; }
.search-x {
  border: 0; cursor: pointer; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--line-soft); color: var(--muted); font-size: 12px;
}
.noresults { text-align: center; padding: 56px 20px; }
.noresults h3 { font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 600; margin-top: 8px; }
.noresults p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* — Naviqasiya yapışanda dərinlik qazanır — */
.catnav { transition: box-shadow .25s; }
.catnav.stuck { box-shadow: 0 10px 28px -18px rgba(0,0,0,.45); }
.catnav.hide { display: none; }
section.cat.hide, .item.hide, .subcat.hide { display: none; }

/* — Kartların pillələnmiş girişi (hər kart öz --d gecikməsi ilə) — */
html.js .item { opacity: 1; }
html.js .item:not(.is-in) { opacity: 0; transform: translateY(12px); }
html.js .item.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
              transform .5s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}

/* — Kart mikro-interaksiyaları — */
.item { border-radius: 16px; padding-left: 10px; padding-right: 10px; margin-left: -10px; margin-right: -10px; }
@media (hover: hover) {
  .item { transition: background .25s; }
  .item:hover { background: var(--surface); }
  .item:hover .item-img { transform: scale(1.05) rotate(.4deg); }
}
.item-img { cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .45s; }
.item-img:active { transform: scale(.96); }

/* — Şəkil yüklənənə qədər qutusunda shimmer axını — */
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
html.js .item-img:not(.ok) {
  background: linear-gradient(100deg, var(--surface) 40%, color-mix(in srgb, var(--text) 8%, var(--surface)) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
html.js .item-img.ok { animation: none; }

/* — Lightbox — */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; }
.lb-back {
  position: absolute; inset: 0;
  background: rgba(10, 10, 12, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .24s;
}
.lb-card {
  position: relative; z-index: 1; max-width: 480px; width: 100%;
  background: var(--card); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.92) translateY(14px);
  transition: opacity .24s, transform .28s cubic-bezier(.2,.7,.2,1);
}
.lb.on .lb-back { opacity: 1; }
.lb.on .lb-card { opacity: 1; transform: none; }
.lb-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface); }
.lb-cap { padding: 16px 18px 18px; }
.lb-row { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
.lb-name { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.2; }
.lb-price { font: 700 17px 'Inter', sans-serif; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 8px; }
.lb-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10,10,12,.5); color: #fff; font-size: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* — Hərəkəti azalt: bütün müasirlik qatı sakitləşir — */
@media (prefers-reduced-motion: reduce) {
  .hero-cover { animation: none; }
  .hero-body > * { animation: none; }
  html.js .item, html.js .item:not(.is-in) { opacity: 1; transform: none; transition: none; }
  html.js .item .item-img:not(.ok) { animation: none; }
  .lb-back, .lb-card { transition: none; }
}

/* — Çapda müasirlik qatı gizlənir — */
@media print {
  .progress, .searchwrap, .lb, .noresults { display: none !important; }
  html.js .item { opacity: 1 !important; transform: none !important; }
}