/*
 * Berrak — RestoLand QR menü teması (Tema SDK v1)
 * Sakin, aydınlık, sistem yazı tipli bir arayüz: büyük başlık, buzlu cam çubuklar,
 * gruplu liste, büyük görselli öne çıkan kartları. Çekirdek UI (.rl-*) da bu dille boyanır.
 *
 * Ayarlar → değişkenler: --rl-tint, --rl-background, --rl-surface, --rl-text (+ --rl-on-tint).
 * Türetilmiş tonlar --b-* (color-mix; desteklemeyen tarayıcıda sabit yedekler).
 */

/* ---------- 1. Değişkenler ---------- */
:root {
    --b-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --b-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

    --b-bg: var(--rl-background, #f5f5f7);
    --b-surface: var(--rl-surface, #ffffff);
    --b-label: var(--rl-text, #1d1d1f);
    --b-tint: var(--rl-tint, #0071e3);
    --b-on-tint: var(--rl-on-tint, #ffffff);

    /* Yedek tonlar (varsayılan palet için) */
    --b-secondary: #6e6e73;
    --b-fill: rgba(118, 118, 128, .12);
    --b-fill-2: rgba(118, 118, 128, .2);
    --b-sep: rgba(60, 60, 67, .16);
    --b-tint-soft: rgba(0, 113, 227, .1);
    --b-tint-ink: #0066cc;
    --b-glass: rgba(245, 245, 247, .78);
    --b-ink-glass: rgba(29, 29, 31, .88);
    --b-red: #d70015;
    --b-green: #248a3d;

    --b-ease: cubic-bezier(.32, .72, 0, 1);
    --b-bar-h: calc(44px + env(safe-area-inset-top, 0px));
    --b-nav-h: 56px;

    --b-r-xl: 26px;
    --b-r-lg: 20px;
    --b-r-md: 14px;
    --b-r-sm: 10px;

    /* Çekirdek UI: çekmece, sepet çubuğu, düğmeler */
    --rl-primary: var(--b-tint);
    --rl-on-primary: var(--b-on-tint);
    --rl-font-family: var(--b-font);
    --rl-radius: var(--b-r-lg);
    --rl-muted: var(--b-secondary);
    --rl-border: var(--b-sep);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
    :root {
        --b-secondary: color-mix(in srgb, var(--b-label) 64%, var(--b-surface));
        --b-fill: color-mix(in srgb, var(--b-label) 7%, transparent);
        --b-fill-2: color-mix(in srgb, var(--b-label) 12%, transparent);
        --b-sep: color-mix(in srgb, var(--b-label) 13%, transparent);
        --b-tint-soft: color-mix(in srgb, var(--b-tint) 11%, transparent);
        --b-tint-ink: color-mix(in srgb, var(--b-tint) 84%, var(--b-label));
        --b-glass: color-mix(in srgb, var(--b-bg) 78%, transparent);
        --b-ink-glass: color-mix(in srgb, var(--b-label) 88%, transparent);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --b-glass: var(--b-bg); --b-ink-glass: var(--b-label); }
}

html.b-radius-medium { --b-r-xl: 20px; --b-r-lg: 16px; --b-r-md: 12px; --b-r-sm: 9px; }
html.b-radius-small { --b-r-xl: 12px; --b-r-lg: 10px; --b-r-md: 8px; --b-r-sm: 6px; }

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--b-bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body.b-body {
    margin: 0;
    min-height: 100vh;
    background: var(--b-bg);
    color: var(--b-label);
    font: 400 17px/1.47 var(--b-font);
    letter-spacing: -.012em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; }

.b-shell { overflow-x: clip; }

.b-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.b-i { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }

.b-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible { outline: 3px solid var(--b-tint-ink); outline-offset: 2px; }
.b-main:focus { outline: none; }

.b-skip {
    position: absolute;
    left: 12px; top: -80px;
    z-index: 80;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--b-label);
    color: var(--b-bg);
    font-weight: 600;
    text-decoration: none;
}
.b-skip:focus { top: 12px; }

.b-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}
html.b-layout-cards .b-wrap { max-width: 1120px; }

/* ---------- 3. Kaydırınca beliren başlık çubuğu ---------- */
.b-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    height: var(--b-bar-h);
    padding: env(safe-area-inset-top, 0px) 64px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
html.b-scrolled .b-bar {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility 0s;
}
.b-bar__title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--b-label);
    font: 600 17px/1.2 var(--b-font);
    letter-spacing: -.02em;
    text-decoration: none;
}
html.b-no-bar .b-bar { display: none; }

/* ---------- 4. Hero ---------- */
.b-hero {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 52px max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px));
    text-align: center;
}
.b-hero--cover { padding-top: 12px; }
html.b-layout-cards .b-hero { max-width: 1120px; }

