/* Kilisli Fiko — QR menü
   Renkler basılı v2 menü tasarımından alındı: krem kâğıt, koyu kırmızı, altın. */

:root {
  --kagit:        #F2E7D4;
  --kagit-koyu:   #EADCC3;
  --kirmizi:      #98191B;
  --kirmizi-koyu: #6E1214;
  --altin:        #B08A3E;
  --altin-acik:   #CBA65C;
  --metin:        #2C221A;
  --metin-soluk:  #7A6A55;
  --cizgi:        #C9B592;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --alt-bar-h: 64px;
}

* { box-sizing: border-box; }

/* scroll-behavior: smooth bilerek kullanılmıyor: gömülü/arka plan sekmelerde
   animasyon karesi çalışmadığı için kategori atlaması hiç gerçekleşmiyor. */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--kagit);
  background-image:
    radial-gradient(120% 60% at 50% 0%, #FBF4E6 0%, rgba(251,244,230,0) 60%),
    radial-gradient(90% 40% at 50% 100%, #E7D8BC 0%, rgba(231,216,188,0) 70%);
  color: var(--metin);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  padding-bottom: calc(var(--alt-bar-h) + env(safe-area-inset-bottom));
}

/* ---------- Üst ---------- */

.ust {
  position: relative;
  text-align: center;
  padding: 20px 20px 16px;
}

/* ---------- Dil seçici ---------- */

.dil-sec {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dil-sec .dil {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  background: rgba(255,252,245,.7);
  text-decoration: none;
  line-height: 1;
  opacity: .65;
}

.dil-sec .dil.aktif {
  border-color: var(--kirmizi);
  background: var(--kirmizi);
  opacity: 1;
}

.dil-sec .bayrak { font-size: 14px; }

.dil-sec .kod {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--metin-soluk);
}

.dil-sec .dil.aktif .kod { color: #FBF3E4; }

.ust .logo {
  width: 118px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.slogan {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--kirmizi);
}

.beri {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--metin-soluk);
}

.beri i {
  width: 4px; height: 4px;
  background: var(--altin);
  transform: rotate(45deg);
}

/* ---------- Yapışkan kategori şeridi ---------- */

.serit {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242,231,212,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cizgi);
  box-shadow: 0 6px 14px -12px rgba(44,34,26,.7);
}

.serit-ic {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 16px;
  scroll-padding-inline: 16px;
}

.serit-ic::-webkit-scrollbar { display: none; }

/* Sağ kenarda soluklaşma: şeridin kaydırılabildiğini belli eder */
.serit::after {
  content: "";
  position: absolute;
  top: 0; bottom: 1px;
  inset-inline-end: 0;
  width: 32px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(242,231,212,0), rgba(242,231,212,.95));
}

.serit a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--metin-soluk);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255,252,245,.6);
  transition: background .18s, color .18s, border-color .18s;
}

.serit a.aktif {
  background: var(--kirmizi);
  border-color: var(--kirmizi);
  color: #FBF3E4;
}

/* ---------- Kategoriler ---------- */

main { padding: 0 18px; max-width: 640px; margin: 0 auto; }

.kategori { padding-top: 30px; scroll-margin-top: 62px; }

.kategori-baslik {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--kirmizi);
}

/* flex-basis 12px: başlık iki satıra kırılsa bile çizgiler kaybolmaz */
.kategori-baslik::before,
.kategori-baslik::after {
  content: "";
  height: 1px;
  flex: 1 0 12px;
  background: linear-gradient(90deg, transparent, var(--cizgi));
}

.kategori-baslik::after {
  background: linear-gradient(90deg, var(--cizgi), transparent);
}

.urunler { list-style: none; margin: 0; padding: 0; }

.urun {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(201,181,146,.35);
}

.urun:last-child { border-bottom: 0; }

.urun .foto {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--cizgi);
  background: var(--kagit-koyu);
  cursor: zoom-in;
}

