/*
 * NICEMENU 'scena' public tema stilleri.
 *
 * Renkler secili paletten gelir: MenuController paletin degerlerini
 * `--palette-*` olarak <head>'e yazar. Asagidaki varsayilanlar "obsidyen"
 * paletidir; palet yazilmazsa (orn. testler) tema yine okunur kalir.
 *
 * Hikaye goruntuleyicisi paletten bagimsiz olarak her zaman koyudur (gorseller
 * siyah cercevede durur); vurgu renkleri yine paletten gelir.
 */
:root {
    color-scheme: var(--palette-scheme, dark);

    --sc-bg: var(--palette-bg, #0b0b0f);
    --sc-surface: var(--palette-surface, #16161d);
    --sc-surface-2: var(--palette-surface-2, #20202a);
    --sc-border: var(--palette-border, rgba(255, 255, 255, 0.08));
    --sc-text: var(--palette-text, #f5f5f7);
    --sc-muted: var(--palette-muted, #9a9aa8);
    --sc-accent: var(--palette-accent, #ff4d6d);
    --sc-accent-2: var(--palette-accent-2, #ffb347);
    --sc-on-accent: var(--palette-on-accent, #ffffff);
    --sc-shadow: var(--palette-shadow, rgba(0, 0, 0, 0.5));
    --sc-gradient: linear-gradient(45deg, var(--sc-accent-2), var(--sc-accent));
    --sc-alert: #ff5c63;

    --sc-shell: 560px;
    --sc-gutter: 16px;
    --sc-radius: 18px;
    --sc-fab-right: max(16px, calc((100vw - var(--sc-shell)) / 2 + 16px));

    /* Ortak anket butonu (theme-assets/survey-action.css) */
    --survey-action-z-index: 60;
    --survey-action-size: 50px;
    --survey-action-left: max(16px, calc((100vw - var(--sc-shell)) / 2 + 16px));
    --survey-action-bottom: max(18px, env(safe-area-inset-bottom));
    --survey-action-bg: var(--sc-surface);
    --survey-action-color: var(--sc-text);
    --survey-action-border: 1px solid var(--sc-border);
    --survey-action-shadow: 0 10px 26px var(--sc-shadow);
    --survey-action-hover-shadow: 0 14px 32px var(--sc-shadow);
}

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

body {
    margin: 0;
    background: var(--sc-bg);
    color: var(--sc-text);
    font-family: var(--menu-font, 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p { margin: 0; }

.sc-scroll-x {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sc-scroll-x::-webkit-scrollbar { display: none; }

/* ---- Hikaye halkasi (baloncuk) ---- */
.sc-ring {
    display: grid;
    place-items: center;
    flex: none;
    width: 74px;
    height: 74px;
    padding: 3px;
    border-radius: 50%;
    background: var(--sc-gradient);
}

.sc-ring.is-seen,
.is-seen > .sc-ring { background: var(--sc-border); }

.sc-ring__inner {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 3px solid var(--sc-bg);
    border-radius: 50%;
    background: var(--sc-surface-2);
    color: var(--sc-text);
    font-size: 1.3rem;
    font-weight: 700;
}

.sc-ring__inner img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Iskelet ---- */
.sc-shell {
    max-width: var(--sc-shell);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--sc-bg);
}

@media (min-width: 600px) {
    .sc-shell {
        border-left: 1px solid var(--sc-border);
        border-right: 1px solid var(--sc-border);
    }
}

.sc-icon-btn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sc-surface);
    color: var(--sc-text);
    font-size: 1.1rem;
    cursor: pointer;
}

.sc-icon-btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* ---- Yukleniyor ---- */
.sc-preloader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--sc-bg);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sc-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.sc-preloader__ring { width: 92px; height: 92px; animation: sc-spin 1.4s linear infinite; }

.sc-preloader__ring .sc-ring__inner { animation: sc-spin 1.4s linear infinite reverse; }

.sc-preloader__ring .sc-ring__inner img { object-fit: contain; padding: 8px; }

.sc-preloader__title { font-weight: 700; }

@keyframes sc-spin { to { transform: rotate(360deg); } }

/* ---- Ust bar ---- */
.sc-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px var(--sc-gutter);
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--sc-bg);
}

.sc-header__brand { display: flex; flex: 1; align-items: center; justify-content: center; gap: 10px; min-width: 0; }

.sc-header__logo {
    flex: none;
    width: 38px;
    height: 38px;
    padding: 3px;
    border-radius: 10px;
    background: var(--sc-surface-2);
    overflow: hidden;
}

.sc-header__logo img { width: 100%; height: 100%; object-fit: contain; }

.sc-header__title {
    overflow: hidden;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Hikaye seridi ---- */
.sc-stories { padding: 6px 0 14px; }

.sc-stories__scroll { gap: 14px; padding: 0 var(--sc-gutter); }

.sc-story {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 76px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.sc-story__icon { color: var(--sc-accent); font-size: 1.5rem; }

.sc-story__name {
    width: 100%;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-story.is-seen .sc-story__name { color: var(--sc-muted); }

/* ---- Bloklar ---- */
.sc-block { position: relative; margin: 4px var(--sc-gutter) 22px; }

.sc-block__title { margin-bottom: 12px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.sc-slider {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--sc-radius);
    overflow: hidden;
    background: var(--sc-surface-2);
}

.sc-slider__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
    color: #fff;
    text-decoration: none;
    pointer-events: none;
}

.sc-slider__slide.is-active { opacity: 1; pointer-events: auto; }

.sc-slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.sc-slider__caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 40px 18px 30px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.sc-slider__caption h2 { font-size: 1.2rem; font-weight: 700; }

.sc-slider__caption p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    opacity: 0.9;
}

.sc-slider__button {
    width: max-content;
    margin-top: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sc-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.sc-slider__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }

.sc-slider__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.sc-slider__dot.is-active { width: 20px; background: #fff; }

.sc-chips { gap: 8px; }

.sc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--sc-surface);
    color: var(--sc-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.sc-chip.is-active { background: var(--sc-gradient); color: #fff; }

/* Favoriler: dikey hikaye kartlari */
.sc-favorites { gap: 10px; }

.sc-fav,
.sc-tile {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: var(--sc-radius);
    background: var(--sc-surface-2);
    text-align: left;
    cursor: pointer;
}

.sc-fav { flex: 0 0 130px; aspect-ratio: 3 / 4; }

.sc-fav img,
.sc-tile img { width: 100%; height: 100%; object-fit: cover; }

.sc-fav__text,
.sc-tile__text {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--sc-gradient);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    opacity: 0.9;
}

.sc-fav__overlay,
.sc-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    padding: 10px;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
    color: #fff;
}

.sc-fav__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--sc-gradient);
    font-size: 0.64rem;
    font-weight: 600;
}

.sc-fav__name,
.sc-tile__name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
}

.sc-fav__price { font-size: 0.8rem; font-weight: 700; opacity: 0.95; }

/* Kategori kapaklari */
.sc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.sc-tile { aspect-ratio: 3 / 4; }

.sc-tile__name { font-size: 1rem; font-weight: 700; }

.sc-tile__meta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; opacity: 0.85; }

.sc-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 -3px 0 var(--sc-accent);
    pointer-events: none;
}

.sc-empty {
    margin: 18px var(--sc-gutter);
    padding: 36px 20px;
    border: 1px dashed var(--sc-border);
    border-radius: var(--sc-radius);
    color: var(--sc-muted);
    text-align: center;
}

.sc-empty i { display: block; margin-bottom: 10px; font-size: 2rem; opacity: 0.5; }

/* ---- Alt bilgi ---- */
.sc-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px var(--sc-gutter) calc(88px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sc-border);
    text-align: center;
}