.b-lang { position: absolute; top: 12px; right: max(16px, env(safe-area-inset-right, 0px)); z-index: 2; }
.b-hero--cover .b-lang { top: 24px; right: max(28px, env(safe-area-inset-right, 0px)); }

.b-seg {
    display: inline-flex;
    gap: 2px;
    margin: 0;
    padding: 2px;
    list-style: none;
    border-radius: 10px;
    background: var(--b-fill);
}
.b-hero--cover .b-seg {
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
}
.b-seg__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--b-label);
    font: 600 13px/1 var(--b-font);
    letter-spacing: .01em;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease;
}
.b-hero--cover .b-seg__item { color: #1d1d1f; }
.b-seg__item[aria-current="true"] {
    background: var(--b-surface);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
}
.b-hero--cover .b-seg__item[aria-current="true"] { background: #fff; }

.b-hero__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 380px;
    width: 100%;
    border-radius: var(--b-r-xl);
    background: var(--b-fill);
}
.b-hero__cover img { width: 100%; height: 100%; object-fit: cover; }

.b-hero__body { max-width: 600px; margin: 0 auto; }

.b-hero__icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: 23%;
    background: var(--b-tint);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 60%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 28px rgba(0, 0, 0, .1);
}
.b-hero--cover .b-hero__icon {
    margin-top: -46px;
    box-shadow: 0 0 0 4px var(--b-bg), 0 12px 28px rgba(0, 0, 0, .14);
}
.b-hero__initial {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--b-on-tint);
    font: 600 42px/1 var(--b-font-display);
    letter-spacing: -.02em;
}
.b-hero__icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--b-surface);
}

.b-hero__name {
    font: 700 34px/1.1 var(--b-font-display);
    letter-spacing: -.026em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.b-hero__tagline {
    margin-top: 6px;
    color: var(--b-secondary);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.016em;
}
.b-hero__desc {
    max-width: 34em;
    margin: 12px auto 0;
    color: var(--b-secondary);
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -.01em;
    text-wrap: pretty;
}
.b-hero__venue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    color: var(--b-secondary);
    font-size: 13px;
    font-weight: 500;
}
.b-hero__venue .b-i { color: var(--b-tint); }

.b-quick {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 440px;
    margin: 22px auto 0;
    padding: 0;
    list-style: none;
}
.b-quick li { flex: 1 1 0; min-width: 0; max-width: 108px; }
.b-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 62px;
    padding: 0 6px;
    border-radius: var(--b-r-md);
    background: var(--b-surface);
    color: var(--b-tint-ink);
    font: 500 12px/1.2 var(--b-font);
    letter-spacing: 0;
    text-decoration: none;
    transition: background .2s ease, transform .3s var(--b-ease);
}
.b-quick__dot { display: flex; font-size: 21px; }
.b-quick__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-quick__item:active { background: var(--b-fill-2); transform: scale(.96); }

/* ---------- 5. Duyuru ve arama ---------- */
.b-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: var(--b-r-lg);
    background: var(--b-surface);
}
.b-note__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--b-tint);
    color: var(--b-on-tint);
    font-size: 16px;
}
.b-note__text { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }

.b-search { position: relative; margin-top: 24px; }
.b-search__icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--b-secondary);
    font-size: 17px;
    pointer-events: none;
}
.b-search__input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px 0 36px;
    border: 0;
    border-radius: var(--b-r-sm);
    background: var(--b-fill-2);
    color: var(--b-label);
    font: 400 17px/1 var(--b-font);
    letter-spacing: -.016em;
    -webkit-appearance: none;
    appearance: none;
    transition: background .2s ease, box-shadow .2s ease;
}
.b-search__input::placeholder { color: var(--b-secondary); opacity: 1; }
.b-search__input:focus { outline: none; background: var(--b-surface); box-shadow: 0 0 0 3px var(--b-tint-soft), 0 0 0 1px var(--b-tint); }
.b-search__input::-webkit-search-decoration { -webkit-appearance: none; }

