/* ==========================================================================
   QR Menü — müşteri menüsü (mobile-first)
   Temel hedef: 360–430px telefon ekranı. Geniş ekranlar ortalanmış kolon.

   TASARIM: açık lüks / fine-dining. Tek yazı ailesi (Urbanist); hiyerarşi
   ağırlık ve harf aralığıyla kuruluyor. Kıl payı kenarlıklar, görsel üstü
   karartma katmanları, altın hairline ayraçlar. Ağır gölge yok — derinlik
   katmanlamadan geliyor.
   ========================================================================== */

body {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}
/* Sabit alt çubuk içeriğin son satırını örtmesin */
.app.has-dock { padding-bottom: var(--dock-h); }

/* Ekranlar arası geçiş */
[hidden] { display: none !important; }

/* Kart girişleri — liste basılınca aşağıdan yumuşakça belirsin. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────────────────────
   HERO / RESTORAN BAŞLIĞI — ana ekran
   ────────────────────────────────────────────────────────────── */
/* Üst dolgu iki ekranda da aynı: kategori ekranındaki köşe düğmeleri
   safe-t+54'te bitiyor, başlık 72px'te başlıyor. Bu dolguyu yalnızca
   kategoride büyütmek, ana sayfayla arada 28px'lik boy farkı yaratıyordu. */
.hero {
  position: relative;
  padding: calc(var(--safe-t) + 72px) 24px 52px;
  text-align: center;
  color: #fff;
  background: linear-gradient(140deg, #241d18 0%, #1a1512 52%, #120e0c 100%);
  overflow: hidden;
}

/* Düz gradyanı yumuşatan ışık katmanı — zemin "boyanmış" değil, derinlikli
   görünsün. Üstte ışık, sağ üstte altın parıltı, kenarlarda hafif vinyet. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% -18%, rgba(255, 252, 245, .16), transparent 60%),
    radial-gradient(62% 52% at 104% 2%, rgba(200, 164, 92, .26), transparent 72%),
    radial-gradient(58% 46% at -6% 96%, rgba(200, 164, 92, .12), transparent 70%),
    radial-gradient(140% 110% at 50% 50%, transparent 52%, rgba(0, 0, 0, .3) 100%);
}

/* Alt kenarda sayfa zeminine yumuşak geçiş */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 30px;
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* İçerik ışık katmanının üstünde kalsın */
.hero > * { position: relative; z-index: 1; }

/* Kategori ekranında hero'nun köşelerindeki geri / arama düğmeleri.
   Seçici iki sınıflı: `.hero > *` kuralı tek sınıflı bir seçiciyi ezerdi. */
.hero .hero-nav {
  position: absolute;
  z-index: 2;
  top: calc(var(--safe-t) + 10px);
  left: 12px; right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-logo {
  margin: 0 auto 18px;
  width: fit-content;
  animation: rise-in .6s var(--ease-out) backwards;
}
.hero-logo img {
  max-width: 190px;
  max-height: 96px;
  width: auto; height: auto;
  object-fit: contain;
  /* Açık renkli logolar koyu zeminde yüzer gibi dursun */
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .36));
}

.hero-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.6px;
  line-height: 1.14;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
  animation: rise-in .6s .05s var(--ease-out) backwards;
}

/* Ad ile slogan arasında altın kıl ayraç — menü kapağı hissi */
.hero-tagline {
  position: relative;
  margin-top: 20px;
  padding-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .74;
  animation: rise-in .6s .1s var(--ease-out) backwards;
}
.hero-tagline::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .85;
}

/* Logo varken restoran adı ikinci plana geçsin — iki kez bağırmasın */
.hero.has-logo .hero-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .9;
}

