/* N'JOY QR Menü — stil
 * Zemin, vurgu rengi ve başlık yazı tipi henüz seçilmedi.
 * Seçenekler <html> etiketindeki data-ground / data-accent / data-font ile değişir.
 * Seçim kesinleşince yalnızca o kombinasyon bırakılıp diğerleri silinebilir.
 */

/* ---------- Zeminler (marka sistemi: beyaz / siyah, tasarım dokümanı: krem) ---------- */
:root, [data-ground="beyaz"] {
  --ground: #FFFFFF; --surface: #F5F5F3; --line: #E4E4E0;
  --ink: #0B0B0B; --muted: #5C5C5C;
  --allergen-bg: #FDE4EE; --allergen-text: #9B1048;
  --scrim: rgba(11, 11, 11, .45);
  --accent-text: var(--at-light);
}
[data-ground="krem"] {
  --ground: #F4EDE3; --surface: #FFFFFF; --line: #E3D8C8;
  --ink: #1A1512; --muted: #5A4F47;
  --allergen-bg: #FBE1E8; --allergen-text: #8E0F42;
  --scrim: rgba(26, 21, 18, .45);
  --accent-text: var(--at-light);
}
[data-ground="siyah"] {
  --ground: #0B0B0B; --surface: #171717; --line: #2A2A2A;
  --ink: #FFFFFF; --muted: #A6A6A6;
  --allergen-bg: #3A1426; --allergen-text: #FFB3CF;
  --scrim: rgba(0, 0, 0, .7);
  --accent-text: var(--at-dark);
}