.b-empty {
    padding: 56px 16px 24px;
    color: var(--b-secondary);
    font-size: 17px;
    text-align: center;
}

/* ---------- 6. Kategori çubuğu (buzlu cam, yapışkan) ---------- */
.b-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 16px;
    background: var(--b-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 transparent;
    transition: box-shadow .2s ease;
}
html.b-js:not(.b-no-bar) .b-nav { top: var(--b-bar-h); }
.b-nav.is-stuck { box-shadow: 0 1px 0 var(--b-sep); }

.b-nav__list {
    display: flex;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.b-nav__list::-webkit-scrollbar { display: none; }
html.b-layout-cards .b-nav__list { max-width: 1120px; }
.b-nav__list li { flex: none; }

.b-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--b-fill);
    color: var(--b-label);
    font: 500 15px/1 var(--b-font);
    letter-spacing: -.012em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}
.b-pill:active { background: var(--b-fill-2); }
.b-pill.is-active { background: var(--b-label); color: var(--b-bg); }

/* ---------- 7. Bölümler ---------- */
.b-section { margin-top: 36px; }
.b-section__title {
    font: 700 24px/1.2 var(--b-font-display);
    letter-spacing: -.022em;
    overflow-wrap: anywhere;
}
.b-featured .b-section__title,
.b-venues .b-section__title { margin-bottom: 12px; }

.b-cat[data-rl-category] { scroll-margin-top: calc(var(--b-bar-h) + var(--b-nav-h) + 12px); }
html.b-no-bar .b-cat[data-rl-category] { scroll-margin-top: calc(var(--b-nav-h) + 12px); }

.b-cat__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.b-cat__count { flex: none; color: var(--b-secondary); font-size: 15px; }
.b-cat__desc {
    margin: -4px 0 14px;
    color: var(--b-secondary);
    font-size: 15px;
    line-height: 1.45;
}

/* Ortak ürün öğeleri */
.b-open {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.b-open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.b-open:focus-visible { outline: none; }
.b-open:focus-visible::after { outline: 3px solid var(--b-tint-ink); outline-offset: -3px; }

.b-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    color: var(--b-secondary);
    font-size: 13px;
    line-height: 1.35;
}
.b-meta span + span::before { content: "·"; margin-right: 6px; }

.b-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}
.b-tag { display: inline-flex; align-items: center; gap: 4px; }
.b-tag--spicy { color: var(--b-red); }
.b-tag--diet { color: var(--b-green); }
.b-tag__flames { display: inline-flex; font-size: 12px; }

.b-allergens {
    margin-top: 4px;
    color: var(--b-secondary);
    font-size: 12px;
    line-height: 1.45;
}
.b-allergens__label { font-weight: 600; }

.b-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 10px;
}
.b-price {
    color: var(--b-label);
    font-size: 17px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.016em;
    white-space: nowrap;
}
.b-price--ask { color: var(--b-secondary); font-size: 15px; font-weight: 500; }

/* "Ekle": gri zemin, vurgu renkli yazı (çekirdek .rl-add) */
.rl-add.b-get {
    position: relative;
    z-index: 2;
    min-width: 72px;
    min-height: 32px;
    margin-left: auto;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--b-fill);
    color: var(--b-tint-ink);
    font: 600 15px/1 var(--b-font);
    letter-spacing: -.01em;
    transition: transform .35s var(--b-ease), background .2s ease, color .2s ease;
}
.rl-add.b-get::before { content: ""; position: absolute; inset: -6px -4px; }
.rl-add.b-get:active { transform: scale(.92); background: var(--b-fill-2); }
.rl-add.b-get.rl-added { transform: scale(1.06); background: var(--b-tint); color: var(--b-on-tint); }

.b-soldout {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--b-fill);
    color: var(--b-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.b-media {
    position: relative;
    overflow: hidden;
    background: var(--b-fill);
}
.b-media img { width: 100%; height: 100%; object-fit: cover; }
.b-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
    pointer-events: none;
}
.is-soldout .b-media img { filter: grayscale(1); opacity: .5; }
.is-soldout .b-price { color: var(--b-secondary); }

/* ---------- 8. Gruplu liste (layout=list) ---------- */
.b-group {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    border-radius: var(--b-r-lg);
    background: var(--b-surface);
}

