/* ===========================================================================
   Quickly · Misafir QR Menü — Çekirdek (v5)
   ---------------------------------------------------------------------------
   Bu dosya YALNIZCA çekirdektir:
     1. Ölçekler        — boşluk / yarıçap / tipografi / gölge / hareket
     2. Semantik token  — gündüz + gece eşlenik (paketler ezer)
     3. Kabuk           — body, #app kolonu, boot / hata
     4. Katmanlar       — sheet, toast, FAB, başa dön, banner, duyuru
   Liste / kart / navigasyon gibi düzen bileşenleri BİLİNÇLİ olarak burada yok.
   Her paket kendi düzenini kendi dosyasında kurar; ortak bileşen paylaşmak
   paketlerin birbirine benzemesine yol açıyordu.
   =========================================================================== */

/* ---------- 1. Ölçekler ---------------------------------------------------*/
:root {
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;

  --t-xs: clamp(0.66rem, 0.63rem + 0.14vw, 0.74rem);
  --t-sm: clamp(0.76rem, 0.73rem + 0.16vw, 0.84rem);
  --t-md: clamp(0.86rem, 0.83rem + 0.18vw, 0.95rem);
  --t-lg: clamp(0.98rem, 0.93rem + 0.24vw, 1.08rem);
  --t-xl: clamp(1.12rem, 1.04rem + 0.36vw, 1.3rem);
  --t-2xl: clamp(1.34rem, 1.2rem + 0.6vw, 1.66rem);
  --t-3xl: clamp(1.7rem, 1.45rem + 1vw, 2.2rem);

  --blur: blur(18px) saturate(170%);

  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --z-nav: 20;
  --z-dock: 30;
  --z-fab: 32;
  --z-sheet: 40;
  --z-toast: 50;

  --shell: 480px;
  /* Paketler alt çubuk yüksekliğini bildirir; FAB / toast / başa dön yukarı kayar */
  --fab-lift: 0px;
  /* iPhone notch / Dynamic Island / home indicator / landscape */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  /* iOS klavye: visualViewport ile JS doldurur */
  --kb-inset: 0px;
  --touch-min: 44px;

  /* Paketler kendi tipografisini bildirir */
  --font-ui: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: var(--font-ui);
}

/* ---------- 2. Semantik token'lar — gündüz --------------------------------*/
:root,
body.appear-light {
  --bg-from: #eef2f6;
  --bg-to: #e2e8ee;
  --canvas: #f4f7fa;

  --surface: #ffffff;
  --surface-2: #f2f5f8;
  --surface-3: #e6ecf2;
  /* Sheet/toast: her zaman opak (paketlerde --surface cam olabilir) */
  --sheet-bg: #ffffff;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(255, 255, 255, 0.8);

  --ink: #16212b;
  --ink-2: #55697a;
  /* ink-3 küçük büyük-harf etiketlerde kullanılır: AA için ≥4.5 kontrast şart */
  --ink-3: #5f7183;

  --line: rgba(22, 33, 43, 0.1);
  --line-2: rgba(22, 33, 43, 0.18);

  --brand: #2b3e50;
  --brand-ink: #ffffff;
  --accent: #e62531;
  --accent-ink: #ffffff;
  --accent-soft: rgba(230, 37, 49, 0.1);
  /* Ham --accent açık zeminde AA'yı geçmiyor; metin sürümü karıştırılır */
  --accent-text: color-mix(in oklab, var(--accent) 80%, #000);
  --price: var(--ink);

  --ok: #0f7a55;
  --ok-soft: rgba(15, 122, 85, 0.12);
  --warn: #a4560a;
  --warn-soft: rgba(164, 86, 10, 0.12);

  --e-1: 0 1px 2px rgba(22, 33, 43, 0.06), 0 2px 8px rgba(22, 33, 43, 0.04);
  --e-2: 0 2px 6px rgba(22, 33, 43, 0.07), 0 10px 26px rgba(22, 33, 43, 0.07);
  --e-3: 0 8px 20px rgba(22, 33, 43, 0.1), 0 24px 60px rgba(22, 33, 43, 0.14);
  --e-accent: 0 8px 22px rgba(230, 37, 49, 0.3);

  color-scheme: light;
}

/* ---------- 2b. Semantik token'lar — gece ---------------------------------*/
body.appear-dark {
  --bg-from: #0d141b;
  --bg-to: #131c25;
  --canvas: #0f171f;

  --surface: #18222c;
  --surface-2: #1f2b37;
  --surface-3: #263442;
  --sheet-bg: #18222c;

  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(24, 34, 44, 0.86);
  --glass-line: rgba(255, 255, 255, 0.12);

  --ink: #eaf1f7;
  --ink-2: #9fb2c2;
  --ink-3: #8298ab;

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --brand: #8fb6d6;
  --brand-ink: #0d141b;
  --accent: #ff4d57;
  /* Açık kırmızı üzerinde beyaz AA'yı geçmez; koyu mürekkep kullanılır */
  --accent-ink: #2b0407;
  --accent-soft: rgba(255, 77, 87, 0.16);
  --accent-text: color-mix(in oklab, var(--accent) 78%, #fff);
  --price: var(--ink);

  --ok: #4ecfa0;
  --ok-soft: rgba(78, 207, 160, 0.16);
  --warn: #f0b055;
  --warn-soft: rgba(240, 176, 85, 0.16);

  --e-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --e-2: 0 2px 8px rgba(0, 0, 0, 0.42), 0 12px 28px rgba(0, 0, 0, 0.36);
  --e-3: 0 10px 24px rgba(0, 0, 0, 0.5), 0 28px 64px rgba(0, 0, 0, 0.55);
  --e-accent: 0 8px 22px rgba(255, 77, 87, 0.32);

  color-scheme: dark;
}

/* ---------- 3. Temel ------------------------------------------------------*/
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: linear-gradient(168deg, var(--bg-from), var(--bg-to));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

/* iOS Safari: sabit arka plan bozulmasın */
html.is-ios body { background-attachment: scroll; }

/* Ana Ekrana Ekle (standalone) — üst boşluk notch ile uyumlu */
html.is-standalone body { min-height: 100dvh; }
html.is-standalone #app { min-height: 100dvh; }

body.font-sm { font-size: 15px; }
body.font-md { font-size: 16px; }
body.font-lg { font-size: 17.5px; }

img {
  max-width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

a, [role="button"], summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Telefon kolonu — paketler --shell ile genişliği belirler */
#app {
  width: min(100%, var(--shell));
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--canvas);
  position: relative;
  padding-bottom: calc(var(--fab-lift) + var(--safe-b) + var(--sp-6));
}

/* Ekran okuyucu etiketi */
.m-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Uzun listelerde boyama maliyetini kısar (paketler bölümlere uygular) */
.m-defer {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* Dil + görünüm düğmeleri (paintLangChips) — kabı paket biçimlendirir */
.m-lang,
.m-appear-btn {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  border-radius: var(--r-full);
  padding: 6px 10px;
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1;
  min-height: 30px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.m-lang:hover,
.m-appear-btn:hover { color: var(--ink); }
.m-lang.is-on,
.m-appear-btn.is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--e-1);
}
.m-appear-btn { font-size: 0.9rem; }

/* ---------- 3.5 Boş / hata / boot ----------------------------------------*/
.m-boot {
  margin: 0;
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--ink-2);
  font-size: var(--t-md);
}

