:root {
  --paper: #f6f2ea;
  --card: #fffdf8;
  --ink: #1f2b26;
  --muted: #6b7a72;
  --line: #e6dfd2;
  --green: #24453a;
  --green-2: #4c7262;
  --mist: #dfe6e0;
  --copper: #a8642b;
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }

/* ---------- Üst bölüm ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(34px + env(safe-area-inset-top)) 20px 30px;
  text-align: center;
  color: #f4efe4;
  background:
    linear-gradient(180deg, rgba(36,69,58,.0) 0%, rgba(36,69,58,.35) 100%),
    radial-gradient(120% 90% at 50% 0%, #5d8573 0%, #2f5547 55%, #1d3a30 100%);
}
.hero::after { /* katmanlı tepeler */
  content: "";
  position: absolute; inset: auto 0 -1px 0; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C 60 4, 120 6, 190 22 S 320 34, 400 12 V40 H0Z' fill='%23f6f2ea' fill-opacity='.45'/%3E%3Cpath d='M0 34 C 80 16, 150 18, 220 30 S 340 36, 400 24 V40 H0Z' fill='%23f6f2ea'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.fog {
  position: absolute; left: -40%; width: 180%; height: 70px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244,239,228,.28), rgba(244,239,228,0));
  filter: blur(6px);
  pointer-events: none;
}
.fog-1 { top: 38%; animation: drift 26s ease-in-out infinite alternate; }
.fog-2 { top: 62%; animation: drift 34s ease-in-out infinite alternate-reverse; opacity: .8; }
@keyframes drift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
@media (prefers-reduced-motion: reduce) { .fog { animation: none; } html { scroll-behavior: auto; } }

.hero-logo {
  position: relative; z-index: 1;
  width: 84px; height: 84px; margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.hero-name {
  position: relative; z-index: 1;
  margin: 0;
  font: 650 34px/1.05 var(--serif);
  letter-spacing: -.01em;
}
.hero-tag {
  position: relative; z-index: 1;
  margin: 8px 0 0;
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  opacity: .85;
}
.notice {
  position: relative; z-index: 1;
  max-width: 420px;
  margin: 18px auto 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(244,239,228,.14);
  border: 1px solid rgba(244,239,228,.25);
  font-size: 14px;
}

/* ---------- Kategori çubuğu ---------- */
.cats {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,242,234,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.cats.stuck { border-color: var(--line); box-shadow: 0 6px 18px -14px rgba(31,43,38,.5); }
.cats-track {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.cats-track::-webkit-scrollbar { display: none; }
/* Geniş ekranda ortala, dar ekranda kaydır */
.cats-track::before, .cats-track::after { content: ""; margin: auto; }
.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:not(:has(img)) { padding-left: 14px; }
.chip img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; background: var(--mist);
}
.chip.active { background: var(--green); border-color: var(--green); color: #f4efe4; }

/* ---------- Menü ---------- */
.menu { max-width: 640px; margin: 0 auto; padding: 4px 16px 24px; }
.cat { scroll-margin-top: 64px; padding-top: 18px; }
.cat-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px;
  font: 600 24px/1.2 var(--serif);
  color: var(--green);
}
.cat-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.item {
  width: 100%;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.item:active { transform: scale(.985); }
@media (hover: hover) { .item:hover { box-shadow: 0 8px 22px -16px rgba(31,43,38,.55); } }
.item:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }

.thumb {
  width: 88px; height: 88px;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, #fff 0, transparent 60%),
    var(--mist);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.desc {
  color: var(--muted); font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price {
  font-weight: 700; font-size: 16px;
  color: var(--copper);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.badge {
  align-self: flex-start;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe3d6; color: #8a4b1c;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.item.is-out .thumb img { filter: grayscale(1) opacity(.6); }
.item.is-out .name, .item.is-out .price { opacity: .55; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Alt bilgi ---------- */
.foot {
  text-align: center;
  padding: 20px 20px calc(36px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13.5px;
}
.foot p { margin: 0 0 8px; }
.afiyet { font: 500 italic 20px/1.2 var(--serif); color: var(--green-2); margin-top: 14px !important; }

/* ---------- Ürün detayı (alt sayfa) ---------- */
.sheet {
  width: 100%; max-width: 560px;
  max-height: 92vh; max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--card);
  color: var(--ink);
  overflow: auto;
}
@media (min-width: 600px) { .sheet { margin: auto; border-radius: 24px; } }
.sheet::backdrop { background: rgba(20,32,27,.55); backdrop-filter: blur(3px); }
.sheet[open] { animation: up .28s cubic-bezier(.2,.8,.2,1); }
.sheet[open]::backdrop { animation: fade .28s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(255,253,248,.92);
  color: var(--ink);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.sheet-img { aspect-ratio: 4 / 3; background: var(--mist); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-img.no-img { display: none; }
.sheet-body { padding: 18px 20px calc(26px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet-head h3 { margin: 0; font: 600 24px/1.2 var(--serif); color: var(--green); }
.sheet-head .price { font-size: 20px; }
#sheet-desc { margin: 10px 0 0; color: #43514a; font-size: 15px; white-space: pre-line; }
#sheet-desc:empty { display: none; }
#sheet-out { display: inline-block; margin-top: 12px; }
#sheet-out[hidden] { display: none; }
body.sheet-open { overflow: hidden; }
