/* ============================================================
   SERTAÇ KOKOREÇ — QR MENÜ  ·  Tema: "Kömür & Kor"
   Kömür karası zemin + mangal közü turuncusu/amberi.
   (Sadece müşteri menüsü. Personel arayüzü style.css'te.)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --coal:      #141317;   /* kömür — ana zemin */
  --coal-2:    #1a191f;   /* ikincil zemin */
  --surface:   #201f27;   /* kart */
  --surface-2: #282730;   /* kart (vurgulu) */
  --line:      rgba(255,255,255,.08);
  --line-warm: rgba(255,122,50,.22);
  --ember:     #ff7a32;   /* kor turuncu — ana accent */
  --ember-2:   #ff9a5a;   /* açık kor */
  --flame:     #ef4b2b;   /* köz kırmızı */
  --spark:     #ffbe73;   /* amber — fiyatlar */
  --cream:     #f1ece1;   /* metin */
  --cream-dim: #c9c2b6;   /* soluk metin */
  --smoke:     #8a8794;   /* muted — duman grisi */
  --radius:    16px;
  --maxw:      840px;
}

html, body { min-height: 100%; }
body {
  background: var(--coal);
  color: var(--cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.app-shell { min-height: 100dvh; }

img { display: block; max-width: 100%; }

/* ---------- Yükleniyor / Hata ---------- */
.m-loading, .m-error {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: var(--smoke); font-size: 14px; text-align: center; padding: 24px;
}
.m-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--ember);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.m-error { color: var(--ember-2); }

/* ============================================================
   AÇILIŞ EKRANI (Splash)
   ============================================================ */
#mSplash {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(255,122,50,.28), transparent 60%),
    var(--coal);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#mSplash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.sp-logo {
  width: 96px; height: 96px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-warm), 0 20px 60px rgba(255,90,30,.25);
  animation: spPop .8s cubic-bezier(.16,1,.3,1);
}
.sp-logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-name {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 22px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--cream);
  margin-top: 22px; opacity: 0; animation: spIn .9s .2s cubic-bezier(.16,1,.3,1) forwards;
}
.sp-sub {
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--ember);
  margin-top: 10px; opacity: 0; animation: spIn .9s .35s cubic-bezier(.16,1,.3,1) forwards;
}
.sp-line {
  width: 1px; height: 0; margin-top: 26px;
  background: linear-gradient(var(--ember), transparent);
  animation: spLine 1s .5s ease forwards;
}
@keyframes spPop { from { transform: scale(.7); opacity: 0; } }
@keyframes spIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spLine { to { height: 46px; } }

/* ============================================================
   HERO
   ============================================================ */
.m-hero {
  position: relative; text-align: center;
  padding: 54px 24px 30px;
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(255,122,50,.18), transparent 55%),
    linear-gradient(180deg, var(--coal-2), var(--coal));
  overflow: hidden;
}
.m-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: .5;
}
.m-logo {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-warm), 0 16px 44px rgba(255,90,30,.22);
  animation: fadeUp .6s .05s both;
}
.m-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-eyebrow {
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--ember);
  margin-bottom: 12px; animation: fadeUp .5s .15s both;
}
.m-title {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(34px, 8vw, 52px);
  letter-spacing: 1px; line-height: 1.02; text-transform: uppercase;
  color: var(--cream); animation: fadeUp .5s .25s both;
}
.m-sub {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--smoke);
  margin-top: 12px; animation: fadeUp .5s .35s both;
}
.m-ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 20px; animation: fadeUp .5s .45s both;
}
.m-ornament span { flex: 1; max-width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-warm)); }
.m-ornament span:last-child { background: linear-gradient(90deg, var(--line-warm), transparent); }
.m-ornament i { color: var(--ember); font-size: 12px; font-style: normal; }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   KATEGORİ SEKMELERİ (sticky)
   ============================================================ */
