/* ============================================
   Brother's Bar — Reels Menü
   ============================================ */

:root {
    --bg: #000000;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.74);
    --text-faint: rgba(255, 255, 255, 0.5);
    --accent: #FF6B2B;
    --accent-soft: rgba(255, 107, 43, 0.16);
    --glass: rgba(18, 18, 18, 0.5);
    --glass-strong: rgba(14, 14, 14, 0.86);
    --glass-border: rgba(255, 255, 255, 0.12);

    --stage-w: 100vw;
    --vh: 100vh;
    --rail-right: max(12px, env(safe-area-inset-right));
    --rail-btn: 50px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --font: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (height: 100dvh) {
    :root { --vh: 100dvh; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow: hidden;
    overscroll-behavior: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

img { display: block; }

/* hidden niteliği, display tanımlı bileşenleri de gizlesin */
[hidden] { display: none !important; }

/* ---------- Masaüstü arka planı ---------- */
.backdrop {
    position: fixed;
    inset: -60px;
    background-color: #0b0705;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 107, 43, 0.18), transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(255, 107, 43, 0.12), transparent 45%);
    background-size: cover;
    background-position: center;
    filter: blur(48px) brightness(0.45) saturate(1.2);
    transition: background-image 0.6s ease;
    display: none;
}

/* ---------- Reels akışı ---------- */
.feed {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--stage-w);
    transform: translateX(-50%);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: #000;
}

.feed::-webkit-scrollbar { display: none; }

.slide {
    position: relative;
    height: var(--vh);
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #0a0a0a;
}

.slide-media {
    position: absolute;
    inset: 0;
}

.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.25s ease, transform 0.6s var(--ease);
}

.slide-media img.loaded {
    opacity: 1;
    transform: scale(1);
}

.slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.slide-video.playing { opacity: 1; }

.slide-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 18%),
        linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 26%, rgba(0, 0, 0, 0.18) 52%, transparent 66%);
}