.b-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    transition: background .2s ease;
}
.b-row + .b-row::before,
.b-venue + .b-venue::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    right: 0;
    height: 1px;
    background: var(--b-sep);
    transform: scaleY(.5);
    transform-origin: top;
}
@media (max-resolution: 1dppx) {
    .b-row + .b-row::before, .b-venue + .b-venue::before { transform: none; }
}
.b-row:has(.b-open:active) { background: var(--b-fill); }

.b-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b-row__title {
    font: 600 17px/1.3 var(--b-font);
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
.b-row__desc {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 2px;
    color: var(--b-secondary);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -.01em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}
.b-row__media {
    flex: none;
    width: 100px;
    height: 100px;
    border-radius: var(--b-r-md);
}
.b-row__media.is-empty { display: none; }

/* ---------- 9. Kart ızgarası (layout=cards) ---------- */
.b-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.b-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--b-r-lg);
    background: var(--b-surface);
    transition: transform .4s var(--b-ease), box-shadow .4s var(--b-ease);
}
.b-card__media { aspect-ratio: 1 / 1; }
.b-card__media img { position: absolute; inset: 0; }
.b-card__media:has(img) .b-mono { visibility: hidden; }
.b-mono {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--b-secondary);
    font: 300 52px/1 var(--b-font-display);
    letter-spacing: -.02em;
}
.b-card__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; }
.b-card__title {
    display: -webkit-box;
    overflow: hidden;
    font: 600 15px/1.3 var(--b-font);
    letter-spacing: -.016em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}
.b-card__desc {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 2px;
    color: var(--b-secondary);
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}
.b-card .b-tags { font-size: 12px; }
.b-card .b-foot { margin-top: auto; padding-top: 10px; }
.b-card .b-price { font-size: 16px; }
.b-card:has(.b-open:active) { transform: scale(.97); }

/* ---------- 10. Öne çıkanlar (büyük görselli kartlar) ---------- */
.b-featured__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 320px);
    gap: 12px;
    margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding: 2px max(16px, env(safe-area-inset-left, 0px)) 12px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.b-featured__rail::-webkit-scrollbar { display: none; }
.b-featured__item { display: flex; scroll-snap-align: start; }

