/*
 * Bambu — RestoLand QR menü teması (Tema SDK v1, çekirdek v1.1)
 * Yan kategori şeridi + resimli ürün satırları / karoları. Yalnız sistem fontları, uzak kaynak yok.
 * Renkler ayarlardan gelir (--rl-primary, --rl-accent, --rl-background, --rl-surface, --rl-text, --rl-rail);
 * ikincil tonlar bunlardan türetilir, böylece işletmenin seçtiği renklerde de okunabilirlik korunur.
 */

/* ---------- Değişkenler ---------- */
:root {
    --rl-radius: 16px;
    --rl-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --b-head-font: var(--rl-font-family);
    --b-accent: var(--rl-accent, #C2410C);
    --b-rail: var(--rl-rail, #F1EADD);
    --b-on-rail: var(--rl-on-rail, var(--rl-text));
    --rl-muted: color-mix(in srgb, var(--rl-text) 70%, var(--rl-background));
    --rl-border: color-mix(in srgb, var(--rl-text) 14%, var(--rl-background));
    --b-soft: color-mix(in srgb, var(--rl-text) 5%, var(--rl-background));
    --b-primary-soft: color-mix(in srgb, var(--rl-primary) 12%, var(--rl-surface));
    --b-primary-ink: color-mix(in srgb, var(--rl-primary) 78%, var(--rl-text));
    --b-accent-soft: color-mix(in srgb, var(--b-accent) 12%, var(--rl-surface));
    --b-accent-ink: color-mix(in srgb, var(--b-accent) 72%, var(--rl-text));
    --b-shadow: 0 1px 2px rgba(20, 16, 12, .06), 0 4px 14px rgba(20, 16, 12, .05);
    /* yapışkan arama çubuğunun yüksekliği: çekirdek [data-rl-sticky] ölçüp <html> üstüne yazar; bu, JS yokken yedek */
    --rl-sticky-offset: 61px;
    --b-rail-w: 88px;
    --b-max: 1240px;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    :root {
        --rl-muted: #5D5852;
        --rl-border: #E2DBCE;
        --b-soft: #F3EFE7;
        --b-primary-soft: #E6EFEB;
        --b-primary-ink: #1C4F3F;
        --b-accent-soft: #F8E7DF;
        --b-accent-ink: #933210;
    }
}

html.b-font-rounded {
    --rl-font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", Nunito, "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
}

html.b-font-serif {
    --b-head-font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.b-body {
    margin: 0;
    min-height: 100vh;
    background: var(--rl-background);
    color: var(--rl-text);
    font: 15px/1.45 var(--rl-font-family);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--rl-text);
    outline-offset: 2px;
}

.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;
}

.b-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.b-i {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -.2em;
}

.b-skip {
    position: absolute;
    z-index: 90;
    left: 12px;
    top: -60px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--rl-text);
    color: var(--rl-background);
    font-weight: 700;
    text-decoration: none;
}

.b-skip:focus {
    top: 12px;
}

/* ---------- Üst bilgi ---------- */
.b-head {
    background: var(--rl-surface);
    border-bottom: 1px solid var(--rl-border);
}

.b-head__cover {
    height: 112px;
    overflow: hidden;
    background: var(--rl-primary);
}

.b-head__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-head__inner {
    max-width: var(--b-max);
    margin: 0 auto;
    padding: 14px 16px 12px;
}

.b-head__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b-logo {
    position: relative;
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--rl-primary);
    color: var(--rl-on-primary);
    box-shadow: 0 0 0 3px var(--rl-surface);
}

.b-head--cover .b-logo {
    margin-top: -38px;
    align-self: flex-start;
}

.b-logo__initial {
    font: 800 28px/1 var(--b-head-font);
}

.b-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-head__titles {
    flex: 1;
    min-width: 0;
}

.b-head__name {
    margin: 0;
    font: 800 21px/1.2 var(--b-head-font);
    letter-spacing: -.01em;
}

.b-head__tagline {
    margin: 2px 0 0;
    color: var(--rl-muted);
    font-size: 14px;
}

