/* Müşteri menüsü (telefon öncelikli).
   Renk değişkenleri menu.js tarafından seçilen paletten hesaplanıp :root'a yazılır (themes.js > menuScheme).
   Tema (skin) değişkenleri menu-themes.css içinde [data-skin="…"] ile değişir. */
:root {
  /* Renkler (JS gelmeden önceki varsayılan: Domates paleti) */
  --b: #e2401c;
  --b-ink: #fff;
  --bt: #c9350f;
  --b2: #f2b02a;
  --b2-ink: #16120f;
  --b2t: #8a5d00;
  --bg: #f7f1e6;
  --paper: #f7f1e6;
  --paper-2: #e7e0d5;
  --surface: #ede6db;
  --text: #1d1612;
  --muted: #84776e;
  --ink-soft: #4a3f37;
  --line: #e3dbd0;
  --desk: #e5ddd1;
  --dk: #1d1612;
  --lt: #f7f1e6;
  --tile: #f6dccd;
  --hole: rgba(29, 22, 18, .26);
  --margin-line: rgba(226, 64, 28, .32);
  --shadow: 0 10px 40px rgba(0, 0, 0, .12);

  /* Tema değişkenleri (varsayılan: Spiralli Defter) */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --h-size: 27px;
  --h-weight: 700;
  --h-style: normal;
  --h-case: none;
  --h-track: -0.01em;
  --name-font: var(--font);
  --name-size: 15.5px;
  --name-weight: 700;
  --name-case: none;
  --name-track: 0;
  --price-font: var(--font);
  --price-weight: 800;
  --desc-style: normal;
  --leader: dotted;
  --leader-w: 2px;
  --page-radius: 4px 14px 14px 4px;
  --pad-l: 50px;
  --tex: radial-gradient(rgba(120, 90, 60, .05) 1px, transparent 1.2px) 0 0 / 4px 4px;
  --rule-bg: radial-gradient(circle, var(--b) 0 2.5px, transparent 3px) center / 10px 10px no-repeat,
    linear-gradient(var(--line), var(--line)) left center / 56px 1.5px no-repeat,
    linear-gradient(var(--line), var(--line)) right center / 56px 1.5px no-repeat;
  --rule-lines: linear-gradient(var(--line), var(--line)) left center / 46px 1.5px no-repeat,
    linear-gradient(var(--line), var(--line)) right center / 46px 1.5px no-repeat;
  --deco:
    radial-gradient(circle at 14px 15px, var(--hole) 0 3.6px, transparent 4.2px) 0 0 / 28px 30px repeat-y,
    linear-gradient(to right, transparent 36px, var(--margin-line) 36px, var(--margin-line) 37.5px, transparent 37.5px) 0 0 / 100% 100% no-repeat,
    var(--tex);
  color-scheme: light;
}
[data-theme="dark"] { --shadow: 0 10px 40px rgba(0, 0, 0, .55); }
.theme-anim, .theme-anim * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.locked { overflow: hidden; }
body { margin: 0; font-family: var(--font); background-color: var(--bg); background-image: var(--tex); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { touch-action: manipulation; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; background-color: var(--bg); background-image: var(--tex); position: relative; }
@media (min-width: 641px) {
  html, body { background: var(--surface); }
  #app { box-shadow: 0 0 60px rgba(0, 0, 0, .08); }
}

.loading { min-height: 100vh; display: grid; place-items: center; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--bt); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mesaj ekranı (bulunamadı / yayında değil) */
.message { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 24px; }
.message .m-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; background: var(--tile); display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.message .m-icon img { width: 100%; height: 100%; object-fit: cover; }
.message .m-icon span { width: 100%; height: 100%; display: grid; place-items: center; background: var(--b); color: var(--b-ink); font-weight: 800; }
.message h1 { font-size: 22px; margin: 0 0 8px; }
.message p { color: var(--muted); margin: 0 0 20px; }
.message button { border: 0; background: var(--b); color: var(--b-ink); padding: 12px 22px; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* Üst kısım */
.hero { position: relative; }
.cover { height: 172px; background: var(--b) center / cover no-repeat; position: relative; }
.cover.plain { background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25), transparent 45%), radial-gradient(circle at 85% 70%, rgba(0, 0, 0, .18), transparent 50%); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .12), rgba(0, 0, 0, .22)); }
.hero-btns { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: 14px; display: flex; gap: 8px; }
.round-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 19px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.round-btn:active { transform: scale(.94); }
.brand { position: relative; padding: 0 18px; margin-top: -42px; z-index: 1; }
.logo { width: 84px; height: 84px; border-radius: 24px; background: var(--bg); border: 4px solid var(--bg); box-shadow: 0 6px 20px rgba(0, 0, 0, .14); overflow: hidden; display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo span { width: 100%; height: 100%; display: grid; place-items: center; background: var(--b); color: var(--b-ink); font-weight: 800; font-size: 34px; }
.brand h1 { margin: 12px 0 2px; font-family: var(--serif); font-size: 27px; font-weight: var(--h-weight); font-style: var(--h-style); letter-spacing: -0.01em; line-height: 1.2; }
.brand .tagline { color: var(--muted); font-size: 14.5px; margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 18px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip.table { background: var(--b); color: var(--b-ink); border-color: transparent; }

/* Kategori sekmeleri (yapışkan) */
.bar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 14px; transition: box-shadow .2s; }
.bar.stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
[data-theme="dark"] .bar.stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.bar-inner { display: flex; align-items: center; gap: 6px; padding: 10px 0 10px 10px; }
.icon-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; flex: 1; padding-right: 10px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; padding: 9px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.tab.on { background: var(--b); color: var(--b-ink); }
.search { flex: 1; display: flex; gap: 8px; align-items: center; padding-right: 10px; }
.search input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px; outline: none; font-size: 16px; }
.search input:focus { border-color: var(--b); }
.search button { border: 0; background: none; font-weight: 700; color: var(--bt); cursor: pointer; padding: 8px 4px; }