/* Yazı rengi siyah seçildiğinde (açık renkli başlık) */
.hero.text-black { color: var(--text); }
.hero.text-black .hero-name { text-shadow: none; }
.hero.text-black .hero-tagline { opacity: .6; }
.hero.text-black .hero-tagline::before {
  background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
}
.hero.text-black .hero-logo img { filter: drop-shadow(0 4px 14px rgba(60, 45, 25, .16)); }
.hero.text-black::before {
  background:
    radial-gradient(120% 78% at 50% -18%, rgba(255, 255, 255, .38), transparent 60%),
    radial-gradient(140% 110% at 50% 50%, transparent 58%, rgba(60, 45, 25, .1) 100%);
}

/* ──────────────────────────────────────────────────────────────
   MARKALI ÇUBUK — kategori ve arama ekranlarında yapışkan
   Logo + restoran adı her zaman ekranda kalır.
   ────────────────────────────────────────────────────────────── */
.topbar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-t) + 10px) 12px 10px;
  color: #fff;
  /* Arka plan JS ile hero ile aynı renge ayarlanır */
  background: linear-gradient(140deg, #241d18 0%, #1a1512 52%, #120e0c 100%);
}
.topbar-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 170% at 50% -50%, rgba(255, 252, 245, .12), transparent 64%);
}
/* Altın kıl çizgi — koyu çubuğu açık gövdeden temiz bir kenarla ayırır */
.topbar-brand::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(200, 164, 92, .55) 22%, rgba(200, 164, 92, .55) 78%, transparent);
}
.topbar-brand > * { position: relative; z-index: 1; }

.brand-mini {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.brand-mini-logo {
  flex: 0 0 auto;
  height: 38px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, .32));
}
.brand-mini-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Logo varken ad küçülsün, logo öne çıksın */
.brand-mini.has-logo .brand-mini-name {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .82;
}

/* Koyu zemin üzerindeki yuvarlak düğmeler.
   NOT: seçici `.topbar-brand .icon-btn` — tek sınıflı `.icon-btn-dark`,
   dosyanın ilerisinde tanımlı `.icon-btn` tarafından eziliyordu. */
.topbar-brand .icon-btn,
.hero .hero-nav .icon-btn {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar-brand.text-black { color: var(--text); }
.topbar-brand.text-black .icon-btn,
.hero.text-black .hero-nav .icon-btn {
  background: rgba(31, 27, 22, .06);
  border-color: rgba(31, 27, 22, .1);
  color: var(--text);
}
.topbar-brand.text-black .brand-mini-logo { filter: none; }
.topbar-brand.text-black::before { display: none; }

/* Gizli ama yer tutan düğme — markanın ortalanması bozulmasın */
.topbar-brand .icon-btn.is-invisible,
.hero .hero-nav .icon-btn.is-invisible {
  visibility: hidden;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .topbar-brand .icon-btn:hover,
  .hero .hero-nav .icon-btn:hover { background: rgba(255, 255, 255, .24); }
  .topbar-brand.text-black .icon-btn:hover,
  .hero.text-black .hero-nav .icon-btn:hover { background: rgba(31, 27, 22, .12); }
}

/* ──────────────────────────────────────────────────────────────
   KATEGORİ BAŞLIĞI (gövdede, kaydırılınca gider)
   ────────────────────────────────────────────────────────────── */
/* Kategori adı hikaye şeridinde kalın olarak zaten görünüyor; burada
   tekrar etmek yerine yalnızca açıklamayı gösteriyoruz. */
.cat-heading { padding: 18px 20px 2px; }
.cat-heading p {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-2);
}

/* ──────────────────────────────────────────────────────────────
   YAPIŞKAN ÜST ÇUBUK
   Üç durumu var: ana ekran (arama), kategori (geri + hikayeler), arama sonuçları
   ────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  padding-top: var(--safe-t);
  transition: box-shadow var(--dur-base) ease, background var(--dur-base) ease,
              padding-top .28s var(--ease-out);
}

/* ── KATEGORİ EKRANINDA AÇILIR BAŞLIK ────────────────────────────
   Hero tam boy durur; sayfa kaydırılıp hero geçildiğinde küçük marka
   çubuğu yukarıdan kayarak yapışır (iOS'taki "büyük başlık küçülür"
   davranışı). Çubuk akıştan çıkarılıp (absolute) yeri padding ile
   açıldığı için hikaye şeridi zıplamadan aşağı süzülür.
   --brand-h JS ile ölçülür: logo varken çubuk daha yüksek oluyor. */
