:root {
  --green: #17663f;
  --green-2: #0f4a2d;
  --olive: #8aa63a;
  --orange: #e57a2a;
  --cream: #f6f3ea;
  --paper: #fffefa;
  --gold: #e57a2a;
  --gold-soft: #e3ebcc;
  --ink: #2a2420;
  --muted: #7a6f63;
  --line: #e8dfcf;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; }

/* Hero */
.hero {
  position: relative;
  color: var(--cream);
  text-align: center;
  padding: 40px 20px 34px;
  background:
    linear-gradient(180deg, rgba(10, 45, 28, .72), rgba(10, 45, 28, .9)),
    url('/img/tarihi-cinaralti-firin-cafe-dukkan-960.webp') center / cover,
    var(--green-2);
  background-size: cover;
  background-position: center;
}
.hero__inner { position: relative; max-width: 640px; margin: 0 auto; }
.hero__logo-link { display: inline-block; }
.hero__logo { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 12px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 7vw, 38px); line-height: 1.1; }
.hero__title small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); }
.hero__slogan { margin: 8px 0 0; opacity: .85; font-size: 15px; }
.hero__slogan:empty { display: none; }

.announcement {
  background: var(--orange); color: #fff; text-align: center;
  padding: 10px 16px; font-weight: 600; font-size: 14px;
}

/* Toolbar */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 241, 230, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 0;
}
.search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px; padding: 0 14px; height: 44px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  max-width: 720px;
}
@media (min-width: 752px) { .search { margin: 0 auto; } }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); min-width: 0; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px;
  scrollbar-width: none; max-width: 752px; margin: 0 auto;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--cream); }

/* Menu */
.menu { max-width: 720px; margin: 0 auto; padding: 8px 16px 24px; }
.section { padding-top: 22px; }
.section__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.section__title { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0; color: var(--green); }
.section__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-soft), transparent); }
.section__desc { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.section__banner { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius); margin: 10px 0 6px; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed var(--line); cursor: pointer;
}
.item:last-child { border-bottom: 0; }
.item__thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--gold-soft); }
.item__body { flex: 1; min-width: 0; }
.item__name { font-weight: 700; font-size: 16px; margin: 0; font-family: var(--sans); }
.item__desc { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__price { font-weight: 700; color: var(--green); white-space: nowrap; font-size: 16px; font-variant-numeric: tabular-nums; }
.item.is-out { opacity: .55; }
.badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; vertical-align: 2px;
  background: #efe3e0; color: #9b3b2b;
}
.badge--star { background: #fdebd9; color: #a24d0c; }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.loading { display: flex; gap: 8px; justify-content: center; padding: 60px 0; }
.loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: b 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes b { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Footer */
.footer { background: var(--green); color: var(--cream); text-align: center; padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); margin-top: 24px; }
.footer__name { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.footer__list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: 14px; }
.footer__list a { color: var(--gold-soft); text-decoration: none; }
.footer__name { margin: 0; }
.footer__date { opacity: .7; font-size: 12px; }
.footer__note { margin: 0; font-size: 12px; opacity: .6; }

/* Bottom sheet */
.sheet {
  border: 0; padding: 0; width: 100%; max-width: 520px; max-height: 88vh;
  margin: auto auto 0; border-radius: 20px 20px 0 0; background: var(--paper); color: var(--ink);
}
@media (min-width: 560px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: rgba(20, 30, 25, .55); }
.sheet[open] { animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet__close-form { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.sheet__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.sheet__img { width: 100%; aspect-ratio: 4/5; max-height: 58vh; object-fit: cover; object-position: center 60%; background: var(--gold-soft); }
.sheet__content { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet__cat { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.sheet__name { font-family: var(--serif); font-size: 26px; margin: 0; padding-right: 36px; }
.sheet__desc { color: var(--muted); margin: 10px 0 0; white-space: pre-line; }
.sheet__price { margin-top: 16px; font-size: 22px; font-weight: 700; color: var(--green); }