.m-err,
.m-empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.m-err strong {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--t-xl);
  font-weight: 750;
  color: var(--ink);
}

/* ---------- 4.0 Öne çıkan yatay ray (kit.featuredRail / sectionsHtml) -----*/
.m-rail {
  margin: 0 0 var(--sp-5);
  padding: 0;
}
.m-rail > h2 {
  margin: 0 0 var(--sp-3);
  padding: 0 var(--sp-4);
  font-size: var(--t-md);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.m-rail-track {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px var(--sp-4) var(--sp-2);
  scrollbar-width: none;
}
.m-rail-track::-webkit-scrollbar { display: none; }
.m-rail-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-align: start;
  overflow: hidden;
  box-shadow: var(--e-1);
  transition: transform var(--dur-1) var(--spring), box-shadow var(--dur-1) var(--ease);
}
.m-rail-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--e-2);
}
.m-rail-card:active { transform: scale(0.98); }
.m-rail-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
}
.m-rail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-rail-ph {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}
.m-rail-card > strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 var(--sp-3);
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.m-rail-price {
  margin: 0 var(--sp-3) var(--sp-3);
  font-size: var(--t-xs);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--price, var(--accent-text));
}
.m-rail.is-chef > h2 { color: var(--warn, var(--accent-text)); }
.m-rail.is-new > h2 { color: var(--ok, var(--accent-text)); }
.m-rail.is-popular > h2 { color: var(--accent-text); }
@media (min-width: 640px) {
  .m-rail-card { flex-basis: 160px; }
}

/* ---------- 4.1 Ortak sepet FAB ------------------------------------------*/
.m-fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--safe-b) + var(--fab-lift) + var(--kb-inset) + var(--sp-4));
  z-index: var(--z-fab);
  width: min(var(--shell) - var(--sp-8), 92vw);
  min-height: var(--touch-min);
  justify-content: center;
  border: 0;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  font-size: var(--t-md);
  padding: 14px var(--sp-5);
  box-shadow: var(--e-accent), var(--e-2);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: transform var(--dur-2) var(--spring);
}
.m-fab:active { transform: translateX(-50%) scale(0.97); }
.m-fab[hidden] { display: none !important; }

.m-fab-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.24);
  color: inherit;
  font-size: var(--t-xs);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-fb-fab,
.m-to-top {
  position: fixed;
  bottom: calc(var(--safe-b) + var(--fab-lift) + var(--kb-inset) + var(--sp-4));
  z-index: var(--z-fab);
  width: var(--touch-min);
  height: var(--touch-min);
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--sheet-bg);
  color: var(--ink);
  font-size: var(--t-md);
  box-shadow: var(--e-2);
  transition: transform var(--dur-1) var(--spring), opacity var(--dur-2) var(--ease);
}
.m-fb-fab { inset-inline-end: max(var(--sp-4), calc(50vw - var(--shell) / 2 + var(--sp-4))); }
.m-to-top {
  inset-inline-start: max(var(--sp-4), calc(50vw - var(--shell) / 2 + var(--sp-4)));
  font-size: var(--t-lg);
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
}
.m-to-top.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.m-fb-fab:active,
.m-to-top:active { transform: scale(0.94); }

