/* =========================================================
   qr.menu — Lezzet Durağı tarzı tek sayfa menü teması
   Renk vurguları index.php'den CSS değişkeni olarak gelir.
   ========================================================= */

:root {
    --accent: #5b7a56;
    --accent-dark: #48623f;
    --accent-deeper: #2d3d29;
    --accent-soft: #e4ecdd;
    --accent-softer: #f2f6ee;
    --accent-line: #cddfc3;
    --on-accent: #ffffff;

    --navy: #111828;
    --navy-soft: #1b2333;
    --page: #f6f7f9;
    --paper: #ffffff;
    --ink: #111828;
    --muted: #6f7683;
    --line: #eceef2;
    --radius: 16px;
    --shadow: 0 10px 28px rgba(17, 24, 40, .06);
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.qr-body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }

.page-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 50px; }

/* ------------------------------ Hero ------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% -20%, var(--accent) 0, transparent 42%),
        linear-gradient(135deg, #0b0f16 0%, var(--navy) 52%, #0d1118 100%);
    color: #fff;
    border-radius: 0 0 30px 30px;
    padding: 34px 20px 28px;
}
.hero-glow {
    position: absolute; right: -120px; top: -180px;
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.10), transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; left: -80px; bottom: -170px;
    width: 320px; height: 320px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.07);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand-mark {
    width: 58px; height: 58px; flex: 0 0 58px;
    border-radius: 16px; display: grid; place-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    overflow: hidden;
}
.brand-mark span { font-size: 26px; font-weight: 700; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand h1 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.18; letter-spacing: -.03em; word-break: break-word; }
.brand-sub { color: rgba(255,255,255,.62); font-size: 13px; margin-top: 2px; }

.hero-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.status-pill, .lang-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border-radius: 999px;
    font-size: 12px; font-weight: 650;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.09);
    color: #fff;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #7ee2a0; box-shadow: 0 0 0 3px rgba(126,226,160,.18); }
.status-pill.is-closed .dot { background: #ffc98a; box-shadow: 0 0 0 3px rgba(255,201,138,.18); }
.lang-pill:hover { background: rgba(255,255,255,.18); }

.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.68); font-size: 12.5px; }
.meta-item span { font-size: 14px; opacity: .8; }
a.meta-item:hover { color: #fff; }

.hero-controls { margin-top: 22px; display: grid; gap: 14px; }
.search-box {
    display: flex; align-items: center; gap: 10px;
    max-width: 420px; padding: 10px 15px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.search-box svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: var(--muted); fill: none; stroke-width: 1.8; }
.search-box input { border: 0; outline: none; background: transparent; width: 100%; font-size: 13px; color: var(--ink); }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px rgba(0,0,0,.16); }

.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-pill {
    flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.82);
    padding: 7px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.cat-pill:hover { background: rgba(255,255,255,.16); color: #fff; }
.cat-pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.notice-card {
    margin-top: 22px; padding: 18px 20px; max-width: 520px;
    border-radius: 14px; background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
}
.notice-card strong { font-size: 19px; display: block; margin-bottom: 5px; }
.notice-card p { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.notice-card code { background: rgba(0,0,0,.22); color: #fff; padding: 2px 7px; border-radius: 5px; }

/* ------------------------------- Menü ------------------------------ */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; letter-spacing: -.02em; }
.section-count { color: var(--muted); font-size: 12px; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.product-card {
    display: flex; flex-direction: column; text-align: left;
    padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); color: inherit; cursor: pointer;
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(17,24,40,.11); border-color: var(--accent-line); }
.product-card:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.product-image { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--accent-softer); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image.no-image { display: grid; place-items: center; }
.product-image.no-image span { font-size: 42px; font-weight: 700; color: var(--accent); opacity: .28; }