.urun .orta { min-width: 0; }

.urun .ad {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--metin);
}

.urun .alt {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--metin-soluk);
}

.urun .nokta {
  flex: 1 1 auto;
  min-width: 12px;
  height: 0;
  border-bottom: 1px dotted var(--cizgi);
  transform: translateY(-2px);
}

.urun .fiyat {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--kirmizi);
  white-space: nowrap;
}

.urun .fiyat .tl {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--altin);
  margin-left: 2px;
}

/* ---------- Künye ---------- */

.kunye {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 24px 30px;
  text-align: center;
  color: var(--metin-soluk);
  font-size: 13px;
  line-height: 1.6;
}

.kunye .ayrac {
  width: 100%;
  height: 1px;
  margin: 0 0 24px;
  background: linear-gradient(90deg, transparent, var(--cizgi), transparent);
}

.kunye .yer {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--kirmizi);
  margin: 0 0 10px;
}

.kunye .satir { margin: 0 0 4px; }
.kunye a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--cizgi); }
.kunye .kucuk { margin-top: 16px; font-size: 11px; color: #A0917C; }

/* ---------- Alt aksiyon barı ---------- */

.alt-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  height: calc(var(--alt-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--kirmizi);
  box-shadow: 0 -8px 20px -14px rgba(0,0,0,.9);
}

.alt-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #F6E9D2;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  border-inline-end: 1px solid rgba(246,233,210,.18);
  -webkit-tap-highlight-color: transparent;
}

.alt-bar a:last-child { border-inline-end: 0; }
.alt-bar a:active { background: var(--kirmizi-koyu); }
.alt-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fotoğraf büyüteci ---------- */

.buyutec {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28,20,14,.92);
}

.buyutec[hidden] { display: none; }

.buyutec figure { margin: 0; max-width: 100%; text-align: center; }

.buyutec img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 10px;
  display: block;
}

.buyutec figcaption {
  margin-top: 14px;
  color: #F2E7D4;
  font-family: var(--serif);
  font-size: 18px;
}

.buyutec-kapat {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  inset-inline-end: 14px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(242,231,212,.14);
  color: #F2E7D4;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Dar telefonlar (iPhone SE vb.) ---------- */

@media (max-width: 360px) {
  main { padding: 0 14px; }
  .ust .logo { width: 104px; }
  .slogan { font-size: 10px; letter-spacing: .16em; }
  .kategori-baslik { font-size: 11.5px; letter-spacing: .13em; }
  .urun .ad { font-size: 17px; }
  .urun .fiyat { font-size: 16px; }
}

/* ---------- Arapça (sağdan sola) ---------- */

.arapca {
  --serif: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", serif;
  --sans: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* Arapçada harf aralığı açmak ve büyük harfe çevirmek yazıyı bozar */
.arapca .slogan,
.arapca .beri,
.arapca .kategori-baslik,
.arapca .kunye .yer {
  letter-spacing: normal;
  text-transform: none;
}

.arapca .slogan { font-size: 14px; }
.arapca .kategori-baslik { font-size: 16px; }
.arapca .kunye .yer { font-size: 16px; }
.arapca .urun .ad { line-height: 1.5; }
.arapca .urun .alt { font-size: 13px; }

/* Şeridin soluklaşan kenarı yön değiştirir */
[dir="rtl"] .serit::after {
  background: linear-gradient(270deg, rgba(242,231,212,0), rgba(242,231,212,.95));
}

/* ---------- Geniş ekran ---------- */

@media (min-width: 760px) {
  .ust { padding-top: 40px; }
  .ust .logo { width: 160px; }
  main { max-width: 720px; }
  .kategori { padding-top: 40px; }

  /* Şerit ve alt bar, ortalanmış menü sütunuyla aynı hizada dursun */
  .serit-ic { max-width: 720px; margin: 0 auto; }
  .alt-bar { justify-content: center; }
  .alt-bar a { flex: 0 1 240px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