.m-cattabs {
  position: sticky; top: 0; z-index: 100;
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(20,19,23,.82); backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.m-cattabs::-webkit-scrollbar { display: none; }
.m-cattab {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
  background: var(--surface); color: var(--cream-dim);
  border: 1px solid var(--line); transition: all .2s ease;
}
.m-cattab:hover { color: var(--cream); border-color: var(--line-warm); }
.m-cattab.active {
  color: #241206; border-color: transparent;
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  box-shadow: 0 6px 18px rgba(255,90,30,.35);
}

/* ============================================================
   İÇERİK + BÖLÜMLER
   ============================================================ */
.m-content { max-width: var(--maxw); margin: 0 auto; padding: 26px 16px 40px; }
.m-cat-section { margin-bottom: 34px; scroll-margin-top: 72px; }
.m-cat-label {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ember);
  padding-bottom: 12px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.m-cat-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-warm), transparent);
}

/* Ürünler — kart grid (geniş ekran 2 sütun, mobil 1) */
.m-cat-section { display: grid; grid-template-columns: 1fr; gap: 12px; }
.m-cat-section .m-cat-label { grid-column: 1 / -1; margin-bottom: 4px; }
@media (min-width: 680px) {
  .m-cat-section { grid-template-columns: 1fr 1fr; }
  /* Porsiyonlu ürünler (3 fiyatlı) tam genişlik, tek fiyatlılar yan yana */
  .m-prod:has(.m-prod-prices) { grid-column: 1 / -1; }
}

/* ---------- Ürün Kartı ---------- */
.m-prod {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease, border-color .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.m-prod.vis { opacity: 1; transform: none; }
.m-prod::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--ember-2), var(--flame));
  opacity: 0; transition: opacity .25s ease;
}
.m-prod:hover { background: var(--surface-2); border-color: var(--line-warm); }
.m-prod:hover::before { opacity: 1; }

.m-prod-info { min-width: 0; }
.m-prod-name {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px;
  letter-spacing: .5px; text-transform: uppercase; color: var(--cream); line-height: 1.15;
}
.m-prod-variants {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--smoke); margin-top: 5px;
}

/* Tek fiyat (sağda büyük) */
.m-prod-price {
  flex: 0 0 auto; font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 24px; color: var(--spark); white-space: nowrap;
}

/* Çok fiyat (porsiyonlu) */
.m-prod-prices { flex: 0 0 auto; display: grid; gap: 6px; min-width: 132px; }
.m-prc-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.m-prc-name {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--smoke);
}
.m-prc-val {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 17px;
  color: var(--spark); white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.m-footer { text-align: center; padding: 30px 24px 20px; }
.m-footer-deco {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px;
}
.m-footer-deco span { flex: 1; max-width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-warm)); }
.m-footer-deco span:last-child { background: linear-gradient(90deg, var(--line-warm), transparent); }
.m-footer-deco i { color: var(--ember); font-size: 12px; font-style: normal; }
.m-footer-text {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--smoke); line-height: 1.9;
}
.m-footer-brand {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ember-2); margin-top: 14px;
}

/* Tasarımcı imzası */
.m-credit {
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  margin-top: 26px; padding: 12px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .25s ease, background .25s ease, transform .2s ease;
}
.m-credit:hover { border-color: var(--line-warm); background: var(--surface-2); transform: translateY(-2px); }
.m-credit-label {
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--smoke);
}
.m-credit-handle {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 15px;
  letter-spacing: 1px; color: var(--cream);
}
.m-ig { display: block; border-radius: 5px; flex-shrink: 0; }

/* ============================================================
   TOAST (paylaşılan)
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); color: var(--cream); border: 1px solid var(--line-warm);
  padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 9998;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Gizli baskı alanı (menüde kullanılmaz) */
.print-root { display: none; }

/* ============================================================
   ERİŞİLEBİLİRLİK
   ============================================================ */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}