﻿/* ==========================================================================
   FATIH KAFE & RESTAURANT - LUXURY NIGHT BLUE & GOLD QR MENU STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --bg-deep: #050A14;
    --bg-surface: #0A1324;
    --bg-card: rgba(14, 25, 48, 0.85);
    --bg-card-hover: rgba(20, 35, 68, 0.95);
    --bg-glass: rgba(10, 19, 36, 0.8);
    
    --gold-100: #FBF0D9;
    --gold-300: #F3D28A;
    --gold-400: #E5BF60;
    --gold-500: #D4AF37; /* Imperial Gold */
    --gold-600: #B89223;
    --gold-gradient: linear-gradient(135deg, #FEE8A5 0%, #D4AF37 50%, #9F781C 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    
    --border-gold: rgba(212, 175, 55, 0.25);
    --border-gold-bright: rgba(212, 175, 55, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-gold: #ECC46A;

    --font-heading: 'Cinzel', serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
    --shadow-gold-lg: 0 8px 32px rgba(212, 175, 55, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 110px; /* Space for floating cart bar */
}

/* ==========================================================================
   AMBIENT BACKGROUND ACCENTS
   ========================================================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-blob-1 {
    position: absolute;
    width: 380px;
    height: 380px;
    top: -80px;
    right: -100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(50px);
    animation: floatBlob 14s ease-in-out infinite alternate;
}

.ambient-blob-2 {
    position: absolute;
    width: 440px;
    height: 440px;
    bottom: 10%;
    left: -120px;
    background: radial-gradient(circle, rgba(16, 45, 95, 0.4) 0%, rgba(5, 10, 20, 0) 70%);
    filter: blur(60px);
    animation: floatBlob 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.15); }
}

/* ==========================================================================
   SPLASH WELCOME SCREEN
   ========================================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0F1D38 0%, #050A14 85%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    text-align: center;
    padding: 24px;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-crest {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    animation: spinRing 20s linear infinite;
}

.splash-ring-inner {
    position: absolute;
    width: 84%;
    height: 84%;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.splash-monogram {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.splash-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.splash-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.splash-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    color: var(--gold-300);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulseBadge 2s ease-in-out infinite;
}

.splash-status {
    min-height: 1.2em;
    margin-top: 14px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-align: center;
}

.splash-loader {
    width: 42px;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    margin-top: 32px;
    overflow: hidden;
    position: relative;
}

.splash-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--gold-500);
    animation: loaderSlide 1.2s ease-in-out infinite;
    border-radius: 3px;
}

@keyframes spinRing {
    100% { transform: rotate(360deg); }
}

@keyframes pulseBadge {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes loaderSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 11, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #15264A 0%, #0A1324 100%);
    border: 1.5px solid var(--gold-500);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--gold-400);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.brand-text .sub-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   SEARCH & BANNER SECTION
   ========================================================================== */
.search-section {
    max-width: 900px;
    margin: 14px auto 8px;
    padding: 0 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(14, 25, 48, 0.7);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    padding: 4px 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-gold);
    background: rgba(18, 32, 60, 0.9);
}

.search-icon {
    color: var(--gold-500);
    font-size: 0.95rem;
    margin-right: 10px;
}

.search-box input {
    width: 100%;
    height: 42px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px;
    display: none;
    transition: var(--transition);
}

.clear-search.active {
    display: block;
}

.clear-search:hover {
    color: var(--gold-400);
}

/* ==========================================================================
   STICKY CATEGORY BAR
   ========================================================================== */
.category-nav {
    position: sticky;
    top: 67px;
    left: 0;
    width: 100%;
    background: rgba(6, 11, 20, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    z-index: 990;
    padding: 8px 0;
}

.category-scroll {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    padding: 4px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(14, 25, 48, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.category-tab i {
    font-size: 0.85rem;
    color: var(--gold-500);
}

.category-tab.active {
    background: var(--gold-gradient);
    color: #060B14;
    border-color: var(--gold-400);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.category-tab.active i {
    color: #060B14;
}

/* ==========================================================================
   MENU CONTENT CONTAINER
   ========================================================================== */
.menu-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    position: relative;
    z-index: 1;
}

.menu-category-section {
    margin-bottom: 36px;
    scroll-margin-top: 135px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--gold-300);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: var(--gold-500);
    font-size: 1.1rem;
}

.category-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 680px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* ==========================================================================
   MENU ITEM CARD
   ========================================================================== */
.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.menu-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.card-img-wrapper {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: #0D1629;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-card:hover .card-img {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--gold-gradient);
    color: #060B14;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}


.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.25;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-400);
}

.price-unit {
    display: block;
    margin-top: 2px;
    font-family: var(--font-body, inherit);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.price-pending {
    display: inline-block;
    width: 52px;
    height: 0.9em;
    vertical-align: middle;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.12));
    background-size: 200% 100%;
    animation: fiyatYukleniyor 1.2s ease-in-out infinite;
}

@keyframes fiyatYukleniyor {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-gradient-soft);
    border: 1px solid var(--gold-500);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-item:hover, .btn-add-item:active {
    background: var(--gold-gradient);
    color: #060B14;
    transform: scale(1.08);
}

.card-qty-controller {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(10, 20, 40, 0.9);
    border: 1px solid var(--gold-500);
    border-radius: var(--radius-full);
    padding: 2px 6px;
}

.card-qty-controller.active {
    display: flex;
}

.qty-mini-btn {
    background: none;
    border: none;
    color: var(--gold-400);
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-mini-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}

.qty-mini-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 16px;
    text-align: center;
}