.sc-footer__logo { max-width: 140px; max-height: 56px; object-fit: contain; }

.sc-footer__name { font-size: 1.1rem; font-weight: 700; }

.sc-footer__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.sc-footer__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--sc-surface);
    color: var(--sc-text);
    font-size: 0.8rem;
    text-decoration: none;
}

.sc-footer__chip i { color: var(--sc-accent); }

.sc-footer__socials { display: flex; gap: 10px; }

.sc-footer__social {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sc-surface);
    color: var(--sc-text);
    font-size: 1.05rem;
    text-decoration: none;
}

.sc-footer__social:hover { background: var(--sc-gradient); color: #fff; }

.sc-footer__copyright { color: var(--sc-muted); font-size: 0.74rem; line-height: 1.6; }

/* ---- Sabit butonlar ---- */
.sc-fabs {
    position: fixed;
    right: var(--sc-fab-right);
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-fab {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid var(--sc-border);
    border-radius: 50%;
    background: var(--sc-surface);
    color: var(--sc-text);
    box-shadow: 0 10px 26px var(--sc-shadow);
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sc-fab--whatsapp { border-color: transparent; background: #25d366; color: #fff; font-size: 1.35rem; }

.sc-fab--top { opacity: 0; transform: translateY(12px); pointer-events: none; }

.sc-fab--top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Hikaye goruntuleyici ---- */
.sc-viewer {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    justify-content: center;
    background: #000;
    color: #fff;
    outline: none;
}

.sc-viewer__frame {
    --sc-top-h: 64px;

    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.sc-viewer__frame.has-groups { --sc-top-h: 104px; }

@media (min-width: 600px) {
    .sc-viewer { align-items: center; background: rgba(0, 0, 0, 0.92); }

    .sc-viewer__frame { height: min(100dvh - 32px, 880px); border-radius: 22px; }
}

.sc-viewer__top {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    padding: max(8px, env(safe-area-inset-top)) 10px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

.sc-viewer__top > * { pointer-events: auto; }

.sc-progress { display: flex; gap: 3px; }

.sc-progress__seg {
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.sc-progress__seg > span {
    display: block;
    height: 100%;
    background: #fff;
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.sc-viewer__bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.sc-viewer__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--sc-gradient);
    font-weight: 700;
}

.sc-viewer__avatar img { width: 100%; height: 100%; object-fit: cover; }

.sc-viewer__title { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.2; }

.sc-viewer__title strong { overflow: hidden; font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; }

.sc-viewer__title small { opacity: 0.75; font-size: 0.72rem; }

.sc-viewer__btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.sc-viewer__groups { gap: 6px; margin-top: 10px; }

.sc-viewer__group {
    flex: none;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.sc-viewer__group.is-active { border-color: transparent; background: var(--sc-gradient); }

.sc-track {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    touch-action: pan-y;
}

.sc-track::-webkit-scrollbar { display: none; }

.sc-scene {
    position: relative;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sc-scene__media { position: absolute; inset: 0; }

/* Gorsel kendi bulanik kopyasinin onunde `contain` ile durur: kirpilmaz, gerilmez. */
.sc-scene__backdrop {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    max-width: none;
    object-fit: cover;
    filter: blur(28px) brightness(0.55) saturate(1.2);
}

.sc-scene__img {
    position: absolute;
    top: calc(var(--sc-top-h) + 12px);
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: 52%;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
}

.sc-scene__media--text {
    display: grid;
    place-items: center;
    padding-bottom: 30%;
    background: var(--sc-gradient);
    color: var(--sc-on-accent);
}

.sc-scene__media--text span { font-size: 9rem; font-weight: 800; line-height: 1; opacity: 0.25; }

.sc-scene__info {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 70px 20px calc(26px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82) 38%);
    cursor: pointer;
}

.sc-scene__group {
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-scene__name {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.sc-scene__name .bi { color: var(--sc-accent-2); font-size: 1rem; vertical-align: 4px; }

.sc-scene__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0.85;
    overflow-wrap: anywhere;
}

.sc-scene__meta { display: flex; flex-wrap: wrap; gap: 6px; }

.sc-scene__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }

.sc-scene__price {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sc-gradient);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.sc-scene__more { margin-left: auto; font-size: 0.85rem; font-weight: 600; opacity: 0.9; }

.sc-scene--end { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #1d1d26, #000 70%); }

.sc-end { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px; text-align: center; }

.sc-end__label { opacity: 0.7; font-size: 0.9rem; }

.sc-end__next {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}

.sc-end__ring { width: 112px; height: 112px; }

.sc-end__ring .sc-ring__inner { border-color: #000; font-size: 2rem; }

.sc-end__caption { opacity: 0.7; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }

.sc-end__name { font-size: 1.2rem; }

.sc-end__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.sc-viewer__side {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.sc-viewer__side--prev { left: 10px; }

.sc-viewer__side--next { right: 10px; }

@media (hover: hover) and (min-width: 600px) {
    .sc-viewer__side { display: grid; }
}

.sc-viewer__hint {
    position: absolute;
    left: 50%;
    bottom: calc(4px + env(safe-area-inset-bottom));
    z-index: 3;
    font-size: 1.6rem;
    opacity: 0.7;
    transform: translateX(-50%);
    animation: sc-nudge 1.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sc-nudge {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -6px); }
}

/* Bolumdeki urunler (goruntuleyici icinde alt sayfa) */
.sc-sheet {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sc-sheet.is-open { opacity: 1; visibility: visible; }

.sc-sheet__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 78%;
    border-radius: 20px 20px 0 0;
    background: #15151b;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sc-sheet.is-open .sc-sheet__panel { transform: none; }

.sc-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.sc-sheet__list { overflow-y: auto; padding: 6px 8px calc(16px + env(safe-area-inset-bottom)); }

.sc-sheet__group {
    padding: 14px 8px 6px;
    color: var(--sc-accent-2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-sheet__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.sc-sheet__item.is-active { background: rgba(255, 255, 255, 0.08); }

.sc-sheet__thumb {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.sc-sheet__thumb img { width: 100%; height: 100%; object-fit: cover; }

.sc-sheet__name { flex: 1; min-width: 0; overflow: hidden; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }

.sc-sheet__price { flex: none; font-size: 0.85rem; font-weight: 700; }

/* ---- Katmanlar (arama, yan menu, urun detayi) ---- */
.sc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sc-overlay.is-open { opacity: 1; visibility: visible; }

/* Urun detayi hikayenin de ustunde acilir. */
.sc-modal { z-index: 140; display: flex; align-items: flex-end; justify-content: center; }

.sc-search__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--sc-shell);
    height: 100%;
    margin: 0 auto;
    background: var(--sc-bg);
    transform: translateY(-16px);
    transition: transform 0.25s ease;
}

.sc-search.is-open .sc-search__panel { transform: none; }

.sc-search__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px var(--sc-gutter);
    padding-top: max(12px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--sc-border);
}

.sc-search__bar > .bi-search { color: var(--sc-muted); }

.sc-search__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--sc-border);
    border-radius: 999px;
    background: var(--sc-surface);
    color: var(--sc-text);
    font: inherit;
    font-size: 16px; /* iOS odaklanirken yakinlastirmasin */
}

.sc-search__input:focus { border-color: var(--sc-accent); outline: none; }

.sc-search__results { flex: 1; overflow-y: auto; padding: 8px 0 24px; }

.sc-search__hint { padding: 28px var(--sc-gutter); color: var(--sc-muted); text-align: center; font-size: 0.88rem; }

.sc-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px var(--sc-gutter);
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

.sc-result__thumb {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sc-surface-2);
    color: var(--sc-muted);
    font-weight: 700;
}

.sc-result__thumb img { width: 100%; height: 100%; object-fit: cover; }

.sc-result__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }

.sc-result__trail { color: var(--sc-accent); font-size: 0.68rem; font-weight: 600; }

.sc-result__name { font-size: 0.92rem; font-weight: 600; }

.sc-result__desc { overflow: hidden; color: var(--sc-muted); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }

.sc-result__price { flex: none; font-weight: 700; font-size: 0.88rem; }

.sc-drawer__panel {
    display: flex;
    flex-direction: column;
    width: min(86vw, 360px);
    height: 100%;
    background: var(--sc-bg);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
}

.sc-drawer.is-open .sc-drawer__panel { transform: none; }

.sc-drawer__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--sc-border);
}

.sc-drawer__brand { display: flex; flex: 1; gap: 10px; min-width: 0; }

.sc-drawer__logo {
    flex: none;
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 12px;
    background: var(--sc-surface-2);
    overflow: hidden;
}

.sc-drawer__logo img { width: 100%; height: 100%; object-fit: contain; }

.sc-drawer__brand-text { min-width: 0; }

.sc-drawer__title { font-weight: 700; }

.sc-drawer__copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 3px;
    color: var(--sc-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.sc-drawer__label {
    padding: 16px 16px 6px;
    color: var(--sc-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-drawer__list { flex: 1; overflow-y: auto; padding: 0 8px 24px; }

.sc-drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 14px;
    background: none;
    text-align: left;
    cursor: pointer;
}

.sc-drawer__item:hover { background: var(--sc-surface); }

.sc-drawer__item > .bi { color: var(--sc-accent); font-size: 1.2rem; }

.sc-drawer__ring { width: 54px; height: 54px; padding: 2px; }

.sc-drawer__ring .sc-ring__inner { border-width: 2px; font-size: 1rem; }

.sc-drawer__item-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }

.sc-drawer__item-name { overflow: hidden; font-weight: 600; font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; }

.sc-drawer__item-meta { color: var(--sc-muted); font-size: 0.74rem; }

.sc-modal__sheet {
    width: 100%;
    max-width: var(--sc-shell);
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px 24px 0 0;
    background: var(--sc-bg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sc-modal.is-open .sc-modal__sheet { transform: none; }

@media (min-width: 600px) {
    .sc-modal { align-items: center; padding: 24px; }

    .sc-modal__sheet { border-radius: 24px; transform: translateY(24px); }
}

.sc-modal__hero {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 44vh;
    overflow: hidden;
    background: var(--sc-surface-2);
}

.sc-modal__backdrop {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    max-width: none;
    object-fit: cover;
    filter: blur(24px) brightness(0.6);
}

.sc-modal__img { position: relative; width: 100%; height: 100%; object-fit: contain; }

.sc-modal__hero.is-empty { aspect-ratio: auto; height: 60px; background: transparent; }

.sc-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.sc-modal__content { padding: 18px var(--sc-gutter) calc(28px + env(safe-area-inset-bottom)); }

.sc-modal__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 8px; }

.sc-modal__title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

.sc-modal__price {
    flex: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--sc-gradient);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.sc-detail { margin-top: 18px; }

.sc-detail__title {
    margin-bottom: 8px;
    color: var(--sc-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-detail__copy { font-size: 0.9rem; line-height: 1.6; opacity: 0.9; }

.sc-detail__copy--spaced { margin-top: 10px; }

.sc-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.sc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sc-surface-2);
    color: var(--sc-text);
    font-size: 0.76rem;
    font-weight: 500;
}

.sc-scene .sc-pill { background: rgba(255, 255, 255, 0.16); color: #fff; }

.sc-pill--accent { background: var(--sc-gradient); color: #fff; }

.sc-pill--alert,
.sc-scene .sc-pill--alert { background: rgba(255, 92, 99, 0.18); color: var(--sc-alert); }

.sc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }

.sc-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--sc-surface);
}

.sc-fact span { color: var(--sc-muted); font-size: 0.72rem; }

.sc-fact strong { font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
