/* Mocha Lounge Coffee — QR menü (müşteri arayüzü). Renkler logodaki espresso / karamel / krem tonlarından. */

:root {
  --bg: #17110e;
  --bg-2: #1e1612;
  --surface: #261c17;
  --surface-2: #31251f;
  --line: rgba(244, 235, 224, 0.12);
  --text: #f4ebe0;
  --muted: #c7b6a4;
  --accent: #d6a06b;
  --accent-ink: #1b1310;
  --al-c-bg: rgba(214, 160, 107, 0.16);
  --al-c-line: rgba(214, 160, 107, 0.65);
  --al-c-text: #f6d3ad;
  --al-m-text: #dccbb9;
  --radius: 14px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ üst alan */

.hero {
  text-align: center;
  padding: 28px var(--gutter) 18px;
  background: radial-gradient(120% 90% at 50% 0%, #3a2a21 0%, var(--bg) 70%);
}
.hero__logo {
  width: 96px; height: 96px; margin: 0 auto 12px;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.hero__title { font-size: 1.6rem; line-height: 1.2; letter-spacing: 0.01em; }
.hero__sub { color: var(--muted); margin-top: 4px; }

.legal {
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.92rem;
}
.legal__date { display: flex; flex-direction: column; gap: 2px; }
.legal__date strong { color: var(--accent); font-size: 1rem; }
.legal__date span { color: var(--muted); }
.legal__notes { margin: 8px 0 0; padding: 0; list-style: none; color: var(--text); }
.legal__notes li { padding-left: 14px; position: relative; }
.legal__notes li::before { content: "•"; position: absolute; left: 0; color: var(--muted); }
@media (min-width: 760px) { .legal { border: 1px solid var(--line); border-radius: var(--radius); } }

.news { max-width: 760px; margin: 0 auto 14px; padding: 0 var(--gutter); display: grid; gap: 10px; }
.news__item { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 14px; }
.news__item h2 { font-size: 1.05rem; margin-bottom: 4px; }
.news__item p { color: var(--muted); }

/* ------------------------------------------------------------ kategori şeridi */

.cats { max-width: 980px; margin: 0 auto; }
.cats__list {
  list-style: none; margin: 0; padding: 4px var(--gutter) 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 138px; gap: 10px; scroll-padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
/* Kartlar şerit yüksekliğine uzar: adı tek satır olan kart, iki satırlık komşusundan kısa kalmaz. */
.cats__list > li { scroll-snap-align: start; display: flex; }
.cat-card {
  flex: 1; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--surface); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cat-card:hover, .cat-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.cat-card img { flex: none; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.cat-card .cat-card__logo { object-fit: contain; padding: 10px; }
.cat-card__name {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 8px 9px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.25; text-align: center; min-height: 2.9em;
}

/* ------------------------------------------------------------ yapışkan araç çubuğu */

.toolbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 17, 14, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.toolbar__row { max-width: 760px; margin: 0 auto; padding: 10px var(--gutter) 6px; display: flex; gap: 8px; }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit;
}
.search input::placeholder { color: #9d8c7b; }
.filter-btn {
  flex: none; height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.filter-btn[aria-expanded="true"] { border-color: var(--accent); }
.filter-panel { max-height: calc(100dvh - 150px); max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
.filter-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-btn__count[hidden] { display: none; }

.filter-panel { max-width: 760px; margin: 0 auto; padding: 4px var(--gutter) 12px; }
.filter-panel fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0; padding: 10px 12px 12px; background: var(--surface); }
.filter-panel legend { padding: 0 6px; font-weight: 700; }
.filter-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
@media (min-width: 560px) { .filter-panel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tick { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 0.92rem; cursor: pointer; }
.tick input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.tick--wide { margin-top: 6px; }
.filter-panel__note { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.filter-panel__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

.chips {
  max-width: 760px; margin: 0 auto;
  display: flex; gap: 6px; padding: 2px var(--gutter) 10px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  text-decoration: none; font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------ ürünler */

.menu { max-width: 760px; margin: 0 auto; padding: 4px var(--gutter) 24px; scroll-margin-top: var(--toolbar-h, 112px); }
.menu:focus { outline: none; }

.cat { padding-top: 18px; scroll-margin-top: calc(var(--toolbar-h, 112px) + 4px); }
.cat[hidden] { display: none; }
.cat__head { padding-bottom: 8px; border-bottom: 2px solid var(--accent); margin-bottom: 4px; }
.cat__head h2 { font-size: 1.25rem; letter-spacing: 0.02em; }
.cat__note { color: var(--al-c-text); font-size: 0.88rem; margin-top: 4px; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.item[hidden] { display: none; }
.item:last-child { border-bottom: 0; }
.item__body { flex: 1; min-width: 0; }
.item__head { display: flex; align-items: baseline; gap: 12px; }
.item__name { flex: 1; min-width: 0; font-size: 1rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.item__price {
  flex: none; font-weight: 800; color: var(--accent); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.item__price small { color: var(--muted); font-weight: 600; }
.item__desc, .item__ingr { color: var(--muted); font-size: 0.9rem; margin-top: 3px; }
.item__ingr span { color: var(--text); font-weight: 600; }
.item__ingr strong { color: var(--al-c-text); font-weight: 800; }
.item__warn { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.item__warn strong { background: #f6d3ad; color: #1b1310; padding: 0 8px; border-radius: 6px; font-size: 0.82rem; line-height: 1.7; }
.item__meta { color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.item__al { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin-top: 6px; font-size: 0.78rem; }
.item__al-label { color: var(--muted); margin-right: 2px; }
.item__img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface-2); }

.al { display: inline-block; padding: 1px 8px; border-radius: 999px; line-height: 1.6; font-weight: 600; }
.al--c { background: var(--al-c-bg); border: 1px solid var(--al-c-line); color: var(--al-c-text); }
.al--m { border: 1px dashed rgba(220, 203, 185, 0.55); color: var(--al-m-text); }
.al--pending { border: 1px solid rgba(199, 182, 164, 0.45); color: var(--muted); font-weight: 500; font-style: italic; }

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

/* ------------------------------------------------------------ alt bilgi */

.foot { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 40px; color: var(--muted); font-size: 0.88rem; }
.foot__block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; }
.foot__block h2 { color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.foot__block p + p { margin-top: 8px; }
.legend { margin: 10px 0 0; padding-left: 1.6em; display: grid; gap: 3px; }
.legend strong { color: var(--text); font-weight: 600; }
.foot__info strong { color: var(--text); }
.foot__biz { color: var(--text); }

.page { padding-top: 20px; }
.page__title { font-size: 1.5rem; margin: 6px 0 4px; }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 14px; margin: 8px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* ------------------------------------------------------------ yazdırma */

@media print {
  :root { --text: #000; --muted: #333; --accent: #000; --line: #bbb; --bg: #fff; --bg-2: #fff; --surface: #fff; --al-c-text: #000; --al-m-text: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .toolbar, .cats, .skip-link, .item__img, .hero__logo { display: none !important; }
  .hero { background: none; padding: 0 0 8px; }
  .item { break-inside: avoid; padding: 5px 0; }
  .al--c, .al--m { border-color: #555; color: #000; background: none; }
  .cat { break-inside: auto; padding-top: 10px; }
  .cat__head { break-after: avoid; }
}
