/* ==========================================================================
   KHU COFFEE — Tasarım Sistemi v6 "Kavurma"
   Sıcak kafe paleti: krem zemin, kavrulmuş kahve, karamel vurgu, adaçayı
   Tipografi: Fraunces (başlık, serif) + Manrope (metin)
   01 Tokens   02 Reset    03 A11y     04 Üst bar    05 Hero
   06 Araç çubuğu         07 Menü     08 Galeri     09 Değerlendirme
   10 Footer   11 Butonlar 12 Formlar  13 Panel kabuk 14 Kart/İstatistik
   15 Tablo    16 Etiket   17 Modal    18 Giriş      19 Duyarlı
   ========================================================================== */

/* ---------- 01 Tokens ---------- */
:root {
    /* Kahve tonları */
    --bean-900: #1C1410;
    --bean-800: #2A1D15;
    --bean-700: #3A281C;
    --bean-600: #4E3626;
    --bean-500: #6B4B33;
    --bean-400: #8C6A4F;
    --bean-300: #B3937A;

    /* Karamel / amber vurgu */
    --caramel-50:  #FDF3E3;
    --caramel-100: #F9E4C4;
    --caramel-200: #F2CE97;
    --caramel-300: #E9B36A;
    --caramel-400: #DD9A45;
    --caramel-500: #C97F2B;
    --caramel-600: #A9641C;

    /* Zemin */
    --cream:     #FBF6EE;
    --cream-2:   #F4EBDC;
    --cream-3:   #EDE1CE;
    --paper:     #FFFFFF;
    --line:      #E6D8C4;
    --line-soft: #F1E7D8;

    /* Metin */
    --ink:    #241A13;
    --ink-2:  #4C3A2C;
    --muted:  #8A7561;

    /* Durum */
    --ok:      #3F7D53;
    --ok-bg:   #E6F2E9;
    --warn:    #B07517;
    --warn-bg: #FBF0D8;
    --err:     #B4453A;
    --err-bg:  #F9E6E3;
    --info:    #3A6B85;
    --info-bg: #E6F0F5;
    --sage:    #7C8F6B;
    --sage-bg: #EDF1E6;

    /* Efekt */
    --r-xs: 8px;
    --r-sm: 12px;
    --r:    18px;
    --r-lg: 26px;
    --r-xl: 36px;
    --pill: 999px;
    --sh-1: 0 1px 2px rgba(58, 40, 28, .05), 0 3px 10px -6px rgba(58, 40, 28, .14);
    --sh-2: 0 2px 6px rgba(58, 40, 28, .06), 0 16px 34px -18px rgba(58, 40, 28, .28);
    --sh-3: 0 30px 60px -26px rgba(58, 40, 28, .42), 0 10px 20px -12px rgba(58, 40, 28, .2);
    --ring: 0 0 0 4px rgba(201, 127, 43, .2);
    --ease: cubic-bezier(.22, .68, .28, 1);
    --t: .24s var(--ease);

    --font-display: 'Fraunces', 'Georgia', serif;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-num: 'Fraunces', 'Manrope', Georgia, serif;
}

/* ---------- 02 Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.62;
    color: var(--ink);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(242, 206, 151, .28), transparent 60%),
        var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.015em;
    font-variation-settings: 'SOFT' 40, 'WONK' 1;
}
::selection { background: var(--caramel-300); color: var(--bean-900); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--bean-300); }

/* ---------- 03 A11y ---------- */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 999;
    background: var(--bean-900); color: #fff; padding: 10px 16px;
    border-radius: var(--r-sm); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--caramel-500); outline-offset: 3px; }

/* ---------- 04 Üst bar ---------- */
.site-head {
    position: sticky; top: 0; z-index: 60;
    background: rgba(251, 246, 238, .88);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-head__inner {
    max-width: 1080px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
    width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, var(--caramel-300), var(--caramel-600) 70%);
    box-shadow: 0 6px 16px -8px rgba(169, 100, 28, .85), inset 0 1px 0 rgba(255,255,255,.5);
}
.brand__mark img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text strong {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    letter-spacing: .02em; color: var(--bean-900);
}
.brand__text small {
    font-size: .64rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--caramel-600); margin-top: 1px;
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill);
    background: var(--cream-2); border: 1px solid var(--line);
}
.lang-switch a {
    padding: 6px 12px; border-radius: var(--pill); text-decoration: none;
    font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    color: var(--muted); transition: var(--t);
}
.lang-switch a:hover { color: var(--bean-700); }
.lang-switch a.is-active { background: var(--bean-800); color: var(--cream); }