/* Ürünler */
.sections { padding: 4px 0 24px; }
.section { padding: 20px 18px 6px; }
.section h2 { margin: 0; font-family: var(--serif); font-size: calc(var(--h-size) * .82); font-weight: var(--h-weight); font-style: var(--h-style); text-transform: var(--h-case); letter-spacing: var(--h-track); line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.section .cat-desc { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }
.items { margin-top: 10px; }
.item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 4px; }
.item:last-child { border-bottom: 0; }
.item:active { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item h3 { margin: 0; font-family: var(--name-font); font-size: calc(var(--name-size) + .5px); font-weight: var(--name-weight); text-transform: var(--name-case); letter-spacing: var(--name-track); line-height: 1.3; }
.item p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; font-style: var(--desc-style); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.price { font-family: var(--price-font); font-weight: var(--price-weight); font-size: 15.5px; white-space: nowrap; }
.price s { color: var(--muted); font-weight: 600; font-size: 13px; margin-right: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: var(--surface); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge.hot { background: var(--tile); color: var(--bt); }
.item-media { position: relative; flex: none; width: 104px; height: 104px; border-radius: 16px; overflow: hidden; background: var(--tile); display: grid; place-items: center; font-size: 40px; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.so { position: absolute; inset: auto 6px 6px 6px; text-align: center; padding: 3px 0; border-radius: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11.5px; font-weight: 800; }
.item.soldout h3, .item.soldout .price { color: var(--muted); }
.item.soldout .item-media img, .item.soldout .item-media .emo { filter: grayscale(1); opacity: .55; }

/* Kart düzeni */
.layout-kart .items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.layout-kart .item { flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 0 0 6px; border: 0; }
.layout-kart .item-media { width: 100%; height: auto; aspect-ratio: 4 / 3; font-size: 46px; }
.layout-kart .item h3 { font-size: 15px; }
.layout-kart .item-foot { padding-top: 6px; }
.layout-kart .item-foot .badge:nth-child(n+3) { display: none; }

.no-results { text-align: center; padding: 48px 24px; color: var(--muted); }
.no-results b { display: block; font-size: 34px; }

/* Alt bilgi */
.footer { padding: 26px 18px 128px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.footer .note { margin: 0 0 12px; }
.footer .addr { margin: 0 0 4px; }
.powered { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 99px; background: var(--surface); text-decoration: none; font-weight: 700; font-size: 12px; color: var(--muted); }
.powered b { color: #ff5a1f; }

/* Garson çağır butonu: aşağı kaydırırken küçülür, yukarı kaydırınca açılır */
.fab { position: fixed; z-index: 30; bottom: max(18px, env(safe-area-inset-bottom)); right: 18px; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 99px; background: var(--b); color: var(--b-ink); font-weight: 800; font-size: 15.5px; box-shadow: 0 10px 30px color-mix(in srgb, var(--b) 45%, transparent); cursor: pointer; white-space: nowrap; overflow: hidden; transition: padding .25s ease, gap .25s ease, background-color .2s; }
.fab-ic { font-size: 20px; line-height: 1; }
.fab-tx { max-width: 200px; transition: max-width .25s ease, opacity .2s; }
.fab.mini { padding: 0 17px; gap: 0; }
.fab.mini .fab-tx { max-width: 0; opacity: 0; }
.fab.waiting { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
@media (min-width: 641px) { .fab { right: calc(50% - 320px + 18px); } }

/* Alt sayfa (sheet) */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 50; animation: fadeIn .22s ease; touch-action: none; }
.overlay.closing { animation: fadeOut .22s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: var(--shadow); animation: sheetUp .32s cubic-bezier(.2, .9, .3, 1); transition: transform .22s ease; will-change: transform; }
.sheet.closing { transform: translateY(100%) !important; transition: transform .22s ease-in; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-grab { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 26px; display: flex; justify-content: center; padding-top: 8px; touch-action: none; }
.sheet-grab span { width: 40px; height: 5px; border-radius: 99px; background: rgba(140, 130, 122, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.sheet-close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.sheet-content { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.sheet-media { width: 100%; aspect-ratio: 16 / 11; background: var(--tile); display: grid; place-items: center; font-size: 84px; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 20px 20px 30px; }
.sheet-body.top { padding-top: 34px; }
.sheet-body.top h2 { padding-right: 44px; }
.sheet-body h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: var(--h-weight); font-style: var(--h-style); letter-spacing: -0.01em; line-height: 1.2; }
.sheet-body .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sheet-body .desc { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.big-price { font-size: 24px; font-weight: 800; margin-top: 16px; }
.big-price s { font-size: 16px; color: var(--muted); font-weight: 600; margin-right: 6px; }
.variants { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.variant-row { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.variant-row:last-child { border-bottom: 0; }
.variant-row b { font-weight: 800; }
.sheet-body h4 { margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.allergens { display: flex; flex-wrap: wrap; gap: 6px; }
.allergens span { padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 600; }
.meta-line { margin-top: 14px; color: var(--muted); font-size: 14px; }
.soldout-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-weight: 700; text-align: center; }

.info-list { display: grid; gap: 10px; margin-top: 18px; }
.info-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); text-decoration: none; }
.info-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 19px; flex: none; }
.info-row small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.info-row b { font-weight: 700; word-break: break-word; }
.info-row .act { margin-left: auto; border: 0; background: var(--b); color: var(--b-ink); padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; flex: none; }

.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 6px; }
.text-input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 16px; font-size: 16px; outline: none; }
.text-input:focus { border-color: var(--b); }
.text-input[readonly] { font-weight: 800; }
.call-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.call-btn { height: 92px; border: 0; border-radius: 18px; background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.call-btn span { font-size: 28px; }
.call-btn.primary { background: var(--b); color: var(--b-ink); }
.call-btn:disabled { opacity: .5; }
.call-status { text-align: center; padding: 10px 0 6px; }
.call-status .st-icon { width: 84px; height: 84px; margin: 6px auto 16px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; font-size: 40px; }
.call-status.done .st-icon { background: #12a066; color: #fff; }
.call-status h2 { padding-right: 0 !important; }
.call-status p { color: var(--muted); margin: 8px 0 0; }
.call-status .waiting-dots::after { content: "…"; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1em; text-align: left; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
.ghost-btn { margin-top: 20px; width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: none; font-weight: 700; cursor: pointer; }
.err { color: #e5484d; font-size: 14px; font-weight: 600; margin-top: 10px; }

/* ---------- Defter görünümü ---------- */
html.book-mode, html.book-mode body { height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--desk); }
html.book-mode body { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--b) 9%, var(--desk)), var(--desk) 70%); }
.book-mode #app { max-width: none; min-height: 0; background: transparent; box-shadow: none; }
.book-app { position: fixed; inset: 0; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

.book-top { flex: none; display: flex; align-items: center; gap: 2px; padding: max(8px, env(safe-area-inset-top)) 8px 4px 12px; }
.bt-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px; text-align: left; cursor: pointer; }
.bt-logo { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.bt-logo img { width: 100%; height: 100%; object-fit: contain; }
.bt-logo span { width: 100%; height: 100%; display: grid; place-items: center; background: var(--b); color: var(--b-ink); font-weight: 800; font-size: 16px; }
.bt-brand b { font-family: var(--serif); font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-btn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; display: grid; place-items: center; font-size: 18px; cursor: pointer; color: var(--text); }
.bt-btn:active { background: color-mix(in srgb, var(--text) 8%, transparent); }

.book { position: relative; flex: 1; min-height: 0; margin: 4px 16px 0 22px; }
.pages { position: absolute; inset: 0; }
.pages > .loading { position: absolute; inset: 0; min-height: 0; }
/* Sağ kenarda sayfa kalınlığı */
.pages::before, .pages::after { content: ""; position: absolute; z-index: 0; border-radius: var(--page-radius); }
.pages::before { inset: 7px -7px 5px 6px; background: var(--paper-2); box-shadow: 0 14px 34px rgba(0, 0, 0, .16); }
.pages::after { inset: 3px -3px 2px 3px; background: var(--paper); box-shadow: 1px 0 0 rgba(0, 0, 0, .07), 3px 0 0 var(--paper-2); }
.page { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; border-radius: var(--page-radius); background-color: var(--paper); color: var(--text); overflow: hidden; transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .07), inset 14px 0 18px -16px rgba(0, 0, 0, .3); }
.page.turning { will-change: transform; box-shadow: 0 0 40px rgba(0, 0, 0, .2), inset 14px 0 18px -16px rgba(0, 0, 0, .3); }
/* Kâğıt dokusu, defter kenar çizgisi ve spiral delikleri */
.page::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--deco); }
.page-body { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 22px 18px 6px var(--pad-l); }
.page-body::-webkit-scrollbar { display: none; }
.page-foot { position: relative; z-index: 1; flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 34px; padding: 0 26px 4px var(--pad-l); font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--muted); }
.page-foot span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-shade { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; }
/* Kıvrık sayfa köşesi: dokununca sonraki sayfa */
.corner { position: absolute; z-index: 6; right: 0; bottom: 0; width: 48px; height: 48px; border: 0; padding: 0; background: none; cursor: pointer; }
.corner::before { content: ""; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; background: linear-gradient(315deg, var(--desk) 50%, var(--paper-2) 50%); border-top-left-radius: 6px; box-shadow: -2px -2px 5px rgba(0, 0, 0, .1); transition: width .2s, height .2s; }
.corner:hover::before { width: 32px; height: 32px; }
.cover-page .corner::before { animation: cornerPeek 2.6s ease-in-out infinite; }
@keyframes cornerPeek { 0%, 70%, 100% { width: 24px; height: 24px; } 80% { width: 38px; height: 38px; } }

.spiral { position: absolute; z-index: 10; left: -10px; top: 0; bottom: 0; width: 30px; pointer-events: none; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .3));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fbfbfb'/%3E%3Cstop offset='.45' stop-color='%23b9bdc3'/%3E%3Cstop offset='1' stop-color='%2362686f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1' y='11.5' width='26' height='7' rx='3.5' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 30px 30px repeat-y; }

/* Kategori başlığı */
.ph { text-align: center; margin: 0 0 12px; }
.ph-ic { display: block; font-size: 30px; line-height: 1; margin-bottom: 6px; }
.ph h2 { margin: 0; font-family: var(--serif); font-size: var(--h-size); font-weight: var(--h-weight); font-style: var(--h-style); text-transform: var(--h-case); letter-spacing: var(--h-track); line-height: 1.15; }
.ph p { margin: 6px 0 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.4; }
/* Ayraç: varsayılan nokta + iki çizgi; temalar --orn ile süs karakteri ("❦") ve --rule-bg ile zemin verir */
.ph-rule { display: block; margin: 12px auto 0; width: 140px; height: 12px; font-style: normal; line-height: 12px; text-align: center; color: var(--bt); background: var(--rule-bg); }
.ph-rule::before { content: var(--orn, ""); position: relative; top: -1px; padding: 0 8px; font-size: 15px; }
.ph.cont { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 6px; }
.ph.cont h2 { font-size: 18px; }
.ph.cont span { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--muted); }

/* Menü satırı: ad ........ fiyat */
.row { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px 10px 6px; margin: 0 -8px 0 -6px; border-radius: 12px; cursor: pointer; }
.row:active { background: color-mix(in srgb, var(--b) 8%, transparent); }
.row.flash { animation: rowFlash 1.9s ease; }
@keyframes rowFlash { 0%, 45% { background: color-mix(in srgb, var(--b) 20%, transparent); } 100% { background: transparent; } }
.row-main { flex: 1; min-width: 0; }
.row-line { display: flex; align-items: baseline; gap: 6px; }
.row-name { font-family: var(--name-font); font-weight: var(--name-weight); font-size: var(--name-size); text-transform: var(--name-case); letter-spacing: var(--name-track); line-height: 1.3; }
.lead { flex: 1; min-width: 14px; border-bottom: var(--leader-w) var(--leader) color-mix(in srgb, var(--muted) 60%, transparent); transform: translateY(-4px); }
.row-price { font-family: var(--price-font); font-weight: var(--price-weight); font-size: var(--name-size); white-space: nowrap; }
.row-price s { font-weight: 400; font-size: .8em; color: var(--muted); margin-right: 4px; }
.row-out { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bt); white-space: nowrap; }
.row.soldout .row-name { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.row-desc { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; font-style: var(--desc-style); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-var { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; padding-left: 10px; font-size: 13.5px; color: var(--ink-soft); }
.row-var span:last-child { font-weight: 700; white-space: nowrap; }
.row-var .lead { border-bottom-width: 1.5px; }
.row-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.row-tags .badge { font-size: 10.5px; padding: 2px 7px; }
.row-thumb { width: 58px; height: 58px; flex: none; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
.row.soldout .row-thumb { filter: grayscale(1); opacity: .6; }

/* İçindekiler */
.toc-row { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 11px 6px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; font-size: 16px; }
.toc-row:active, .toc-row.on { background: color-mix(in srgb, var(--b) 9%, transparent); }
.toc-ic { flex: none; width: 26px; text-align: center; }
.toc-name { font-weight: 700; }
.toc-name small { margin-left: 4px; font-weight: 500; font-size: 12px; color: var(--muted); }
.toc-num { min-width: 18px; text-align: right; font-family: var(--serif); font-style: italic; font-weight: 700; }
.toc-list { margin-top: 12px; }
.picks { margin-top: 22px; padding: 14px 14px 8px; border-radius: 14px; background: color-mix(in srgb, var(--b) 7%, transparent); border: 1px dashed color-mix(in srgb, var(--b) 35%, transparent); }
.picks-title { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 16px; color: var(--bt); }
.pick { width: 100%; display: flex; align-items: baseline; gap: 6px; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 14.5px; }
.pick-name { font-weight: 700; }
.pick-price { font-weight: 800; white-space: nowrap; }
.pick-price s { display: none; }

/* Kapak */
.cover-page { background-color: var(--b); color: var(--b-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset 16px 0 22px -16px rgba(0, 0, 0, .5); }
.cover-page:has(.cover-bg[style]) { color: #fff; }
.cover-page::before { z-index: 2; background: radial-gradient(circle at 14px 15px, rgba(0, 0, 0, .45) 0 3.6px, transparent 4.2px) 0 0 / 28px 30px repeat-y; }
.cover-page .page-body { padding: 0; display: flex; overflow: hidden; }
.cover-bg { position: absolute; inset: 0; background-color: var(--b); background-image: radial-gradient(circle at 25% 12%, rgba(255, 255, 255, .24), transparent 45%), radial-gradient(circle at 85% 90%, rgba(0, 0, 0, .28), transparent 55%); background-size: cover; background-position: center; }
.cover-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.4px) 0 0 / 3px 3px; }
.cover-bg[style]::after { background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, .7)); }
.cover-inner { position: relative; z-index: 1; flex: 1; margin: 16px 16px 16px 36px; padding: 22px 16px; border: 1.5px solid color-mix(in srgb, currentColor 38%, transparent); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.cover-logo { width: 92px; height: 92px; margin-bottom: 16px; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: grid; place-items: center; flex: none; }
.cover-logo img { width: 100%; height: 100%; object-fit: contain; }
.cover-logo span { color: var(--b); font-weight: 800; font-size: 42px; }
.cover-kicker { margin: 0; padding-left: .5em; font-size: 12px; font-weight: 800; letter-spacing: .5em; text-transform: uppercase; opacity: .8; }
.cover-inner h1 { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(28px, 9vw, 40px); font-weight: 800; line-height: 1.1; }
.cover-tag { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 15px; opacity: .9; }
.cover-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.cover-chips .chip { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); color: inherit; }
.cover-chips .chip.table { background: #fff; color: #1d1612; }
.cover-open { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 99px; background: #fff; color: #1d1612; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.cover-open span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.swipe-hint { margin: 16px 0 0; font-size: 12.5px; opacity: .78; }
.swipe-hint span { display: inline-block; animation: swipe 2.2s ease-in-out infinite; }
@keyframes swipe { 0%, 100% { transform: translateX(6px); } 50% { transform: translateX(-6px); } }

.cover-page.compact .cover-inner { padding: 14px 12px; }
.cover-page.compact .cover-logo { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 10px; }
.cover-page.compact .cover-logo span { font-size: 28px; }
.cover-page.compact .cover-inner h1 { font-size: 26px; }
.cover-page.compact .cover-tag { font-size: 13.5px; }
.cover-page.compact .cover-chips { margin-top: 12px; }
.cover-page.compact .chip { padding: 6px 10px; font-size: 12.5px; }
.cover-page.compact .cover-open { margin-top: 14px; padding: 10px 18px; font-size: 14px; }
.cover-page.compact .swipe-hint { display: none; }
.cover-page.mini .cover-chips .chip:not(.table) { display: none; }
.cover-page.mini .cover-tag { display: none; }

/* Arka kapak */
.back-page .page-body { display: flex; }
.back-inner { margin: auto; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.back-title { margin: 0; font-family: var(--serif); font-style: italic; font-size: 38px; font-weight: 600; color: var(--bt); line-height: 1.1; }
.back-sub { margin: 6px 0 0; font-weight: 700; }
.back-note { margin: 14px 0 0; max-width: 300px; color: var(--muted); font-size: 13.5px; }
.bk-rows { margin-top: 18px; width: 100%; max-width: 320px; display: grid; gap: 6px; }
.bk-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); text-align: left; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.back-again { margin-top: 18px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 99px; background: none; font-weight: 700; cursor: pointer; }
.back-page .powered { margin-top: 14px; }

/* Alt çubuk */
.book-bottom { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
.bb-nav { flex: none; width: 46px; height: 46px; padding-bottom: 3px; border: 0; border-radius: 14px; background: var(--paper); color: var(--text); font-size: 28px; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.bb-nav:disabled { opacity: .35; cursor: default; }
.bb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 4px 6px; border: 0; background: none; text-align: left; cursor: pointer; }
.bb-info small { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bb-progress { flex: 1; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.bb-progress b { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--b); transition: width .35s ease; }
.bb-call { flex: none; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 14px; background: var(--b); color: var(--b-ink); font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--b) 40%, transparent); white-space: nowrap; }
.bb-call .fab-ic { font-size: 18px; }
.bb-call.waiting { background: var(--text); color: var(--bg); box-shadow: none; }

/* Arama ve içindekiler sayfaları */
.search-sheet { min-height: 58vh; }
.sr-list { margin-top: 14px; display: grid; gap: 2px; }
.sr-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 8px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.sr-row:active { background: var(--surface); }
.sr-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--tile); display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.sr-ic img { width: 100%; height: 100%; object-fit: cover; }
.sr-txt { flex: 1; min-width: 0; }
.sr-txt b { display: block; font-size: 15px; }
.sr-txt small { color: var(--muted); font-size: 12.5px; }
.sr-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.sr-price s { display: none; }
.sr-empty { margin: 0; padding: 26px 0; text-align: center; color: var(--muted); }

html.framed, html.framed body { scrollbar-width: none; }
html.framed::-webkit-scrollbar, html.framed body::-webkit-scrollbar { display: none; }
.framed .book-top { padding-top: 8px; }
.framed .hero-btns { top: 14px; }
.framed .book-bottom { padding-bottom: 14px; }

@media (max-width: 380px) {
  :root { --pad-l: 42px; }
  .bb-call .fab-tx { display: none; }
  .bb-call { padding: 0 13px; }
  .book { margin: 2px 12px 0 18px; }
  .page-body { padding: 18px 14px 6px var(--pad-l); }
  .page-foot { padding: 0 18px 4px var(--pad-l); }
  .ph h2 { font-size: calc(var(--h-size) * .84); overflow-wrap: break-word; }
  .row-thumb { width: 48px; height: 48px; }
}

.toasts { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; text-align: center; box-shadow: var(--shadow); animation: fadeIn .2s; }
.toast.out { opacity: 0; transition: opacity .25s; }

/* Türkiye Yasal Zorunluluk Alanları (Fiyat Etiketi Yönetmeliği & Gıda Kodeksi) */
.badge.unit-b { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); font-weight: 600; }
.badge.alg-mini { background: color-mix(in srgb, var(--b) 10%, transparent); letter-spacing: 1px; padding: 2px 7px; }
.legal-strip {
  width: calc(100% - 28px);
  margin: 10px 14px 0;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  cursor: pointer;
  text-align: center;
}
.legal-strip b { color: var(--text); font-weight: 800; }
.legal-strip i { opacity: .55; font-style: normal; }
.price-legal-note {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.legal-box {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  text-align: left;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.legal-head {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.legal-grid small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.legal-grid b {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}
.legal-line {
  margin: 6px 0;
  font-size: 11.5px;
}
.legal-fine {
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}
.back-page .legal-box {
  margin-top: 12px;
  padding: 10px 11px;
  font-size: 11px;
}
.back-page .legal-grid {
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 6px;
}
.back-page .legal-fine {
  font-size: 10px;
  line-height: 1.35;
}
@media (max-width: 440px) {
  .legal-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
