:root {
  --duvar: #3b2c22;      /* loş, sıcak kahve */
  --yuzey: #4a382c;
  --cizgi: #70563f;
  --ahsap: #a8744a;
  --neon: #ffc933;       /* tabela sarısı */
  --tebesir: #fbf1e0;
  --soluk: #d9c7ae;
  --kirmizi: #a32620;
  --tahta: #26241f;
  --yazi: "Figtree", system-ui, sans-serif;
  --el: "Dancing Script", cursive;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body { background: var(--duvar); color: var(--tebesir); font: 400 16px/1.5 var(--yazi); overflow-x: hidden; }
body.kapali { overflow: hidden; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ================= Karşılama ekranı ================= */
.karsilama {
  position: fixed; inset: 0; z-index: 20; overflow: hidden auto;
  display: flex; flex-direction: column; align-items: center;
  padding: max(64px, 8dvh) 20px 24px; text-align: center;
  /* dükkândaki çıtalı duvar ve sıcak ışık */
  background:
    radial-gradient(75% 48% at 50% 30%, rgb(255 176 70 / .34), transparent 72%),
    linear-gradient(transparent 55%, rgb(35 22 13 / .85)),
    repeating-linear-gradient(90deg, #4b3729 0 26px, #2d2018 26px 34px);
  clip-path: circle(150% at 50% 65%);
  transition: clip-path .85s cubic-bezier(.7,0,.25,1), visibility 0s .85s;
}
.karsilama.gitti { clip-path: circle(0 at var(--x, 50%) var(--y, 65%)); visibility: hidden; }
.karsilama > * { flex: none; }
.lamba { position: absolute; top: 0; width: 2px; height: 46px; background: #120c08; transform-origin: top; animation: sallan 6s ease-in-out infinite alternate; }
.lamba::after {
  content: ""; position: absolute; top: 44px; left: -21px; width: 44px; height: 20px;
  background: #2b2019; border-radius: 44px 44px 4px 4px;
  box-shadow: 0 8px 16px -2px #ffb84d, 0 46px 80px 28px rgb(255 170 60 / .2);
}
.lamba-sol { left: 14%; } .lamba-sag { right: 14%; animation-delay: -3s; }

.amblem { width: min(78vw, 42dvh, 340px); }
.amblem svg { display: block; width: 100%; overflow: visible; }
.amblem circle:first-child { fill: rgb(30 19 11 / .82); }
.halka { fill: none; stroke: var(--neon); stroke-width: 3.5; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; animation: ciz 1.5s ease forwards; filter: drop-shadow(0 0 8px #ffab1f); }
.halka-ic { fill: none; stroke: var(--ahsap); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; transform-origin: center; animation: don 60s linear infinite; }
.fincan, .cizgi { fill: none; stroke: var(--neon); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.fincan path, .cizgi { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ciz 1s .5s ease forwards; }
.fincan .duman { animation: ciz 1s 1.1s ease forwards, tut 3.5s 2.4s ease-in-out infinite; }
.cizgi { animation-delay: 2.4s; }
.neon-yazi { font: 700 54px var(--el); fill: transparent; stroke: var(--neon); stroke-width: 1.1; stroke-dasharray: 380; stroke-dashoffset: 380; }
.yazi-hazir .neon-yazi { animation: ciz 1.9s .7s ease-in forwards, yan .9s 2.4s forwards; }
.amblem-alt { font: 500 19px var(--yazi); letter-spacing: .14em; fill: var(--tebesir); }

.slogan { font: 700 1.55rem var(--el); margin-top: 18px; }
.masa { margin-top: 8px; padding: 2px 16px; border: 1px solid var(--ahsap); border-radius: 20px; color: var(--soluk); font-size: .9rem; }
.menuyu-gor {
  position: relative; overflow: hidden; margin-top: 20px; width: min(100%, 300px); padding: 16px;
  border: 0; border-radius: 40px; background: var(--neon); color: #2b1c00; font: 700 1.15rem var(--yazi); cursor: pointer;
  box-shadow: 0 0 0 5px rgb(255 201 51 / .18), 0 0 34px rgb(255 175 30 / .55);
}
.menuyu-gor::after { content: ""; position: absolute; top: 0; bottom: 0; width: 55px; left: -80px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .75), transparent); transform: skewX(-20deg); animation: parilti 3.2s 2s ease-in-out infinite; }
.menuyu-gor:active { transform: scale(.97); }
.konuma-git { margin-top: 8px; min-height: 44px; padding: 8px 18px; border: 0; background: none; color: var(--soluk); font: 500 1rem var(--yazi); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.tabaklar { display: flex; justify-content: center; align-items: flex-end; margin-top: auto; padding-top: 20px; }
.tabaklar img { width: clamp(62px, 19vw, 92px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid #f4e6cf; margin: 0 -5px; box-shadow: 0 8px 18px rgb(0 0 0 / .45); animation: suzul 4.5s ease-in-out infinite alternate; }
.tabaklar img:nth-child(2n) { translate: 0 -16px; animation-delay: -2s; }
.tabaklar img:nth-child(3) { width: clamp(76px, 23vw, 112px); z-index: 1; animation-delay: -1s; }

/* ================= Menü üstü ================= */
.ust { position: relative; overflow: hidden; text-align: center; padding: 30px 0 4px; background: radial-gradient(90% 100% at 50% 0, #755030, transparent 75%); }
.ust-logo { font: 700 clamp(2.8rem, 13vw, 4.2rem)/1.15 var(--el); color: #ffe08a; text-shadow: 0 0 5px var(--neon), 0 0 22px rgb(255 155 20 / .75); }
.ust h1 { font-size: .95rem; font-weight: 500; letter-spacing: .08em; }
.serit { overflow: hidden; margin-top: 18px; padding: 14px 0; transform: rotate(-2deg) scale(1.03); }
.serit-ic { display: flex; width: max-content; animation: kay 45s linear infinite; }
.serit-ic img { width: 118px; height: 138px; object-fit: cover; margin-right: 12px; padding: 5px 5px 18px; background: #f4e6cf; border-radius: 4px; box-shadow: 0 8px 16px rgb(20 11 4 / .4); rotate: 2.5deg; }
.serit-ic img:nth-child(2n) { rotate: -2.5deg; }

main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---- Arama ve yuvarlak kategori seçici ---- */
.cubuk { position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 10px 16px 6px; background: rgb(59 44 34 / .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 0 0 22px 22px; transition: box-shadow .3s; }
.cubuk.yapisik { box-shadow: 0 10px 22px rgb(20 11 4 / .4); }
.cubuk input { width: 100%; padding: 11px 18px; border-radius: 30px; border: 1px solid var(--cizgi); background: var(--yuzey); color: inherit; font: inherit; }
.cubuk nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 2px; }
.cubuk nav button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; border: 0; background: none; color: var(--soluk); font: 500 .76rem/1.2 var(--yazi); cursor: pointer; }
.balon { overflow: hidden; flex: none; display: grid; place-items: center; width: 60px; height: 60px; padding: 3px; border-radius: 50%; border: 2px solid var(--cizgi); font: 700 1.7rem var(--el); color: var(--neon); transition: width .25s, height .25s, border-color .25s, box-shadow .25s; }
.balon img { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cubuk.yapisik .balon { width: 46px; height: 46px; font-size: 1.3rem; }
.cubuk nav button[aria-current="true"] { color: var(--neon); }
.cubuk nav button[aria-current="true"] .balon { border-color: var(--neon); box-shadow: 0 0 14px rgb(255 190 40 / .6); }

/* ---- Kategoriler ---- */
.kategori, .iletisim { padding-top: 34px; scroll-margin-top: 140px; }
.baslik { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 700 2.2rem/1.2 var(--el); color: var(--neon); text-shadow: 0 0 14px rgb(255 170 30 / .5); }
.baslik::after { content: ""; flex: 1; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' fill='none' stroke='%23a8744a' stroke-width='2'%3E%3Cpath d='M0 5q7-6 14 0t14 0'/%3E%3C/svg%3E"); }
.kapak { position: relative; height: 200px; margin-bottom: 14px; overflow: hidden; border-radius: 90px 90px 18px 18px; border: 3px solid var(--ahsap); }
.kapak img { width: 100%; height: 100%; object-fit: cover; }

.kartlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .kartlar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kart {
  position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden;
  background: var(--yuzey); color: inherit; font: inherit; border: 1px solid var(--cizgi); border-radius: 20px; cursor: pointer;
  opacity: 0; transform: translateY(40px) rotate(var(--egim, 2deg)) scale(.93);
  transition: opacity .6s ease, transform .65s cubic-bezier(.2,.85,.25,1.15), box-shadow .25s;
  transition-delay: var(--gecikme, 0s);
}
.kartlar .kart:nth-child(2n) { --egim: -2deg; }
.kart.gorundu { opacity: 1; transform: none; }
.kart.gorundu:active { transform: scale(.96); transition-delay: 0s; }
@media (hover: hover) { .kart.gorundu:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgb(20 11 4 / .45), 0 0 0 1px var(--neon); transition-delay: 0s; } }

/* fotoğraflı kart: yazı fotoğrafın üzerinde */
.fotolu { aspect-ratio: 3/4; justify-content: flex-end; }
.fotolu > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.fotolu:hover > img { transform: scale(1.08); }
.fotolu::before { content: ""; position: absolute; inset: 30% 0 0; z-index: 1; background: linear-gradient(transparent, rgb(35 21 11 / .82) 52%, rgb(35 21 11 / .96)); }
.fotolu .kart-metin { position: relative; z-index: 2; flex: none; }
.fotolu.genis { grid-column: 1 / -1; aspect-ratio: 16/11; }
.fotolu.genis h3 { font-size: 1.3rem; }

.kart-metin { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px 13px; flex: 1; }
.kart h3 { font-size: 1.02rem; line-height: 1.25; }
.kart-metin > p:not(.fiyat) { font-size: .82rem; line-height: 1.4; color: var(--soluk); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fiyat { color: var(--neon); font-weight: 700; }
.kart .fiyat { align-self: flex-start; margin-top: 4px; padding: 2px 12px; border-radius: 20px; background: var(--neon); color: #2b1c00; font-size: .95rem; }
.etiket { align-self: flex-start; background: var(--kirmizi); color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 9px; border-radius: 10px 2px; }
.kart.tukendi > img { filter: grayscale(1) brightness(.55); }
.kart.tukendi h3 { color: var(--soluk); text-decoration: line-through; }

/* fotoğrafsız ürünler tebeşir listesi gibi */
.satirlar { list-style: none; padding: 2px 14px; background: rgb(74 56 44 / .6); border-radius: 18px; }
.kartlar + .satirlar { margin-top: 12px; }
.satirlar li + li { border-top: 1px dashed var(--cizgi); }
.satirlar .kart { width: 100%; background: none; border: 0; border-radius: 0; box-shadow: none; }
.satirlar .kart-metin { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 13px 0; }
.satirlar .kart-metin > p:not(.fiyat) { order: 3; width: 100%; }
.satirlar .fiyat { margin: 0 0 0 auto; }
.satirlar .etiket { align-self: center; }

/* ---- Günün menüsü: ahşap çerçeveli kara tahta ---- */
.tahtalar { display: grid; gap: 18px; }
.kart.tahta {
  width: 100%; text-align: center; align-items: center; padding: 24px 18px 22px;
  border: 9px solid var(--ahsap); border-radius: 8px;
  background: radial-gradient(60% 40% at 25% 20%, rgb(255 255 255 / .06), transparent), radial-gradient(50% 35% at 80% 80%, rgb(255 255 255 / .05), transparent), var(--tahta);
  box-shadow: inset 0 0 28px rgb(0 0 0 / .55), 0 16px 30px rgb(20 11 4 / .4);
}
.tahta h3 { font: 700 2rem/1.2 var(--el); }
.tahta ul { list-style: none; width: 100%; margin: 12px 0 4px; }
.tahta li { padding: 7px 0; font-size: 1.08rem; }
.tahta li + li::before { content: "✦"; display: block; margin: -12px 0 7px; color: #f2a9b6; font-size: .7rem; }
.tahta .fiyat { align-self: center; margin-top: 14px; padding: 5px 26px; font-size: 1.35rem; background: var(--kirmizi); color: #fff4df; border-radius: 4px 18px; rotate: -3deg; }
.tahta .etiket { align-self: center; margin-bottom: 8px; }
.kart.tahta.tukendi ul { opacity: .45; }
#menu { scroll-margin-top: 140px; }
.bos { padding: 40px 0; text-align: center; color: var(--soluk); }

/* ================= İletişim ================= */
.iletisim-kutu { overflow: hidden; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 24px; }
.dukkan { display: block; width: 100%; height: 250px; object-fit: cover; object-position: top; }
.iletisim-bilgi { padding: 16px 18px 0; }
.adres { font-weight: 700; font-size: 1.08rem; white-space: pre-line; }
.saatler { color: var(--soluk); white-space: pre-line; margin-top: 4px; }
.adres:empty, .saatler:empty { display: none; }
.iletisim iframe { display: block; width: 100%; height: 260px; margin-top: 16px; border: 0; background: #5a4535; }
.harita-yok { margin: 4px 18px 0; padding: 26px 12px; text-align: center; color: var(--soluk); border: 1px dashed var(--cizgi); border-radius: 16px; }
.iletisim-dugmeler { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px 18px; }
.iletisim-dugmeler a { flex: 1 1 130px; padding: 13px; text-align: center; text-decoration: none; color: var(--tebesir); border: 1px solid var(--ahsap); border-radius: 30px; font-weight: 700; }
.iletisim-dugmeler a.ana { flex-basis: 100%; background: var(--neon); border-color: var(--neon); color: #2b1c00; }

footer { text-align: center; padding-top: 28px; padding-bottom: 110px; color: var(--soluk); font-size: .85rem; }

.alt-cubuk { position: fixed; z-index: 6; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 4px; padding: 5px; background: rgb(35 23 14 / .94); border: 1px solid var(--cizgi); border-radius: 40px; box-shadow: 0 10px 26px rgb(15 8 2 / .5); white-space: nowrap; transition: opacity .25s, visibility .25s; }
.alt-cubuk.sakla { opacity: 0; visibility: hidden; }
.alt-cubuk button { min-height: 44px; min-width: 96px; padding: 10px 22px; border: 0; border-radius: 30px; background: none; color: var(--tebesir); font: 700 .92rem var(--yazi); cursor: pointer; }
.alt-cubuk button:last-child { background: var(--neon); color: #2b1c00; }

/* ================= Pencereler ================= */
dialog { width: min(100%, 480px); max-width: 100%; max-height: 92dvh; margin: auto auto 0; border: 0; border-top: 2px solid var(--neon); border-radius: 26px 26px 0 0; background: var(--yuzey); color: var(--tebesir); overflow: auto; overscroll-behavior: contain; }
@media (min-width: 620px) { dialog { margin: auto; border-radius: 26px; } }
dialog[open] { animation: yukari .4s cubic-bezier(.2,.8,.2,1); }
dialog::backdrop { background: rgb(30 19 11 / .7); backdrop-filter: blur(4px); }
dialog img { display: block; width: 100%; aspect-ratio: 1; max-height: 55dvh; object-fit: cover; }
.detay-metin { padding: 20px 22px calc(28px + env(safe-area-inset-bottom)); }
.detay-metin h2 { font-size: 1.4rem; margin-bottom: 6px; }
.detay-metin p { white-space: pre-line; }
.detay-metin .fiyat { margin-top: 14px; font-size: 1.4rem; }
.kapat { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .65); color: #fff; font-size: 1rem; cursor: pointer; z-index: 1; }
.devam { width: 100%; margin-top: 18px; padding: 13px; border: 0; border-radius: 30px; background: var(--neon); color: #2b1c00; font: 700 1rem var(--yazi); cursor: pointer; }
#popup { margin: auto; width: min(calc(100% - 32px), 420px); border: 1px solid var(--neon); border-radius: 24px; text-align: center; }
#popup img { aspect-ratio: auto; height: auto; object-fit: contain; }
#popup h2:empty, #popup p:empty { display: none; }
#popup img[hidden] + .detay-metin { padding-top: 62px; }

/* ================= Telefon ekranları ================= */
/* kısa ekranlı telefonlar: karşılama kaydırmadan sığar */
@media (max-height: 700px) and (orientation: portrait) {
  .karsilama { padding-top: 44px; padding-bottom: 12px; }
  .amblem { width: min(68vw, 38dvh); }
  .slogan { margin-top: 8px; font-size: 1.3rem; }
  .menuyu-gor { margin-top: 12px; padding: 13px; }
  .konuma-git { margin-top: 2px; }
  .tabaklar { padding-top: 14px; }
  .tabaklar img { width: 56px; }
  .tabaklar img:nth-child(3) { width: 68px; }
}
@media (max-height: 599px) and (orientation: portrait) { .tabaklar { display: none; } }

/* telefon yan tutulunca: logo solda, düğmeler sağda */
@media (orientation: landscape) and (max-height: 520px) {
  .karsilama { display: grid; grid-template-columns: auto minmax(0, 320px); grid-auto-rows: min-content; justify-content: center; align-content: center; justify-items: center; column-gap: 36px; padding: 16px max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left)); }
  .amblem { grid-row: 1 / span 4; align-self: center; width: min(76dvh, 40vw); }
  .tabaklar, .lamba { display: none; }
  .slogan { margin-top: 0; }
  .menuyu-gor { margin-top: 16px; }
  /* sabit çubuk ince kalır: kategoriler yazılı hap düğmeler olur */
  .cubuk { padding-top: 6px; }
  .cubuk input { padding-block: 8px; }
  .cubuk nav { padding-top: 6px; }
  .cubuk nav button { flex-direction: row; justify-content: center; width: auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--cizgi); border-radius: 30px; font-size: .9rem; white-space: nowrap; }
  .cubuk nav button[aria-current="true"] { border-color: var(--neon); }
  .balon { display: none; }
  .kategori, .iletisim, #menu { scroll-margin-top: 108px; }
  .kartlar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fotolu.genis { aspect-ratio: 21/9; }
  #popup { max-height: 94dvh; }
  #popup img { max-height: 36dvh; }
  #popup .detay-metin { padding-block: 12px 16px; }
  #popup img[hidden] + .detay-metin { padding-top: 56px; }
  #popup .devam { margin-top: 10px; padding: 11px; }
}
@media (max-width: 340px) {
  main, footer { padding-inline: 12px; }
  .cubuk { margin-inline: -12px; padding-inline: 12px; }
  .kartlar { gap: 9px; }
  .kart-metin { padding: 10px; }
  .kart h3 { font-size: .95rem; }
  .baslik { font-size: 1.9rem; }
  .alt-cubuk button { padding-inline: 16px; }
}

/* ================= Hareketler ================= */
@keyframes ciz { to { stroke-dashoffset: 0; } }
@keyframes tut { 50% { opacity: .35; transform: translateY(-3px); } }
@keyframes yan {
  0% { fill: transparent; } 25% { fill: var(--neon); } 35% { fill: transparent; } 50% { fill: var(--neon); } 60% { fill: rgb(255 201 51 / .3); }
  100% { fill: #ffe08a; filter: drop-shadow(0 0 4px var(--neon)) drop-shadow(0 0 14px rgb(255 160 20 / .75)); }
}
@keyframes don { to { rotate: 360deg; } }
@keyframes sallan { from { rotate: 3deg; } to { rotate: -3deg; } }
@keyframes suzul { to { transform: translateY(-9px) rotate(5deg); } }
@keyframes parilti { 0% { left: -80px; } 45%, 100% { left: 120%; } }
@keyframes kay { to { transform: translateX(-50%); } }
@keyframes yukari { from { transform: translateY(60px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .serit-ic { animation: none !important; }
  .serit { overflow-x: auto; }
}
