/* =====================================================================
   AKYÜZ — MENÜ SAYFASI (/menu)
   1) kategori kartları  2) seçilen kategorinin ürünleri.  Önce mobil.
   ===================================================================== */
:root {
  --night-900: #0a121c;
  --night-800: #0f1b2a;
  --cream-50: #fbf8f2;
  --cream-100: #f4eee3;
  --cream-200: #e9e0cf;
  --stone: #7b776d;
  --ink: #141c26;
  --gold: #a88e55;
  --gold-dark: #7c6637;
  --moss: #5f7a5a;
  --lake: #3a67a6;
  --logo-gold: #d2b87f;
  --logo-blue: #3a67a6;
  --logo-tag: #f4eee3;
  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: 16px;
}
:root:lang(ka) { --ff-display: "Fraunces", "Noto Serif Georgian", Georgia, serif; --ff-body: "Manrope", "Noto Sans Georgian", system-ui, sans-serif; }
:root:lang(ar) { --ff-display: "Noto Naskh Arabic", "Fraunces", serif; --ff-body: "Noto Sans Arabic", "Manrope", system-ui, sans-serif; }
:root:lang(ru) { --ff-display: "Playfair Display", Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--ff-body); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--cream-50); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }
[dir="rtl"] .back .ico { transform: rotate(180deg); }

/* ---------- Üst çubuk ---------- */
.bar {
  position: sticky; top: 0; z-index: 10; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) var(--pad) 0; background: var(--night-800); color: var(--cream-50);
}
.bar__home { display: flex; align-items: center; gap: 8px; direction: ltr; }
.bar__mark { width: 34px; height: 34px; }
.bar__word { height: 20px; width: calc(20px * 396 / 154); }

/* ---------- Sayfa ---------- */
.page { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 22px var(--pad) 40px; }
.title {
  font-family: var(--ff-display); font-weight: 400; font-size: 2rem; line-height: 1.15;
  color: var(--night-800); margin-bottom: 18px;
}

/* 1. adım: kategori kartları */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 18px;
  background: var(--night-800);
}
.cat__img, .cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,18,28,.85)); }
.cat__name {
  position: absolute; inset-inline: 12px; bottom: 12px; z-index: 1; color: #fff;
  font-family: var(--ff-display); font-size: 1.15rem; line-height: 1.2;
}
.cat:active { transform: scale(.98); }

/* 2. adım: ürünler */
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: #fff; border: 1px solid var(--cream-200);
  font-size: 14px; font-weight: 600; color: var(--night-800);
}
.items { display: grid; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 10px;
  background: #fff; border: 1px solid var(--cream-200); border-radius: 16px;
}
.item__img { width: 84px; height: 84px; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: var(--cream-100); }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__body { min-width: 0; }
.item__name { display: block; font-family: var(--ff-display); font-size: 1.1rem; line-height: 1.3; color: var(--night-800); }
.item__desc { display: block; margin-top: 4px; font-size: 13px; color: var(--stone); }
.tag {
  display: inline-block; vertical-align: middle; transform: translateY(-2px);
  font-family: var(--ff-body); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px; background: var(--gold); color: #fff;
}
.tag--yeni { background: var(--lake); }
.tag--vejetaryen { background: var(--moss); }
:lang(ar) .tag, :lang(ka) .tag { letter-spacing: 0; }

/* ---------- Alt bilgi ---------- */
.foot {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--night-900); color: rgba(244,238,227,.6); font-size: 12.5px;
}
.credits { max-width: 900px; font-size: 12px; }
.credits summary { cursor: pointer; }
.credits ul { margin-top: 10px; text-align: start; columns: 2 260px; column-gap: 28px; line-height: 1.8; font-size: 11.5px; }
.credits a { text-decoration: underline; }

/* ---------- Dil seçici ---------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); font-size: 12.5px; font-weight: 700;
}
.lang__flag { display: inline-flex; }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; padding: 6px;
  background: var(--cream-50); color: var(--ink); border: 1px solid var(--cream-200); border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(10,18,28,.5);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; }
.lang__menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; direction: ltr; text-align: left; }
.lang__menu button:hover { background: var(--cream-100); }
.lang__menu .is-current { font-weight: 700; background: var(--cream-100); }

/* ---------- Tablet / masaüstü ---------- */
@media (min-width: 640px) {
  :root { --pad: 28px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .items { grid-template-columns: 1fr 1fr; gap: 12px; }
  .title { font-size: 2.6rem; }
}
@media (min-width: 1024px) {
  .bar { padding-inline: calc((100% - 1000px) / 2 + var(--pad)); height: 70px; }
  .page { padding-top: 40px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat__name { font-size: 1.3rem; inset-inline: 16px; bottom: 16px; }
  .cat img { transition: transform .6s ease; }
  .cat:hover img { transform: scale(1.06); }
}