.b-head__desc {
    margin: 10px 0 0;
    color: var(--rl-muted);
    font-size: 14px;
    max-width: 70ch;
}

.b-lang ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--rl-border);
    border-radius: 999px;
    background: var(--rl-background);
}

.b-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: var(--rl-muted);
}

.b-lang a[aria-current="true"] {
    background: var(--rl-text);
    color: var(--rl-background);
}

.b-chips {
    display: flex;
    gap: 8px;
    margin: 12px -16px 0;
    padding: 0 16px 2px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.b-chips::-webkit-scrollbar {
    display: none;
}

.b-chips:empty {
    display: none;
}

.b-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rl-border);
    border-radius: 999px;
    background: var(--rl-background);
    color: var(--rl-text);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.b-chip--venue {
    border-color: transparent;
    background: var(--b-primary-soft);
    color: var(--b-primary-ink);
    font-weight: 750;
}

.b-announce {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    background: var(--b-accent);
    color: var(--rl-on-accent, #fff);
    font-weight: 650;
}

.b-announce p {
    margin: 0;
    max-width: var(--b-max);
}

/* ---------- Yapışkan arama çubuğu ---------- */
.b-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 8px 12px;
    background: var(--rl-background);
    border-bottom: 1px solid var(--rl-border);
}

.b-search {
    position: relative;
    max-width: var(--b-max);
    margin: 0 auto;
}

.b-search__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rl-muted);
    pointer-events: none;
}

.b-search__input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--rl-border);
    border-radius: 999px;
    background: var(--rl-surface);
    color: var(--rl-text);
    font: 16px/1 var(--rl-font-family);
    -webkit-appearance: none;
    appearance: none;
}

.b-search__input::placeholder {
    color: var(--rl-muted);
    opacity: 1;
}

.b-search__input:focus-visible {
    outline: 3px solid var(--rl-primary);
    outline-offset: 0;
    border-color: transparent;
}

/* ---------- Yan şerit + içerik ---------- */
.b-layout {
    display: grid;
    grid-template-columns: var(--b-rail-w) minmax(0, 1fr);
    align-items: start;
    max-width: var(--b-max);
    margin: 0 auto;
    background: linear-gradient(to right, var(--b-rail) var(--b-rail-w), transparent var(--b-rail-w));
}

.b-rail {
    position: sticky;
    top: var(--rl-sticky-offset);
    z-index: 10;
    max-height: calc(100vh - var(--rl-sticky-offset));
    max-height: calc(100dvh - var(--rl-sticky-offset));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--b-rail);
    color: var(--b-on-rail);
    scrollbar-width: none;
}

.b-rail::-webkit-scrollbar {
    display: none;
}

.b-rail__list {
    margin: 0;
    padding: 6px 0 110px;
    list-style: none;
}

.b-rail__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 10px 6px;
    color: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease;
}

.b-rail__link:focus-visible {
    outline-offset: -3px;
}

.b-rail__link.is-active {
    background: var(--rl-background);
    color: var(--rl-text);
    font-weight: 800;
}

.b-rail__link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--rl-primary);
}

.b-rail__thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--b-primary-soft);
    color: var(--b-primary-ink);
}

.b-rail__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-rail__thumb--icon {
    background: var(--b-accent);
    color: var(--rl-on-accent, #fff);
}

.b-rail__thumb--icon .b-i {
    width: 22px;
    height: 22px;
}

.b-rail__initial {
    font: 800 18px/1 var(--b-head-font);
}

.b-rail__link.is-active .b-rail__thumb {
    box-shadow: 0 0 0 2px var(--rl-primary);
}

.b-rail__name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.b-rail__count {
    display: none;
}

.b-main {
    min-width: 0;
    padding: 0 12px 120px;
}

.b-main:focus {
    outline: none;
}

.b-main--empty {
    max-width: var(--b-max);
    margin: 0 auto;
}

/* ---------- Bölümler ---------- */
/* kaydırma payı çekirdekte: [data-rl-category] { scroll-margin-top: var(--rl-sticky-offset) } */
.b-sec {
    padding: 2px 0 14px;
}

.b-sec__head {
    position: sticky;
    top: var(--rl-sticky-offset);
    z-index: 5;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 -12px 6px;
    padding: 12px 12px 8px;
    background: var(--rl-background);
}

.b-sec__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font: 800 18px/1.25 var(--b-head-font);
    letter-spacing: -.01em;
}