/* When out of stock */
/* --------------------------------------------------------------------------
   TÜKENEN ÜRÜN
   Kart gri görünür; TÜKENDİ rozeti ise renkli kalır ki bir bakışta seçilsin.
   Karta dokunulabilir (detay okunur) ama hesaba eklenemez.
   -------------------------------------------------------------------------- */
.menu-card.disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.menu-card.disabled .card-img-wrapper {
    filter: grayscale(1);
    opacity: 0.45;
}

.menu-card.disabled .card-title,
.menu-card.disabled .card-desc {
    color: var(--text-muted);
}

.menu-card.disabled .card-price {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 107, 107, 0.55);
    font-size: 0.95rem;
}

.menu-card.disabled:hover {
    transform: none;
}

.sold-out-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #FF6B6B;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ==========================================================================
   EMPTY / NO SEARCH RESULTS
   ========================================================================== */
.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    color: var(--gold-500);
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ==========================================================================
   FLOATING CART & CALCULATOR BOTTOM BAR
   ========================================================================== */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 32px);
    max-width: 540px;
    background: rgba(10, 18, 36, 0.95);
    border: 1px solid var(--gold-500);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-gold-lg);
    backdrop-filter: blur(20px);
    z-index: 950;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.floating-cart-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.cart-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon-bubble {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #060B14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF4757;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #060B14;
}

.cart-bar-info {
    display: flex;
    flex-direction: column;
}

.cart-bar-info .cart-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-bar-info .cart-total {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-300);
}

.cart-bar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-gradient);
    color: #060B14;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   CART CALCULATOR BOTTOM SHEET / DRAWER
   ========================================================================== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 16, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    background: #0A1324;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-top: 1px solid var(--border-gold);
    border-left: 1px solid var(--border-gold);
    border-right: 1px solid var(--border-gold);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.open .cart-drawer {
    transform: translateX(-50%) translateY(0);
}

.drawer-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-gold);
}

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold-300);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-drawer {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-close-drawer:hover {
    color: var(--gold-400);
}

.drawer-disclaimer {
    margin: 12px 20px 0;
    padding: 10px 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--gold-100);
    line-height: 1.35;
}

.drawer-disclaimer i {
    color: var(--gold-400);
    margin-top: 2px;
    font-size: 0.95rem;
}