.topbar.collapse-brand {
  --brand-h: 62px;
  padding-top: 0;              /* güvenli alanı marka çubuğu taşıyor */
}
.topbar.collapse-brand .topbar-brand {
  position: absolute;
  top: 0; left: 0; right: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s var(--ease-out), opacity .18s ease;
}
.topbar.collapse-brand.is-stuck { padding-top: var(--brand-h); }
.topbar.collapse-brand.is-stuck .topbar-brand {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
/* Buzlu cam etkisi yalnızca açık zeminli çubukta; markalı çubuk kendi
   gradyanını taşır, üzerine yarı saydam katman koymak rengi bozar. */
.topbar.is-stuck:not(.has-brand) {
  background: rgba(247, 244, 238, .84);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 10px 26px rgba(60, 45, 25, .06);
}
.topbar.is-stuck.has-brand {
  box-shadow: 0 10px 28px rgba(20, 14, 10, .18);
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

/* Geri / kapat düğmesi */
.icon-btn {
  flex: 0 0 auto;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform .1s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* Arama kutusu */
.search {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.search-icon {
  position: absolute;
  left: 15px;
  width: 17px; height: 17px;
  color: var(--text-3);
  pointer-events: none;
  transition: color var(--dur-base);
}
.search input {
  width: 100%;
  height: var(--tap);
  padding: 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 15px;
  letter-spacing: .01em;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
.search input::placeholder { color: var(--text-3); }
/* Tarayıcının kendi "temizle" çarpısını gizle — kendi düğmemiz var */
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .2), var(--shadow-sm);
}
.search:focus-within .search-icon { color: var(--accent-dark); }

.search-clear {
  position: absolute;
  right: 6px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--text-2);
  background: var(--surface-2);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.search-clear svg { width: 14px; height: 14px; }

/* ──────────────────────────────────────────────────────────────
   KATEGORİ ŞERİDİ — Instagram hikaye tarzı
   Yuvarlak görsel + altında kategori adı. Aktif olanın çevresinde halka.
   ────────────────────────────────────────────────────────────── */
.stories {
  --story-gap: 8px;
  --story-per-view: 5;      /* ekrana kaç kategori sığsın */

  display: flex;
  align-items: flex-start;   /* daireler hizalı kalsın, 2 satırlık adlar aşağı sarksın */
  gap: var(--story-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 12px 16px 14px;
}

/*
 * Genişlik sabit px değil, görünür alanın beşte biri: her ekran boyutunda
 * tam 5 kategori sığar, fazlası sağa kayar. Yüzde, kaydırma kutusunun
 * GÖRÜNEN iç genişliğine göre hesaplanır (scrollWidth'e göre değil).
 */
.story {
  flex: 0 0 calc(
    (100% - (var(--story-per-view) - 1) * var(--story-gap)) / var(--story-per-view)
  );
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
}

/* Dış halka — aktif kategoriyi işaretler.
   Genişlik slota göre esner: 360px telefonda slot 60px'e düşerken sabit
   62px'lik daire taşıyordu. max-width geniş ekranda aşırı büyümeyi keser. */
.story-ring {
  display: block;
  width: 100%;
  max-width: 66px;
  padding: 2.5px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background var(--dur-base) ease, transform .12s ease;
}
.story:active .story-ring { transform: scale(.92); }

.story-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  /* Halkayla görsel arasındaki boşluk — hikaye görünümünün imzası */
  border: 2.5px solid var(--bg);
  background: linear-gradient(145deg, var(--accent-soft), #ece5d8);
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(60, 45, 25, .06);
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }

.story-label {
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.3;
  text-align: center;
  color: var(--text-2);
  /* En fazla iki satır; uzun kategori adları kesilmesin */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  transition: color .18s;
}

/* Seçili kategori — altın halka + koyu kalın etiket */
.story[aria-selected='true'] .story-ring {
  background: linear-gradient(140deg, #e4cb96 0%, var(--accent) 40%, var(--accent-dark) 100%);
  box-shadow: 0 3px 10px rgba(138, 106, 37, .28);
}
.story[aria-selected='true'] .story-label {
  color: var(--text);
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────
   BÖLÜM BAŞLIKLARI — altın kıl ayraçlı, aralıklı versal
   ────────────────────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 20px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section-label::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* Başlık hemen bir listenin üstündeyse araya iki kat boşluk girmesin —
   boşluğu başlığın kendi alt dolgusu versin. */
.section-label + .cat-heading { padding-top: 0; }
.section-label + .plist       { padding-top: 2px; }

/* ──────────────────────────────────────────────────────────────
   KATEGORİ IZGARASI (ana ekran)
   ────────────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 2px 16px calc(28px + var(--safe-b));
}

.cat-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) ease,
              border-color var(--dur-base) ease;
  animation: rise-in .45s var(--ease-out) backwards;
}
.cat-card:active { transform: scale(.975); }

/* Görsel kutusu KARE ve sabit. Yüklenen fotoğrafın oranı ne olursa olsun
   kutu değişmez; fotoğraf içine SIĞDIRILIR (contain) ve ortalanır.
   Neden kırpmıyoruz (cover): uzun bir kutu/şişe fotoğrafında kırpma, ürünün
   altını üstünü keser. Sığdırmada hiçbir şey kaybolmaz, yanlarda boşluk kalır. */
.cat-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  /* min-height:0 ŞART. Bu kutu, kart (flex kolon) içinde bir flex öğesi;
     flex öğelerinin varsayılan min-height'ı "auto" olduğu için kutu,
     içindeki görselin DOĞAL yüksekliğinin altına inemiyor. Dikey bir
     fotoğrafta (örn. 600x1200) bu, aspect-ratio'yu eziyor ve kare kutu
     uzuyordu. Sıfırlayınca oranı aspect-ratio belirliyor. */
  min-height: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(145deg, var(--accent-soft), #ece5d8);
}
/* Görsel AKIŞTAN ÇIKARILIR (position:absolute). Sebebi: normal akışta duran
   bir <img>, ızgara satırını kendi doğal boyuna göre büyütüyor ve dikey bir
   fotoğrafta kare kutudan taşıyordu. Mutlak konumlanınca kutunun boyunu
   etkileyemez; ölçüyü tamamen aspect-ratio belirler.
   padding görselin üstünde: object-fit content box'a göre çalışır, yani
   fotoğraf kenarlara yapışmadan içeride ortalanır. */
.cat-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

/* İçerideki span'ler <button> altında yaşıyor; satır akışına girmesinler */
.cat-card-body { display: block; padding: 12px 14px 14px; }
.cat-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.25px;
}
.cat-card-count {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ──────────────────────────────────────────────────────────────
   ÜRÜN KARTLARI — 2 sütunlu ızgara
   ────────────────────────────────────────────────────────────── */
.plist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 16px calc(32px + var(--safe-b));
}

.pcard {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) ease,
              border-color var(--dur-base) ease;
  animation: rise-in .45s var(--ease-out) backwards;
}
.pcard:active { transform: scale(.975); }

/* Kademeli giriş — ilk 8 kart sırayla, gerisi beklemesin */
.cat-card:nth-child(1), .pcard:nth-child(1) { animation-delay: .02s; }
.cat-card:nth-child(2), .pcard:nth-child(2) { animation-delay: .05s; }
.cat-card:nth-child(3), .pcard:nth-child(3) { animation-delay: .08s; }
.cat-card:nth-child(4), .pcard:nth-child(4) { animation-delay: .11s; }
.cat-card:nth-child(5), .pcard:nth-child(5) { animation-delay: .14s; }
.cat-card:nth-child(6), .pcard:nth-child(6) { animation-delay: .17s; }
.cat-card:nth-child(7), .pcard:nth-child(7) { animation-delay: .20s; }
.cat-card:nth-child(8), .pcard:nth-child(8) { animation-delay: .23s; }

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;               /* bkz. .cat-card-media'daki açıklama */
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-soft), #ece5d8);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-dark);
}
.pcard-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

/* Ürün fotoğraflarının çoğu beyaz zeminde çekilir. Altına krem gradyan
   koyarsak fotoğrafın dikdörtgen kenarı belli olur; düz beyaz zeminde
   kaynaşıyor. Gradyan yalnızca fotoğrafsız (emoji/harf) kutularda kalır. */
.cat-card-media:has(img),
.pcard-media:has(img),
.sheet-media:has(img) { background: #fff; }

/* Rozet görselin üstünde durur — dar kartta gövdede yer kaplamasın */
.pcard-media .badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  box-shadow: 0 2px 10px rgba(25, 18, 12, .22);
}

.pcard-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px 13px;
}

/* Arama sonuçlarında ürünün hangi kategoriden geldiğini gösterir */
.pcard-cat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.pcard-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.25px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fiyat satırının üstünde kısa altın çizgi — "menü satırı" ritmi */
.pcard-foot {
  position: relative;
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.pcard-foot::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: .55;
}
.pcard-price {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
  color: var(--text);
}
.pcard .chip { font-size: 10.5px; padding: 2px 7px; }

/* ──────────────────────────────────────────────────────────────
   ROZET & ETİKETLER
   ────────────────────────────────────────────────────────────── */
.badge {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-popular   { background: var(--amber-soft); color: var(--amber); }
.badge-new       { background: var(--green-soft); color: #0b6146; }
.badge-spicy     { background: var(--red-soft); color: var(--red); }
.badge-vegan     { background: #e2f2e8; color: #14624a; }
.badge-vegetarian{ background: #eaf2dd; color: #4a6b23; }
.badge-glutenfree{ background: #ece7f5; color: #5b4494; }
.badge-chefs     { background: #e6e8f2; color: #3a3f6b; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-2);
}

/* ──────────────────────────────────────────────────────────────
   BOŞ / HATA DURUMLARI
   ────────────────────────────────────────────────────────────── */
.empty {
  padding: 60px 30px;
  text-align: center;
  color: var(--text-2);
}
.empty-icon { font-size: 38px; margin-bottom: 14px; line-height: 1; opacity: .55; }
.empty-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.empty-text { margin-top: 7px; font-size: 14px; line-height: 1.55; }
.empty .btn-retry {
  margin-top: 20px;
  min-height: var(--tap);
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .1s, box-shadow var(--dur-base);
}
.empty .btn-retry:active { transform: scale(.96); }

/* İskelet yükleme */
.skel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 2px 16px;
}
.skel-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.skel-card .skeleton:first-child { aspect-ratio: 1 / 1; border-radius: 0; }
.skel-lines { padding: 12px 14px 15px; display: grid; gap: 8px; }
.skel-lines .skeleton { height: 11px; }
.skel-lines .skeleton:last-child { width: 45%; height: 9px; }

/* ──────────────────────────────────────────────────────────────
   ÜRÜN POP-UP (alt sayfa / bottom sheet)
   ────────────────────────────────────────────────────────────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 14, 9, .52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--dur-base) ease;
}
.sheet-backdrop.is-open { opacity: 1; }

.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform .34s var(--ease-sheet);
  overflow: hidden;
}
.sheet-backdrop.is-open .sheet { transform: translateY(0); }
/* Parmakla sürüklerken JS transform'u yönetsin */
.sheet.is-dragging { transition: none; }

.sheet-grabber {
  flex: 0 0 auto;
  padding: 10px 0 6px;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
}
.sheet-grabber::before {
  content: '';
  width: 40px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--border-strong);
}
/* Görsel varken tutamak fotoğrafın üstünde yüzer — fotoğraf tam genişlik kalsın */
.sheet:not(.no-media) .sheet-grabber {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  padding-top: 12px;
}
/* Görsel kutusunun zemini beyaz; beyaz tutamak orada kayboluyordu.
   Koyu tutamak hem beyazda hem fotoğrafın üstünde okunuyor. */
.sheet:not(.no-media) .sheet-grabber::before {
  background: var(--border-strong);
}

.sheet-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: #fff;
  background: rgba(20, 14, 9, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--dur-fast), transform .1s;
}
.sheet-close:active { transform: scale(.9); }
.sheet-close svg { width: 16px; height: 16px; }
/* Görsel yokken koyu daire beyaz zeminde kaybolmasın */
.sheet.no-media .sheet-close {
  color: var(--text-2);
  background: var(--surface-2);
  border-color: var(--border);
  backdrop-filter: none;
}

.sheet-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(26px + var(--safe-b));
}

.sheet-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, var(--accent-soft), #ece5d8);
}
.sheet-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}