/* Görseli olmayan ürün */
.slide-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding-bottom: 28vh;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 107, 43, 0.28) 0%, transparent 46%),
        radial-gradient(circle at 15% 90%, rgba(255, 107, 43, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #120a06 0%, #050505 70%);
}

.slide.no-image .slide-fallback { display: flex; }
.slide.no-image .slide-media { display: none; }

.slide-fallback-icon {
    font-size: min(36vw, 22vh, 190px);
    line-height: 1;
    filter: drop-shadow(0 18px 40px rgba(255, 107, 43, 0.35));
}

/* Ürün bilgileri */
.slide-info {
    position: absolute;
    left: 22px;
    right: calc(var(--rail-btn) + 34px);
    bottom: calc(30px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.slide-cat-count {
    color: var(--text-faint);
    letter-spacing: 0.08em;
}

.slide-name {
    font-size: clamp(2.1rem, 9.5vw, 3.1rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.slide-desc {
    font-size: clamp(1.05rem, 4.4vw, 1.25rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-dim);
}

.slide-price {
    align-self: flex-start;
    margin-top: 4px;
    font-size: clamp(2rem, 9vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-shadow: 0 4px 30px rgba(255, 107, 43, 0.35);
}

/* Boy seçenekleri: 35cl ........ ₺2500 */
.slide-variants {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.slide-variant {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
}

.slide-variant + .slide-variant { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.slide-variant-size {
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    font-weight: 600;
    color: var(--text);
}

.slide-variant-line {
    flex: 1;
    min-width: 16px;
    border-bottom: 2px dotted rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.slide-variant-price {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.slide-extras {
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.slide-extras-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.slide-extras-title b {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0;
}

.slide-extras-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.slide-extras-list span {
    font-size: 0.88rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

/* Bilgi giriş animasyonu */
.slide .slide-info > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.32s var(--ease);
}

.slide.is-active .slide-info > * {
    opacity: 1;
    transform: none;
}

.slide.is-active .slide-info > :nth-child(2) { transition-delay: 0.03s; }
.slide.is-active .slide-info > :nth-child(3) { transition-delay: 0.06s; }
.slide.is-active .slide-info > :nth-child(4) { transition-delay: 0.09s; }
.slide.is-active .slide-info > :nth-child(5) { transition-delay: 0.12s; }

/* ---------- Kapak slaytı ---------- */
.slide-cover {
    display: flex;
    flex-direction: column;
    padding: calc(28px + var(--safe-top)) 20px calc(14px + var(--safe-bottom));
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 107, 43, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 85% 88%, rgba(255, 107, 43, 0.14) 0%, transparent 42%),
        #000;
}

.cover-main {
    flex: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(22px, 4.5vh, 40px);
    min-height: 0;
}

.cover-brand { text-align: center; }

.cover-logo {
    width: min(74%, 300px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 10px 40px rgba(255, 107, 43, 0.25));
}

.cover-tagline {
    margin-top: 10px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.3rem, 5.6vw, 1.7rem);
    color: var(--text-dim);
}

/* İki ana eylem */
.cover-actions { display: flex; flex-direction: column; gap: 12px; }

.cover-action {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 74px;
    padding: 12px 16px 12px 12px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}

.cover-action:active { transform: scale(0.98); }
.cover-action:hover { filter: brightness(1.06); }

.cover-action-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 15px;
}

.cover-action-icon svg { width: 26px; height: 26px; }

.cover-action-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cover-action-text strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.cover-action-text small { font-size: 0.85rem; font-weight: 500; opacity: 0.72; }

.cover-action-arrow svg { width: 22px; height: 22px; display: block; transition: transform 0.2s var(--ease); }
.cover-action:hover .cover-action-arrow svg { transform: translateX(3px); }

.cover-action.is-menu {
    background: var(--accent);
    color: #1a0a02;
    box-shadow: 0 12px 34px rgba(255, 107, 43, 0.35);
}

.cover-action.is-menu .cover-action-icon { background: rgba(0, 0, 0, 0.14); }

.cover-action.is-reserve {
    background: #f6efe4;
    color: #1a120b;
    box-shadow: 0 12px 34px rgba(246, 239, 228, 0.12);
}

.cover-action.is-reserve .cover-action-icon { background: rgba(255, 107, 43, 0.14); color: #e2561b; }

/* Kaydırma göstergesi */
.swipe-hint {
    flex-shrink: 0;
    align-self: center;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.swipe-hint-chevrons {
    position: relative;
    width: 38px;
    height: 44px;
    color: var(--accent);
    filter: drop-shadow(0 4px 12px rgba(255, 107, 43, 0.45));
}

.swipe-hint-chevrons svg {
    position: absolute;
    left: 0;
    width: 38px;
    height: 38px;
    animation: hint 1.6s ease-in-out infinite;
}

.swipe-hint-chevrons svg:first-child { top: -6px; }
.swipe-hint-chevrons svg:last-child { top: 9px; animation-delay: 0.2s; }

@keyframes hint {
    0%, 100% { transform: translateY(-3px); opacity: 0.25; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* Kısa ekranlar (ör. iPhone SE) */
@media (max-height: 700px) {
    .cover-logo { width: min(60%, 240px); }
    .cover-action { min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
    .cover-action-icon { width: 44px; height: 44px; }
}

/* ---------- Menü kategori seçimi ---------- */
.picker {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--stage-w);
    z-index: 35;
    display: flex;
    flex-direction: column;
    padding: calc(10px + var(--safe-top)) 14px calc(14px + var(--safe-bottom));
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 107, 43, 0.18) 0%, transparent 45%),
        #050505;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(24px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

body.picker-open .picker {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s;
}

body.picker-open .rail,
body.picker-open .topbar { visibility: hidden; }

.picker-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 14px;
}

.picker-back {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
}

.picker-back svg { width: 22px; height: 22px; }
.picker-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.picker-head p { font-size: 0.88rem; color: var(--text-faint); }

/* Kartlar kalan yüksekliği eşit paylaşır; taşma olmaz, çok kategori olursa kaydırılır */
.picker-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 68px;
    grid-auto-rows: minmax(76px, 1fr);
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.picker-grid::-webkit-scrollbar { display: none; }

.picker-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    text-align: left;
    background-color: #1a110b;
    background-image: radial-gradient(circle at 70% 30%, rgba(255, 107, 43, 0.3), transparent 65%);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.15s, border-color 0.2s;
}

/* Fotoğraflı kartlarda görsel kenarlığın altına kadar uzanır; açık kenarlık altta çizgi gibi görünmesin */
.picker-card.has-bg {
    background-origin: border-box;
    background-repeat: no-repeat;
    border-color: transparent;
}

.picker-card:active { transform: scale(0.97); }
.picker-card:hover, .picker-card:focus-visible { border-color: rgba(255, 107, 43, 0.7); outline: none; }

.picker-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.picker-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }

.picker-card-text strong {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    overflow-wrap: break-word;
    hyphens: auto;
}

.picker-card-text small { font-size: 0.8rem; font-weight: 500; color: rgba(255, 255, 255, 0.72); }

.picker-card.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.picker-card.is-current::after {
    content: 'Şu an';
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #1a0a02;
    font-size: 0.7rem;
    font-weight: 700;
}

.picker-card.is-all {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    background: var(--accent);
    border-color: var(--accent);
    color: #1a0a02;
}

.picker-card.is-all .picker-card-icon { filter: none; }
.picker-card.is-all .picker-card-text strong { text-shadow: none; font-size: 1.15rem; }
.picker-card.is-all .picker-card-text small { color: rgba(26, 10, 2, 0.72); }

/* Kısa ekranlar: kartlar alçaldığında yazılar sığsın */
@media (max-height: 640px) {
    .picker-head { padding-bottom: 10px; }
    .picker-head h2 { font-size: 1.3rem; }
    .picker-grid { gap: 8px; grid-template-rows: 58px; }
    .picker-card { padding: 9px 11px; border-radius: 15px; }
    .picker-card-icon { font-size: 1.2rem; }
    .picker-card-text strong { font-size: 0.92rem; }
    .picker-card-text small { font-size: 0.72rem; }
}

/* ---------- Kategori sonu slaytı ---------- */
.slide-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 24px calc(var(--rail-btn) + 34px) 24px 24px;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 107, 43, 0.2) 0%, transparent 50%),
        #050505;
}

.end-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.end-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
}

.end-next {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #000;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(255, 107, 43, 0.35);
    transition: transform 0.2s;
}

.end-next:active { transform: scale(0.97); }

.end-all {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Üst bar ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--stage-w);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: calc(12px + var(--safe-top)) 12px 12px 14px;
    pointer-events: none;
    transition: opacity 0.3s;
}

.topbar > * { pointer-events: auto; }

.topbar-brand {
    flex: 0 3 auto;
    min-width: 48px;
}

/* Dar ekranda kategori adı tam sığsın diye logo küçülür */
.topbar-brand img {
    height: auto;
    max-height: 24px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    height: 36px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #1a0a02;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(255, 107, 43, 0.3);
    transition: opacity 0.3s, transform 0.15s, filter 0.2s;
}

.topbar-chip:hover { filter: brightness(1.06); }
.topbar-chip:active { transform: scale(0.95); }
.topbar-chip-icon { width: 17px; height: 17px; flex-shrink: 0; }

body.on-cover .topbar-brand {
    opacity: 0;
    pointer-events: none;
}

body.on-cover .topbar-chip { display: none; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}

/* Rezervasyon butonu: ikon + "Rezervasyon" (kapakta kendi butonu olduğu için gizli) */
.res-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 12px 0 9px;
    border-radius: 999px;
    background: #f6efe4;
    color: #1a120b;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: filter 0.2s, transform 0.15s;
}

.res-btn svg { width: 17px; height: 17px; flex-shrink: 0; color: #e2561b; }
.res-btn:hover { filter: brightness(1.06); }
.res-btn:active { transform: scale(0.95); }

body.on-cover .res-btn { display: none; }

@media (max-width: 370px) {
    .topbar { padding-left: 12px; padding-right: 10px; }
    .topbar-chip, .res-btn { font-size: 0.74rem; }
    .topbar-chip { padding: 0 10px 0 8px; }
    .res-btn { padding: 0 10px 0 8px; }
}

/* Çok dar eski telefonlar (≤340px) */
@media (max-width: 340px) {
    .topbar { gap: 6px; padding-left: 10px; padding-right: 8px; }
    .topbar-brand { min-width: 44px; }
    .topbar-right { gap: 5px; }
    .topbar-chip, .res-btn { font-size: 0.72rem; }
}

/* ---------- Rezervasyon sayfası (rezervasyon/) ---------- */
/* Sayfayı pencere kaydırır; body kaydırma kapsayıcısı olursa yapışkan alt bar çalışmaz */
html.page-scroll {
    height: auto;
    overflow-y: auto;
    overscroll-behavior: auto;
}

html.page-scroll body {
    height: auto;
    min-height: 100%;
    overflow: visible;
    overscroll-behavior: auto;
}

.res-page-body {
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 107, 43, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 90% 100%, rgba(255, 107, 43, 0.1) 0%, transparent 40%),
        #050505;
    background-attachment: fixed;
}

.res-page-top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: calc(10px + var(--safe-top)) 16px 10px;
    background: rgba(5, 5, 5, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.res-page-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 14px 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.res-page-back svg { width: 20px; height: 20px; }
.res-page-logo img { height: 28px; width: auto; }

.res-page {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 22px 20px 0;
}

.res-page-intro { margin-bottom: 22px; }
.res-page-intro h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.res-page-intro p { margin-top: 6px; font-size: 0.98rem; color: var(--text-faint); }

/* Formun alanları sayfayla birlikte kayar; onay butonu altta sabit */
.res-form .res-body { overflow: visible; padding: 0 0 8px; }

.res-form .res-foot {
    position: sticky;
    bottom: 0;
    margin: 0 -20px;
    padding: 26px 20px calc(16px + var(--safe-bottom));
    border-top: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0) 0, rgba(5, 5, 5, 0.97) 20px, #050505 100%);
}

.res-closed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8vh;
    padding: 28px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.res-closed-icon { font-size: 2.4rem; line-height: 1; }
.res-closed strong { font-size: 1.15rem; }
.res-closed p { color: var(--text-dim); font-size: 0.95rem; }

.res-closed-link {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #1a0a02;
    font-weight: 700;
    text-decoration: none;
}

.res-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.res-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.res-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.res-label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }

.res-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.res-summary { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.res-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    color-scheme: dark;
    transition: border-color 0.15s, background 0.15s;
}

textarea.res-input { min-height: 0; resize: none; line-height: 1.4; }
.res-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.res-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 107, 43, 0.06);
}