/* Sepet FAB açıkken yardımcı düğmeler bir sıra yukarı çıkar */
body:has(#fab:not([hidden])) .m-fb-fab,
body:has(#fab:not([hidden])) .m-to-top {
  bottom: calc(var(--safe-b) + var(--fab-lift) + var(--kb-inset) + var(--sp-4) + 60px);
}

/* ---------- 4.2 Alt sayfa (sheet) ----------------------------------------*/
.m-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(9, 14, 19, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.m-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.m-sheet-panel {
  width: min(var(--shell), 100%);
  max-height: min(88dvh, 780px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--sheet-bg);
  color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-4) max(var(--sp-5), var(--safe-l)) calc(var(--safe-b) + var(--kb-inset) + var(--sp-6)) max(var(--sp-5), var(--safe-r));
  box-shadow: var(--e-3);
  transform: translateY(100%);
  transition: transform var(--dur-3) var(--spring);
}
.m-sheet.is-open .m-sheet-panel { transform: translateY(0); }

/* Üst başlık — Luxe modal DNA; diğer pack’lerde gizli */
.m-sheet-head { display: none; }
.m-sheet-title { margin: 0; }

/* Ürün detay: panel sabit; içerik kayar, Sepete ekle altta */
.m-sheet-panel:has(.m-sheet-scroll) {
  position: relative;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  max-height: min(86dvh, 720px);
}

/* Sürükleme tutamağı */
.m-sheet-panel::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto var(--sp-2);
  border-radius: var(--r-full);
  background: var(--line-2);
  flex-shrink: 0;
}

/* Üst sağ X — altta ayrı Kapat satırı yok */
.m-sheet-x {
  position: absolute;
  top: 10px;
  inset-inline-end: max(10px, var(--safe-r));
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sheet-bg) 88%, #000 6%);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}
.m-sheet-x:active { transform: scale(0.94); }

.m-sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 max(var(--sp-5), var(--safe-l)) var(--sp-4) max(var(--sp-5), var(--safe-r));
}
.m-sheet-cta {
  flex-shrink: 0;
  padding: 10px max(var(--sp-5), var(--safe-l)) calc(var(--safe-b) + var(--kb-inset) + 12px) max(var(--sp-5), var(--safe-r));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--sheet-bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-sheet-cta__folio {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.m-sheet-cta__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.m-sheet-cta__price > span {
  font-size: 0.75rem;
  color: var(--ink-2);
}
.m-sheet-cta__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-sheet-cta .m-qty {
  margin: 0;
  flex-shrink: 0;
}
.m-sheet-cta .m-add {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
}
.m-sheet-cta .m-add--block {
  flex: none;
  width: 100%;
}
.m-sheet-cta .m-sheet-close {
  display: none;
}
.m-sheet-cta--closed {
  box-shadow: none;
}
.m-closed-time {
  margin: 0;
  text-align: center;
  color: #e54750;
  background: rgba(229, 71, 80, 0.05);
  padding: 1rem;
  border-radius: 3rem;
  font-weight: 600;
}
.m-soldout {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: #9a3412;
  background: rgba(234, 88, 12, 0.1);
}

.m-sheet h3 {
  margin: 0 0 var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.m-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.m-price {
  margin-inline-start: auto;
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--price);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.m-sheet .m-price {
  margin-inline-start: 0;
  font-size: var(--t-xl);
}

.m-desc {
  margin: var(--sp-1) 0 0;
  font-size: var(--t-sm);
  line-height: 1.45;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.m-sheet .m-desc {
  margin-top: var(--sp-3);
  font-size: var(--t-md);
}

.m-sheet-img {
  margin: 0 0 var(--sp-3);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-3);
  max-height: 160px;
}
.m-sheet-img img {
  width: 100%;
  max-height: 160px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.m-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--sp-2);
  margin-block-end: var(--sp-3);
}
.m-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.m-fav {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 1.3rem;
  line-height: 1;
  padding: var(--sp-1);
  transition: transform var(--dur-1) var(--spring), color var(--dur-1) var(--ease);
}
.m-fav:active { transform: scale(1.2); }
.m-fav.is-on { color: var(--accent); }
.m-fav-inline { color: var(--accent); font-size: 0.85em; }

.m-sheet-close,
.m-add {
  width: 100%;
  margin-top: var(--sp-4);
  border: 0;
  border-radius: var(--r-sm);
  padding: 14px;
  font-weight: 750;
  font-size: var(--t-md);
  transition: transform var(--dur-1) var(--spring);
}
.m-sheet-close:active,
.m-add:active { transform: scale(0.98); }
.m-add {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--e-accent);
}
.m-add[data-add] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
}
.m-add__main { font-weight: 750; }
.m-add__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m-add__qty {
  font-style: normal;
  font-weight: 650;
  opacity: 0.92;
}
.m-add__sum { font-weight: 800; }
.m-sheet-close {
  background: var(--surface-2);
  color: var(--ink);
}