.cart-items-scroll {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    max-height: 48vh;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cart-item-info span {
    font-size: 0.82rem;
    color: var(--gold-400);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-drawer-qty {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-drawer-qty:hover {
    background: var(--gold-500);
    color: #060B14;
}

.drawer-qty-val {
    font-size: 0.92rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.drawer-empty-state {
    text-align: center;
    padding: 40px 10px;
    color: var(--text-muted);
}

.drawer-empty-state i {
    font-size: 2.8rem;
    color: var(--border-gold);
    margin-bottom: 12px;
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-gold);
    background: rgba(6, 11, 20, 0.6);
}

.drawer-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.drawer-total-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.drawer-total-amount {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-400);
}

.drawer-actions-row {
    display: flex;
    gap: 10px;
}

.btn-clear-cart {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-cart:hover {
    color: #FF6B6B;
    border-color: rgba(255, 107, 107, 0.3);
}

.btn-close-modal-main {
    flex: 2;
    background: var(--gold-gradient);
    color: #060B14;
    border: none;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   PRODUCT DETAILS MODAL
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 16, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.detail-modal-card {
    width: 100%;
    max-width: 480px;
    background: #0A1324;
    border: 1px solid var(--gold-500);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-gold-lg);
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .detail-modal-card {
    transform: scale(1);
}

.detail-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(6, 11, 20, 0.7);
    border: 1px solid var(--border-gold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.detail-modal-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-gold);
}

.detail-modal-body {
    padding: 20px;
}

.detail-modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.detail-modal-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-modal-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-400);
    white-space: nowrap;
}

.detail-modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.detail-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-detail-add {
    flex: 1;
    background: var(--gold-gradient);
    color: #060B14;
    border: none;
    padding: 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(10, 20, 38, 0.96);
    border: 1px solid var(--gold-500);
    box-shadow: var(--shadow-gold-lg);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--gold-400);
    font-size: 1.1rem;
}

.toast-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}


/* --------------------------------------------------------------------------
   KALORİ GÖSTERİMİ
   -------------------------------------------------------------------------- */
.hidden {
    display: none !important;
}

.card-cal {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 6px;
    white-space: nowrap;
}

.menu-card.disabled .card-cal {
    text-decoration: none;
}

.detail-modal-cal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--gold-300);
    font-size: 0.78rem;
}

.detail-modal-cal strong {
    color: var(--gold-400);
}

.drawer-cal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.drawer-cal-label i {
    color: var(--gold-400);
    margin-right: 6px;
}

.drawer-cal-amount {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   DEĞERLENDİRME ANKETİ
   ========================================================================== */
.feedback-invite {
    margin: 28px auto 40px;
    padding: 26px 22px;
    max-width: 520px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
}

.feedback-invite-stars {
    font-size: 1.5rem;
    color: var(--gold-400);
    margin-bottom: 10px;
}

.feedback-invite h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold-300);
    margin-bottom: 8px;
}

.feedback-invite p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
}

.btn-feedback-open,
.btn-feedback-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: #060B14;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-feedback-open:hover,
.btn-feedback-send:hover {
    transform: translateY(-1px);
}

.btn-feedback-send {
    width: 100%;
}

.btn-feedback-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Kısa ekranlarda (yatay telefon, küçük pencere) pencere taşmasın:
   kart ekranın %90'ını geçmez, içerik kendi içinde kayar, "Gönder" hep görünür.
   Admin panelindeki "Kaydet kayıyor" hatasının aynısı burada oluşmasın. */
.feedback-card {
    max-width: 440px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.feedback-card > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.feedback-card .feedback-header,
.feedback-card .feedback-footer {
    flex-shrink: 0;
}

.feedback-card .feedback-body {
    overflow-y: auto;
    min-height: 0;
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-gold);
}

.feedback-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--gold-300);
}

.feedback-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
}

.feedback-body {
    padding: 20px;
}