.product-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; flex: 1; }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-head strong { font-size: 15px; line-height: 1.35; }
.price {
    flex: 0 0 auto; font-size: 12.5px; font-weight: 750; color: var(--accent-dark);
    background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.product-desc {
    font-size: 12px; color: var(--muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc.product-alt { font-style: italic; }
.product-cta { margin-top: auto; font-size: 11px; font-weight: 700; color: var(--accent-dark); }
.product-cta span { font-size: 13px; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state strong { display: block; font-size: 17px; color: var(--ink); margin-top: 10px; }
.empty-icon { font-size: 38px; color: var(--accent); opacity: .5; }
.no-result { text-align: center; color: var(--muted); padding: 36px 10px; font-size: 13px; }

/* --------------------- Hakkımızda / İletişim ----------------------- */

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 42px; }
.about-card, .info-card { border-radius: var(--radius); padding: 26px 28px; }
.about-card {
    background: linear-gradient(135deg, var(--navy-soft), var(--navy));
    color: #fff;
}
.about-card .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.about-card h2 { font-size: 21px; margin-bottom: 10px; }
.about-card p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.74); }
.info-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card h2 { font-size: 18px; margin-bottom: 14px; }
.info-list { margin: 0; display: grid; gap: 12px; }
.info-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.info-list dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.info-list dd { margin: 0; font-size: 12.5px; color: var(--ink); }
.info-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.hours-line { display: block; font-size: 12px; color: var(--ink); }
.hours-line.is-muted { color: var(--muted); opacity: .7; }

.menu-footer {
    margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--muted); font-size: 11px;
}
.menu-footer a { color: var(--accent-dark); font-weight: 650; }
.menu-footer a:hover { text-decoration: underline; }

/* ------------------------------ Modal ------------------------------ */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17,24,40,.58); backdrop-filter: blur(3px); }
.modal-dialog {
    position: relative; width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
    background: var(--paper); border-radius: 20px; overflow-x: hidden;
    box-shadow: 0 28px 70px rgba(0,0,0,.35);
    animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1;
    cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { background: rgba(255,255,255,.3); }

.modal-hero { position: relative; min-height: 230px; display: grid; align-items: end; overflow: hidden; background: var(--navy); }
.modal-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17,24,40,.25) 0%, rgba(17,24,40,.94) 100%);
}
.modal-no-image { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-deeper), var(--navy)); }
.modal-no-image span { font-size: 72px; font-weight: 700; color: rgba(255,255,255,.22); }
.modal-hero-content { position: relative; z-index: 1; padding: 70px 24px 24px; color: #fff; }
.modal-brand { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 6px; }
.modal-hero-content h3 { font-size: 25px; line-height: 1.2; }
.modal-cat { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--accent-soft); background: rgba(255,255,255,.12); padding: 3px 9px; border-radius: 999px; }

.modal-body { padding: 22px 24px 24px; }
.modal-desc { font-size: 13.5px; line-height: 1.7; color: #454c59; white-space: pre-line; }
.modal-alt { margin-top: 8px; font-size: 12px; font-style: italic; color: var(--muted); }
.modal-bottom {
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.modal-price { font-size: 22px; font-weight: 800; color: var(--accent-dark); }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-btn {
    display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px;
    background: var(--navy); color: #fff; font-size: 12px; font-weight: 650;
}
.modal-btn:hover { background: var(--navy-soft); }
.modal-btn-wa { background: #25d366; }
.modal-btn-wa:hover { background: #1ebe5a; }

body.modal-open { overflow: hidden; }

/* ---------------------------- Uyarlamalar -------------------------- */

@media (max-width: 960px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .hero { padding: 24px 16px 22px; border-radius: 0 0 22px 22px; }
    .brand-mark { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; }
    .brand-mark span { font-size: 22px; }
    .hero-top { gap: 14px; }
    .hero-tools { width: 100%; }
    .hero-controls { margin-top: 18px; }
    .search-box { max-width: none; }
    .page-wrap { padding: 22px 14px 40px; }
    .section-head h2 { font-size: 20px; }
    .product-grid { grid-template-columns: 1fr; gap: 14px; }
    .product-image { aspect-ratio: 16 / 9; }
    .about-card, .info-card { padding: 22px 20px; }
    .info-list > div { grid-template-columns: 1fr; gap: 3px; }
    .modal-hero { min-height: 210px; }
    .modal-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
