/* =========================================================
   coff'mi — QR Menü
   Marka: mocha #7F5E51 (logo) · espresso #5B3F32 (garden) · krem
   Font: Montserrat (menü gövdesi, PDF ile aynı) · Cormorant (ürün başlıkları) · La Belle Aurore (el yazısı)
   ========================================================= */
:root {
  --bg: #F4ECE1;
  --bg-2: #EADFD0;
  --surface: #FFFAF3;
  --surface-2: #F8F1E7;
  --ink: #2A1C15;
  --ink-2: #4E3B31;
  --muted: #6B574C;
  --brand: #7F5E51;
  --brand-deep: #5B3F32;
  --accent: #A8703F;
  --on-brand: #FFF8EF;
  --line: rgba(60, 36, 24, .12);
  --line-2: rgba(60, 36, 24, .2);
  --glass: rgba(250, 244, 236, .78);
  --scrim: rgba(28, 18, 13, .52);
  --success: #3F7A4C;
  --danger: #B33A2E;
  --shadow-1: 0 1px 2px rgba(60, 36, 24, .06), 0 2px 8px rgba(60, 36, 24, .05);
  --shadow-2: 0 10px 30px -12px rgba(60, 36, 24, .35), 0 2px 6px rgba(60, 36, 24, .06);
  --shadow-3: 0 30px 60px -20px rgba(42, 28, 21, .5);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --f-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --f-script: 'La Belle Aurore', 'Segoe Script', cursive;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 160ms; --t-med: 320ms; --t-slow: 560ms;
  --gutter: 20px;
  --maxw: 720px;
  --topbar-h: 60px;
  --catnav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16100D;
  --bg-2: #1E1612;
  --surface: #221915;
  --surface-2: #2A201B;
  --ink: #F4EADF;
  --ink-2: #DCCBBB;
  --muted: #B3A091;
  --brand: #D9BBA6;
  --brand-deep: #E8CDB8;
  --accent: #E0A877;
  --on-brand: #1A120E;
  --line: rgba(244, 234, 223, .1);
  --line-2: rgba(244, 234, 223, .18);
  --glass: rgba(22, 16, 13, .76);
  --scrim: rgba(0, 0, 0, .62);
  --success: #7DC08B;
  --danger: #F08A7E;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 12px 30px -12px rgba(0, 0, 0, .7);
  --shadow-3: 0 30px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--catnav-h) + 8px); }