.m-tool-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 11px var(--sp-4);
  font-size: var(--t-sm);
  font-weight: 700;
  width: 100%;
}

.m-qty {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-1);
  border-radius: var(--r-full);
  background: var(--surface-2);
}
.m-qty button {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--e-1);
  transition: transform var(--dur-1) var(--spring);
}
.m-qty button:active { transform: scale(0.92); }

.m-cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-md);
}
.m-cart-line:last-child { border-bottom: 0; }

.m-cart-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.m-cart-actions .m-sheet-close { margin-top: 0; }
.btn-ghost-cart {
  width: 100%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 13px;
  font-weight: 700;
  font-size: var(--t-md);
}

.m-field { margin-top: var(--sp-3); }
.m-field label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--t-xs);
  font-weight: 650;
  color: var(--ink-2);
}
.m-field input,
.m-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px var(--sp-3);
  font: inherit;
  font-size: var(--t-md);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.m-field input:focus,
.m-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.m-mods { margin: var(--sp-2) 0; }
.m-mods > .m-desc { letter-spacing: 0.02em; }
.m-mod, .m-choice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-md);
  cursor: pointer;
}
.m-mod input, .m-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.m-mod span { flex: 1; }
.m-mod em, .m-choice em {
  font-style: normal;
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 700;
}
.m-choices { margin: var(--sp-2) 0; }
.m-choice-pill {
  display: inline-block;
  flex: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(178, 223, 219, 0.65);
  color: #1a3a36;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.m-choice-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 4px;
}
.m-choice-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.m-choice-pill-row .m-choice-pill {
  flex: 0 1 auto;
  max-width: 70%;
}
.m-choice-pill-price {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

/* Google tarzı puan: büyük yıldız · 1→5 kırmızı→sarı */
.m-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.m-rate button[data-rate] {
  --m-star-c: #FBBC04;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #dadce0;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.m-rate button[data-rate]::before {
  content: "★";
  font-size: 2.15rem;
  line-height: 1;
  color: currentColor;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}
.m-rate button[data-rate="1"] { --m-star-c: #E11D48; }
.m-rate button[data-rate="2"] { --m-star-c: #F97316; }
.m-rate button[data-rate="3"] { --m-star-c: #EAB308; }
.m-rate button[data-rate="4"] { --m-star-c: #FACC15; }
.m-rate button[data-rate="5"] { --m-star-c: #FDE047; }
.m-rate button[data-rate].is-on { color: var(--m-star-c); }
.m-rate button[data-rate]:hover {
  transform: scale(1.12);
  background: color-mix(in srgb, var(--m-star-c) 12%, transparent);
}
.m-rate button[data-rate]:active { transform: scale(0.94); }
.m-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  letter-spacing: 0;
}
.m-review-stars i {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1;
  color: #dadce0;
}
.m-review-stars i.is-on { color: var(--m-star-c, #FBBC04); }
@media (prefers-reduced-motion: reduce) {
  .m-rate button[data-rate]:hover,
  .m-rate button[data-rate]:active { transform: none; }
}

.m-mode-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.m-mode-chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--r-full);
  padding: 9px var(--sp-4);
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
}
.m-mode-chip.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.m-done { text-align: center; padding: var(--sp-2) 0; }
.m-done-kicker {
  margin: 0;
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.m-done h3 { margin: var(--sp-2) 0; font-size: var(--t-2xl); }
.m-done .m-desc { margin: 0 auto; max-width: 28em; }

.m-table-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.m-table-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 4.3 Rozet / etiket / bilgi -----------------------------------*/
.m-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 3px;
}
.m-badge {
  padding: 1px 7px;
  border-radius: var(--r-full);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--ink-2);
}
.m-badge.is-chef { background: var(--warn-soft); color: var(--warn); }
.m-badge.is-new { background: var(--ok-soft); color: var(--ok); }
.m-badge.is-pop { background: var(--accent-soft); color: var(--accent-text); }

.m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.m-pill {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px var(--sp-2);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--ink-2);
}
.m-pill.is-diet { background: var(--ok-soft); color: var(--ok); }
.m-pill.is-all { background: var(--warn-soft); color: var(--warn); }

.m-info {
  margin: var(--sp-4) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.m-info-row {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  font-size: var(--t-sm);
}
.m-info-row + .m-info-row { border-top: 1px solid var(--line); }
.m-info dt { margin: 0; color: var(--ink-3); font-weight: 700; }
.m-info dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.m-info dd a { color: var(--accent-text); text-decoration: none; }

.m-wifi {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.m-wifi-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--t-sm);
}
.m-wifi-head span { color: var(--ink-3); font-weight: 700; }
.m-wifi-head strong { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }

/* Şifre maskeli; göster → açılır ve kopyalanır */
.m-wifi-pass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.m-wifi-mask {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  overflow-wrap: anywhere;
  user-select: none;
}
.m-wifi-reveal {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-size: var(--t-xs);
  font-weight: 750;
  cursor: pointer;
  padding: 4px 2px;
}
.m-wifi-reveal:active { transform: scale(0.96); }
.m-wifi-reveal.is-on { color: var(--ink-2); }
.m-wifi-eye { flex-shrink: 0; }

.m-wifi-pass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: transform var(--dur-1) var(--spring), border-color var(--dur-1) var(--ease);
}
.m-wifi-pass:active { transform: scale(0.98); }
.m-wifi-pass:hover { border-color: var(--accent); }
.m-wifi-pass code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.m-wifi-pass span {
  flex: 0 0 auto;
  font-size: var(--t-xs);
  font-weight: 750;
  color: var(--accent-text);
}

.m-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

/* ---------- Yorumlar sheet — viewport’a sığan kompakt layout ------------*/
.m-sheet.is-reviews .m-sheet-panel {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 640px);
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: calc(var(--safe-b) + var(--kb-inset) + 12px);
}
.m-sheet.is-reviews .m-sheet-panel::before {
  margin-bottom: 8px;
}
.m-rv {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.m-rv__head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}
.m-rv__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.m-rv__head h3,
.m-rv__title-row h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.m-rv__x {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-rv__x:active { transform: scale(0.94); }
.m-rv__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, #FBBC04 12%, var(--surface)) 0%, var(--surface-2) 100%);
  border: 1px solid color-mix(in srgb, #FBBC04 20%, var(--line));
}
.m-rv__avg {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.m-rv__summary-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.m-rv__summary-meta .m-review-stars i { font-size: 0.92rem; }
.m-rv__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-3);
}
.m-rv__mid {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 18vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}
.m-rv__empty {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--line-2) 80%, transparent);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.m-rv__empty-ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #FBBC04;
  background: color-mix(in srgb, #FBBC04 16%, transparent);
}
.m-rv__empty p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-2);
  font-weight: 500;
}
.m-reviews {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-inline-end: 2px;
}
.m-review {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.m-review__avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.m-review__body { flex: 1; min-width: 0; }
.m-review header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin-bottom: 2px;
}
.m-review header strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.m-review p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-rv__compose {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px 10px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.m-rv__rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 0 6px;
  padding: 4px 0 2px;
}
.m-sheet.is-reviews .m-rate { gap: 2px; }
.m-sheet.is-reviews .m-rate button[data-rate] {
  width: 40px;
  height: 40px;
}
.m-sheet.is-reviews .m-rate button[data-rate]::before {
  font-size: 1.85rem;
}
.m-rv__rate-label {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.m-rv__fields { display: flex; flex-direction: column; gap: 6px; }
.m-rv__compose .m-field { margin-top: 0; }
.m-rv__compose .m-field label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.m-rv__compose .m-field input,
.m-rv__compose .m-field textarea {
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--surface);
  border-color: var(--line);
  font-size: 0.92rem;
}
.m-rv__compose .m-field textarea {
  min-height: 52px;
  max-height: 72px;
  resize: none;
}
.m-rv__send {
  width: 100%;
  margin: 8px 0 0 !important;
  border-radius: 11px !important;
  padding: 12px !important;
  font-weight: 750;
}
.m-voice-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 8px;
}
.m-voice-kind {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.m-voice-kind.is-on {
  border-color: var(--accent, var(--ink));
  background: color-mix(in srgb, var(--accent, var(--ink)) 14%, var(--surface));
  color: var(--ink);
}
.m-voice-hint {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: var(--ink-3);
  line-height: 1.3;
}
@media (max-height: 700px) {
  .m-rv__mid { max-height: 12vh; }
  .m-sheet.is-reviews .m-rate button[data-rate] { width: 36px; height: 36px; }
  .m-sheet.is-reviews .m-rate button[data-rate]::before { font-size: 1.65rem; }
  .m-rv__compose .m-field textarea { min-height: 44px; max-height: 56px; }
}
@media (max-height: 580px) {
  .m-rv__mid { max-height: 8vh; }
  .m-rv__empty { padding: 8px 10px; }
  .m-rv__summary { padding: 6px 10px; }
  .m-rv__avg { font-size: 1.35rem; }
}

.m-hr {
  border: 0;
  border-block-start: 1px solid var(--line);
  margin-block: var(--sp-4);
}

/* ---------- 4.4 Bildirim -------------------------------------------------*/
.m-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + var(--fab-lift) + var(--kb-inset) + 84px);
  transform: translateX(-50%) translateY(8px);
  z-index: var(--z-toast);
  max-width: min(92vw, 400px);
  padding: 11px var(--sp-4);
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--canvas);
  font-size: var(--t-sm);
  font-weight: 650;
  text-align: center;
  box-shadow: var(--e-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--spring);
}
.m-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 4.5 Banner + duyuru (kit.paintBanners) -----------------------*/
.m-banners {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-1);
}
.m-banners::-webkit-scrollbar { display: none; }