.res-dd { position: relative; }

.res-dd-btn {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.res-dd.open .res-dd-btn,
.res-dd-btn:focus-visible {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 107, 43, 0.06);
}

.res-dd-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 1.2rem;
    line-height: 1;
}

.res-dd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.res-dd-text strong { font-size: 1rem; font-weight: 600; }
.res-dd-text small { font-size: 0.82rem; color: var(--text-faint); }

.res-dd-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    transition: transform 0.25s var(--ease);
}

.res-dd.open .res-dd-chevron { transform: rotate(180deg); }

.res-dd-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
    list-style: none;
    padding: 6px;
    border-radius: 16px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    outline: none;
    animation: dd-in 0.18s var(--ease);
}

@keyframes dd-in {
    from { opacity: 0; transform: translateY(-6px); }
}

.res-dd-list [role="option"] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: 12px;
    cursor: pointer;
}

.res-dd-list [role="option"].is-focus { background: rgba(255, 255, 255, 0.07); }
.res-dd-list [aria-selected="true"] .res-dd-icon { background: var(--accent-soft); }
.res-dd-list [aria-selected="true"] strong { color: var(--accent); }

.res-dd-check {
    width: 20px;
    height: 20px;
    color: var(--accent);
    opacity: 0;
}

.res-dd-check svg { width: 100%; height: 100%; }
.res-dd-list [aria-selected="true"] .res-dd-check { opacity: 1; }