/* ---------- 05 Hero ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(34px, 6vw, 64px) 20px clamp(40px, 7vw, 74px);
    background:
        radial-gradient(90% 120% at 8% 0%, #3E2A1D 0%, transparent 55%),
        radial-gradient(80% 100% at 100% 100%, #5A3D28 0%, transparent 60%),
        linear-gradient(160deg, var(--bean-900), var(--bean-800) 60%, #241811);
    color: var(--cream);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
    background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
}
.hero::after {
    content: ''; position: absolute; inset: auto -80px -140px auto;
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 179, 106, .35), transparent 65%);
    z-index: -1;
}
.hero__inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px 7px 10px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
    font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--caramel-200);
}
.hero__badge i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--caramel-300);
    box-shadow: 0 0 0 4px rgba(233, 179, 106, .22);
}
.hero h1 {
    margin: 18px 0 10px; font-size: clamp(2.2rem, 7.5vw, 3.9rem);
    font-weight: 700; letter-spacing: -.03em;
    color: var(--cream);
    text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
}
.hero p {
    max-width: 460px; margin: 0 auto;
    color: rgba(251, 246, 238, .7); font-size: clamp(.94rem, 2.4vw, 1.04rem);
}
.hero__rating {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
    padding: 9px 16px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    color: var(--cream); font-size: .82rem; font-weight: 700;
    cursor: default; user-select: none;
}
.stars { display: inline-flex; gap: 2px; color: var(--caramel-300); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.stars--lg svg { width: 17px; height: 17px; }
.stars--muted { color: var(--line); }
.hero__rating b { font-family: var(--font-num); font-size: .95rem; }
.hero__rating span { color: rgba(251, 246, 238, .55); font-weight: 600; }

/* ---------- 06 Araç çubuğu ---------- */
.menu-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.menu-toolbar {
    position: sticky; top: 69px; z-index: 50;
    margin-top: -24px;
    padding: 10px 14px 8px;
    border-radius: var(--r-lg);
    background: rgba(251, 246, 238, .94);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border: 1px solid var(--line-soft);
    box-shadow: 0 18px 34px -26px rgba(58, 40, 28, .55), 0 2px 8px -6px rgba(58, 40, 28, .18);
    transition: box-shadow var(--t);
}
/* Çubuk yapışkan hâle gelince hafif gölge */
.menu-toolbar.is-stuck {
    box-shadow: 0 22px 40px -24px rgba(58, 40, 28, .6), 0 3px 10px -8px rgba(58, 40, 28, .2);
}
.cat-bar {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
    scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
    flex: 0 0 auto; scroll-snap-align: start;
    padding: 10px 18px; border-radius: var(--pill);
    border: 1.5px solid var(--line); background: var(--paper);
    font-size: .85rem; font-weight: 700; color: var(--ink-2);
    cursor: pointer; transition: var(--t); white-space: nowrap;
    box-shadow: var(--sh-1);
}
.cat-pill:hover { border-color: var(--caramel-300); color: var(--caramel-600); transform: translateY(-1px); }
.cat-pill.is-active {
    background: var(--bean-800); border-color: var(--bean-800); color: var(--cream);
    box-shadow: 0 10px 22px -14px rgba(42, 29, 21, .9);
}
.cat-pill .cnt { opacity: .5; font-weight: 600; margin-left: 5px; font-size: .78em; }

