/* =========================================================
   Dijital Menü - Herkese açık menü teması (mobil öncelikli)
   ========================================================= */
:root {
  --primary: #ff5a1f; --secondary: #111827; --button: #ff5a1f; --button-text: #fff; --primary-text: #fff;
}
body {
  --bg: #f5f6f8; --surface: #fff; --text: #111827; --muted: #6b7280; --line: rgba(17, 24, 39, .08);
  --radius: 18px; --radius-sm: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font); --head-weight: 800; --head-tracking: -.02em; --head-transform: none;
  --tint: color-mix(in srgb, var(--primary) 10%, var(--surface));
}
body.theme-dark {
  --bg: #0b0b0f; --surface: #17171e; --text: #f5f5f7; --muted: #9a9aa6; --line: rgba(255, 255, 255, .08);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .35);
  --tint: color-mix(in srgb, var(--primary) 14%, var(--surface));
}
body.theme-cafe {
  --bg: #f6efe6; --surface: #fffaf4; --text: #3b2a20; --muted: #8a7566; --line: rgba(59, 42, 32, .1);
  --font: "DM Sans", system-ui, sans-serif; --font-head: "Fraunces", Georgia, serif; --head-weight: 700; --head-tracking: -.01em;
  --radius: 22px; --shadow: 0 1px 2px rgba(59, 42, 32, .05), 0 10px 24px rgba(59, 42, 32, .08);
}
body.theme-restaurant {
  --bg: #faf8f5; --surface: #fff; --text: #1f1f1f; --muted: #6b6b6b; --line: rgba(0, 0, 0, .08);
  --font: "Inter", system-ui, sans-serif; --font-head: "Playfair Display", Georgia, serif; --head-weight: 700; --head-tracking: 0;
  --radius: 10px; --radius-sm: 8px;
}
body.theme-luxury {
  --bg: #0e0d0b; --surface: #18160f; --text: #f3ead7; --muted: #a89f8a; --line: rgba(201, 165, 92, .18);
  --font: "Montserrat", system-ui, sans-serif; --font-head: "Cormorant Garamond", Georgia, serif; --head-weight: 600; --head-tracking: .02em;
  --radius: 4px; --radius-sm: 2px; --shadow: 0 0 0 1px var(--line);
  --tint: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.ic { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

.m-app { max-width: 1080px; margin: 0 auto; min-height: 100vh; }
.m-preview-bar { position: sticky; top: 0; z-index: 50; background: #f59e0b; color: #111; text-align: center; font: 600 12px/1 system-ui; padding: 8px; }

/* ---------- Kapak & profil ---------- */
.m-cover { position: relative; height: 160px; overflow: hidden; background: var(--secondary); }
.m-cover img { width: 100%; height: 100%; object-fit: cover; }
.m-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .35)); }
.m-cover.is-empty {
  background:
    radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, color-mix(in srgb, var(--button) 55%, transparent), transparent 70%),
    var(--secondary);
}
.theme-dark .m-cover.is-empty, .theme-luxury .m-cover.is-empty {
  background:
    radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, color-mix(in srgb, var(--primary) 25%, transparent), transparent 70%), #000;
}
.m-profile { position: relative; padding: 0 20px 18px; text-align: center; }
.m-logo {
  width: 92px; height: 92px; margin: -46px auto 10px; position: relative; z-index: 2; border-radius: 50%; overflow: hidden;
  background: var(--surface); border: 4px solid var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  display: grid; place-items: center;
}
.theme-luxury .m-logo { border-color: var(--primary); }
.m-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-logo span { font: 800 38px/1 var(--font-head); color: var(--primary); }
.m-name {
  margin: 0; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 26px; line-height: 1.15;
  letter-spacing: var(--head-tracking); text-transform: var(--head-transform);
}
.theme-luxury .m-name { font-size: 32px; }
.m-desc { margin: 8px auto 0; max-width: 520px; color: var(--muted); font-size: 14px; }
.m-status { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface); box-shadow: var(--shadow); }
.m-status i { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.m-status.is-open i { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.m-status.is-closed i { background: #dc2626; }
.m-status span { color: var(--muted); font-weight: 500; }
.m-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.m-act {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 68px; padding: 10px 8px; text-decoration: none;
  font-size: 11.5px; font-weight: 600; color: var(--text); background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  transition: transform .15s;
}
.m-act .ic { width: 22px; height: 22px; color: var(--button); }
.m-act:active { transform: scale(.96); }

/* ---------- Kategori sekmeleri ---------- */
.m-tabs { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.m-tabs-row { display: flex; align-items: center; gap: 6px; padding: 10px 0 10px 12px; }
.m-search-btn, .m-search button { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; }
.m-tabs-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 12px 2px 2px; scroll-behavior: smooth; }
.m-tabs-scroll::-webkit-scrollbar { display: none; }
.m-tab {
  flex: none; padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--surface); color: var(--muted); box-shadow: var(--shadow); transition: background .2s, color .2s;
}
.m-tab.is-active { background: var(--button); color: var(--button-text); }
.theme-luxury .m-tab { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; box-shadow: none; border: 1px solid var(--line); background: transparent; }
.theme-luxury .m-tab.is-active { border-color: var(--primary); background: var(--primary); color: var(--primary-text); }
.m-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; }
.m-search > .ic { position: absolute; left: 26px; top: 12px; color: var(--muted); width: 18px; }
.m-search input {
  flex: 1; height: 42px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 0 16px 0 42px; font: inherit; outline: none;
}
.m-search input:focus { border-color: var(--button); }

/* ---------- Ürünler ---------- */
.m-main { padding: 8px 14px 24px; }
.m-section { padding-top: 18px; scroll-margin-top: 70px; }
.m-sec-title {
  margin: 0 2px 12px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 21px; letter-spacing: var(--head-tracking);
  display: flex; align-items: baseline; gap: 8px;
}
.m-sec-title small { font: 600 12px var(--font); color: var(--muted); }
.theme-luxury .m-sec-title { font-size: 26px; color: var(--primary); }
.theme-restaurant .m-sec-title { border-bottom: 2px solid var(--primary); padding-bottom: 6px; }
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; outline: none;
}
.m-card:active { transform: scale(.98); }
.m-card:focus-visible { box-shadow: 0 0 0 3px var(--button); }
.m-img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-ph { position: absolute; inset: 0; display: grid; place-items: center; font: 700 40px/1 var(--font-head); color: color-mix(in srgb, var(--primary) 70%, var(--text)); opacity: .55;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%); }
.m-sale { position: absolute; top: 8px; left: 8px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.m-body { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px 13px; flex: 1; }
.m-body h3 { margin: 0; font-size: 15px; line-height: 1.25; font-weight: 700; }
.theme-cafe .m-body h3, .theme-restaurant .m-body h3, .theme-luxury .m-body h3 { font-family: var(--font-head); font-size: 17px; }
.m-body p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: color-mix(in srgb, var(--primary) 75%, var(--text));
}
.theme-dark .m-tag, .theme-luxury .m-tag { color: var(--primary); }
.m-price { margin-top: auto; padding-top: 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.m-price strong { font-size: 17px; font-weight: 800; color: var(--button); }
.theme-dark .m-price strong, .theme-luxury .m-price strong { color: var(--primary); }
.m-price del { color: var(--muted); font-size: 13px; }
.m-noresult { text-align: center; color: var(--muted); padding: 48px 16px; }
.m-noresult .ic { width: 36px; height: 36px; opacity: .5; }

/* ---------- Bilgi & alt ---------- */
.m-info { display: grid; gap: 12px; padding: 8px 14px 8px; }
.m-info-block { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.m-info-block h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.m-info-block h4 .ic { color: var(--button); width: 18px; height: 18px; }
.m-info-block p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.m-info-block a { font-size: 13px; font-weight: 600; color: var(--button); text-decoration: none; }
.theme-dark .m-info-block a, .theme-luxury .m-info-block a { color: var(--primary); }
.m-hours { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.m-hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.m-hours li:last-child { border: 0; }
.m-hours li.is-today { color: var(--text); font-weight: 700; }
.m-foot { text-align: center; padding: 22px 16px 40px; color: var(--muted); font-size: 12px; }
.m-foot p { margin: 0 0 6px; }
.m-foot a { text-decoration: none; opacity: .8; }

/* ---------- Ürün detay (alt sayfa) ---------- */
.m-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.m-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: fade .2s ease; }
.m-sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); color: var(--text);
  border-radius: 24px 24px 0 0; animation: up .28s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom);
}
.m-sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.m-sheet-img { aspect-ratio: 4 / 3; background: var(--tint); position: relative; }
.m-sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.m-sheet-img.no-img { aspect-ratio: auto; height: 64px; }
.m-sheet-img.no-img .m-ph { display: none; }
.m-sheet-body { padding: 18px 20px 26px; display: flex; flex-direction: column; gap: 10px; }
.m-sheet-body h3 { margin: 0; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 24px; line-height: 1.2; }
.m-sheet-body > p { margin: 0; color: var(--muted); }
.m-sheet-body .m-price strong { font-size: 22px; }
.m-sheet-sec { border-top: 1px solid var(--line); padding-top: 12px; }
.m-sheet-sec h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.m-sheet-sec p { margin: 0; font-size: 14px; }
.m-allergens { display: flex; flex-wrap: wrap; gap: 6px; }
.m-allergens span { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
body.sheet-open { overflow: hidden; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Mesaj sayfası ---------- */
.m-msg { max-width: 420px; margin: 18vh auto 0; text-align: center; padding: 24px; }
.m-msg-ico .ic { width: 48px; height: 48px; color: var(--muted); }
.m-msg h1 { font-size: 22px; margin: 12px 0 6px; }
.m-msg p { color: var(--muted); }
.m-msg a { color: var(--button); font-weight: 600; text-decoration: none; }

/* ---------- Büyük ekranlar ---------- */
@media (min-width: 640px) {
  .m-cover { height: 260px; }
  .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .m-main { padding: 8px 20px 24px; }
  .m-info { grid-template-columns: 1fr 1fr; padding: 8px 20px; }
  .m-sheet { align-items: center; }
  .m-sheet-panel { border-radius: 24px; }
  .m-tabs-row { padding-left: 20px; }
  .m-card:hover { transform: translateY(-3px); }
}
@media (min-width: 960px) {
  .m-cover { height: 320px; border-radius: 0 0 28px 28px; }
  .m-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .m-name { font-size: 32px; }
}
@media (max-width: 380px) {
  .m-act { min-width: 0; flex: 1 1 0; padding: 9px 4px; font-size: 11px; }
  .m-actions { gap: 6px; flex-wrap: nowrap; }
}
@media (max-width: 340px) {
  .m-grid { grid-template-columns: 1fr; }
}
@supports not (color: color-mix(in srgb, red, blue)) {
  body { --tint: rgba(127, 127, 127, .12); }
  .m-tag { background: rgba(127, 127, 127, .14); color: var(--text); }
  .m-tabs { background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