.b-featured__star {
    color: var(--b-accent);
}

.b-sec__count {
    flex: none;
    color: var(--rl-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.b-sec__desc {
    margin: -2px 0 10px;
    color: var(--rl-muted);
    font-size: 13.5px;
}

.b-sec__empty {
    margin: 0;
    padding: 18px 14px;
    border: 1.5px dashed var(--rl-border);
    border-radius: var(--rl-radius);
    color: var(--rl-muted);
    font-size: 14px;
    text-align: center;
}

.b-noresults {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 36px 12px;
    color: var(--rl-muted);
    font-weight: 600;
}

.b-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 72px 24px;
    color: var(--rl-muted);
    text-align: center;
}

.b-empty .b-i {
    width: 52px;
    height: 52px;
    color: var(--rl-primary);
}

/* ---------- Ürün satırı ---------- */
.b-rows,
.b-tiles,
.b-featured__grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.b-rows {
    display: grid;
    gap: 10px;
}

.b-item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
        "media head"
        "meta meta";
    align-items: start;
    gap: 8px 12px;
    height: 100%;
    padding: 10px;
    border-radius: var(--rl-radius);
    background: var(--rl-surface);
    box-shadow: var(--b-shadow);
    transition: box-shadow .15s ease, transform .15s ease;
}

.b-item--text {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "head"
        "meta";
    padding: 12px 12px 10px;
}

.b-item > .b-media {
    grid-area: media;
}

.b-item__head {
    grid-area: head;
    min-width: 0;
    align-self: center;
}

.b-item__meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.b-item__meta > .b-tags,
.b-item__meta > .b-allergens {
    margin-top: 0;
}

.b-item__meta > .b-tags + .b-allergens {
    margin-top: 5px;
}

.b-item__name,
.b-tile__name {
    margin: 0;
    font-size: 15.5px;
    font-weight: 750;
    line-height: 1.3;
}

.b-open {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.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(--rl-text);
    outline-offset: 2px;
    border-radius: var(--rl-radius);
}

.b-item__title {
    overflow-wrap: anywhere;
}

.b-item__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--rl-muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.b-item__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-top: auto;
    padding-top: 8px;
}

.b-item__meta > .b-item__foot:first-child {
    padding-top: 0;
}

/* ---------- Görsel / yer tutucu ---------- */
.b-media {
    position: relative;
    aspect-ratio: 1;
    border-radius: calc(var(--rl-radius) - 5px);
    overflow: hidden;
    background: var(--b-primary-soft);
}

/* Görselsiz ürün: tek, sakin bir zemin üzerinde garsona söylenecek numara (görselli üründeki numara rozetiyle aynı vurgu rengi). */
.b-media--empty {
    background: var(--b-accent-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-accent) 16%, transparent);
}

.b-tile .b-media--empty {
    aspect-ratio: 5 / 2;
}

.b-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-media__ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--b-accent-ink);
}

