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

:root {
    --gold: #C29B62;
    /* Muted luxury gold */
    --gold-light: #E0BA82;
    --gold-dark: #A17D49;

    /* Awwwards Espresso & Earth Palette (No pure white/black) */
    --dark-bg: #1C1816;
    /* Deepest Espresso for Hero/Body */
    --sheet-bg: #EAE5D9;
    /* Latte/Kestane for Category Sheet */
    --card-bg: #F5F2EB;
    /* Warm Vanilla for Product Cards & Modals */

    --text-primary: #F5F2EB;
    /* For text on dark backgrounds */
    --text-dark: #2A2321;
    /* For main text on light backgrounds */
    --text-secondary: #6B5E5B;
    /* Muted text on light backgrounds */

    --border-color: rgba(42, 35, 33, 0.08);
    /* Dark subtle border for light theme */
    --border-light: rgba(245, 242, 235, 0.08);
    /* Light subtle border for dark theme */

    --accent-red: #8B3A3A;
    /* Muted Brick Red */
    --accent-green: #3A5A44;
    /* Muted Forest Green */

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Outfit', sans-serif;

    /* Aliases for inline styles in HTML */
    --surface: var(--card-bg);
    --accent-gold: var(--gold);
}

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

body {
    background-color: var(--dark-bg);
    /* Use deep dark luxury background */
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

/* === GLASS HEADER === */
/* === DARK HERO SECTION === */
.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    /* Reverted to 50vh to match design and user request */
    min-height: 400px;
    background: url('../images/qrmenuarkaplan.jpg') center/cover no-repeat;
    background-color: var(--text-primary);
    /* Unified deep brown */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Faz 17: Cinematik Vignette */
    background: linear-gradient(to bottom, rgba(35, 18, 16, 0.3) 0%, rgba(35, 18, 16, 0.2) 40%, rgba(35, 18, 16, 0.8) 75%, rgba(35, 18, 16, 1) 100%);
}

.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}



.hero-content {
    position: absolute;
    bottom: 90px;
    /* Increased offset to prevent overlapping by the menu sheet */
    left: 24px;
    right: 24px;
    z-index: 10;
}

.hero-subtitle {
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 12px;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.4;
    max-width: 280px;
}

/* Faz 19 & Faz 2: Elegant Vertical Category Blocks (Fix Box Clutter) */
.vertical-categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Tighter elegant gap */
    padding: 32px 24px 40px 24px;
    width: 100%;
    margin-top: -30px;
    /* Pull up slightly over the sheet */
    z-index: 10;
    position: relative;
}