.rating-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rating-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.rating-label i {
    color: var(--gold-400);
    margin-right: 7px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-star {
    background: transparent;
    border: none;
    padding: 4px;
    font-size: 1.25rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rating-star:hover {
    transform: scale(1.15);
}

.rating-star.dolu {
    color: var(--gold-400);
}

.feedback-comment-label {
    display: block;
    margin: 18px 0 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feedback-comment-label span {
    color: var(--text-muted);
}

.feedback-comment {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
}

.feedback-comment:focus {
    border-color: var(--gold-500);
}

.feedback-status {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
    font-size: 0.82rem;
}

.feedback-status.visible {
    display: block;
}

.feedback-status.basarili {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34D399;
}

.feedback-footer {
    padding: 0 20px 20px;
}

.feedback-thanks {
    padding: 38px 24px;
    text-align: center;
}

.feedback-thanks i {
    font-size: 2.4rem;
    color: #34D399;
    margin-bottom: 14px;
}

.feedback-thanks h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold-300);
    margin-bottom: 6px;
}

.feedback-thanks p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==========================================================================
   FOTOĞRAFSIZ MENÜ DÜZENİ  —  "Fiyat rozeti + altın şerit"
   Fotoğraflar kapalıyken (app.js > MENU_GORSELLERI_ACIK) kart bu düzeni alır.
   ========================================================================== */
body.fotografsiz-menu .items-grid {
    gap: 10px;
}

@media (min-width: 680px) {
    body.fotografsiz-menu .items-grid {
        gap: 12px 22px;
    }
}

.menu-card.no-photo {
    padding: 15px 16px 15px 18px;
    position: relative;
    overflow: hidden;
    align-items: stretch;
}

/* Sol kenardaki ince altın şerit */
.menu-card.no-photo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--gold-gradient);
    border-radius: 0 3px 3px 0;
}

.menu-card.no-photo .card-content {
    width: 100%;
    justify-content: flex-start;
}

/* Ad solda, fiyat rozeti sağ üstte */
.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.card-head .card-title {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.menu-card.no-photo .card-head .card-price {
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 700;
    color: #060B14;
    background: var(--gold-gradient);
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, .25);
}

.menu-card.no-photo .card-desc {
    margin: 8px 0 0;
    font-size: .82rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
}

.menu-card.no-photo .card-bottom {
    margin-top: 11px;
    gap: 10px;
}

/* Kalori yoksa eylemler sağa yaslansın */
.menu-card.no-photo .card-actions {
    margin-left: auto;
}

.menu-card.no-photo .card-cal {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--gold-300);
    font-size: .7rem;
}

.menu-card.no-photo .card-cal i {
    font-size: .72em;
}

/* Fotoğraf yokken "Popüler" rozeti başlığın yanında küçük yıldız */
.title-popular {
    color: var(--gold-400);
    font-size: .78em;
    margin-left: 5px;
}

/* Tükenen ürün: fiyat rozeti sönükleşir, şerit griye döner */
.menu-card.no-photo.disabled::before {
    background: rgba(255, 255, 255, 0.12);
}

.menu-card.no-photo.disabled .card-head .card-price {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    box-shadow: none;
    text-decoration: line-through;
}

.menu-card.no-photo.disabled .card-cal {
    opacity: .5;
}

/* ==========================================================================
   ARMA (logo)
   ========================================================================== */
.fk-arma {
    display: block;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.25));
}