.sheet-body { padding: 20px 22px 0; }

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex-wrap: wrap;
}
/* Görsel yokken kapat düğmesi başlık hizasında durur — rozetin altına girmesin */
.sheet.no-media .sheet-head { padding-right: 42px; }
.sheet-title {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.5px;
}
.sheet-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.sheet-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sheet-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.7px;
  color: var(--text);
}

.sheet-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sheet-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 13px;
}
.sheet-block-title::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* İçindekiler listesi */
.ing-list {
  list-style: none;
  display: grid;
  gap: 9px;
}
.ing-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
}
.ing-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

/* Alerjen etiketleri */
.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.allergen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--red-soft);
  border: 1px solid rgba(180, 50, 44, .14);
  color: #93241f;
}
.allergen-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
}

/* ──────────────────────────────────────────────────────────────
   BAKIM EKRANI (menü kapalı)
   ────────────────────────────────────────────────────────────── */
.maintenance {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px calc(40px + var(--safe-b));
  color: #fff;
  background: linear-gradient(140deg, #241d18, #120e0c);
}
.maintenance img { max-width: 160px; max-height: 96px; object-fit: contain; margin: 0 auto; }
.maintenance-icon { font-size: 56px; line-height: 1; }
.maintenance h1 {
  font-family: var(--font-display);
  margin-top: 24px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
}
.maintenance p { margin-top: 12px; font-size: 15px; opacity: .72; max-width: 300px; line-height: 1.6; }
.dots { margin-top: 36px; display: flex; gap: 8px; }
.dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.2s infinite;
}
.dots span:nth-child(2) { animation-delay: .25s; }
.dots span:nth-child(3) { animation-delay: .5s; }
@keyframes dot-pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1); }
}