.m-banner {
  flex: 0 0 min(88%, 320px);
  scroll-snap-align: start;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--e-1);
  color: inherit;
  text-decoration: none;
}
.m-banner img {
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
  display: block;
}
.m-banner span {
  display: block;
  padding: var(--sp-3);
  font-size: var(--t-sm);
  font-weight: 700;
}

.m-announce {
  margin: var(--sp-3) 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.m-announce-item {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink);
  font-weight: 600;
}
.m-announce-item + .m-announce-item {
  margin-block-start: var(--sp-2);
  padding-block-start: var(--sp-2);
  border-block-start: 1px solid var(--line);
}

/* ---------- 5. Uyarlanabilir + erişilebilirlik ---------------------------*/
body.is-rtl { text-align: start; }

@media (min-width: 640px) {
  :root { --shell: 600px; }
}

@media (min-width: 1024px) {
  :root { --shell: 720px; }
  body {
    padding-left: 0;
    padding-right: 0;
    background:
      radial-gradient(760px 520px at 12% -8%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%),
      radial-gradient(620px 460px at 100% 4%, var(--accent-soft), transparent 55%),
      linear-gradient(168deg, var(--bg-from), var(--bg-to));
  }
  #app {
    margin: var(--sp-6) auto;
    min-height: calc(100dvh - var(--sp-7));
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    box-shadow: var(--e-3);
    overflow: clip;
  }
  .m-fb-fab { inset-inline-end: calc(50vw - var(--shell) / 2 + var(--sp-4)); }
  .m-to-top { inset-inline-start: calc(50vw - var(--shell) / 2 + var(--sp-4)); }
  .qk-ai-voice { right: calc(50vw - var(--shell) / 2 + var(--sp-4)); left: auto; }
  .m-sheet { align-items: center; }
  .m-sheet-panel {
    width: min(var(--shell), 520px);
    border-radius: var(--r-xl);
    max-height: min(84dvh, 760px);
  }
  .m-sheet-panel:has(.m-sheet-scroll) {
    padding-bottom: 0;
  }
  .m-sheet-panel::before { display: none; }
}

