/* Ortaklar Restaurant — müşteri tarafı (ana sayfa + QR menü), önce telefon */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #2a1d16;
  --ink-2: #5b4a3f;
  --muted: #8a7a6e;
  --line: #ece2d6;
  --brand: #a8271d;
  --brand-ink: #ffffff;
  --brand-soft: #f7e4df;
  --accent: #d9902f;
  --accent-soft: #fbefdc;
  --ok: #2f7d4f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 29, 22, .06), 0 6px 20px rgba(42, 29, 22, .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------ Ortak parçalar */
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brandmark .logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px;
}
.brandmark .word { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brandmark .word small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: -3px; }

.lang-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; min-height: 36px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #8e1f17; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn svg { width: 18px; height: 18px; }

.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.badge-star { background: var(--accent-soft); color: #8a5a12; }
.badge-hot { background: var(--brand-soft); color: var(--brand); }
.badge-sold { background: #c8392b; color: #fff; }
.badge-veg { background: #e3f1d6; color: #2f6b22; }
.badge-daily { background: #fbe9d2; color: #9a5a12; }
.badge-spicy { background: #fbe3df; color: #a3261b; }
.badge .diet-ico { margin-left: 0; color: inherit; }

/* Açık / kapalı */
.open-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  background: #e4f3e4; color: #1f6b2a; white-space: nowrap; line-height: 1.2;
}
.open-pill b { font-weight: 700; }
.open-pill i { width: 8px; height: 8px; border-radius: 50%; background: #2f9a3f; box-shadow: 0 0 0 3px rgba(47,154,63,.2); flex: none; }
.open-pill.soon { background: #fdf0d8; color: #8a5a12; }
.open-pill.soon i { background: #e0951f; box-shadow: 0 0 0 3px rgba(224,149,31,.22); }
.open-pill.closed { background: #f7e2df; color: #9a2a1f; }
.open-pill.closed i { background: #c8392b; box-shadow: 0 0 0 3px rgba(200,57,43,.18); }
.hero .open-pill { margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.info-box .open-pill { margin-top: 8px; }
.m-top .m-open { flex: 1; display: flex; justify-content: flex-end; margin: 0 10px; min-width: 0; }
.m-top .open-pill { font-size: 12px; padding: 4px 10px; }
@media (max-width: 440px) { .m-top .open-pill .sub { display: none; } }

/* Vejetaryen / acılı simgeleri */
.diet-ico { display: inline-flex; vertical-align: -2px; margin-left: 6px; }
.diet-ico svg { width: 15px; height: 15px; }
.diet-ico.veg { color: #2f8a3a; }
.diet-ico.spicy { color: #d2401f; }

/* Tükendi */
.sold-tag { font-size: 12px; font-weight: 700; color: #fff; background: #c8392b; border-radius: 6px; padding: 1px 7px; }
.sold-ribbon {
  position: absolute; left: 8px; bottom: 8px; background: #c8392b; color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.item.soldout .thumb, .item.soldout .name, .item.soldout .price { opacity: .5; }
.item.soldout .price { text-decoration: line-through; }
.rail-card.soldout .img img, .card.soldout .img img, .rail-card.soldout .img .ph, .card.soldout .img .ph { filter: grayscale(.8); opacity: .65; }

/* Resimsiz ürün için yer tutucu */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--ph-bg, #f3e7da); color: var(--ph-ink, #b58b66);
}
.ph svg { width: 42%; height: 42%; max-width: 56px; max-height: 56px; opacity: .9; }

/* ------------------------------------------------ Ana sayfa */
.topnav { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.topnav .brandmark { color: #fff; }
.topnav .brandmark .word small { color: rgba(255,255,255,.75); }
.topnav .brandmark .logo { background: #fff; color: var(--brand); }
.topnav nav { display: flex; align-items: center; gap: 6px; }
.topnav nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.topnav nav a:hover { background: rgba(255,255,255,.14); }
.topnav .lang-btn { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 640px) { .topnav nav a.hide-sm { display: none; } }

.hero {
  position: relative; color: #fff; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(217,144,47,.35), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(160deg, #6e1711 0%, #a8271d 55%, #b9461f 100%);
  overflow: hidden;
}
.hero.has-img { background: #2a1d16; }
.hero .hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero.has-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,12,8,.45) 0%, rgba(20,12,8,.25) 40%, rgba(20,12,8,.85) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 22px 22px;
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 56px; padding-top: 110px; }
.hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(44px, 11vw, 96px); margin: 10px 0 14px;
}
.hero .tagline { font-size: clamp(17px, 4.2vw, 22px); max-width: 34ch; opacity: .95; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 64px 0; }
.section + .section { padding-top: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--display); font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }

.specialties { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.spec {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.spec:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.spec .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.spec .ico svg { width: 24px; height: 24px; }
.spec h3 { margin: 4px 0 0; font-size: 18px; }
.spec p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .img { aspect-ratio: 4 / 3; background: #f3e7da; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img .badge { position: absolute; top: 10px; left: 10px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .cat { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card .name { font-weight: 650; font-size: 17px; line-height: 1.25; }
.card .price { color: var(--brand); margin-top: auto; padding-top: 6px; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.about .text { font-size: 18px; color: var(--ink-2); white-space: pre-line; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.info-box .row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-box .row:last-child { border-bottom: 0; }
.info-box .row svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.info-box .row .k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.info-box .row .v { white-space: pre-line; }
.info-box .row a { color: var(--brand); font-weight: 600; text-decoration: none; }

.cta-band {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 32px; display: flex;
  align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--display); margin: 0; font-size: clamp(24px, 5vw, 32px); }
.cta-band p { margin: 4px 0 0; opacity: .75; }

.site-footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------ QR Menü */
.menu-page { padding-bottom: 80px; }
.m-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.m-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.m-top .brandmark .logo { width: 32px; height: 32px; font-size: 18px; }
.m-top .brandmark .word { font-size: 18px; }

.m-sticky { position: sticky; top: 0; z-index: 20; background: rgba(250,246,240,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.search { position: relative; margin: 12px 0 10px; }
.search svg.mag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 44px 0 44px; font: inherit; font-size: 16px; color: var(--ink); outline: none;
  -webkit-appearance: none; appearance: none;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(168,39,29,.12); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; background: transparent; border-radius: 10px; color: var(--muted); display: none;
}
.search.has-value .clear { display: grid; place-items: center; }
.search .clear svg { width: 18px; height: 18px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 12px; margin: 0 -20px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 550; white-space: nowrap; min-height: 38px; scroll-snap-align: start;
  transition: background .15s, color .15s, border-color .15s;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.m-sticky.searching .chips { display: none; }

.m-block { padding-top: 22px; }
.m-block h2 { font-family: var(--display); font-size: 24px; margin: 0 0 4px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.m-block .sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.daily-block h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #e0782a; box-shadow: 0 0 0 4px rgba(224, 120, 42, .18); flex: none; }

.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 20px 6px; margin: 0 -20px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 20px; }
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: none; width: 168px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-align: left; padding: 0; scroll-snap-align: start; display: flex; flex-direction: column;
}
.rail-card .img { aspect-ratio: 1 / 1; position: relative; background: #f3e7da; }
.rail-card .img img { width: 100%; height: 100%; object-fit: cover; }
.rail-card .rank {
  position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.rail-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rail-card .name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.rail-card .price { color: var(--brand); font-size: 15px; margin-top: auto; }

.cat-section { padding-top: 26px; }
.cat-section h2 { font-family: var(--display); font-size: 26px; margin: 0 0 10px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; }
.cat-section h2 .count { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: transparent; border: 0;
  padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 72px;
}
.item:last-child { border-bottom: 0; }
.item:active { background: #fbf7f2; }
.item .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: #f3e7da; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.item .desc { color: var(--muted); font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.item .half { font-size: 12.5px; color: var(--ink-2); background: #f5efe8; border-radius: 6px; padding: 1px 7px; }
.item .price { font-size: 16px; color: var(--ink); align-self: center; }

.results-head { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; margin-bottom: 10px; }
.results-head h2 { font-size: 15px; font-weight: 600; margin: 0; color: var(--ink-2); }
.results-head .note { font-size: 13px; color: var(--muted); }
.item .cat-tag { font-size: 12px; color: var(--muted); }
mark { background: #fde7b8; color: inherit; border-radius: 3px; padding: 0 1px; }

.empty { text-align: center; padding: 48px 12px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 10px 0 6px; font-size: 18px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.suggest-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 0 12px; }
.suggest-row span { font-size: 13px; color: var(--muted); margin-right: 2px; }
.m-sticky:not(.focused) .suggest-row, .m-sticky.searching .suggest-row { display: none; }

.m-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 36px 20px 0; }
.m-foot a { color: var(--brand); text-decoration: none; font-weight: 600; }
.m-credit { margin-top: 8px; font-size: 12px; }
.m-credit a, .site-footer .credit a { font-weight: 500; color: inherit; text-decoration: underline; }
.site-footer .credit { width: 100%; font-size: 12px; }

/* Ürün detay penceresi (alttan açılır) */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet .backdrop { position: absolute; inset: 0; background: rgba(20, 12, 8, .5); animation: fade .2s ease; }
.sheet .panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface);
  border-radius: 22px 22px 0 0; animation: up .25s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 700px) { .sheet { align-items: center; } .sheet .panel { border-radius: 22px; } }
.sheet .hero-img { aspect-ratio: 4 / 3; background: #f3e7da; }
.sheet .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet .hero-img .ph svg { max-width: 96px; max-height: 96px; }
.sheet .close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow); z-index: 2;
}
.sheet .close svg { width: 20px; height: 20px; }
.sheet .content { padding: 20px 22px 28px; }
.sheet .cat { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sheet h3 { font-family: var(--display); font-size: 28px; line-height: 1.15; margin: 6px 0 4px; }
.sheet .alt { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.sheet .desc { color: var(--ink-2); margin: 8px 0 0; white-space: pre-line; }
.sheet .prices { margin-top: 18px; border-top: 1px solid var(--line); }
.sheet .prices .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.sheet .badges { display: flex; gap: 6px; margin-top: 6px; }
body.lock { overflow: hidden; }

@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.skeleton { padding: 30px 0; }
.skeleton div { height: 72px; border-radius: 14px; margin-bottom: 10px; background: linear-gradient(90deg, #f1e9df, #f8f2eb, #f1e9df); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