/* ──────────────────────────────────────────────────────────────
   SABİT ALT ÇUBUK (Instagram / Dilek & Şikayet)
   ────────────────────────────────────────────────────────────── */
:root { --dock-h: calc(58px + var(--safe-b)); }

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;                      /* pop-up (200) bunun üstünde kalır */
  display: flex;
  margin: 0 auto;
  max-width: 560px;
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 -1px 0 var(--border), 0 -10px 30px rgba(60, 45, 25, .07);
}

.dock-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.dock-item:active { background: var(--surface-2); }

/* İki kısayol arasında kıl ayraç — yalnızca ikisi de varken */
.dock-item + .dock-item { box-shadow: inset 1px 0 0 var(--border); }

.dock-icon { width: 21px; height: 21px; }

.dock-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Instagram kendi marka rengini taşısın — tek renkli çubukta ayırt edici olur */
#dockInstagram { color: #b5346b; }

@media (hover: hover) and (pointer: fine) {
  .dock-item:hover { background: var(--surface-2); color: var(--text); }
  #dockInstagram:hover { color: #93254f; }
}

/* ──────────────────────────────────────────────────────────────
   DİLEK & ŞİKAYET FORMU (alt sayfa içinde)
   ────────────────────────────────────────────────────────────── */
.fb-form { padding-bottom: 4px; }
/* Başlık kapat düğmesinin altına girmesin */
.fb-form .sheet-title { padding-right: 42px; }

