:root {
  --ana: #B76A43;
  --ana-koyu: #955032;
  --ana-acik: #F5EADF;
  --koyu: #183C34;
  --zemin: #F8F6F1;
  --kart: #FFFFFF;
  --yazi: #183C34;
  --soluk: #777E76;
  --kenar: #E7E8DF;
  --yesil: #10935F;
  --kirmizi: #D93636;
  --radius: 18px;
  --golge: 0 8px 28px rgba(24, 60, 52, .10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--zemin);
  color: var(--yazi);
  font-size: 15px;
  line-height: 1.4;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--kenar);
  border-radius: 12px; background: #fff; outline: none; color: var(--yazi);
}
input:focus { border-color: var(--ana); box-shadow: 0 0 0 3px var(--ana-acik); }
.gizli { display: none !important; }
.soluk { color: var(--soluk); }
.kucuk { font-size: 13px; }

/* Tam ekran durumlar */
.tam-ekran { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--ana-acik); border-top-color: var(--ana); border-radius: 50%; animation: don .8s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
.hata-kutu { text-align: center; max-width: 320px; }
.hata-ikon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #FDE4E4; color: var(--kirmizi); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hata-kutu h2 { margin: 0 0 6px; font-size: 19px; }
.hata-kutu p { margin: 0; color: var(--soluk); }