/* ---------- 07 Menü ---------- */
.cat-section { margin-top: 28px; scroll-margin-top: 160px; }
.cat-section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-section__head h2 {
    font-size: 1.34rem; font-weight: 700; letter-spacing: -.02em; color: var(--bean-900);
    display: flex; align-items: center; gap: 10px;
}
.cat-section__head h2::before {
    content: ''; width: 5px; height: 20px; border-radius: 4px;
    background: linear-gradient(180deg, var(--caramel-300), var(--caramel-600));
}
.cat-section__head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.cat-section__head .count {
    font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); font-variant-numeric: tabular-nums;
}
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.dish {
    position: relative; display: flex; gap: 15px; align-items: flex-start;
    background: var(--paper); border: 1px solid var(--line-soft);
    border-radius: var(--r-lg); padding: 14px;
    box-shadow: var(--sh-1);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.dish:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line); }
.dish__thumb {
    position: relative; flex: 0 0 92px; width: 92px; height: 92px;
    border-radius: 20px; overflow: hidden;
    background: linear-gradient(145deg, var(--caramel-100), var(--cream-2));
    display: grid; place-items: center;
    box-shadow: inset 0 0 0 1px rgba(58, 40, 28, .06);
}
.dish__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.dish:hover .dish__thumb img { transform: scale(1.06); }
.dish__thumb span { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--caramel-500); opacity: .7; }
.dish__body { flex: 1; min-width: 0; }
.dish__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dish__name {
    font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
    letter-spacing: -.01em; color: var(--bean-900); overflow-wrap: anywhere;
}
.dish__desc {
    margin-top: 4px; font-size: .83rem; line-height: 1.55; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish__price {
    display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
    font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dish__price b { font-size: 1.08rem; font-weight: 700; color: var(--caramel-600); letter-spacing: -.01em; }
.dish__price s { font-size: .76rem; color: var(--bean-300); }
.dish__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: var(--pill);
    font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.tag--off { background: var(--caramel-500); color: #fff; }
.tag--out { background: var(--err-bg); color: var(--err); }
.tag--soft { background: var(--cream-2); color: var(--ink-2); }
.dish.is-out { opacity: .66; }
.dish.is-out .dish__thumb { filter: grayscale(.85); }
.dish.is-out .dish__price b { color: var(--bean-400); }

.dish__opts { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 3px; }
.dish__opts summary {
    cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: var(--caramel-600); padding: 6px 0;
}
.dish__opts summary::-webkit-details-marker { display: none; }
.dish__opts summary svg { width: 12px; height: 12px; fill: currentColor; transition: transform var(--t); }
.dish__opts[open] summary svg { transform: rotate(180deg); }
.opt-row {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 6px 0; font-size: .82rem; color: var(--ink-2);
    border-bottom: 1px solid var(--line-soft);
}
.opt-row:last-child { border-bottom: 0; }
.opt-row b { color: var(--caramel-600); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 07b Boş durum ---------- */
.empty {
    text-align: center; padding: 56px 24px; margin: 28px 0;
    border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.empty__mark {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 20px;
    display: grid; place-items: center; background: var(--caramel-50); color: var(--caramel-500);
}
.empty__mark svg { width: 28px; height: 28px; fill: currentColor; }
.empty h3 { font-size: 1.1rem; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: .9rem; }

/* ---------- 08 Galeri ---------- */
.gallery { margin-top: 44px; }
.gallery__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.gallery__head h2 { font-size: 1.3rem; font-weight: 700; }
.gallery__head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.gallery__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gallery__grid a {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--r); aspect-ratio: 1 / 1;
    background: var(--cream-2);
    box-shadow: var(--sh-1);
}
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery__grid a:hover img { transform: scale(1.08); }
.gallery__grid a:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------- 09 Değerlendirme ---------- */
.reviews { margin-top: 44px; }
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.reviews__head h2 { font-size: 1.3rem; font-weight: 700; }
.reviews__head p { color: var(--muted); font-size: .85rem; }
.rating-card {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 22px; border-radius: var(--r-lg);
    background: linear-gradient(140deg, var(--caramel-50), var(--paper) 60%);
    border: 1px solid var(--line);
    box-shadow: var(--sh-1);
}
.rating-card__score {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 104px; padding-right: 20px; border-right: 1px solid var(--line);
}
.rating-card__score b {
    font-family: var(--font-num); font-size: 2.6rem; font-weight: 700; line-height: 1;
    color: var(--bean-900); letter-spacing: -.03em;
}
.rating-card__score span { font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.rating-card__body { flex: 1; min-width: 200px; }
.rating-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.rating-card__body p { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.review {
    background: var(--paper); border: 1px solid var(--line-soft);
    border-radius: var(--r); padding: 18px;
    box-shadow: var(--sh-1);
}
.review__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review__avatar {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: .9rem;
    background: var(--cream-2); color: var(--bean-600);
    border: 1px solid var(--line);
}
.review__who { display: flex; flex-direction: column; line-height: 1.25; }
.review__who strong { font-size: .88rem; font-weight: 800; color: var(--ink); }
.review__who small { font-size: .72rem; color: var(--muted); }
.review p { font-size: .86rem; color: var(--ink-2); line-height: 1.6; }
.review__src { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: .68rem; font-weight: 700; color: var(--muted); }

/* ---------- 10 Footer ---------- */
.site-foot {
    margin-top: 60px; padding: 36px 20px 26px;
    background: linear-gradient(170deg, var(--bean-900), #150E0A);
    color: rgba(251, 246, 238, .62);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.site-foot__inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.site-foot__brand { display: flex; flex-direction: column; gap: 4px; }
.site-foot__brand strong {
    font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; color: var(--cream);
}
.site-foot__brand span { font-size: .78rem; letter-spacing: .06em; }
.site-foot__links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; font-weight: 600; }
.site-foot__links a { color: var(--caramel-200); text-decoration: none; transition: var(--t); }
.site-foot__links a:hover { color: #fff; }

/* Örnek site bilgi kutusu (footer) */
.notice {
    max-width: 1080px; margin: 26px auto 0;
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px; border-radius: var(--r-lg);
    background: var(--caramel-50);
    border: 1px solid var(--caramel-200);
    color: var(--bean-700);
}
.notice__icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px;
    display: grid; place-items: center;
    background: #fff; border: 1px solid var(--caramel-200);
    color: var(--caramel-600);
}
.notice__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.notice__body strong {
    display: block; font-size: .76rem; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--bean-800); margin-bottom: 4px;
}
.notice__body p { font-size: .85rem; line-height: 1.6; color: var(--bean-600); }

.social { display: inline-flex; gap: 8px; }
.social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
    color: var(--caramel-200); transition: var(--t);
}
.social a:hover { background: var(--caramel-500); border-color: var(--caramel-500); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-foot__legal {
    max-width: 1080px; margin: 22px auto 0; padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .74rem; letter-spacing: .04em; text-align: center; color: rgba(251, 246, 238, .34);
}

/* ---------- 11 Butonlar ---------- */
.btn {
    --btn-bg: var(--bean-800); --btn-fg: var(--cream); --btn-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--pill);
    background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
    font-size: .88rem; font-weight: 700; letter-spacing: .01em; text-decoration: none;
    cursor: pointer; transition: var(--t); white-space: nowrap; user-select: none;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--primary { --btn-bg: linear-gradient(140deg, var(--caramel-400), var(--caramel-600)); color: #fff; box-shadow: 0 10px 22px -14px var(--caramel-500); }
.btn--ok { --btn-bg: var(--ok); }
.btn--danger { --btn-bg: var(--err); }
.btn--ghost { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: var(--sh-1); }
.btn--ghost:hover { --btn-bd: var(--bean-300); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; }
.btn--quiet:hover { --btn-bg: var(--cream-2); box-shadow: none; }
.btn--sm { padding: 7px 14px; font-size: .79rem; }
.btn--sm svg { width: 13px; height: 13px; }
.btn--block { width: 100%; }

/* ---------- 12 Formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
    font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--bean-500);
}
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    background: var(--paper); font-size: .92rem; font-weight: 500;
    transition: var(--t);
}
.field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--caramel-400); box-shadow: var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--bean-300); font-weight: 500; }
.field input[type="file"] { padding: 9px 12px; font-size: .84rem; }
.field input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 7px 13px; border: 0; border-radius: var(--pill);
    background: var(--cream-2); color: var(--ink); font-weight: 700; font-size: .8rem; cursor: pointer;
}
.field__hint { font-size: .76rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 13 Panel kabuk ---------- */
.admin-body { background: var(--cream); }
.nav-toggle:checked ~ .scrim { opacity: 1; visibility: visible; }
.scrim {
    position: fixed; inset: 0; z-index: 70; background: rgba(28, 20, 16, .5);
    backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: var(--t);
}
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 80;
    width: 264px; padding: 22px 16px 16px;
    display: flex; flex-direction: column;
    background: linear-gradient(175deg, var(--bean-800), var(--bean-900) 55%, #150E0A);
    color: rgba(251, 246, 238, .72);
    border-right: 1px solid rgba(255, 255, 255, .06);
    transition: transform var(--t);
}
.brand--panel { padding: 4px 6px 0; margin-bottom: 26px; }
.brand--panel .brand__text strong { font-size: 1rem; color: var(--cream); }
.brand--panel .brand__text small { color: var(--caramel-300); }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-nav__title {
    margin: 16px 10px 7px; font-size: .62rem; font-weight: 800;
    letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 246, 238, .28);
}
.side-nav__title:first-child { margin-top: 0; }
.side-nav__link {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: var(--r-sm);
    font-size: .88rem; font-weight: 600; text-decoration: none;
    color: rgba(251, 246, 238, .68); transition: var(--t);
}
.side-nav__link svg { width: 17px; height: 17px; fill: currentColor; opacity: .8; flex: 0 0 auto; }
.side-nav__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav__link.is-active {
    background: linear-gradient(120deg, rgba(221, 154, 69, .26), rgba(221, 154, 69, .06));
    color: #fff; box-shadow: inset 0 0 0 1px rgba(233, 179, 106, .34);
}
.side-nav__link.is-active svg { fill: var(--caramel-300); opacity: 1; }
.sidebar__foot {
    display: flex; align-items: center; gap: 10px;
    margin-top: 18px; padding: 12px; border-radius: var(--r);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
}
.avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 32% 28%, var(--caramel-300), var(--caramel-600) 70%);
    color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.sidebar__user { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.sidebar__user strong { font-size: .84rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user small { font-size: .66rem; color: rgba(251, 246, 238, .42); letter-spacing: .08em; text-transform: uppercase; }
.icon-btn {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    color: rgba(251, 246, 238, .58); transition: var(--t);
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.admin-shell { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 28px;
    background: rgba(251, 246, 238, .88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
.topbar__burger { display: none; color: var(--ink); background: var(--paper); box-shadow: var(--sh-1); }
.topbar__burger:hover { background: var(--paper); color: var(--caramel-600); }
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.topbar__title p { font-size: .78rem; color: var(--muted); margin-top: 1px; }
.topbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-main { flex: 1; padding: 26px 28px 40px; width: 100%; max-width: 1320px; }
.admin-foot {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 28px 22px; font-size: .74rem; letter-spacing: .04em; color: var(--muted);
    border-top: 1px solid var(--line-soft);
}

/* ---------- 14 Kart / istatistik ---------- */
.panel { display: flex; flex-direction: column; gap: 18px; }
.panel-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    background: var(--paper); border: 1px solid var(--line-soft);
    border-radius: var(--r-lg); padding: 22px;
    box-shadow: var(--sh-1); min-width: 0;
}
.card--flush { padding: 0; overflow: hidden; }
.card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.card__head h2, .card__head h3 {
    font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em;
    display: flex; align-items: center; gap: 9px;
}
.card__head h2 svg, .card__head h3 svg { width: 16px; height: 16px; fill: var(--caramel-500); }
.card__head p { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: var(--r-lg);
    background: var(--paper); border: 1px solid var(--line-soft);
    box-shadow: var(--sh-1); transition: var(--t);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.stat::after {
    content: ''; position: absolute; inset: auto -30px -40px auto; width: 120px; height: 120px;
    border-radius: 50%; background: radial-gradient(circle, rgba(201, 127, 43, .12), transparent 70%);
    z-index: -1;
}
.stat__icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px;
    display: grid; place-items: center;
    background: var(--caramel-50); color: var(--caramel-600);
}
.stat__icon svg { width: 21px; height: 21px; fill: currentColor; }
.stat__icon--ok { background: var(--ok-bg); color: var(--ok); }
.stat__icon--warn { background: var(--warn-bg); color: var(--warn); }
.stat__icon--muted { background: var(--cream-2); color: var(--bean-400); }
.stat__body { min-width: 0; }
.stat__body b {
    display: block; font-family: var(--font-num); font-size: 1.75rem; font-weight: 700;
    line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat__body span { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.hero-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
    padding: 26px; border-radius: var(--r-xl);
    background: linear-gradient(155deg, var(--bean-800), var(--bean-900) 60%, #150E0A);
    color: var(--cream); border: 1px solid rgba(255, 255, 255, .07);
}
.hero-card::before {
    content: ''; position: absolute; inset: -40% -10% auto auto; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(221, 154, 69, .3), transparent 62%); z-index: -1;
}
.hero-card__body { flex: 1; min-width: 240px; }
.hero-card__body h2 { font-size: 1.34rem; letter-spacing: -.02em; margin-bottom: 8px; color: var(--cream); }
.hero-card__body p { color: rgba(251, 246, 238, .64); font-size: .88rem; max-width: 460px; }
.hero-card__link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 9px 14px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    font-size: .8rem; font-weight: 700; font-family: var(--font-num);
    color: var(--caramel-200); text-decoration: none; word-break: break-all;
}
.hero-card__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.qr-box { padding: 12px; border-radius: var(--r); background: #fff; box-shadow: var(--sh-3); flex: 0 0 auto; }
.qr-box img { width: 150px; height: 150px; border-radius: 8px; }
.qr-box--empty {
    width: 174px; height: 174px; display: grid; place-items: center; text-align: center;
    padding: 16px; font-size: .76rem; color: var(--muted); background: rgba(255,255,255,.9);
}

.alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 16px; border-radius: var(--r-sm);
    font-size: .88rem; font-weight: 600; border: 1px solid;
    animation: alert-in .3s var(--ease);
}
.alert svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; margin-top: 2px; }
.alert--success { background: var(--ok-bg); color: #2B5E3D; border-color: #CBE3D2; }
.alert--danger  { background: var(--err-bg); color: #8B342B; border-color: #EFCAC5; }
.alert--warning { background: var(--warn-bg); color: #7C520D; border-color: #EFDBAF; }
.alert--info    { background: var(--info-bg); color: #2A5266; border-color: #C9DEE9; }
@keyframes alert-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: var(--pill);
    border: 1.5px solid var(--line); background: var(--paper);
    font-size: .79rem; font-weight: 700; color: var(--ink-2); text-decoration: none;
    transition: var(--t); cursor: pointer;
}
.chip:hover { border-color: var(--bean-300); }
.chip.is-active { background: var(--bean-800); border-color: var(--bean-800); color: var(--cream); }
.chip .cnt { opacity: .55; font-variant-numeric: tabular-nums; }

.info-list { display: grid; gap: 1px; border-radius: var(--r-sm); overflow: hidden; background: var(--line-soft); }
.info-list div {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 11px 14px; background: var(--paper); font-size: .85rem;
}
.info-list dt, .info-list span { color: var(--muted); font-weight: 600; }
.info-list dd, .info-list b { font-weight: 700; color: var(--ink); word-break: break-all; text-align: right; }

/* ---------- 15 Tablo ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th {
    padding: 11px 14px; text-align: left;
    font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); background: var(--cream-2);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table th:first-child { border-top-left-radius: var(--r-sm); }
.data-table th:last-child { border-top-right-radius: var(--r-sm); }
.data-table td { padding: 12px 14px; font-size: .88rem; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.data-table tbody tr { transition: background var(--t); }
.data-table tbody tr:hover { background: var(--caramel-50); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.is-out td { opacity: .55; }
.data-table .cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.data-table .cell-main img, .data-table .thumb {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; object-fit: cover;
    background: linear-gradient(145deg, var(--caramel-100), var(--cream-2));
    display: grid; place-items: center; color: var(--caramel-500); font-weight: 800;
}
.data-table .cell-main strong { display: block; font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.data-table .cell-main small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.data-table .cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-now { font-weight: 700; color: var(--caramel-600); }
.price-old { display: block; font-size: .76rem; color: var(--bean-300); text-decoration: line-through; }

/* ---------- 16 Etiket ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: var(--pill);
    font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    white-space: nowrap;
}
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--err { background: var(--err-bg); color: var(--err); }
.pill--off { background: var(--caramel-500); color: #fff; }
.pill--soft { background: var(--cream-2); color: var(--ink-2); }

/* ---------- 17 Modal ---------- */
.modal {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; padding: 18px;
    background: rgba(28, 20, 16, .55); backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; animation: fade .2s var(--ease); }
.modal__card {
    width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
    background: var(--paper); border-radius: var(--r-lg); padding: 24px;
    box-shadow: var(--sh-3); animation: rise .28s var(--ease);
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal__head h2 { font-size: 1.14rem; }
.modal__close {
    width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--cream-2); color: var(--ink-2); display: grid; place-items: center; transition: var(--t);
}
.modal__close:hover { background: var(--err-bg); color: var(--err); }
.modal__close svg { width: 15px; height: 15px; fill: currentColor; }
.modal .form-grid { grid-template-columns: 1fr 1fr; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 18 Giriş ---------- */
.login-body {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(80% 60% at 15% 10%, rgba(221, 154, 69, .35), transparent 60%),
        radial-gradient(70% 60% at 90% 90%, rgba(233, 179, 106, .14), transparent 62%),
        linear-gradient(170deg, var(--bean-900), #150E0A);
}
.login-card {
    width: 100%; max-width: 404px; padding: 34px 30px 28px;
    background: var(--paper); border-radius: var(--r-xl);
    box-shadow: var(--sh-3); border: 1px solid var(--line-soft);
}
.login-card__brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.login-card__brand .brand__mark { width: 56px; height: 56px; flex-basis: 56px; margin-bottom: 14px; }
.login-card__brand .brand__mark img { width: 32px; height: 32px; }
.login-card__brand h1 { font-size: 1.45rem; letter-spacing: .02em; }
.login-card__brand p { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.login-card .field { margin-bottom: 14px; }
.login-card__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); text-align: center; }
.login-card__foot a { font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.login-card__foot a:hover { color: var(--caramel-600); }

/* ---------- 19 Duyarlı ---------- */
@media (max-width: 1100px) {
    .sidebar { transform: translateX(-100%); }
    .nav-toggle:checked ~ .sidebar { transform: none; box-shadow: var(--sh-3); }
    .admin-shell { margin-left: 0; }
    .topbar__burger { display: inline-grid; }
}
@media (max-width: 860px) {
    .menu-grid { grid-template-columns: 1fr; }
    .review-list { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: repeat(3, 1fr); }
    .gallery__grid a:first-child { grid-column: span 2; grid-row: span 2; }
    .topbar { padding: 13px 16px; }
    .topbar__title h1 { font-size: 1.08rem; }
    .topbar__title p { display: none; }
    .admin-main { padding: 18px 16px 32px; }
    .admin-foot { padding: 14px 16px 20px; }
    .modal .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .site-head__inner { padding: 10px 16px; }
    .brand__text strong { font-size: 1.02rem; }
    .hero { padding: 30px 16px 38px; border-radius: 0 0 26px 26px; }
    .hero__rating { margin-top: 18px; font-size: .76rem; padding: 8px 13px; }
    .menu-wrap { padding: 0 16px; }
    .menu-toolbar { top: 63px; padding: 8px 10px 6px; border-radius: var(--r); }
    .dish { padding: 12px; gap: 12px; border-radius: 22px; }
    .dish__thumb { flex-basis: 74px; width: 74px; height: 74px; border-radius: 16px; }
    .dish__name { font-size: 1rem; }
    .dish__price b { font-size: 1rem; }
    .gallery__grid { gap: 8px; }
    .card { padding: 18px 16px; border-radius: var(--r); }
    .hero-card { padding: 20px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 15px; gap: 12px; flex-direction: column; align-items: flex-start; }
    .stat__body b { font-size: 1.45rem; }
    .qr-box img { width: 120px; height: 120px; }
    .login-card { padding: 26px 20px 22px; }
    .notice { flex-direction: column; gap: 12px; }
    .rating-card { gap: 14px; }
    .rating-card__score { border-right: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