.vertical-category-card {
    will-change: transform, opacity;
    transform: translateZ(0);
    background-color: var(--card-bg);
    /* Warm Vanilla */
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(28, 24, 22, 0.06);
    /* Very soft elegant shadow */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space for arrow */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.vertical-category-card:hover {
    box-shadow: 0 8px 24px rgba(28, 24, 22, 0.1);
    transform: translateY(-2px);
}

.vertical-category-card:active {
    transform: scale(0.98);
}

.vertical-category-title {
    color: var(--text-dark);
    /* Espresso text */
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.vertical-category-card::after {
    content: '→';
    font-family: var(--font-sans);
    color: var(--gold);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.vertical-category-card:hover .vertical-category-title {
    transform: translateX(4px);
}

.vertical-category-card:hover::after {
    transform: translateX(4px);
}

/* === LIGHT SHEET OVERLAY === */
.menu-sheet-container {
    will-change: transform;
    position: relative;
    width: 100%;
    min-height: 50vh;
    background: var(--sheet-bg);
    /* Kestane/Latte background for the sliding sheet */
    border-radius: 40px 40px 0 0;
    margin-top: -60px;
    /* Overlaps the hero */
    z-index: 20;
    padding-top: 16px;
    padding-bottom: 60px;
    /* Moved up a bit */
    box-shadow: 0 -10px 30px rgba(28, 24, 22, 0.4);
    /* Espresso based shadow */

}

/* === FLOATING DOCK NAVIGATION === */
/* === CATEGORY NAVIGATION (Inside Sheet) === */
.category-nav-wrapper {
    position: relative;
    /* Not floating anymore */
    width: 100%;
    padding: 0 0 0px 0;
    /* Reduced from 16px */
}

.category-nav {
    display: flex;
    gap: 8px;
    /* Reduced gap from 16px */
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    /* For absolute pill */
}

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

.nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(42, 35, 33, 0.04);
    /* Extremely subtle fill */
    border: 1px solid rgba(42, 35, 33, 0.15);
    /* Minimal Bento Outline */
    border-radius: 100px;
    z-index: 1;
    /* Behind buttons */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: none;
    /* Minimalist approach */
    will-change: transform, width;
    /* Step 3: Hardware acceleration */
}

.cat-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    /* Taupe on Latte */
    font-family: var(--font-sans);
    font-size: 15px;
    /* Reduced from 14px */
    font-weight: 500;
    padding: 8px 14px;
    /* Reduced horizontal padding from 18px to 14px */
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border-radius: 100px;
    z-index: 2;
    /* Above pill */
}

.cat-btn.active {
    background: transparent;
    color: var(--text-dark);
    /* Espresso text on Latte bg */
    font-weight: 500;
    /* Matching weight for minimalism */
}

/* === MENU CONTENT === */
/* === MENU CONTENT (Bento Grid) === */
.menu-section {
    padding: 0px 24px 180px 24px;
    /* Reduced top padding for tighter layout */
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    /* Stack vertically for narrower/elegant boxes */
    gap: 14px;
    /* Tightened from 16px */
}

@media (min-width: 768px) {
    .menu-section {
        grid-template-columns: 1fr 1fr;
    }
}

.allergen-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
    object-fit: contain;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    /* Slightly reduced for tighter feel */
    font-weight: 400;
    color: var(--text-dark);
    /* Espresso text on Latte bg */
    margin-bottom: 8px;
    /* Reduced gap */
    margin-top: 4px;
    /* Reduced for better flow */
    text-align: center;
    letter-spacing: -1px;
    text-transform: capitalize;
}

.category-title .mask-text {
    color: var(--text-dark);
}

.subcat-header {
    grid-column: 1 / -1;
    /* Span full width */
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    /* Responsive size to prevent overflow */
    font-weight: 400;
    /* Elegant thin weight */
    color: var(--dark-bg);
    /* Crisp dark on cream */
    margin: 8px 0 16px 0;
    /* Extremely tight top margin */
    text-align: center;
    /* Center perfectly */
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Fallback if it still overflows somehow */
}

/* === BENTO BOX STYLE MENU ITEM === */
/* === BENTO BOX STYLE MENU ITEM === */
.menu-item {
    will-change: transform, opacity;
    transform: translateZ(0);
    position: relative;
    display: flex;
    flex-direction: column;
    /* Removed opacity: 0 and transform for Pre-rendering Architecture */
    background: var(--card-bg);
    /* Warm Vanilla for product cards */
    border-radius: 20px;
    padding: 14px;
    /* Reduced from 16px for a tighter box */
    margin-bottom: 10px;
    /* Tightened from 12px for less space between boxes */
    box-shadow: 0 8px 24px rgba(28, 24, 22, 0.08);
    /* Lighter shadow for elegant depth */
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    overflow: hidden;
    /* Ensure image corners respect border radius */

}

.menu-item:hover {
    box-shadow: 0 16px 32px rgba(28, 24, 22, 0.12);
}

.menu-item:active {
    transform: scale(0.98) !important;
}

.menu-item .item-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    /* Reduced from 16px for tighter space above title */
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.item-main-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.item-info {
    flex: 1;
}