.b-media__phnum {
    font: 800 28px/1 var(--b-head-font);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.b-media__phnum::before {
    content: "#";
    margin-right: 1px;
    font-size: .55em;
    vertical-align: .55em;
    opacity: .8;
}

.b-media__phicon.b-i {
    width: 30px;
    height: 30px;
    opacity: .75;
}

.b-num {
    position: absolute;
    left: 6px;
    top: 6px;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--b-accent);
    color: var(--rl-on-accent, #fff);
    font: 800 12px/22px var(--rl-font-family);
    font-variant-numeric: tabular-nums;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.b-num--inline {
    position: static;
    display: inline-block;
    margin-right: 6px;
    vertical-align: 1px;
    box-shadow: none;
}

.b-media__star {
    position: absolute;
    right: 6px;
    top: 6px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--rl-surface);
    color: var(--b-accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.b-media__star .b-i {
    width: 15px;
    height: 15px;
}

.b-media__soldout.rl-sold-out {
    position: absolute;
    justify-content: center;
    min-height: 0;
    border-radius: 0;
    line-height: 1.2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px;
    background: rgba(24, 20, 16, .82);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

/* Tükendi: görsel griye döner (saydamlaştırılmaz; altındaki numara karosu görünmesin). */
/* Görselsiz karoda "Tükendi" numarayı örtmesin: köşede küçük etiket. */
.b-media--empty .b-media__soldout.rl-sold-out {
    left: auto;
    right: 6px;
    bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
}

.is-soldout .b-media img {
    filter: grayscale(1) brightness(1.08) contrast(.85);
}

.is-soldout .b-item__title {
    color: var(--rl-muted);
}

/* ---------- Rozetler, alerjenler, fiyat ---------- */
.b-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.b-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.b-tag .b-i {
    width: 13px;
    height: 13px;
}

.b-tag__icons {
    display: inline-flex;
}

.b-tag__icons .b-i + .b-i {
    margin-left: -4px;
}

.b-tag--spicy {
    background: var(--b-accent-soft);
    color: var(--b-accent-ink);
}

.b-tag--diet {
    background: var(--b-primary-soft);
    color: var(--b-primary-ink);
}

.b-allergens {
    margin: 5px 0 0;
    color: var(--rl-muted);
    font-size: 12px;
    line-height: 1.4;
}

.b-allergens__label {
    font-weight: 700;
}

.b-allergen small {
    font-size: inherit;
    font-style: italic;
}

.b-price {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.2;
}

.b-price__value {
    font-size: 16.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.b-price__opts {
    color: var(--rl-muted);
    font-size: 12px;
    font-weight: 600;
}

.b-price__ask {
    align-self: flex-start;
    padding: 3px 9px;
    border: 1.5px dashed var(--rl-muted);
    border-radius: 999px;
    color: var(--rl-text);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* Çekirdek "Ekle" düğmesi (.rl-add) — kart üstü tıklama katmanının önünde */
.b-add.rl-add {
    position: relative;
    z-index: 2;
    min-height: 44px;
    padding: 0 18px;
    font-size: 14.5px;
    font-weight: 750;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--rl-primary) 30%, transparent);
}

/* Tükendi (görselsiz düzen): çekirdek etiketi (.rl-sold-out) "Ekle"nin yerinde; düğme basılmaz */
.b-soldout.rl-sold-out {
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--rl-border);
    background: var(--b-soft);
    color: var(--rl-muted);
    font-size: 13.5px;
    font-weight: 750;
}

/* ---------- Resim karoları ---------- */
.b-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.b-tiles > li {
    min-width: 0;
}

.b-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--rl-radius);
    background: var(--rl-surface);
    box-shadow: var(--b-shadow);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}

.b-tile .b-media {
    border-radius: 0;
}

.b-tile__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 8px 10px 10px;
}

.b-tile__name {
    font-size: 14.5px;
}

.b-tile .b-open {
    -webkit-line-clamp: 2;
}

.b-tile--text .b-tile__body {
    padding: 12px;
}

.b-tile .b-item__foot {
    flex-direction: column;
    align-items: stretch;
}

.b-tile .b-add.rl-add {
    width: 100%;
}

/* Öne çıkanlar: eşit, kompakt resim karoları; telefonda yana kaydırmalı şerit (bir sonraki karo görünür kalır). */
.b-featured__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 152px;
    gap: 10px;
    margin: 0 -12px;
    padding: 2px 12px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 12px;
    scrollbar-width: none;
}

.b-featured__grid::-webkit-scrollbar {
    display: none;
}

.b-featured__grid > li {
    scroll-snap-align: start;
}

.b-tile--featured .b-media {
    aspect-ratio: 4 / 3;
}