.res-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: end; }

.res-days { display: flex; gap: 6px; }

.res-days button {
    flex: 1;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.res-days button.active { background: var(--accent-soft); border-color: rgba(255, 107, 43, 0.6); color: var(--accent); }

.res-people { display: flex; flex-direction: column; gap: 8px; }

.res-person {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.res-person.is-pending { border-style: dashed; border-color: rgba(255, 107, 43, 0.5); }

.res-person-num {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 700;
}

.res-person-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.res-person-hint { width: 100%; padding-left: 36px; font-size: 0.8rem; color: var(--accent); }

.res-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.35);
}

.res-seg button {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: background 0.15s, color 0.15s;
}

.res-seg button.active { background: var(--accent); color: #140700; }

.res-person-remove {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-faint);
}

.res-person-remove svg { width: 16px; height: 16px; }
.res-person-remove:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.res-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.res-add button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.res-add button svg { width: 16px; height: 16px; }
.res-add button:hover, .res-add button:active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.res-add button:disabled { opacity: 0.4; pointer-events: none; }

.res-missing {
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
}

.res-missing.is-ok { color: #4ade80; }

.res-foot {
    padding: 12px 22px calc(14px + var(--safe-bottom));
    border-top: 1px solid var(--glass-border);
}

.res-submit {
    width: 100%;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: #25d366;
    color: #04210f;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25);
    transition: transform 0.15s, filter 0.15s;
}

.res-submit svg { width: 22px; height: 22px; }
.res-submit:hover { filter: brightness(1.05); }
.res-submit:active { transform: scale(0.98); }

.res-submit:disabled {
    background: #1d1d1d;
    color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

/* ---------- Sağ ray ---------- */
.rail {
    position: fixed;
    right: var(--rail-right);
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 30px;
    background: rgba(14, 14, 14, 0.62);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.rail-btn {
    width: var(--rail-btn);
    height: var(--rail-btn);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.rail-arrow {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.rail-arrow svg { width: 28px; height: 28px; }
.rail-btn:hover { background: rgba(255, 255, 255, 0.2); }
.rail-btn:active { transform: scale(0.9); }

.rail-btn:disabled {
    opacity: 0.28;
    pointer-events: none;
}

.rail-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}

.rail-progress {
    width: 4px;
    height: 30px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
    position: relative;
}

.rail-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    border-radius: 4px;
    background: var(--accent);
    transition: height 0.35s var(--ease);
}

.rail-counter {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    min-height: 1em;
}

.rail-divider {
    width: 60%;
    height: 1px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.14);
}

/* Izgara butonu: koyu panelde açık renkli karo + etiket, en çok dikkat çeken öğe */
.rail-grid {
    position: relative;
    width: var(--rail-btn);
    padding: 9px 0 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: 18px;
    background: #f6efe4;
    color: #1a120b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s, filter 0.2s;
}

.rail-grid:hover { filter: brightness(1.05); }
.rail-grid:active { transform: scale(0.94); }
.rail-grid svg { width: 26px; height: 26px; }
.rail-grid .icon-grid { color: var(--accent); }

.rail-grid-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.rail-grid .icon-reels { display: none; }
body.grid-open .rail-grid .icon-grid { display: none; }
body.grid-open .rail-grid .icon-reels { display: block; color: var(--accent); }

/* İpucu: ilk ürünlerde bir kez, butonun solunda */
.rail-hint {
    position: absolute;
    right: calc(100% + 12px);
    top: 10px;
    width: max-content;
    max-width: 180px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f6efe4;
    color: #1a120b;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease);
    pointer-events: none;
}

.rail-hint::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 22px;
    width: 12px;
    height: 12px;
    background: #f6efe4;
    transform: rotate(45deg);
    border-radius: 2px;
}

.rail.show-hint .rail-hint { opacity: 1; transform: none; }
.rail.show-hint .rail-grid { animation: grid-pulse 1.4s ease-in-out 3; }

@keyframes grid-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 107, 43, 0.6); }
    50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(255, 107, 43, 0); }
}