body {
  margin: 0; min-height: 100dvh;
  font: 400 16px/1.55 var(--f-body);
  color: var(--ink); background: var(--bg);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: top var(--t-fast); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ic { width: 22px; height: 22px; flex: none; }
[data-brand] svg { display: block; width: 100%; height: auto; }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }
.eyebrow { font: 600 11px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: var(--bg); background-image: var(--grain);
  transition: opacity 500ms var(--ease-out), visibility 0s 500ms;
}
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__inner { width: min(62vw, 300px); color: var(--brand); position: relative; }
.splash__logo { clip-path: inset(0 100% 0 0); animation: wipe 1100ms var(--ease-out) 150ms forwards; }
.splash__steam { position: absolute; left: 50%; bottom: 100%; display: flex; gap: 10px; transform: translateX(-50%); margin-bottom: 10px; }
.splash__steam span { width: 3px; height: 34px; border-radius: 3px; background: linear-gradient(to top, transparent, var(--brand)); opacity: 0; animation: steam 1600ms ease-in-out infinite; }
.splash__steam span:nth-child(2) { animation-delay: .25s; height: 44px; }
.splash__steam span:nth-child(3) { animation-delay: .5s; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleY(.6); } 40% { opacity: .55; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1); } }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
}
.topbar.is-solid { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.topbar__logo { width: 92px; color: var(--brand); opacity: 0; transform: translateY(-6px); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out); }
.topbar.is-solid .topbar__logo { opacity: 1; transform: none; }
.topbar__actions { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn--sm { width: 40px; height: 40px; }
.lang-label { font: 700 12px/1 var(--f-body); letter-spacing: .08em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 18px) var(--gutter) 28px; }
.hero__art { position: absolute; width: 150%; max-width: 980px; right: -38%; top: 6%; color: var(--brand-deep); opacity: .06; transform: rotate(-8deg); pointer-events: none; }
.hero__glow { position: absolute; inset: -20% -30% auto auto; width: 120vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.hero__content { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font: 600 12px/1 var(--f-body); letter-spacing: .02em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.pill.is-closed .dot { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent); animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); } }
.hero__greet { font: 400 30px/1 var(--f-script); color: var(--accent); margin-bottom: 6px; min-height: 30px; }
.hero__title { color: var(--brand); width: min(78vw, 400px); }
.hero__happy { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; color: var(--brand-deep); }
.hero__happy > span:first-child { width: 58px; }
.hero__garden { width: 120px; }
.hero__lead { max-width: 34ch; color: var(--muted); font-size: 15px; }
.hero__cards { display: grid; gap: 10px; margin-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hero__cards { grid-template-columns: 1fr 1fr; } }
.info-card {
  display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none;
  padding: 14px 16px; min-height: 64px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.info-card:active { transform: scale(.98); }
.info-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--brand-deep); flex: none; }
.info-card__body { display: grid; min-width: 0; flex: 1; }
.info-card__label { font: 600 11px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info-card__value { font-weight: 600; overflow-wrap: anywhere; }
.info-card__action { color: var(--muted); }
.info-card__action .ic { width: 18px; height: 18px; }
.announce {
  position: relative; max-width: var(--maxw); margin: 18px auto 0; display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-deep); color: var(--on-brand);
  font-size: 14px; font-weight: 500;
}
.announce .ic { width: 20px; height: 20px; }

/* ---------- Featured ---------- */
.featured { padding: 18px 0 8px; }
.featured__head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: end; justify-content: space-between; }
.featured__head h2 { display: grid; gap: 2px; }
.featured__head .script { font-size: 38px; line-height: 1.1; color: var(--brand-deep); }
.featured__nav { display: none; gap: 8px; }
@media (hover: hover) and (min-width: 720px) { .featured__nav { display: flex; } }
.featured__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 16px var(--gutter) 20px; scrollbar-width: none; overscroll-behavior-x: contain;
}
@media (min-width: 760px) { .featured__track { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); } }
.featured__track::-webkit-scrollbar { display: none; }
.feat {
  --tone: #8a5a3c;
  position: relative; scroll-snap-align: start; text-align: left; overflow: hidden;
  border-radius: var(--r-lg); min-height: 210px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #FFF7EE; isolation: isolate;
  background:
    radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--tone) 60%, #fff 0%) 0%, transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--tone) 85%, #2a1c15) 0%, color-mix(in srgb, var(--tone) 40%, #1a110c) 100%);
  box-shadow: var(--shadow-2);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.feat:active { transform: scale(.98); }