.b-tile--featured .b-media--empty {
    aspect-ratio: 3 / 1;
}

.b-tile--featured .b-item__desc {
    font-size: 12.5px;
}

.b-tile--featured .b-item__foot {
    flex-direction: row;
    align-items: center;
}

.b-tile--featured .b-add.rl-add {
    width: auto;
    padding: 0 14px;
}

.b-tile--featured {
    box-shadow: 0 0 0 2px var(--b-accent-soft), var(--b-shadow);
}

/* ---------- Şubeler ve alt bilgi ---------- */
.b-venues {
    max-width: var(--b-max);
    margin: 0 auto;
    padding: 28px 16px 8px;
    border-top: 1px solid var(--rl-border);
}

.b-venues__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font: 800 19px/1.25 var(--b-head-font);
}

.b-venues__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b-venue {
    padding: 14px;
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius);
    background: var(--rl-surface);
}

.b-venue.is-current {
    border: 2px solid var(--rl-primary);
}

.b-venue__name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.b-venue__addr,
.b-venue__phone {
    margin: 0 0 4px;
    color: var(--rl-muted);
    font-size: 14px;
}

.b-venue__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 750;
    text-decoration: none;
}

.b-btn--primary {
    background: var(--rl-primary);
    color: var(--rl-on-primary);
}

.b-btn--ghost {
    border: 1px solid var(--rl-border);
    background: var(--rl-background);
    color: var(--rl-text);
}

.b-foot {
    max-width: var(--b-max);
    margin: 0 auto;
    padding: 22px 16px calc(110px + env(safe-area-inset-bottom));
    color: var(--rl-muted);
    font-size: 13.5px;
}

.b-foot__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
}

.b-foot__kimlink,
.b-foot__top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--rl-text);
    font-weight: 750;
    text-decoration: none;
}

.b-foot__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--rl-border);
}

.b-foot__meta p {
    margin: 0;
}

/* ---------- Çekirdek arayüzü (sepet çubuğu, çekmeceler) ---------- */
.rl-cartbar {
    border-radius: 18px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--rl-primary) 35%, rgba(0, 0, 0, .3));
}

.rl-drawer {
    border-radius: 22px 22px 0 0;
}

/* Ürün çekmecesi: görsel telefonda "Ekle"yi ekran dışına itmesin. */
.rl-pd__img {
    aspect-ratio: 4 / 3;
    max-height: min(240px, 32vh);
    background: var(--b-soft);
}

/* ---------- Etkileşim ---------- */
@media (hover: hover) and (pointer: fine) {
    .b-item:hover,
    .b-tile:hover {
        box-shadow: 0 2px 4px rgba(20, 16, 12, .08), 0 10px 26px rgba(20, 16, 12, .10);
        transform: translateY(-1px);
    }

    .b-rail__link:hover {
        background: color-mix(in srgb, var(--rl-background) 55%, var(--b-rail));
    }

    .b-chip:hover,
    .b-btn--ghost:hover {
        border-color: var(--rl-muted);
    }
}