/* Hero */
.hero {
  background: radial-gradient(120% 140% at 100% 0%, #31594B 0%, var(--koyu) 55%);
  color: #fff;
  padding: 22px 18px 34px;
  padding-top: max(22px, env(safe-area-inset-top));
  border-radius: 0 0 28px 28px;
}
.hero-ic { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; max-width: 980px; margin: 0 auto; }
.hero-ust { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: #F6B79F; }
.hero h1 { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.masa-etiket { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 20px; font-weight: 600; }
.masa-etiket .nokta { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.ikon-btn { position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; }
.rozet { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--ana); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Arama + kategoriler (yapışkan) */
.yapiskan { position: sticky; top: 0; z-index: 10; background: var(--zemin); padding: 0 16px; margin-top: -22px; }
.ara-kutu { position: relative; max-width: 980px; margin: 0 auto; }
.ara-kutu svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--soluk); }
.ara-kutu input { padding: 13px 14px 13px 40px; border: 0; box-shadow: var(--golge); border-radius: 14px; }
.kategoriler { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 10px; scrollbar-width: none; max-width: 980px; margin: 0 auto; }
.kategoriler::-webkit-scrollbar { display: none; }
.kategori { flex: none; padding: 8px 15px; border-radius: 20px; background: #fff; border: 1px solid var(--kenar); font-size: 14px; font-weight: 600; color: var(--soluk); white-space: nowrap; transition: all .15s; }
.kategori.secili { background: var(--koyu); border-color: var(--koyu); color: #fff; }

/* Menü ızgarası */
.menu { padding: 4px 16px 150px; max-width: 980px; margin: 0 auto; }
.kat-baslik { margin: 20px 2px 12px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.kat-baslik::after { content: ""; flex: 1; height: 1px; background: var(--kenar); }
.izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.urun { position: relative; background: var(--kart); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(24,60,52,.06); display: flex; flex-direction: column; cursor: pointer; transition: transform .12s; }
.urun:active { transform: scale(.98); }
.urun-gorsel { position: relative; aspect-ratio: 4 / 3; background: var(--ana-acik); overflow: hidden; }
.urun-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yer-tutucu { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.urun-govde { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.urun-ad { font-weight: 700; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.urun-aciklama { color: var(--soluk); font-size: 12.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.urun-alt { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fiyat { font-weight: 800; color: var(--koyu); font-size: 15.5px; white-space: nowrap; }
.ekle-btn { width: 32px; height: 32px; border-radius: 10px; background: var(--ana); color: #fff; font-size: 21px; line-height: 1; display: flex; align-items: center; justify-content: center; flex: none; }
.ekle-btn[disabled] { background: var(--kenar); color: var(--soluk); }
.secenek-isaret { position: absolute; left: 8px; top: 8px; background: rgba(24,60,52,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.bos { text-align: center; color: var(--soluk); padding: 40px 0; grid-column: 1 / -1; }

/* Alt bar */
.alt-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--zemin) 72%, rgba(248,246,241,0)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.alt-bar > * { width: 100%; max-width: 640px; }
.cagri { display: flex; gap: 8px; }
.cagri-btn { flex: 1; padding: 12px; border-radius: 14px; background: #fff; font-weight: 700; color: var(--koyu); box-shadow: 0 2px 10px rgba(24,60,52,.08); }
.cagri-btn:active { background: var(--ana-acik); }
.cagri-btn[disabled] { opacity: .5; }
.sepet-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-radius: 16px; background: var(--koyu); color: #fff; font-weight: 700; box-shadow: 0 10px 28px rgba(24,60,52,.35); }
.sepet-adet { background: var(--ana); min-width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.bilgi-bandi { margin: 6px 16px 0; padding: 11px 13px; border-radius: 14px; background: #FFF4E5; color: #8A4B0B; font-size: 13px; max-width: 948px; }
@media (min-width: 980px) { .bilgi-bandi { margin-left: auto; margin-right: auto; } }

/* Alttan açılan pencereler */
.perde { position: fixed; inset: 0; z-index: 50; background: rgba(24,60,52,.5); display: flex; align-items: flex-end; justify-content: center; animation: belir .15s ease; }
@keyframes belir { from { opacity: 0; } }
.sayfa { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; animation: kay .22s ease; padding-bottom: env(safe-area-inset-bottom); }
@keyframes kay { from { transform: translateY(36px); } }
.sayfa-ic { padding: 18px 18px 22px; }
.sayfa h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.3px; }
.kapat { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); font-size: 22px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.u-gorsel { aspect-ratio: 16 / 10; background: var(--ana-acik); overflow: hidden; }
.u-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-gorsel .yer-tutucu { font-size: 56px; }
.u-baslik { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.u-baslik h2 { margin: 0; }
.u-fiyat { font-size: 19px; font-weight: 800; color: var(--ana-koyu); white-space: nowrap; }
.u-aciklama { color: var(--soluk); margin: 8px 0 0; white-space: pre-line; }
.etiket { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--soluk); }
.grup-baslik { margin: 18px 0 8px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.grup-baslik small { color: var(--soluk); font-weight: 500; }
.secenek { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--kenar); border-radius: 12px; margin-bottom: 6px; }
.secenek input { width: 19px; height: 19px; margin: 0; accent-color: var(--ana); flex: none; }
.secenek span { flex: 1; }
.secenek em { font-style: normal; color: var(--soluk); font-size: 13px; }
.secenek.salt { padding: 10px 12px; }
.miktar-satir { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.miktar { display: flex; align-items: center; border: 1px solid var(--kenar); border-radius: 14px; }
.miktar button { width: 42px; height: 48px; font-size: 22px; color: var(--ana); }
.miktar span { min-width: 26px; text-align: center; font-weight: 800; }
.ana-btn { flex: 1; padding: 15px; border-radius: 14px; background: var(--ana); color: #fff; font-weight: 800; }
.ana-btn[disabled] { opacity: .5; }
.ana-btn.genis { width: 100%; margin-top: 14px; }

.sepet-satir { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--kenar); align-items: center; }
.sepet-satir .bilgi { flex: 1; min-width: 0; }
.sepet-satir .ad { font-weight: 700; }
.sepet-satir .aciklama { font-size: 12.5px; color: var(--soluk); }
.sepet-satir .tutar { font-weight: 800; white-space: nowrap; }
.mini-miktar { display: flex; align-items: center; gap: 2px; }
.mini-miktar button { width: 30px; height: 30px; border-radius: 9px; background: var(--ana-acik); color: var(--ana-koyu); font-weight: 800; }
.mini-miktar span { min-width: 22px; text-align: center; font-weight: 700; }
.toplam-satir { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 17px; }

.durum-kart { border: 1px solid var(--kenar); border-radius: 14px; padding: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.durum-kart .tur { font-weight: 700; }
.durum-kart .zaman { font-size: 12.5px; color: var(--soluk); }
.durum { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.durum.bekliyor { background: #FFF1D6; color: #8A4B0B; }
.durum.onay { background: #D7F5E7; color: #0B6B45; }
.durum.ret { background: #FDE4E4; color: #9B1C1C; }

.bildirim { position: fixed; left: 50%; bottom: 118px; transform: translateX(-50%); z-index: 60; background: var(--koyu); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--golge); }
.bildirim.hata { background: var(--kirmizi); }

@media (min-width: 640px) {
  .izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hero { padding-bottom: 40px; }
  .hero h1 { font-size: 32px; }
}
@media (min-width: 900px) {
  .izgara { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perde { align-items: center; }
  .sayfa { border-radius: 24px; }
}

/* Sıcak, sade ve tüm ekranlarda tutarlı menü görünümü. */
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
button, input { transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
button:focus-visible, .urun:focus-visible { outline: 3px solid var(--ana); outline-offset: 4px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 40px;
  padding-top: max(22px, env(safe-area-inset-top));
  background: radial-gradient(ellipse at 95% 0%, #426653 0%, transparent 58%), #183C34;
  border-radius: 0 0 36px 36px;
}
.hero::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  right: -90px; bottom: -180px; border: 1px solid rgba(230,219,183,.22);
  border-radius: 50%; box-shadow: 0 0 0 32px rgba(230,219,183,.04), 0 0 0 64px rgba(230,219,183,.035);
  pointer-events: none;
}
.hero-ic { position: relative; z-index: 1; max-width: 1040px; }
.hero-metin { min-width: 0; }
.hero-ust { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 2.8px; color: #DFC5A2; }
.hero-cizgi { width: 24px; height: 1px; background: currentColor; }
.hero h1 { margin-top: 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 4vw, 32px); font-weight: 500; letter-spacing: -.5px; overflow-wrap: anywhere; }
.masa-etiket { margin-top: 10px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); font-size: 12px; }
.masa-etiket .nokta { width: 6px; height: 6px; background: #A9D4A3; box-shadow: 0 0 0 3px rgba(169,212,163,.12); }
.ikon-btn { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.yapiskan { padding: 0 20px; margin-top: -25px; background: var(--zemin); border-radius: 20px 20px 0 0; }
.ara-kutu, .kategoriler { max-width: 1040px; }
.ara-kutu input { min-height: 54px; padding-left: 46px; border: 1px solid var(--kenar); border-radius: 16px; box-shadow: 0 6px 22px rgba(24,60,52,.07); font-size: 14px; }
.ara-kutu svg { left: 18px; }
input::placeholder { color: #8A9087; opacity: 1; }
.kategoriler { padding: 18px 0 15px; gap: 9px; }
.kategori { padding: 10px 19px; font-size: 13px; border-radius: 12px; font-weight: 600; background: #FFFDF9; }
.kategori.secili { box-shadow: 0 4px 10px rgba(24,60,52,.14); }
.menu { max-width: 1080px; padding: 0 20px 24px; }
.enix-imza { text-align: center; padding: 8px 20px 170px; font-size: 12px; letter-spacing: .3px; }
.enix-imza a { display: inline-block; padding: 10px 14px; color: var(--soluk); text-decoration: none; }
.enix-imza a:hover { color: var(--koyu); text-decoration: underline; }
.enix-imza a:focus-visible { outline: 2px solid var(--ana); outline-offset: 3px; border-radius: 6px; }
.kat-baslik { margin: 26px 0 18px; font-size: 23px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; gap: 18px; }
.kat-baslik::after { background: linear-gradient(to right, #DADFD3, transparent); }
.izgara { gap: 14px; }
.urun { border: 1px solid #E8E9E0; border-radius: 20px; box-shadow: 0 3px 12px rgba(24,60,52,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.urun-gorsel { aspect-ratio: 1.2; }
.urun-gorsel img { transition: transform .35s ease; }
.yer-tutucu { position: relative; isolation: isolate; }
.yer-tutucu::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(24,60,52,.25); }
.yer-tutucu::after { content: ""; position: absolute; width: 74px; height: 74px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; z-index: -1; }
.urun-govde { padding: 14px; }
.urun-ad { font-size: 15px; line-height: 1.4; letter-spacing: -.2px; }
.urun-aciklama { margin-top: 6px; font-size: 12px; line-height: 1.6; }
.urun-alt { padding-top: 18px; }
.fiyat { font-size: 16px; font-weight: 700; letter-spacing: -.4px; }
.ekle-btn { width: 35px; height: 35px; border-radius: 12px; background: var(--ana-acik); color: var(--ana-koyu); }
.secenek-isaret { top: 10px; left: 10px; padding: 5px 9px; background: rgba(24,60,52,.85); font-size: 10px; letter-spacing: .3px; }
.alt-bar { padding-top: 20px; gap: 10px; pointer-events: none; }
.alt-bar > * { pointer-events: auto; }
.cagri { gap: 10px; }
.cagri-btn { border: 1px solid var(--kenar); padding: 14px 12px; font-size: 13px; box-shadow: 0 3px 12px rgba(24,60,52,.04); }
.sepet-btn { padding: 16px 18px; box-shadow: 0 8px 24px rgba(24,60,52,.2); }
.sepet-adet { background: rgba(255,255,255,.15); }
.bilgi-bandi { border: 1px solid #EFE0C4; }
.perde { background: rgba(14,34,28,.6); backdrop-filter: blur(5px); }
.sayfa { box-shadow: 0 24px 80px rgba(14,34,28,.22); }
.sayfa-ic { padding: 28px 24px; }
.sayfa h2 { font-size: 25px; padding-right: 26px; }
.u-baslik h2 { padding-right: 0; }
.u-fiyat { font-size: 20px; }
.u-aciklama { line-height: 1.7; font-size: 14px; }
.secenek { padding: 14px; background: #FDFCFA; }
.secenek:has(input:checked) { border-color: var(--ana); background: var(--ana-acik); }
.ana-btn { background: var(--koyu); font-size: 14px; }
.toplam-satir { padding-top: 18px; border-top: 1px solid var(--kenar); }
.hata-kutu { padding: 30px 24px; border: 1px solid var(--kenar); border-radius: 24px; background: var(--kart); box-shadow: var(--golge); }
.bos { padding: 60px 20px; border: 1px dashed #DADFD3; border-radius: 20px; margin-top: 24px; background: #FFFDF9; }
@media (hover: hover) {
  .urun:hover { transform: translateY(-4px); border-color: #CAD3C5; box-shadow: 0 12px 28px rgba(24,60,52,.09); }
  .urun:hover .urun-gorsel img { transform: scale(1.04); }
  .kategori:not(.secili):hover, .cagri-btn:hover { background: #ECEFE5; }
  .ana-btn:not(:disabled):hover, .sepet-btn:hover { background: #285347; }
  .ekle-btn:not(:disabled):hover { background: var(--ana); color: #fff; }
}
@media (min-width: 640px) {
  .hero { padding: 26px 28px 42px; padding-top: max(26px, env(safe-area-inset-top)); }
  .yapiskan { padding: 0 28px; }
  .menu { padding-left: 20px; padding-right: 20px; }
  .urun-govde { padding: 18px; }
  .urun-ad { font-size: 16px; }
  .urun-aciklama { font-size: 13px; }
  .kat-baslik { margin-top: 32px; font-size: 27px; }
}
@media (max-width: 359px) {
  .yapiskan { padding: 0 12px; }
  .menu { padding-left: 12px; padding-right: 12px; }
  .izgara { gap: 10px; }
  .urun-govde { padding: 10px; }
  .fiyat { font-size: 14px; }
  .miktar-satir { flex-wrap: wrap; }
  .miktar-satir .ana-btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