.item-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    /* Espresso on Vanilla */
    line-height: 1.15;
    margin-bottom: 4px;
    text-transform: capitalize;
    letter-spacing: 0;
    flex: 1;
    /* Take remaining space */
    padding-right: 8px;
    /* Space between name and price */
}

.item-desc {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    /* Taupe on Vanilla */
    line-height: 1.4;
    margin-bottom: 0;
    /* Set to 0 because there are no action buttons below it anymore */
    margin-top: 4px;
    /* Added slight top margin to separate from title */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fiyat ve Aksiyon */
.item-action-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.item-price {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gold);
    /* Gold price looks luxurious next to white title */
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevent price from wrapping */
    flex-shrink: 0;
}



.add-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold);
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
    border-radius: 50%;
}

.add-btn i {
    z-index: 1;
    position: relative;
    transition: color 0.4s;
}

.add-btn:active,
.add-btn:hover {
    transform: scale(0.95);
}

.add-btn:active::before,
.add-btn:hover::before {
    transform: scale(1);
}

.add-btn:active i,
.add-btn:hover i {
    color: var(--dark-bg);
}

/* Görsel Alanı */
.item-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--dark-surface-2);
    margin-bottom: 8px;
    clip-path: inset(100% 0 0 0);
    /* For ScrollTrigger reveal */
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* For parallax down */
    transform-origin: center;
}

/* Meta etiketler */
.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.meta-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.allergen-tag {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* === FLOATING CART === */
#floating-cart {
    background: var(--gold) !important;
    color: var(--dark-bg) !important;
    border: none;
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3) !important;
    border-radius: 4px !important;
}

#cart-count-badge {
    color: var(--dark-bg) !important;
    font-weight: 500 !important;
}

#cart-total-price {
    color: var(--dark-bg) !important;
    font-weight: 600 !important;
}

/* === SERVICE FAB === */
#service-fab {
    background: var(--dark-surface) !important;
    color: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Modals */
#variation-modal-content,
#cart-modal-content,
#service-modal-content {
    background: var(--dark-surface) !important;
    border-radius: 12px 12px 0 0 !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}


/* Empty State */
.empty-menu {
    text-align: center;
    padding: 60px 0;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-weight: 400;
}

/* Animation utilities */
.mask-text {
    display: inline-block;
}

/* === BENTO MODAL FOR DETAILS === */
/* Ultra Glassmorphism (UX Plan Step 4) */
.item-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 5, 4, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    opacity: 0;
}

/* Skeleton Loading Animation (UX Plan Step 3) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loading {
    background: #261614;
    background-image: linear-gradient(90deg, #261614 0px, #331f1c 50%, #261614 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.item-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 24, 22, 0.4);
    /* Espresso glass */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    /* Open from bottom like iOS */
    justify-content: center;
}

.item-modal-content {
    background: var(--card-bg);
    /* Warm Vanilla */
    width: 100%;
    max-width: 600px;
    border-radius: 32px 32px 0 0;
    padding: 32px 24px 100px 24px;
    box-shadow: 0 -20px 40px rgba(28, 24, 22, 0.1);
    transform: translateY(100%);
}

.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    margin: 0 auto 24px auto;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--text-dark);
    /* Espresso on Vanilla */
    margin-bottom: 12px;
}

.modal-desc {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    /* Taupe on Vanilla */
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.meta-box {
    background: var(--sheet-bg);
    /* Latte boxes on Vanilla modal */
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(28, 24, 22, 0.05);
    /* Very soft shadow */
}

.meta-box-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close-btn {
    width: 100%;
    background: var(--dark-bg);
    /* Deep Espresso button */
    color: var(--card-bg);
    /* Vanilla text */
    border: none;
    padding: 16px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:active {
    transform: scale(0.97);
}

.modal-close-btn:hover {
    background: var(--gold);
    color: var(--dark-bg);
}


/* --- DISCOUNT BADGE --- */
.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 100px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
}

.discount-badge-noimg {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    margin-top: -2px;
}