/* Başlıktaki yuvarlak rozet yerini armaya bırakıyor */
.logo-badge {
    width: auto;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Karşılama ekranında arma halkaların ortasında durur */
.splash-crest .fk-arma {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   DETAY PENCERESİ — fotoğrafsız hâlde kapatma düğmesi çakışması
   Kapatma düğmesi mutlak konumda sağ üstte; fotoğraf varken 220px görselin
   üzerinde duruyordu. Fotoğraflar kapatılınca başlık satırı en yukarı çıktı
   ve fiyat düğmenin altında kaldı. Satıra düğme genişliği kadar sağ boşluk.
   -------------------------------------------------------------------------- */
body.fotografsiz-menu .detail-modal-title-row {
    padding-right: 52px;
}

/* ==========================================================================
   BÖLÜM ÇUBUĞU  (YEMEKLER / İÇECEKLER / …)
   Kategori şeridinin üstündeki ikinci katman. Menü 125 ürüne çıkınca tek
   şeritte 18 kategori telefona sığmaz oldu; bölüm seçimi şeridi 12'de tutuyor.
   Tek bölüm varsa app.js bu kutuyu tamamen gizler.
   ========================================================================== */
.section-chips {
    display: flex;
    gap: 6px;
    max-width: 900px;
    margin: 0 auto;
    padding: 2px 16px 9px;
    /* Emniyet: bölüm sayısı artarsa ya da ekran çok darsa çipler kesilmek
       yerine kayar. Üç çip 375px'te sığıyor, dördüncüsü sığmayabilir. */
    overflow-x: auto;
    scrollbar-width: none;
}

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

.section-chip {
    /* min-width: 0 olmadan flex küçültmesi çalışmıyor; nowrap + padding
       çipin en-küçük genişliğini payından büyük yapıp taşmaya yol açıyordu
       (375px ekranda 415px içerik, üçüncü çip ekran dışında kalıyordu). */
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 12px;
    background: rgba(14, 25, 48, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.16);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

/* Geniş ekranda çipler nefes alsın */
@media (min-width: 480px) {
    .section-chip {
        gap: 8px;
        padding: 10px 14px;
        font-size: 0.82rem;
        letter-spacing: 1px;
    }
}

.section-chip i {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--gold-500);
}

.section-chip.active {
    background: var(--gold-gradient);
    color: #060B14;
    border-color: var(--gold-400);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.section-chip.active i {
    color: #060B14;
}

/* Bölüm çubuğu varken kategori şeridi ile arasına ince bir ayrım girer */
.section-chips:not(:empty) + .category-scroll {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 8px;
}

/* Bölüm çubuğu şeridi aşağı ittiği için sticky menü bölümleri de o kadar
   aşağıdan başlamalı; yoksa başlık şeridin altında kalıyor. */
body.bolumlu-menu .menu-category-section {
    scroll-margin-top: 190px;
}

/* ==========================================================================
   DEĞERLENDİRME DAVETİ — otomatik açılan pencere
   Müşteri kendisi açmadığı için pencere neden karşısına çıktığını söylemeli;
   aksi hâlde reklam sanılıp refleksle kapatılıyor.
   ========================================================================== */
.feedback-auto-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 20px 4px;
    padding: 9px 13px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--gold-300);
    font-size: 0.79rem;
    line-height: 1.45;
}

.feedback-auto-note i {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* Kendiliğinden açılan pencere biraz daha yumuşak girer */
.modal-backdrop.otomatik.open .feedback-card {
    animation: anketDavetiGiris 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes anketDavetiGiris {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .modal-backdrop.otomatik.open .feedback-card { animation: none; }
}

/* Bölüm dışı kalan sekmeler gizlenir.
   `hidden` özniteliği tek başına yetmiyor: tarayıcının [hidden]{display:none}
   kuralı, .category-tab üzerindeki açık `display` tanımından daha zayıf
   olduğu için eziliyordu — sekmeler gizli sayılıyor ama yer kaplamaya
   devam ediyordu. */
.category-tab[hidden] {
    display: none;
}

/* Kişi başı fiyatlı ürünlerde rozet iki satır olur: yuvarlak hap yerine yumuşak köşe */
.card-price:has(.price-unit) {
    border-radius: 12px;
    text-align: center;
    line-height: 1.15;
}

/* ==========================================================================
   ÜRÜN SEÇENEKLERİ (Ice Tea çeşitleri, Tek/Double …)
   ========================================================================== */
.card-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.option-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-gold);
    background: rgba(212, 175, 55, 0.06);
    color: var(--gold-300);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.option-chip b {
    color: var(--gold-400);
    font-weight: 700;
}

/* Seçenekli üründe "+" detay penceresini açar; hesaptaki adet köşede görünür */
.btn-add-options {
    position: relative;
}

.option-count {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: #060B14;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.option-count.active {
    display: block;
}

.detail-modal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 22px;
}

.detail-modal-options.hidden {
    display: none;
}

.detail-option {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 76px;
    padding: 9px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-gold);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.detail-option small {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-400);
}

.detail-option.selected {
    border-color: var(--gold-500);
    background: var(--gold-gradient);
    color: #060B14;
}

.detail-option.selected small {
    color: #060B14;
}

.cart-item-option {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-gold);
    color: var(--gold-300);
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
}