/* ---------- Duyarlı yerleşim ---------- */
@media (max-width: 380px) {
    :root {
        --b-rail-w: 76px;
    }

    .b-rail__link {
        padding: 9px 4px;
        font-size: 12px;
    }

    /* Dar şeritte kalın aktif ad satıra sığmayıp bölünüyordu: aktiflik zemin, çizgi ve görsel halkasıyla belli. */
    .b-rail__link.is-active {
        font-weight: 600;
    }

    .b-rail__thumb {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .b-main {
        padding: 0 10px 120px;
    }

    .b-sec__head {
        margin: 0 -10px 6px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .b-featured__grid {
        grid-auto-columns: 146px;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
        scroll-padding: 0 10px;
    }

    .b-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 9px;
    }

    .b-item--text {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 359px) {
    .b-tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 400px) {
    :root {
        --b-rail-w: 94px;
    }

    .b-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .b-item--text {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 640px) {
    .b-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .b-featured__grid {
        grid-auto-columns: 176px;
    }
}

@media (min-width: 768px) {
    :root {
        --b-rail-w: 216px;
    }

    .b-head__cover {
        height: 180px;
    }

    .b-head--cover .b-logo {
        margin-top: -52px;
    }

    .b-logo {
        width: 84px;
        height: 84px;
        border-radius: 24px;
        box-shadow: 0 0 0 4px var(--rl-surface);
    }

    .b-logo__initial {
        font-size: 38px;
    }

    .b-head__name {
        font-size: 28px;
    }

    .b-head__inner {
        padding: 18px 24px 16px;
    }

    .b-chips {
        flex-wrap: wrap;
        margin: 14px 0 0;
        padding: 0;
        overflow: visible;
    }

    .b-bar {
        padding: 10px 24px;
    }

    .b-rail__list {
        padding: 10px 0 40px;
    }

    .b-rail__link {
        flex-direction: row;
        gap: 10px;
        padding: 7px 14px 7px 16px;
        font-size: 14px;
        text-align: left;
    }

    .b-rail__thumb {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .b-rail__name {
        flex: 1;
        -webkit-line-clamp: 2;
    }

    .b-rail__count {
        display: inline;
        flex: none;
        min-width: 22px;
        color: var(--rl-muted);
        font-size: 12px;
        font-weight: 700;
        text-align: right;
    }

    .b-rail__link.is-active .b-rail__count {
        color: var(--rl-text);
    }

    .b-main {
        padding: 0 24px 120px;
    }

    .b-sec__head {
        margin: 0 -24px 8px;
        padding: 16px 24px 10px;
    }

    .b-sec__title {
        font-size: 21px;
    }

    .b-item {
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-areas:
            "media head"
            "media meta";
        grid-template-rows: auto 1fr;
        gap: 6px 14px;
        padding: 12px;
    }

    .b-item--text {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "meta";
    }

    .b-item__head {
        align-self: start;
    }

    .b-featured__grid {
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        scroll-padding: 0 24px;
    }

    .b-item__name {
        font-size: 16.5px;
    }

    .b-venues,
    .b-foot {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    :root {
        --b-rail-w: 248px;
    }

    .b-layout {
        gap: 0 8px;
        padding: 0 16px;
        background: none;
    }

    .b-rail {
        top: calc(var(--rl-sticky-offset) + 14px);
        max-height: calc(100vh - var(--rl-sticky-offset) - 28px);
        max-height: calc(100dvh - var(--rl-sticky-offset) - 28px);
        margin: 14px 0;
        border-radius: var(--rl-radius);
    }

    .b-rail__list {
        padding: 8px;
    }

    .b-rail__link {
        padding: 7px 10px;
        border-radius: 12px;
    }

    .b-rail__link.is-active {
        background: var(--rl-surface);
        box-shadow: var(--b-shadow);
    }

    .b-rail__link.is-active::before {
        left: -8px;
    }

    .b-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .b-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .b-featured__grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
        margin: 0;
        padding: 2px 0 6px;
        overflow: visible;
    }

    .b-head__cover {
        height: 220px;
    }

    .b-head__inner,
    .b-bar {
        padding-left: 32px;
        padding-right: 32px;
    }

    .b-venues,
    .b-foot {
        padding-left: 32px;
        padding-right: 32px;
    }

    .b-tile .b-item__foot {
        flex-direction: row;
        align-items: center;
    }

    .b-tile .b-add.rl-add {
        width: auto;
    }
}

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

@media (forced-colors: active) {
    .b-num,
    .b-tag,
    .b-price__ask,
    .b-chip {
        border: 1px solid CanvasText;
    }

    .b-rail__link.is-active {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}

@media print {
    .b-bar,
    .b-rail,
    .b-chips,
    .rl-cartbar,
    .b-add,
    .b-skip {
        display: none !important;
    }

    .b-layout {
        display: block;
        background: none;
    }

    .b-sec__head {
        position: static;
    }

    .b-item,
    .b-tile {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