@media (min-width: 1280px) {
  :root { --shell: 820px; }
}

/* ---------- 5b. Mobil + iPhone -------------------------------------------*/
@media (max-width: 639.98px) {
  /* iOS input focus zoom engeli — 16px altı otomatik yakınlaştırır */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  #app {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    margin: 0;
  }
}

/* Klavye açıkken alt chrome gizle (iPhone Safari) */
html.is-kb .m-fab,
html.is-kb .m-fb-fab,
html.is-kb .m-to-top,
html.is-kb .lx-dock,
html.is-kb .lx-cartbar,
html.is-kb .ko-dock,
html.is-kb .ko-cartfab,
html.is-kb .pg-dock,
html.is-kb .sm-cartbar,
html.is-kb .bottom-nav-wrap,
html.is-kb .bottom-nav__menu-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Pack dock / sticky chrome — yatay notch (landscape) */
html.is-ios .lx-dock,
html.is-ios .ko-dock,
html.is-ios .pg-dock,
html.is-ios .bottom-nav-wrap,
html.is-ios .sm-cartbar {
  padding-left: max(0px, var(--safe-l));
  padding-right: max(0px, var(--safe-r));
}

/* Ortak dokunma hedefi ipucu — pack dock düğmeleri */
.lx-dockbtn,
.ko-dockbtn,
.pg-dock__btn,
.bottom-nav__icon,
.sm-cartbar-btn {
  min-height: var(--touch-min);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root,
  body.appear-light { --line: rgba(22, 33, 43, 0.28); --ink-2: #3a4c5c; }
  body.appear-dark { --line: rgba(255, 255, 255, 0.28); --ink-2: #c2d2df; }
}

/* ---------- Sipariş takip (menü içi overlay) -----------------------------*/
body.m-track-open { overflow: hidden; }
.m-track {
  /* Luxe about dock 1e6 / sheet 220 üstünde — menüye “yapışmasın” */
  position: fixed; inset: 0; z-index: 1000050;
  display: flex; justify-content: center;
  background: color-mix(in oklab, var(--bg-from) 88%, #000 4%);
  overflow-y: auto; overscroll-behavior: contain;
  animation: mTrackIn 0.28s ease;
}
/* Pack chrome takip açıkken tıklanmasın / üstte kalmasın */
body.m-track-open .lx-dock,
body.m-track-open .lx-topbar,
body.m-track-open .sm-dock,
body.m-track-open .ko-dock,
body.m-track-open .pg-dock,
body.m-track-open .qk-ai-voice {
  pointer-events: none !important;
  z-index: 1 !important;
}
@keyframes mTrackIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.m-track-panel {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: calc(16px + var(--safe-t, 0px)) 16px calc(40px + var(--safe-b, 0px));
}
.m-track-loading { text-align: center; padding: 48px 12px; color: var(--ink-2); font-weight: 600; }
.m-track-top { text-align: center; margin-bottom: 14px; }
.m-track-back {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px; padding: 8px 14px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--sheet-bg); color: var(--ink);
  font-family: inherit; font-size: var(--t-sm); font-weight: 700;
}
.m-track-brand {
  margin: 0; font-weight: 800; letter-spacing: -0.03em;
  font-size: 1.1rem; color: var(--brand);
}
.m-track-tag {
  margin: 4px 0 0; font-size: var(--t-sm); color: var(--ink-2); font-weight: 600;
}
.m-track-card {
  background: var(--sheet-bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 16px; box-shadow: var(--e-2);
}
.m-track-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; margin: 0 0 10px; padding: 12px 14px; cursor: pointer;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface-2, var(--sheet-bg)); color: var(--ink);
  font-family: inherit; text-align: start;
}
.m-track-pick:last-child { margin-bottom: 0; }
.m-track-pick strong { font-size: var(--t-md); }
.m-track-pick span { font-size: var(--t-sm); color: var(--ink-2); }
.m-track-pick em { font-style: normal; font-size: var(--t-xs); font-weight: 700; color: var(--accent); margin-top: 4px; }
.m-track-kicker {
  margin: 0; font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.m-track-hero {
  margin: 10px 0 0; padding: 14px;
  border-radius: var(--r-md); background: var(--ok-soft);
  border: 1px solid color-mix(in oklab, var(--ok) 28%, transparent);
}
.m-track-hero.is-wait {
  background: var(--warn-soft);
  border-color: color-mix(in oklab, var(--warn) 30%, transparent);
}
.m-track-hero.is-rej {
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 32%, transparent);
}
.m-track-hero.is-cancel {
  background: color-mix(in oklab, var(--ink-3) 12%, transparent);
  border: 1px solid var(--line);
}
.m-track-cancel {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
}
.m-track-cancel:disabled { opacity: .55; cursor: wait; }
.m-track-cancel-left { font-weight: 600; opacity: .75; }
.m-track-hero h2 {
  margin: 0; font-size: var(--t-2xl); line-height: 1.15; letter-spacing: -0.02em;
}
.m-track-hero p { margin: 6px 0 0; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.m-track-steps { display: flex; gap: 8px; margin: 20px 0 6px; }
.m-track-step { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); }
.m-track-bar {
  height: 7px; border-radius: var(--r-full); background: var(--line-2);
  margin-bottom: 8px; transition: background var(--dur-2) var(--ease);
}
.m-track-bar.is-on { background: var(--ok); }
.m-track-bar.is-cur { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent); }
.m-track-bar.is-rej { background: var(--accent); }
.m-track-lines { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.m-track-line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: var(--t-sm); color: var(--ink-2);
}
.m-track-line strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
.m-track-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-weight: 750;
}
.m-track-note { margin: 12px 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.m-track-poll {
  display: block; margin-top: 14px; text-align: center;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.m-track-err { text-align: center; color: var(--ink-2); }
.m-track-err strong { display: block; color: var(--ink); margin-bottom: 6px; }

/* Google Translate host — görünmez ama 0×0 değil (combo dolması için) */
#google_translate_element2,
.m-gt-host {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  width: 220px !important;
  height: 48px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: -1 !important;
}
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-gadget-icon { display: none !important; }
/* Banner şeridi — body kaymasını iptal */
body { top: 0 !important; }
body > .skiptranslate { display: none !important; }
html.translated-ltr,
html.translated-rtl,
body.translated-ltr,
body.translated-rtl { top: 0 !important; }

@media print {
  .m-fab, .m-fb-fab, .m-to-top, .m-sheet, .m-toast, .m-track { display: none !important; }
  #app { box-shadow: none; border: 0; }
}

/* —— QR Menü gece kontrast sıkılaştırma (20260813v) ——
   Pack’ler açık zemin + beyaz mürekkep bırakabiliyor; appear-dark / theme-dark SoT. */
body.appear-dark .m-desc,
body.theme-dark .m-desc {
  color: #8899a6 !important;
}

body.appear-dark .m-wifi-head span,
body.theme-dark .m-wifi-head span,
body.appear-dark .m-wifi-pass span,
body.theme-dark .m-wifi-pass span,
body.appear-dark .lx-wifi-col > span,
body.theme-dark .lx-wifi-col > span {
  color: #8899a6 !important;
}

body.appear-dark .m-wifi-head strong,
body.theme-dark .m-wifi-head strong,
body.appear-dark .m-wifi-pass code,
body.theme-dark .m-wifi-pass code,
body.appear-dark .lx-wifi-val,
body.theme-dark .lx-wifi-val,
body.appear-dark .lx-wifi-val em,
body.theme-dark .lx-wifi-val em {
  color: #ffffff !important;
}

/* Pack kart başlıkları — açık gri zemin üstünde beyaz kalmasın */
body.appear-dark .m-sheet h3,
body.theme-dark .m-sheet h3,
body.appear-dark .lx-panel h2,
body.theme-dark .lx-panel h2,
body.appear-dark .lx-nav-title,
body.theme-dark .lx-nav-title,
body.appear-dark .lx-row-n,
body.theme-dark .lx-row-n,
body.appear-dark .lx-search-item__name,
body.theme-dark .lx-search-item__name {
  color: #ffffff !important;
}

/* —— Misafir masa QR kamera tarayıcı —— */
.m-qrscan {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + var(--safe-b, 0px));
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.m-qrscan__panel {
  width: min(420px, 100%);
  background: #0f1218; color: #f5f7fb;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.m-qrscan__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px 10px;
}
.m-qrscan__top strong { font-size: 1rem; font-weight: 700; }
.m-qrscan__x {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: inherit;
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.m-qrscan__stage {
  position: relative; margin: 0 16px;
  border-radius: 14px; overflow: hidden;
  background: #000; aspect-ratio: 3 / 4; max-height: 58vh;
}
.m-qrscan__video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.m-qrscan__frame {
  position: absolute; inset: 18% 14%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.m-qrscan__hint {
  margin: 12px 16px 0; font-size: 0.85rem; line-height: 1.4;
  color: rgba(245, 247, 251, 0.78); text-align: center;
}
.m-qrscan__cancel {
  display: block; width: calc(100% - 32px); margin: 12px 16px 16px;
  padding: 12px 14px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12); color: inherit;
  font: inherit; font-weight: 700; cursor: pointer;
}
body.m-qrscan-open { overflow: hidden; }

.m-party-wait {
  margin: 8px 12px 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  text-align: center;
}
.m-party-wait strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.m-party-wait span { display: block; font-size: 0.8rem; line-height: 1.35; opacity: 0.92; }
.m-party-wait.is-rej {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
body.pack-luxe .m-party-wait {
  background: color-mix(in srgb, var(--lx-red, #b91c1c) 10%, var(--lx-card, #fff));
  border-color: color-mix(in srgb, var(--lx-red, #b91c1c) 35%, var(--lx-line, #ddd));
  color: var(--lx-ink, #1c1917);
}
#m-party-wait-host:empty { display: none; }

.m-sheet.is-party .m-sheet-panel {
  padding-top: 14px;
  padding-bottom: calc(var(--safe-b) + var(--kb-inset) + 20px);
}
.m-party-share {
  text-align: center;
  padding: 4px 2px 8px;
  max-width: 360px;
  margin: 0 auto;
}
.m-party-share__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  margin-bottom: 12px;
}
.m-party-share__titles { flex: 1; min-width: 0; }
.m-party-share__titles h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.m-party-share__titles p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted, #6b6560);
}
.m-party-share__x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -2px -2px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #f4f2f0;
  color: #1c1917;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.m-party-share__x svg { display: block; }
.m-party-share__x:hover,
.m-party-share__x:focus-visible {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
  outline: none;
}
.m-party-share__x:active { transform: scale(0.96); }
.m-party-share__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.m-party-share__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.m-party-share__qr {
  display: inline-flex;
  padding: 14px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.m-party-share canvas,
.m-party-share__qr canvas {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}
.m-party-share__url {
  margin: 0 0 14px;
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-all;
  color: var(--muted, #6b6560);
}
.m-party-share__cta {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--accent, #c45c26);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent, #c45c26) 35%, transparent);
}
.m-party-share__cta:active { transform: scale(0.98); }
.m-party-orders {
  text-align: start;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
}
.m-party-orders__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.m-party-orders__head strong {
  font-size: 0.92rem;
}
.m-party-orders__sum {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #6b6560);
}
.m-party-orders__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #6b6560);
  text-align: center;
  padding: 12px 8px;
}
.m-party-order {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.m-party-order:last-child { border-bottom: none; }
.m-party-order__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.m-party-order__st {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, #c45c26);
}
.m-party-order__items {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-2, #3a3530);
}
body.pack-luxe .m-party-share__cta {
  background: var(--lx-red, #b91c1c);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--lx-red, #b91c1c) 32%, transparent);
}
body.pack-luxe .m-party-order__st { color: var(--lx-red-2, #b91c1c); }
body.pack-luxe .m-party-share__x {
  background: var(--lx-bg, #f4f2f0);
  border-color: var(--lx-line, rgba(0, 0, 0, 0.12));
  color: var(--lx-ink, #1c1917);
}
body.pack-luxe .m-party-share__x:hover,
body.pack-luxe .m-party-share__x:focus-visible {
  background: color-mix(in srgb, var(--lx-red, #b91c1c) 10%, var(--lx-card, #fff));
  border-color: color-mix(in srgb, var(--lx-red, #b91c1c) 35%, var(--lx-line, #ddd));
  color: var(--lx-red-2, #b91c1c);
}
body.pack-luxe.appear-dark .m-party-share__chip {
  background: rgba(255, 255, 255, 0.08);
}
body.pack-luxe.appear-dark .m-party-share__x {
  background: var(--lx-card);
  border-color: var(--lx-line);
  box-shadow: none;
}
body.pack-luxe.appear-dark .m-party-share__x:hover,
body.pack-luxe.appear-dark .m-party-share__x:focus-visible {
  background: color-mix(in srgb, var(--lx-red) 14%, var(--lx-card));
}
body.pack-luxe.appear-dark .m-party-orders {
  border-top-color: rgba(255, 255, 255, 0.1);
}
body.pack-luxe.appear-dark .m-party-order {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