.b-today {
    position: relative;
    isolation: isolate;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--b-r-xl);
    background: var(--b-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .07);
    transition: transform .4s var(--b-ease), box-shadow .4s var(--b-ease);
}
.b-today--image { aspect-ratio: 4 / 5; background: #1d1d1f; }
.b-today__media { position: absolute; inset: 0; z-index: -2; }
.b-today__media img { width: 100%; height: 100%; object-fit: cover; }

.b-today__body { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.b-today--text .b-today__body { flex: 1; min-height: 210px; }
.b-today--text .b-foot { margin-top: auto; padding-top: 12px; }

/* Görselin alt kısmında yumuşak cam + koyulaştırma: yazı her görselde okunur */
.b-today--image .b-today__body { padding-top: 72px; color: #fff; }
.b-today--image .b-today__body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .5) 52%, rgba(0, 0, 0, 0) 100%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(to top, #000 58%, transparent);
    mask-image: linear-gradient(to top, #000 58%, transparent);
}
.b-today .b-open::after { inset: -2000px; }

.b-today__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    color: var(--b-tint-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.b-today__eyebrow span + span::before { content: "·"; margin-right: 6px; }
.b-today--image .b-today__eyebrow { color: rgba(255, 255, 255, .78); }
.b-today__title {
    font: 700 22px/1.18 var(--b-font-display);
    letter-spacing: -.022em;
    overflow-wrap: anywhere;
}
.b-today__desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--b-secondary);
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.b-today--image .b-today__desc { color: rgba(255, 255, 255, .86); }
.b-today .b-foot { margin-top: 10px; }
.b-today--image .b-price,
.b-today--image .b-price--ask { color: #fff; }
.b-today--image .rl-add.b-get {
    background: rgba(255, 255, 255, .22);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.b-today--image .rl-add.b-get.rl-added { background: #fff; color: #1d1d1f; }
.b-today--image .b-soldout { background: rgba(255, 255, 255, .2); color: #fff; }
.b-today:has(.b-open:active) { transform: scale(.97); }

/* ---------- 11. Şubeler ---------- */
.b-venue {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}
.b-venue__text { min-width: 0; }
.b-venue__name { font: 600 17px/1.3 var(--b-font); letter-spacing: -.02em; overflow-wrap: anywhere; }
.b-venue__addr, .b-venue__phone { margin-top: 2px; color: var(--b-secondary); font-size: 15px; line-height: 1.4; }
.b-venue__phone { font-variant-numeric: tabular-nums; }
.b-venue.is-current .b-venue__name::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--b-green);
    vertical-align: .12em;
}
.b-venue__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font: 600 15px/1 var(--b-font);
    letter-spacing: -.01em;
    text-decoration: none;
    transition: transform .3s var(--b-ease), filter .2s ease;
}
.b-btn:active { transform: scale(.96); }
.b-btn--tinted { background: var(--b-tint-soft); color: var(--b-tint-ink); }
.b-btn--filled { background: var(--b-tint); color: var(--b-on-tint); }

/* ---------- 12. Alt bilgi ---------- */
.b-footer {
    margin-top: 48px;
    padding: 20px 0 8px;
    border-top: 1px solid var(--b-sep);
    color: var(--b-secondary);
    font-size: 12px;
    line-height: 1.5;
}
.b-footer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 16px;
    padding: 0 16px;
    border-radius: var(--b-r-lg);
    background: var(--b-surface);
    color: var(--b-label);
    font-size: 17px;
    letter-spacing: -.016em;
    text-decoration: none;
}
.b-footer__link .b-i { color: var(--b-secondary); font-size: 14px; }
.b-footer__link:active { background: var(--b-fill-2); }
.b-footer__notice { margin-bottom: 10px; }
.b-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
}
.b-footer__meta p { display: flex; flex-wrap: wrap; gap: 0 6px; }
.b-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: var(--b-tint-ink);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

/* Arama sürerken öne çıkanlar gizlenir (filtrelemeyi çekirdek yapar) */
html.b-searching .b-featured { display: none; }

/* ---------- 13. Çekirdek UI: sepet çubuğu, alt sayfalar, düğmeler ---------- */
.rl-cartbar {
    left: 50%;
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: min(calc(100% - 32px), 440px);
    min-height: 60px;
    margin: 0;
    padding: 0 22px 0 10px;
    gap: 12px;
    border-radius: 999px;
    background: var(--b-ink-glass);
    color: var(--b-bg);
    font: 600 17px/1.2 var(--b-font);
    letter-spacing: -.016em;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .08);
    transform: translateX(-50%);
    animation: b-rise .5s var(--b-ease);
    transition: transform .35s var(--b-ease);
}
.rl-cartbar:active { transform: translateX(-50%) scale(.97); }
.rl-cartbar:focus-visible { outline: 3px solid var(--b-tint); outline-offset: 3px; }
.rl-cartbar__count {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: var(--b-tint);
    color: var(--b-on-tint);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}
.rl-cartbar__label { margin-right: auto; }
.rl-cartbar__total { font-variant-numeric: tabular-nums; }

.rl-backdrop {
    background: rgba(0, 0, 0, .3);
    animation: b-fade .3s ease;
}

.rl-drawer {
    max-height: 90vh;
    padding-top: 6px;
    border-radius: var(--b-r-xl) var(--b-r-xl) 0 0;
    background: var(--b-surface);
    box-shadow: 0 -12px 44px rgba(0, 0, 0, .16);
    animation: b-sheet .5s var(--b-ease);
}
.rl-drawer::before {
    content: "";
    flex: none;
    width: 36px;
    height: 5px;
    margin: 0 auto;
    border-radius: 3px;
    background: var(--b-fill-2);
}
.rl-drawer__head { padding: 8px 14px 6px 20px; border-bottom: 0; }
.rl-drawer__title {
    font: 700 22px/1.25 var(--b-font-display);
    letter-spacing: -.022em;
}
.rl-drawer__body { padding: 8px 20px 20px; }
.rl-drawer__foot { border-top: 1px solid var(--b-sep); }

.rl-icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--b-fill);
    color: var(--b-secondary);
    font-size: 22px;
    font-weight: 500;
}
.rl-icon-btn::before { content: ""; position: absolute; inset: -6px; }
.rl-icon-btn:focus-visible { outline: 3px solid var(--b-tint); outline-offset: 2px; }

.rl-btn {
    min-height: 50px;
    border-radius: var(--b-r-md);
    font: 600 17px/1.2 var(--b-font);
    letter-spacing: -.016em;
    transition: transform .3s var(--b-ease);
}
.rl-btn:active { transform: scale(.97); }
.rl-btn--primary { background: var(--b-tint); color: var(--b-on-tint); }
.rl-btn--ghost { border-color: transparent; background: var(--b-fill); color: var(--b-tint-ink); }

