/**
 * Breakfast theme — liste odaklı menü tahtası düzeni (steak/grid temasından bağımsız).
 */
:root {
    --bf-bg: #f3f0ea;
    --bf-surface: #fffcfa;
    --bf-ink: #1f1814;
    --bf-muted: #6f6258;
    --bf-line: rgba(31, 24, 20, 0.09);
    --bf-accent: #d4624d;
    --bf-accent-dark: #b84a38;
    --bf-teal: #3e6f6a;
    --bf-teal-soft: #e8f2f0;
    --bf-shadow: rgba(31, 24, 20, 0.07);
    --bf-shadow-strong: rgba(31, 24, 20, 0.12);
    --bf-sticky-h: 0px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--bf-sticky-h, 120px) + 8px);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bf-bg);
    color: var(--bf-ink);
    font-family: "Outfit", system-ui, sans-serif;
    min-height: 100%;
}

.bf-shell {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 100px;
    position: relative;
}

/* —— Hero: önceki temadaki kart + chip yapısından farklı —— */
.bf-hero {
    position: relative;
    padding: 20px 20px 36px;
    background: linear-gradient(165deg, #fff 0%, var(--bf-surface) 42%, var(--bf-bg) 100%);
    color: var(--bf-ink);
    overflow: hidden;
}

.bf-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: -80px;
    background: radial-gradient(circle, rgba(212, 98, 77, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.bf-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.bf-hero__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--bf-line);
    box-shadow: 0 8px 24px var(--bf-shadow);
    background: #fff;
}

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

.bf-hero__logo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bf-teal-soft), #e5e0d8);
}

.bf-hero__logo-icon {
    font-size: 30px !important;
    color: rgba(62, 111, 106, 0.55);
}

.bf-lang {
    display: inline-flex;
    border: 1px solid var(--bf-line);
    border-radius: 999px;
    padding: 3px;
    background: rgba(255, 252, 250, 0.9);
}

.bf-lang a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--bf-muted);
}

.bf-lang a.is-on {
    background: var(--bf-teal);
    color: #fff;
}

.bf-hero__eyebrow {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bf-teal);
}

.bf-hero__title {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.75rem, 5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bf-hero__lede {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    max-width: 36em;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bf-muted);
}

.bf-hero__wave {
    margin-top: 22px;
    margin-bottom: -2px;
    color: var(--bf-bg);
    line-height: 0;
}

.bf-hero__wave svg {
    display: block;
    width: 100%;
    height: 28px;
}

/* —— Sticky: yatay kategori pill’leri + arama —— */
.bf-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 0 12px;
    /* backdrop-filter removed: costly repaint on mobile while sticky scrolls */
    background: linear-gradient(180deg, rgba(243, 240, 234, 0.99) 55%, rgba(243, 240, 234, 0.96) 100%);
    border-bottom: 1px solid var(--bf-line);
    box-shadow: 0 6px 20px var(--bf-shadow);
}

.bf-category-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 16px 12px;
    margin: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.bf-category-rail::-webkit-scrollbar {
    display: none;
}

.bf-chip {
    flex: 0 0 auto;
    position: relative;
    z-index: 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--bf-line);
    background: var(--bf-surface);
    color: var(--bf-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bf-chip:visited {
    color: var(--bf-muted);
}

.bf-chip.is-active,
.bf-chip.is-active:visited {
    z-index: 2;
    background: var(--bf-teal);
    border-color: var(--bf-teal);
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(62, 111, 106, 0.42);
}

.bf-chip:active {
    opacity: 0.9;
}

.bf-chip:focus-visible {
    outline: 2px solid var(--bf-teal);
    outline-offset: 3px;
}

.bf-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--bf-line);
    background: var(--bf-surface);
    min-height: 50px;
}

.bf-search .material-icons {
    color: var(--bf-muted);
    font-size: 22px;
    flex-shrink: 0;
}

.bf-search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    min-height: 48px;
    outline: none;
    color: var(--bf-ink);
}

.bf-search input::placeholder {
    color: #9a8e84;
}

.bf-search__results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: min(60vh, 320px);
    overflow-y: auto;
    background: var(--bf-surface);
    border: 1px solid var(--bf-line);
    border-radius: 14px;
    display: none;
    box-shadow: 0 18px 40px var(--bf-shadow-strong);
}

.bf-search__results.is-visible {
    display: block;
}

.bf-search__results .search-result-item {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--bf-line);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--bf-ink);
}

.bf-search__results .search-result-item:last-child {
    border-bottom: 0;
}

.bf-search__results .search-result-item strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bf-muted);
    margin-bottom: 4px;
}

.bf-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— Bölümler —— */
.bf-main {
    padding: 8px 16px 24px;
}

.bf-section {
    margin-bottom: 28px;
}

.bf-section__header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px dotted var(--bf-line);
}

.bf-section__title {
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bf-ink);
}

/* Liste satırları — grid kart yerine */
.bf-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bf-product {
    border-bottom: 1px solid var(--bf-line);
}

.bf-product:last-child {
    border-bottom: 0;
}

.bf-product__link {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    text-decoration: none;
    color: inherit;
    min-height: 88px;
    -webkit-tap-highlight-color: transparent;
}

.bf-product__link:active {
    opacity: 0.92;
}

.bf-product__thumb {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bf-teal-soft);
    border: 1px solid var(--bf-line);
}

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

.bf-product__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bf-teal-soft), #e5e0d8);
}

.bf-product__thumb-icon {
    font-size: 32px !important;
    color: rgba(62, 111, 106, 0.42);
    user-select: none;
    pointer-events: none;
}

.bf-product__body {
    min-width: 0;
}

.bf-product__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.bf-product__meta {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bf-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bf-product__pricecol {
    text-align: right;
    flex-shrink: 0;
    padding-left: 4px;
}

.bf-product__price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--bf-accent-dark);
    white-space: nowrap;
}

.bf-product__old {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--bf-muted);
    text-decoration: line-through;
}

.bf-product__pct {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(212, 98, 77, 0.12);
    color: var(--bf-accent-dark);
}

.bf-empty {
    margin: 12px 0;
    padding: 14px;
    font-size: 14px;
    color: var(--bf-muted);
    border: 1px dashed var(--bf-line);
    border-radius: 12px;
    background: rgba(255, 252, 250, 0.6);
}

.bf-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 4px;
    margin-bottom: 8px;
}

.bf-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-teal);
    cursor: pointer;
}

.bf-more-btn .material-icons {
    font-size: 22px;
}

.bf-more-btn.is-hidden {
    display: none;
}

.bf-more-btn:active {
    opacity: 0.85;
}

.bf-more-status {
    min-height: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--bf-muted);
}

/* Yukarı — sadece ikon */
.bf-backtop {
    position: fixed;
    right: 14px;
    bottom: 20px;
    z-index: 60;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--bf-line);
    background: var(--bf-surface);
    color: var(--bf-ink);
    box-shadow: 0 10px 28px var(--bf-shadow-strong);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.bf-backtop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bf-backtop:active {
    background: var(--bf-teal-soft);
}

.bf-backtop .material-icons {
    font-size: 28px;
    color: var(--bf-teal);
}

@media (max-width: 380px) {
    .bf-product__link {
        grid-template-columns: 64px 1fr auto;
        gap: 10px;
    }

    .bf-product__thumb {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }
}
