/* ===== QR Menü — Müşteri Görünümü (Menuviel tarzı, mobil öncelikli) ===== */
:root {
    --theme: #111827;
    --accent: #16a34a;
    --bg: #eef1f4;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #8a94a3;
    --line: #eef0f3;
    --radius: 18px;
    --shadow: 0 4px 18px rgba(17, 24, 39, .06);
}
:root[data-theme="dark"] {
    --bg: #0f1115;
    --card: #1a1d24;
    --text: #e6e8ec;
    --muted: #9aa4b2;
    --line: #2a2f38;
    --shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
    max-width: 560px; margin: 0 auto; position: relative;
}

/* ---- Hero ---- */
.hero { background: var(--card); }
.hero-banner {
    position: relative; height: 210px;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-banner.no-img { background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899); }
.hero-banner.banner-contain { background-color: #0f172a; }
.hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%);
}

/* Karanlık mod düğmesi */
.theme-toggle {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .22); color: #fff; font-size: 1.15rem;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
}

/* Dil seçici (sol üst) */
.lang-switch {
    position: absolute; top: 14px; left: 12px; z-index: 3;
    display: flex; gap: 2px; padding: 3px; border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lang-pill {
    text-decoration: none; color: #fff; font-size: .72rem; font-weight: 800;
    padding: 4px 9px; border-radius: 999px; line-height: 1;
}
.lang-pill.active { background: #fff; color: var(--theme); }

/* RTL (Arapça): konum-bazlı öğeler taraf değiştirir (flex zaten otomatik yansır) */
[dir="rtl"] .lang-switch { left: auto; right: 12px; }
[dir="rtl"] .theme-toggle { right: auto; left: 12px; }

/* Banner alt overlay: WiFi + konum + Instagram */
.hero-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
    padding: 14px 16px 16px;
}
.hero-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #fff; }
.wifi-chip {
    display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
    background: rgba(255, 255, 255, .22); color: #fff; border: none; cursor: pointer;
    padding: 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    max-width: 62vw;
}
.wifi-chip .ic { width: 12px; height: 12px; flex: 0 0 auto; }
.wifi-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wifi-copy { font-size: .7rem; }
.hero-loc {
    font-size: .74rem; font-weight: 600; color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55); max-width: 70vw;
}
.ig-link {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.ig-link svg { width: 19px; height: 19px; }

/* Logo (banner'ın tam ortasında) */
.hero-logo {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 4; text-align: center;
}
.logo {
    width: 104px; height: 104px; display: block;
    border: 4px solid rgba(255, 255, 255, .92); background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
/* Şekil */
.logo.shape-circle  { border-radius: 50%; }
.logo.shape-rounded { border-radius: 22px; }
.logo.shape-square  { border-radius: 8px; }
/* Görünüm: Doldur (kırparak) / Sığdır (tamamı görünür, taşmaz) */
.logo.fit-cover   { object-fit: cover; }
.logo.fit-contain { object-fit: contain; padding: 8px; }
.logo-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 800; color: var(--accent); text-transform: uppercase;
}

/* Bildirim toast (WiFi şifre kopyalandı vb.) */
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    background: #111827; color: #fff; padding: 12px 18px; border-radius: 12px;
    font-size: .88rem; font-weight: 600; z-index: 80; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; max-width: 88vw; text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Menü seçici (pills) ---- */
.menu-switch {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    padding: 4px 16px 14px; background: var(--card);
}
.menu-switch::-webkit-scrollbar { display: none; }
.menu-pill {
    flex: 0 0 auto; text-decoration: none; white-space: nowrap;
    padding: 10px 20px; border-radius: 999px; font-size: .92rem; font-weight: 700;
    color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); border: 1px solid transparent;
    transition: all .15s;
}
.menu-pill.active { color: #fff; background: var(--theme); }

/* ---- Bildirim bölümü ---- */
.notif {
    margin: 14px 16px 4px; padding: 15px 18px; border-radius: 18px;
    background: linear-gradient(120deg, #16a34a, #22c55e);
    color: #fff; display: flex; align-items: center; gap: 14px;
    box-shadow: 0 6px 20px rgba(22, 163, 74, .28);
}
.notif-icon { font-size: 1.9rem; flex: 0 0 auto; }
.notif-body { min-width: 0; }
.notif-title { font-weight: 800; font-size: 1rem; margin-bottom: 2px; }
.notif-text { font-size: .86rem; line-height: 1.4; opacity: .95; }

/* ---- Kategori sekmeleri ---- */
.tabs {
    position: sticky; top: 0; z-index: 20;
    display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none;
    padding: 14px 16px 0; margin-top: 10px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: 0 0 auto; text-decoration: none; white-space: nowrap;
    padding: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--muted);
    border-bottom: 3px solid transparent; transition: color .15s;
}
.tab.active { color: var(--theme); border-bottom-color: var(--theme); }

/* ---- Görünüm 2: Kategori Izgarası ---- */
.grid-title { text-align: center; font-size: 1.15rem; font-weight: 800; margin: 20px 0 14px; }
.cat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 32px;
}
.cat-card {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; text-decoration: none;
    background: #1a1a1a; background-size: cover; background-position: center;
    box-shadow: var(--shadow);
}
.cat-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .6));
}
.cat-card.no-img::after { background: linear-gradient(180deg, #2a2f38, #14161b); }
.cat-card-name {
    position: relative; z-index: 1; color: #fff; font-weight: 800; font-size: 1.02rem;
    text-align: center; padding: 0 12px; line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

/* Kategori → geri dön çubuğu */
.cat-back { padding: 14px 16px 0; }
.cat-back a {
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    font-weight: 700; font-size: .9rem; color: var(--text);
    background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}

/* ---- İçerik ---- */
#menu { padding: 6px 16px 40px; }
.category { padding-top: 20px; scroll-margin-top: 80px; }
.cat-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; }
.items { display: flex; flex-direction: column; gap: 14px; }

/* ---- Ürün kartı ---- */
.pcard {
    position: relative; display: flex; gap: 12px; background: var(--card);
    border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
    cursor: pointer; transition: transform .12s;
}
.pcard:active { transform: scale(.99); }
.pcard-body { flex: 1; min-width: 0; }

.badge {
    display: inline-block; font-size: .6rem; font-weight: 800; letter-spacing: .05em;
    padding: 3px 8px; border-radius: 5px; margin-bottom: 6px; text-transform: uppercase;
}
.badge-best { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.badge-new  { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.like {
    display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
    padding: 0; margin: 0 0 4px; cursor: pointer; font-size: .82rem; color: #ef4444; font-weight: 700;
}
.like .heart { font-size: .95rem; line-height: 1; }
.like.liked { pointer-events: none; }

.pcard-name { margin: 2px 0 6px; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.price { font-weight: 800; font-size: 1rem; color: var(--text); white-space: nowrap; }
.add {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff;
    font-size: 1.2rem; font-weight: 600; line-height: 1;
}
.ing { margin: 0 0 10px; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cal {
    display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; color: var(--muted);
    border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; white-space: nowrap;
}

.pcard-thumb { flex: 0 0 auto; }
.pcard-thumb img {
    width: 92px; height: 92px; object-fit: cover; border-radius: 14px; background: #f0f0f0;
}

/* ---- Durumlar ---- */
.empty-state {
    text-align: center; color: var(--muted); padding: 70px 20px;
}
.empty-state p:first-child { font-size: 3rem; margin: 0 0 8px; }

/* ---- Footer ---- */
.foot {
    padding: 22px 16px 28px; text-align: center; border-top: 1px solid var(--line);
    background: var(--card); margin-top: 12px;
}

/* Footer blokları: Çalışma Saatleri + Dikey Reklam */
.foot-blocks {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    text-align: left; margin-bottom: 22px;
}
.foot-blocks.single { grid-template-columns: 1fr; }
.foot-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.foot-card-title { margin: 0 0 10px; font-size: .95rem; font-weight: 800; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
    display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
    padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .85rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .hd { color: var(--muted); }
.hours-list .hv { font-weight: 700; white-space: nowrap; }
.ad-card { padding: 0; overflow: hidden; display: flex; }
.ad-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Reklam görseli yoksa: logolu şık alan */
.ad-card.ad-placeholder {
    flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 22px 16px; min-height: 150px; text-align: center;
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--card));
    border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
}
.ad-placeholder .ad-logo {
    width: 72px; height: 72px; object-fit: contain; border-radius: 14px;
    background: #fff; padding: 6px; box-shadow: var(--shadow);
}
.ad-placeholder .ad-logo-fallback {
    width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800;
    text-transform: uppercase;
}
.ad-placeholder .ad-name { font-weight: 800; font-size: 1rem; color: var(--text); }

/* Powered by */
.powered {
    text-align: center; padding: 16px; font-size: .78rem; color: var(--muted);
    background: var(--bg); border-top: 1px solid var(--line);
}
.powered strong { color: var(--text); font-weight: 700; }

@media (max-width: 440px) {
    .foot-blocks { grid-template-columns: 1fr; }
}
.wifi { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.call-btn {
    display: inline-block; text-decoration: none; font-weight: 700;
    background: var(--theme); color: #fff; padding: 12px 24px; border-radius: 999px;
}
.note { color: var(--muted); font-size: .8rem; margin-top: 16px; }

/* ---- Ürün detay alt sayfası ---- */
.sheet-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden;
    transition: opacity .25s; z-index: 40;
}
.sheet-overlay.show { opacity: 1; visibility: visible; }
.sheet {
    position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
    width: 100%; max-width: 560px; background: var(--card);
    border-radius: 22px 22px 0 0; z-index: 50; transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    max-height: 88vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet-handle { width: 44px; height: 5px; background: #d1d5db; border-radius: 3px; margin: 10px auto; cursor: pointer; }
.sheet-img { width: 100%; height: 220px; overflow: hidden; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 18px 20px calc(28px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; }
.sheet-head h3 { margin: 0; font-size: 1.3rem; font-weight: 800; flex: 1; }
.sheet-priceline { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.sheet-priceline .price { font-size: 1.2rem; color: var(--accent); }
.sheet-desc { color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 0 0 16px; }

/* Besin değerleri */
.nutri { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.nutri-title { font-size: .82rem; font-weight: 700; margin-bottom: 12px; }
.nutri-title .muted { font-weight: 500; font-size: .76rem; }
.nutri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nutri-cell {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: var(--bg); border-radius: 10px; padding: 10px 4px;
}
.nv { font-size: 1.05rem; font-weight: 800; }
.nl { font-size: .66rem; color: var(--muted); font-weight: 600; text-align: center; }

.sheet-diet { display: flex; flex-wrap: wrap; gap: 8px; }
.diet-chip {
    display: inline-flex; align-items: center; font-size: .8rem; font-weight: 600;
    color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 12px;
}

@media (max-width: 360px) {
    .pcard-thumb img { width: 76px; height: 76px; }
}