body.grid-open #prevBtn,
body.grid-open #nextBtn,
body.grid-open .rail-meta,
body.grid-open .rail-divider {
    display: none;
}

/* ---------- Izgara görünümü ---------- */
.grid-view {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 107, 43, 0.14) 0%, transparent 40%),
        #050505;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

body.grid-open .grid-view {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s;
}

body.grid-open .topbar {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95) 60%, rgba(5, 5, 5, 0));
}

.grid-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(72px + var(--safe-top)) calc(var(--rail-btn) + 32px) calc(40px + var(--safe-bottom)) 14px;
}

.grid-section + .grid-section { margin-top: 30px; }

.grid-section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 4px 14px;
}

.grid-section-head h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.grid-section-head span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-faint);
}

.grid-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tile {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 107, 43, 0.25) 0%, transparent 60%),
        #140c08;
    text-align: left;
    transition: transform 0.2s var(--ease);
}

.tile:active { transform: scale(0.97); }

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.tile-play {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.tile-play::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
}

.tile-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tile.is-playing .tile-video { opacity: 1; }
.tile.is-playing .tile-play { opacity: 0; transition: opacity 0.3s; }

.tile-icon {
    position: absolute;
    inset: 0 0 30% 0;
    display: grid;
    place-items: center;
    font-size: 3.4rem;
}