.fb-field { margin-top: 18px; }

.fb-label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fb-topics { display: flex; gap: 7px; }
.fb-topic {
  flex: 1 1 0;
  min-height: var(--tap);
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.fb-topic.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.fb-form textarea,
.fb-form input[type='text'] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  /* 16px altına inmeyin: iOS Safari odaklanınca sayfayı yakınlaştırıyor */
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.fb-form textarea { resize: vertical; min-height: 104px; }
.fb-form textarea::placeholder,
.fb-form input::placeholder { color: var(--text-3); }
.fb-form textarea:focus,
.fb-form input[type='text']:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .2);
}

.fb-count {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.fb-count.is-near { color: var(--amber); }

/* Ad ve iletişim yan yana; dar ekranda alt alta */
.fb-row { display: flex; gap: 10px; }
.fb-row .fb-field { flex: 1 1 0; min-width: 0; }
@media (max-width: 360px) {
  .fb-row { flex-direction: column; gap: 0; }
}

/* Bal kupu — ekrandan da ekran okuyucudan da uzak, ama otomatik
   doldurucu botlar için erişilebilir. display:none botları uyandırır. */
.fb-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.fb-alert {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--red-soft);
  border: 1px solid rgba(180, 50, 44, .16);
  font-size: 13.5px;
  line-height: 1.45;
  color: #93241f;
}