/* ---------- Vurgu renkleri (aday) ---------- */
[data-accent="mono"]    { --accent: var(--ink); --accent-ink: var(--ground); --at-light: var(--ink); --at-dark: var(--ink); }
[data-accent="domates"] { --accent: #C2381F; --accent-ink: #FFFFFF; --at-light: #B0321B; --at-dark: #FF7A5E; }
[data-accent="limon"]   { --accent: #C6F432; --accent-ink: #0B0B0B; --at-light: #4A6500; --at-dark: #C6F432; }
[data-accent="karamel"] { --accent: #C27A2C; --accent-ink: #0B0B0B; --at-light: #8A4F12; --at-dark: #E9A55A; }

/* ---------- Yazı ---------- */
:root {
  --f-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Montserrat", "DM Sans", system-ui, sans-serif;
  --f-display: "Abril Fatface", "Playfair Display", Georgia, serif;
  --display-weight: 400;
  --r-sm: 8px; --r-md: 14px; --r-lg: 18px;
  --gutter: 20px;
  --stick-h: 0px;
}
[data-font="sans"] { --f-display: "DM Sans", system-ui, sans-serif; --display-weight: 700; }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 15px/22px var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html.lock, html.lock body { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
svg { display: block; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.wrap { padding: 0 var(--gutter); }

.on-dark { display: none; }
[data-ground="siyah"] .on-dark { display: block; }
[data-ground="siyah"] .on-light { display: none; }

.label {
  font: 600 12px/16px var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.display { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: 0; }

/* ---------- Açılış ---------- */
.home-head { padding: 28px var(--gutter) 0; }
.home-logo { width: min(230px, 64vw); margin: 0 auto !important; }
.home-logo img { width: 100%; height: auto; }

.search-trigger {
  margin: 22px 0 0; width: 100%; min-height: 48px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 15px; text-align: left;
}
.search-trigger svg { width: 20px; height: 20px; flex: none; }

.block { margin-top: 26px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 12px; }

/* Kampanya şeridi */
.strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.camp {
  flex: 0 0 auto; width: 158px; scroll-snap-align: start; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.camp .tile { height: 72px; border-radius: 0; }
.camp-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.camp-name { font-weight: 700; font-size: 14px; line-height: 19px; }
.camp-price { margin-top: auto; font-weight: 700; color: var(--accent-text); font-size: 15px; }

/* Kategori kartları */
.cats { padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 112px; padding: 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-align: left;
}
.cat-name { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 23px; line-height: 27px; position: relative; z-index: 1; }
.cat-icon { width: 30px; height: 30px; color: var(--ink); position: relative; z-index: 1; }
.cat-count { font-size: 13px; color: var(--muted); position: relative; z-index: 1; }

.cat.hero {
  grid-column: 1 / -1; min-height: 168px; padding: 18px;
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
.cat.hero .cat-icon, .cat.hero .cat-count { color: var(--accent-ink); }
.cat.hero .cat-count { opacity: .85; }
.cat.hero .cat-name { font-size: 40px; line-height: 44px; }
/* Logodaki "kesen bant": başlığı yatay bir şerit keser */
.cat.hero .cut {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 28px; background: var(--accent-ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
.cat.hero .hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat.hero .hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 46px; }

.info-card {
  margin: 12px var(--gutter) 0; padding: 14px 16px; min-height: 64px;
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.info-card .ic { width: 28px; height: 28px; flex: none; }
.info-card b { display: block; font-size: 15px; }
.info-card span { color: var(--muted); font-size: 14px; }
.info-card .price { margin-left: auto; font-weight: 700; color: var(--accent-text); white-space: nowrap; }

/* ---------- Alt bilgi ---------- */
.foot { padding: 28px var(--gutter) 96px; color: var(--muted); font-size: 12px; line-height: 18px; }
.foot p { margin: 0 0 4px; }
.foot .brand-cut { margin-bottom: 14px; }
.brand-cut {
  height: 1px; background: var(--line); position: relative;
}

/* ---------- Kategori sayfası ---------- */
.stick {
  position: sticky; top: 0; z-index: 20; background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.topbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px; }
.topbar .logo-sm { flex: 1; display: flex; justify-content: center; }
.topbar .logo-sm img { height: 36px; width: auto; }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 999px;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { background: var(--surface); }

.tabs { display: flex; gap: 4px; padding: 4px 12px 0; }
.tab {
  flex: 1; min-height: 44px; font-weight: 500; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid transparent; display: grid; place-items: center;
}
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; border-color: var(--accent); }
[data-accent="limon"]:not([data-ground="siyah"]) .tab[aria-current="page"] { border-color: var(--ink); }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 10px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap;
  display: grid; place-items: center; position: relative;
}
.chip::after { content: ""; position: absolute; inset: -4px 0; } /* 44px dokunma alanı */
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.cat-title { padding: 22px var(--gutter) 0; font-size: 34px; line-height: 38px; margin: 0; }

.section { padding: 0 var(--gutter); scroll-margin-top: calc(var(--stick-h) + 4px); }
.section-head { display: flex; align-items: center; gap: 12px; padding: 26px 0 12px; }
.section-head h2 { margin: 0; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
}
.card:active { transform: scale(.985); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-weight: 700; font-size: 15px; line-height: 20px; }
.card-meta { font-size: 13px; line-height: 18px; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 16px; color: var(--accent-text); }
.card.wide { grid-column: 1 / -1; flex-direction: row; }
.card.wide .tile { width: 42%; height: auto; min-height: 132px; }
.badge {
  align-self: flex-start; font: 600 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 8px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink);
}
.badge.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Görsel yerine ikonlu kart (fotoğraf gelene kadar) */
.tile {
  height: 92px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--ground); color: var(--ink); border-bottom: 1px solid var(--line);
}
[data-ground="krem"] .tile { background: #EFE6D9; }
.tile svg { width: 40px; height: 40px; position: relative; z-index: 1; }
.tile::before { /* kesen bant izi */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%);
  background: var(--line); opacity: .55;
}
.tile svg { background: inherit; }
.tile .ic-wrap { position: relative; z-index: 1; padding: 6px 10px; background: inherit; }
.tile.big { height: 160px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.tile.big svg { width: 64px; height: 64px; }
.tile.big::before { height: 12px; }

.shortcut {
  margin: 16px var(--gutter) 0; padding: 14px 16px; min-height: 56px; width: calc(100% - 2 * var(--gutter));
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.shortcut svg { width: 24px; height: 24px; flex: none; }
.shortcut .go { margin-left: auto; }
.shortcut b { display: block; }
.shortcut span { color: var(--muted); font-size: 13px; }

/* ---------- Arama ---------- */
.search-bar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; }
.search-input {
  flex: 1; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.search-input svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 400 16px/1 var(--f-sans);
}
.search-input input::placeholder { color: var(--muted); }
.results { padding: 0 var(--gutter) 8px; }
.res-group { margin-top: 18px; }
.res-group .label { margin-bottom: 6px; display: block; }
.res {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0;
  border-bottom: 1px solid var(--line); text-align: left;
}
.res .mini { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.res .mini svg { width: 24px; height: 24px; }
.res .t { flex: 1; min-width: 0; }
.res .t b { display: block; font-size: 15px; font-weight: 700; }
.res .t span { display: block; font-size: 13px; color: var(--muted); }
.res .t mark { background: none; color: var(--accent-text); font-weight: 700; }
.res .pr { font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.empty { padding: 28px 0 0; color: var(--muted); }
.empty p { margin: 0 0 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick a { min-height: 44px; padding: 0 16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 500; }

/* ---------- Alttan açılan panel ---------- */
#sheet-root { position: fixed; inset: 0; z-index: 50; }
#sheet-root[hidden] { display: none; }
.backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .22s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 480px;
  max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink); border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
}
[data-ground="siyah"] .sheet { border-top: 1px solid var(--line); }
#sheet-root.open .backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: translateY(0); }
.sheet-grip { height: 60px; align-items: start; padding-top: 10px; display: grid; place-items: center; flex: none; touch-action: none; }
.sheet-grip span { width: 40px; height: 4px; border-radius: 4px; background: var(--line); }
.sheet-close { position: absolute; top: 10px; right: 12px; z-index: 2; background: var(--surface); border: 1px solid var(--line); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }

.d-title { margin: 18px 0 2px; font-size: 30px; line-height: 34px; padding-right: 8px; }
.d-price { font-weight: 700; font-size: 18px; color: var(--accent-text); }
.d-desc { margin: 10px 0 0; color: var(--ink); }
.d-sec { margin-top: 22px; }
.d-sec > .label { display: block; margin-bottom: 8px; }
.rows { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; border-bottom: 1px solid var(--line); }
.row .pr { font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.row .pr.plus::before { content: "+"; }
.reg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.reg div { padding: 12px 10px; border-left: 1px solid var(--line); }
.reg div:first-child { border-left: 0; }
.reg small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.reg b { display: block; margin-top: 4px; font-size: 15px; }
.tbc { color: var(--muted); font-weight: 500; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); background: var(--allergen-bg); color: var(--allergen-text); }
.pairs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.pairs::-webkit-scrollbar { display: none; }
.pair { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.pair .mini { width: 40px; height: 40px; border-radius: 10px; background: var(--ground); display: grid; place-items: center; }
.pair .mini svg { width: 22px; height: 22px; }
.pair b { font-size: 14px; }
.camp-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); width: 100%; text-align: left; margin-top: 8px; }
.camp-link .pr { margin-left: auto; font-weight: 700; color: var(--accent-text); }
.notes { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 18px; }
.notes p { margin: 0 0 4px; }
.callout { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.callout.out { border-style: dashed; }
.inc { border-top: 1px solid var(--line); }
.inc div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.inc small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- QR masa kartı ---------- */
.qr-page { padding: 16px var(--gutter) 40px; }
.qr-card {
  --band: var(--accent); --band-ink: var(--accent-ink);
  margin: 12px auto 0; width: 100%; max-width: 340px; aspect-ratio: 9 / 13;
  background: #0B0B0B; color: #FFFFFF; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; padding: 28px 24px 22px; text-align: center;
  border: 1px solid var(--line);
}
[data-accent="mono"] .qr-card { --band: #FFFFFF; --band-ink: #0B0B0B; }
.qr-card .qr-logo { width: 46%; height: auto; }
.qr-card .qr-band {
  width: calc(100% + 48px); margin: 18px -24px; height: 34px; flex: none;
  background: var(--band); display: grid; place-items: center;
}
.qr-card .qr-band span { font: 600 12px/1 var(--f-label); letter-spacing: .24em; color: var(--band-ink); }
.qr-card .qr-code { background: #FFFFFF; padding: 12px; border-radius: 12px; width: 52%; }
.qr-card .qr-code img { width: 100%; height: auto; }
.qr-card p { margin: 14px 0 0; font-size: 13px; line-height: 18px; color: #FFFFFF; }
.qr-card small { margin-top: auto; font-size: 11px; line-height: 15px; color: #BDBDBD; }
.qr-note { max-width: 340px; margin: 14px auto 0; color: var(--muted); font-size: 13px; }

/* ---------- Önizleme paneli (yalnızca sunum için, canlıda kaldırılır) ---------- */
.demo-fab {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  background: #0B0B0B; color: #FFFFFF; border: 1px solid #333; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.demo-fab svg { width: 18px; height: 18px; }
[data-ground="siyah"] .demo-fab { background: #FFFFFF; color: #0B0B0B; border-color: #FFFFFF; }
.demo h3 { margin: 18px 0 2px; font-size: 26px; line-height: 30px; }
.demo .hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.opt-group { margin-top: 20px; }
.opt-group .label { display: block; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
}
.opt[aria-pressed="true"] { border: 2px solid var(--ink); font-weight: 700; padding: 0 13px; }
.swatch { width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(128, 128, 128, .5); }
.demo-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-top: 20px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 600; }

@media (min-width: 481px) {
  body { background: var(--surface); }
  #app { background: var(--ground); box-shadow: 0 0 0 1px var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .backdrop { transition: none; }
}
@media print {
  .demo-fab, .topbar .icon-btn, .qr-note { display: none !important; }
  body, #app { background: #fff; box-shadow: none; }
}

/* ---------- Örnek fotoğraflar (js/fotolar.js) ----------
 * Fotoğrafsız menüye dönülürse bu blok zararsızdır, silinebilir. */
.tile.photo { display: block; height: auto; aspect-ratio: 1 / 1; background: var(--surface); border-bottom: 0; }
.tile.photo::before { display: none; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card.wide .tile.photo { aspect-ratio: auto; }
.camp .tile.photo { height: 132px; aspect-ratio: auto; }
.tile.big.photo { height: auto; aspect-ratio: 4 / 3; max-height: 340px; width: 100%; }

.sample {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  font: 500 12px/1 var(--f-sans); padding: 5px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, .62); color: #fff; pointer-events: none;
}

.mini.ph { overflow: hidden; padding: 0; }
.mini.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Kategori kartları: fotoğraflı */
.cat.has-photo { padding: 0; justify-content: flex-start; min-height: 0; }
.cat-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid var(--line); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-text { display: block; padding: 10px 14px 14px; }

.cat.hero.has-photo { background: #0B0B0B; color: #FFFFFF; min-height: 196px; padding: 18px; justify-content: space-between; }
.cat.hero.has-photo .cat-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat.hero.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.65) 100%);
}
.cat.hero.has-photo .hero-top, .cat.hero.has-photo .hero-bottom { position: relative; z-index: 2; }
.cat.hero.has-photo .cut { z-index: 2; }
.cat.hero.has-photo .cat-name, .cat.hero.has-photo .cat-icon, .cat.hero.has-photo .cat-count { color: #FFFFFF; opacity: 1; }
.cat.hero.has-photo .sample { position: relative; left: auto; bottom: auto; }

/* Fotoğraflı kartta yazı alanı sıkı: fotoğraf öne çıksın */
.card:has(.tile.photo) .card-body { padding: 8px 12px 10px; gap: 2px; }
.card:has(.tile.photo) .card-price { padding-top: 2px; }
.camp:has(.tile.photo) .camp-body { padding: 8px 12px 10px; gap: 4px; }
.cat.has-photo .cat-text { padding: 8px 14px 12px; }

/* ---------- Canlı menü: tükendi, indirim, beyan, bağlantı notu (şartname §5) ---------- */
.card.soldout { opacity: .55; }
.sold { color: var(--muted); font-weight: 600; }
.was { color: var(--muted); font-weight: 500; text-decoration: line-through; margin-right: 2px; }
.d-window { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 18px; }
.camp-until { color: var(--muted); font-size: 12px; line-height: 16px; }
.ask { color: var(--muted); font-weight: 500; font-size: 14px; line-height: 19px; }
.reg .ask { font-size: 13px; line-height: 17px; }
/* Kaydırma yerini uygulama kendisi yönetir (scrollMem). Tarayıcının kaydırma sabitlemesi açıkken
   "Menü güncellenemedi" notu eklenince sayfa notun boyu kadar kayıyor ve not ekranın üstünde kalıyordu. */
html, body { overflow-anchor: none; }
.stale {
  padding: 8px var(--gutter); text-align: center; font-size: 13px; line-height: 18px;
  background: var(--surface); color: var(--muted); border-bottom: 1px solid var(--line);
}

/* ---------- Duyuru şeridi ve Wi-Fi (şartname §5.4) ---------- */
.notice {
  margin: 14px var(--gutter) 0; padding: 10px 14px; display: flex; gap: 10px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md);
  font-size: 15px; line-height: 21px; color: var(--ink);
}
.notice .label { flex: none; color: var(--accent-text); letter-spacing: .14em; font-size: 11px; }
.wifi-card { border-style: solid; flex-wrap: wrap; }
.wifi-pass { font-weight: 700; color: var(--ink); letter-spacing: .02em; user-select: all; }
.copy-btn {
  margin-left: auto; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ground); color: var(--ink); font: 600 14px var(--f-sans); cursor: pointer;
}
.stale.preview { background: var(--accent); color: var(--accent-ink); }