.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 38%, transparent 60%);
}

.tile-info {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 11px;
    z-index: 1;
}

.tile-name {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-price {
    margin-top: 3px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
}

.empty-state {
    height: var(--vh);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    color: var(--text-dim);
}

/* ---------- Mobil: kapakta ray gizli, ızgarada alt bar ---------- */
@media (max-width: 819.98px), (max-aspect-ratio: 4/5) {
    .rail { transition: opacity 0.3s, transform 0.3s var(--ease); }

    body.on-cover .rail {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-50%) translateX(16px);
    }

    body.grid-open .rail {
        top: auto;
        right: 50%;
        bottom: calc(18px + var(--safe-bottom));
        transform: translateX(50%);
        flex-direction: row;
    }

    .grid-inner {
        padding-right: 14px;
        padding-bottom: calc(110px + var(--safe-bottom));
    }

    .tile { aspect-ratio: 4 / 5; }
}

/* ---------- Tablet / Masaüstü ---------- */
@media (min-width: 640px) {
    .grid-tiles {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (min-width: 820px) and (min-aspect-ratio: 4/5) {
    :root {
        --stage-w: min(100vw, calc(var(--vh) * 0.5625));
        --rail-btn: 56px;
        --rail-right: 28px;
    }

    .backdrop { display: block; }
    .feed { box-shadow: 0 0 120px rgba(0, 0, 0, 0.8); }

    .slide-name { font-size: 2.9rem; }
    .slide-desc { font-size: 1.2rem; }
    .slide-price { font-size: 2.5rem; }
    .slide-info { right: 24px; }
    .slide-end { padding-right: 24px; }

    .grid-inner { padding-left: 32px; padding-right: calc(var(--rail-btn) + 60px); }

    body.grid-open .topbar {
        width: 100vw;
        padding-left: max(32px, calc((100vw - 1280px) / 2 + 32px));
        padding-right: calc(var(--rail-btn) + 60px);
    }
    .tile:hover img { transform: scale(1.05); }
}

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