.fb-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .1s, opacity var(--dur-fast);
}
.fb-submit:active { transform: scale(.98); }
.fb-submit:disabled { opacity: .55; }

/* Gönderim sonrası teşekkür ekranı */
.fb-done { padding: 52px 24px 44px; text-align: center; }
.fb-done-mark {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.fb-done-mark svg { width: 26px; height: 26px; }
.fb-done-title { font-size: 19px; font-weight: 700; }
.fb-done-text { margin-top: 7px; font-size: 14px; color: var(--text-2); }

/* ──────────────────────────────────────────────────────────────
   ALT BİLGİ
   ────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  margin-top: 8px;
  padding: 30px 20px calc(30px + var(--safe-b));
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-3);
}
/* Kıl ayraç — sayfayı sessizce kapatır */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.footer a { font-weight: 600; text-decoration: none; color: var(--text-2); }

/* ──────────────────────────────────────────────────────────────
   İŞARETLEYİCİ CİHAZ (fare) — dokunmatikte hover takılmasını önler
   ────────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .cat-card:hover,
  .pcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
  }
  .story:hover .story-ring  { background: var(--accent); }
  .story:hover .story-label { color: var(--text); }
  .story[aria-selected='true']:hover .story-ring {
    background: linear-gradient(140deg, #e4cb96 0%, var(--accent) 40%, var(--accent-dark) 100%);
  }
  .icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
  .search-clear:hover { background: var(--border); color: var(--text); }
  .sheet-close:hover { background: rgba(20, 14, 9, .62); }
  .sheet.no-media .sheet-close:hover { background: var(--border); }
  .empty .btn-retry:hover { box-shadow: var(--shadow-md); }
  .footer a:hover { color: var(--accent-dark); }
}

/* ──────────────────────────────────────────────────────────────
   GENİŞ EKRAN — telefon kolonunu ortalayıp biraz nefes aldır
   ────────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  body { background: #ebe5da; }
  .app { box-shadow: 0 0 80px rgba(60, 45, 25, .1); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plist    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { border-radius: var(--r-xl); max-height: 86dvh; transform: translateY(24px) scale(.98); opacity: 0; }
  .sheet-backdrop.is-open .sheet { transform: translateY(0) scale(1); opacity: 1; }
  .sheet-grabber { display: none; }
}