.feat__num { position: absolute; top: 18px; left: 20px; font: 400 44px/1 var(--f-script); color: rgba(255, 247, 238, .5); }
.feat__tag { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font: 600 10.5px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(255, 247, 238, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-bottom: 12px; }
.feat__name { font: 600 32px/1.02 var(--f-display); letter-spacing: -.01em; }
.feat__desc { font-size: 13px; opacity: .8; margin-top: 6px; }
.feat__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.feat__price { font: 700 16px/1 var(--f-body); font-variant-numeric: tabular-nums; }

/* ---------- Kategori nav ---------- */
.catnav {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.catnav__track {
  position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
}
.catnav__track::-webkit-scrollbar { display: none; }
.chip {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  font: 600 13.5px/1 var(--f-body); color: var(--ink-2);
  transition: color var(--t-med) var(--ease-out);
}
.chip[aria-current="true"] { color: var(--on-brand); }
.catnav__pill { position: absolute; z-index: 0; top: 10px; left: 0; height: 44px; border-radius: 999px; background: var(--brand-deep); transition: transform 420ms var(--ease-out), width 420ms var(--ease-out); box-shadow: var(--shadow-1); }

/* ---------- Menü ---------- */
.menu { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter) 40px; outline: none; }
.cat { padding-top: 34px; }
.cat__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cat__title { display: grid; gap: 4px; }
.cat__title .script { font-size: clamp(40px, 11vw, 54px); line-height: 1.05; color: var(--brand-deep); }
.cat__count { font: 600 11px/1 var(--f-body); letter-spacing: .16em; color: var(--muted); padding-bottom: 12px; white-space: nowrap; }
.cat__note { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.cat__opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.opt-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.opt-tag b { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.items {
  display: grid; overflow: hidden; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.item {
  position: relative; width: 100%; text-align: left; display: grid; gap: 5px; align-content: center;
  padding: 16px 20px; min-height: 64px; border-top: 1px solid var(--line);
}
.items > .item:first-child { border-top: 0; }
@media (min-width: 760px) {
  .items { grid-template-columns: 1fr 1fr; }
  .items > .item:nth-child(2) { border-top: 0; }
  .items > .item:nth-child(odd) { border-right: 1px solid var(--line); }
}
.item__line { display: flex; align-items: baseline; gap: 10px; }
.item__name { flex: 0 1 auto; min-width: 0; font: 600 21px/1.2 var(--f-display); letter-spacing: -.005em; color: var(--ink); }
.item__leader { flex: 1 1 16px; min-width: 16px; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-5px); }
.item__desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.item__choices { font-size: 12.5px; line-height: 1.5; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.item__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 10.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.badge--soldout { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.badge--plain { color: var(--muted); background: var(--surface-2); text-transform: none; letter-spacing: .02em; }
.price { font: 700 15px/1 var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.item.is-soldout .item__name { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.item.is-soldout .price { color: var(--muted); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .script { display: block; font-size: 40px; color: var(--brand); margin-bottom: 8px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; margin-top: 30px; padding: 56px var(--gutter) calc(48px + var(--safe-b)); background: var(--brand-deep); color: var(--on-brand); text-align: center; }
:root[data-theme="dark"] .footer { background: #0F0B09; color: var(--ink); }
.footer__art { position: absolute; width: 140%; left: -20%; bottom: -10%; opacity: .07; pointer-events: none; }
.footer__logo { width: 200px; margin: 0 auto 26px; }
.footer__grid { max-width: 520px; margin: 0 auto; display: grid; gap: 10px; }
.footer__row { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; opacity: .9; text-decoration: none; min-height: 44px; }
.footer__row .ic { width: 18px; height: 18px; opacity: .8; }
.footer__fine { margin-top: 26px; font-size: 12px; opacity: .6; line-height: 1.7; }

/* ---------- Search ---------- */
@keyframes fade { from { opacity: 0; } }
.search { position: fixed; inset: 0; z-index: 300; background: var(--bg); background-image: var(--grain); display: flex; flex-direction: column; animation: fade var(--t-fast) var(--ease-out); }
.search[hidden] { display: none; }
.search__bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px; border-bottom: 1px solid var(--line); }
.search__bar > .ic { color: var(--muted); }
.search__bar input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 18px; font-weight: 500; outline: none; }
.search__bar input::placeholder { color: var(--muted); }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__cancel { height: 44px; padding: 0 6px; font-weight: 600; color: var(--accent); }
.search__hints { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px var(--gutter) 0; }
.search__hints button { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; }
.search__results { flex: 1; overflow: auto; padding: 14px var(--gutter) 40px; display: block; max-width: calc(var(--maxw) + 2 * var(--gutter)); width: 100%; margin: 0 auto; }
mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 500; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -150%); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3); transition: transform 380ms var(--ease-spring), visibility 0s 380ms; max-width: calc(100vw - 32px); visibility: hidden; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 380ms var(--ease-spring); }
.toast .ic { width: 18px; height: 18px; color: var(--accent); }

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .hero { padding-top: calc(var(--topbar-h) + 48px); padding-bottom: 48px; }
  .hero__art { right: -12%; width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .splash__logo { clip-path: none; }
}