.rl-pd__img {
    max-height: min(340px, 38vh);
    margin-bottom: 16px;
    border-radius: var(--b-r-lg);
    background: var(--b-fill);
}
.rl-pd__portion { color: var(--b-secondary); font-size: 15px; }
.rl-pd__desc { color: var(--b-secondary); font-size: 17px; line-height: 1.47; }
.rl-pd__price { margin: 6px 0 18px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rl-pd__tags li { border: 0; background: var(--b-fill); font-size: 13px; font-weight: 500; }
.rl-pd__variants legend { font-size: 15px; font-weight: 600; color: var(--b-secondary); }
.rl-variant {
    min-height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--b-r-md);
    background: var(--b-fill);
    transition: background .2s ease, box-shadow .2s ease;
}
.rl-variant input { accent-color: var(--b-tint); }
.rl-variant:has(input:checked) { background: var(--b-tint-soft); box-shadow: inset 0 0 0 2px var(--b-tint); }
.rl-variant__price { font-variant-numeric: tabular-nums; }
.rl-pd__allergens h3 { font-size: 15px; font-weight: 600; }
.rl-pd__allergens li { color: var(--b-secondary); font-size: 15px; }

.rl-line { border-bottom-color: var(--b-sep); }
.rl-line__name { letter-spacing: -.016em; }
.rl-qty__btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: var(--b-fill);
    color: var(--b-tint-ink);
    font-size: 20px;
}
.rl-line__remove { color: var(--b-red); text-decoration: none; font-size: 15px; }
.rl-total { font-weight: 600; }
.rl-total strong { font-variant-numeric: tabular-nums; }
.rl-note { color: var(--b-secondary); }
.rl-waiter { font-family: var(--b-font); }

@keyframes b-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes b-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes b-rise { from { opacity: 0; transform: translateX(-50%) translateY(24px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes b-pop { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 14. Geniş ekran ---------- */
@media (min-width: 600px) {
    .b-row__media { width: 116px; height: 116px; }
    .b-venue { flex-direction: row; align-items: center; justify-content: space-between; }
    .b-venue__actions { flex: none; }
}

@media (min-width: 700px) {
    .rl-drawer { border-radius: var(--b-r-xl); padding-top: 8px; animation: b-pop .25s ease; }
    .rl-drawer::before { display: none; }
}

@media (min-width: 760px) {
    .b-hero { padding-top: 72px; }
    .b-hero--cover { padding-top: 16px; }
    .b-hero__name { font-size: 48px; letter-spacing: -.032em; }
    .b-hero__tagline { font-size: 19px; }
    .b-hero__desc { font-size: 17px; }
    .b-section { margin-top: 48px; }
    .b-section__title { font-size: 28px; letter-spacing: -.026em; }
    .b-featured__rail {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        margin: 0;
        padding: 2px 0 8px;
        overflow: visible;
    }
    .b-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
    .b-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    html.b-layout-cards .b-featured__rail { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
}

@media (hover: hover) and (pointer: fine) {
    .b-row:has(.b-open:hover) { background: var(--b-fill); }
    .b-card:has(.b-open:hover),
    .b-today:has(.b-open:hover) { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 18px 40px rgba(0, 0, 0, .1); }
    .b-pill:hover:not(.is-active) { background: var(--b-fill-2); }
    .rl-add.b-get:hover { background: var(--b-fill-2); }
    .b-quick__item:hover, .b-footer__link:hover { background: var(--b-fill); }
    .b-btn:hover { filter: brightness(.96); }
}

/* ---------- 15. Erişilebilirlik, yazdırma ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (forced-colors: active) {
    .b-group, .b-card, .b-today, .b-note, .b-quick__item, .b-footer__link, .b-pill, .rl-add.b-get, .b-btn, .b-soldout {
        border: 1px solid CanvasText;
    }
    .b-pill.is-active { outline: 2px solid Highlight; }
    .b-today--image .b-today__body::before { display: none; }
}

@media print {
    .b-bar, .b-nav, .b-search, .b-lang, .b-quick, .rl-cartbar, .rl-add, .b-footer__top { display: none !important; }
    body.b-body { background: #fff; color: #000; padding: 0; }
    .b-group, .b-card, .b-today { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
    .b-featured__rail { display: block; overflow: visible; }
}
