:root {
    /* Theme Colors - Mevcut personalization sistemi korunuyor */
    --accent: #A9812F;
    --accent-soft: #F5EEDD;
    --accent-dark: #8C6A22;
    --secondary: #F59E0B;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --bg-page: #FAF8F4;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --border-subtle: #F3F4F6;
    
    /* Derived Colors - Temadan türetilmiş renkler */
    --surface: #FFFFFF;
    --surface-elevated: #FFFFFF;
    --accent-hover: adjust-color(--accent, -10%);
    --accent-light: adjust-color(--accent, 85%);
    
    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-display: 'Poppins', 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    
    /* Layout Dimensions */
    --header-height: 200px;
    --toolbar-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    
    /* Grid System */
    --grid-gap: 24px;
    --container-max-width: 1200px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0;
    background: var(--bg-page);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { max-width: 70px; max-height: 70px; object-fit: contain; }
.preloader-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-dark); }
.preloader-spinner {
    width: 28px; height: 28px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header - Sade Marka Alanı ----------
   Referans görseldeki gibi: renkli banner değil, temanın kendi nötr
   arka planı (personalization'daki background_color) üzerinde sakin
   bir marka alanı. Accent rengi artık büyük bir banner olarak değil,
   logo halkası + rozet + ince çizgi gibi küçük, kontrollü dokunuşlarla
   kullanılıyor. Hiçbir renk hard-code edilmedi; hepsi mevcut tema
   değişkenlerinden (--accent, --bg-page/--bg-card, --text-dark) geliyor. */
.menu-header {
    --header-text: var(--text-dark);
    --header-surface-hover: var(--bg-page);
    --header-logo-bg: var(--bg-card);
    --header-logo-ring: var(--accent);

    text-align: center;
    padding: calc(20px + var(--safe-top)) 24px 20px;
    background: var(--bg-page);
    background: color-mix(in srgb, var(--bg-page) 94%, var(--accent) 6%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 0;
    position: relative;
    box-shadow: none;
    min-height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.menu-header.is-light-theme {
    --header-text: var(--text-dark);
}

.menu-header::before { content: none; }

.menu-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    pointer-events: none;
}

.header-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo {
    height: 100px;
    width: 100px;
    max-width: 100px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 8px;
    background: var(--header-logo-bg);
    border: 1.5px solid var(--header-logo-ring);
    margin-bottom: 16px;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-logo-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 8px;
    background: var(--header-logo-bg);
    border: 1.5px solid var(--header-logo-ring);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--accent);
    margin-bottom: 16px;
    box-sizing: border-box;
}

.header-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.015em;
    color: var(--header-text);
    line-height: 1.15;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.header-subtitle {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: inline-block;
    position: relative;
}

.header-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    width: 26px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-rule { display: none; }

/* ---------- Header açıklaması ve hızlı bağlantılar (Kişiselleştirme) ----------
   Bu alanlar yalnızca ilgili personalization alanı doluysa render edilir;
   boşsa hiç yer kaplamaz (bkz. includes/menu-render.php). */
.header-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 30px 0 0;
    max-width: 420px;
}

.header-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.header-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.header-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--accent);
}

.header-action-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.header-action-link:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    border-color: var(--accent);
    background: #ffffff;
}

/* ---------- Language Selector ---------- */
.lang-selector {
    position: absolute;
    top: calc(14px + var(--safe-top));
    right: 14px;
    z-index: 10;
}

.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 11px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.06em;
}

.lang-btn:hover {
    background: var(--header-surface-hover);
    color: var(--text-dark);
}

/* ---------- Category Toolbar - Premium Navigation ---------- */
.menu-toolbar {
    display: flex;
    align-items: stretch;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: var(--toolbar-height);
}

.category-bar {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: center;
    justify-content: safe center;
}
.category-bar::-webkit-scrollbar { display: none; }

.category-pill {
    flex-shrink: 0;
    padding: 8px 14px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.25s ease;
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.category-pill::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.category-pill:hover {
    color: var(--text-dark);
    background: transparent;
}

.category-pill.active { 
    color: var(--text-dark);
    font-weight: 700;
}

.category-pill.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ---------- Grid Mode Switch - Daha Geri Planda ---------- */
.grid-mode-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 0 12px;
    border-left: 1px solid var(--border-subtle);
    height: 100%;
}

.toolbar-mirror {
    visibility: hidden;
    pointer-events: none;
    border-left: none;
}

.grid-mode-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.grid-mode-btn svg { fill: currentColor; }
.grid-mode-btn.is-active {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: var(--accent);
}
@media (hover: hover) {
    .grid-mode-btn:hover { color: var(--text-dark); background: var(--bg-page); }
}

/* ---------- Grid System - BUG FIX ----------
   Kullanıcının seçtiği kolon sayısı (2/3/4/5) desktop'ta olduğu gibi
   gerçek kolon sayısı olarak uygulanır. Sadece dar viewport'larda
   (tablet/mobile) kartların minik kalmaması için üst sınır konur;
   seçim mantığı veya localStorage davranışı değişmez. */
html { --product-cols: 2; }
html[data-product-cols="2"] { --product-cols: 2; }
html[data-product-cols="3"] { --product-cols: 3; }
html[data-product-cols="4"] { --product-cols: 4; }
html[data-product-cols="5"] { --product-cols: 5; }

@media (max-width: 900px) {
    html[data-product-cols="4"],
    html[data-product-cols="5"] { --product-cols: 3; }
}

@media (max-width: 640px) {
    html[data-product-cols="3"],
    html[data-product-cols="4"],
    html[data-product-cols="5"] { --product-cols: 2; }
}

/* Mobilde sütun sayısı seçme kontrolü tamamen kaldırılır; mobil her zaman
   sabit 2 kolon olarak kalır (yukarıdaki kural zaten bunu garanti eder). */
@media (max-width: 640px) {
    .grid-mode-switch { display: none; }
}

/* Dar viewport'larda kolon sayısı zorla azaltıldığında (yukarıdaki iki
   blok), kart genişlik sınırı da fiilen gösterilen kolon sayısına göre
   yeniden ayarlanır. Aksi halde ör. 5 kolon seçiliyken tablette 3 koloa
   düşülüyor ama kartlar hâlâ 5-kolonluk dar sınırda kalıp gereksiz boşluk
   bırakırdı. */
@media (max-width: 900px) {
    html[data-product-cols="4"],
    html[data-product-cols="5"] { --card-max-width: 340px; }
}

@media (max-width: 640px) {
    html[data-product-cols="3"],
    html[data-product-cols="4"],
    html[data-product-cols="5"] { --card-max-width: 365px; }
}

/* ---------- Kart Genişliği Üst Sınırı - 2 KOLON DÜZELTMESİ ----------
   Kolon sayısı arttıkça sadece kart sayısı değil, kart genişliği de
   kontrollü şekilde küçülür. Geniş masaüstünde 2 kolon seçiliyken
   kartların ekranın neredeyse tamamını kaplayan devasa dikdörtgenlere
   dönüşmesini engeller; grid hâlâ gerçek 2/3/4/5 kolon olarak kalır,
   sadece her track'in büyüyebileceği maksimum genişlik sınırlanır. */
html { --card-max-width: 365px; }
html[data-product-cols="2"] { --card-max-width: 365px; }
html[data-product-cols="3"] { --card-max-width: 340px; }
html[data-product-cols="4"] { --card-max-width: 290px; }
html[data-product-cols="5"] { --card-max-width: 245px; }

/* Ürün görselleri object-fit: contain ile gösteriliyor (ürün crop
   edilmiyor, tamamı görünüyor). Konteynerin arka planı artık kartla
   aynı beyaz yüzey (--bg-card) ve iç dolgu kaldırıldı; böylece fotoğraf
   kartın içine doğal şekilde oturuyor, ayrı bir "kutu" hissi vermiyor.
   Oran 11/8'e geri alındı — orijinal, daha ferah fotoğraf oranı. */

.menu-main { 
    padding: 40px 32px 100px; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%;
}

/* ---------- Category Section ---------- */
.category-section { 
    margin-bottom: 64px; 
    scroll-margin-top: calc(var(--toolbar-height) + 36px);
    text-align: center;
}

.category-heading {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 26px;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* ---------- Subcategory Chips ---------- */
.subcategory-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.subcategory-chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    height: 36px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.subcategory-chip:hover { 
    color: var(--accent); 
    border-color: var(--accent);
}

.subcategory-chip.is-active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

/* ---------- Subcategory Block ---------- */
.subcategory-block { 
    margin-top: 32px;
    margin-bottom: 32px; 
    scroll-margin-top: calc(var(--toolbar-height) + 32px);
}

.subcategory-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.subcategory-heading::before,
.subcategory-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---------- Product Grid - DÜZELTİLMİŞ GRID SİSTEMİ ----------
   Her track, seçilen kolon sayısına göre --card-max-width'e kadar
   büyüyebilir; container daha genişse fazla boşluk justify-content
   ile ortalanır. Böylece 2 kolonda dahi kartlar viewport'un yarısı
   kadar devleşmez, ama 2/3/4/5 gerçek kolon sayısı korunur. */
.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--product-cols), minmax(0, var(--card-max-width)));
    gap: var(--grid-gap);
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

/* ---------- Product Card - PREMIUM TASARIM ---------- */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}

@media (hover: hover) {
    .product-card:hover {
        box-shadow: var(--shadow-sm);
        transform: translateY(-2px);
        border-color: var(--accent);
    }
    .product-card:hover .product-image { transform: scale(1.03); }
}

.product-image-wrap { 
    position: relative; 
    width: 100%; 
    aspect-ratio: var(--product-image-ratio, 3/2); 
    background: var(--bg-card); 
    overflow: hidden; 
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image { 
    width: 100%; 
    height: 100%; 
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; 
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
}

.product-image-placeholder { 
    width: 100%; 
    height: 100%; 
    background: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.55;
}

.product-image-placeholder svg {
    width: 30%;
    height: 30%;
    max-width: 44px;
    max-height: 44px;
}

/* Görseli olmayan ürünler: fotoğraflarla aynı büyük kare alanı
   ayırmak yerine küçük, hafif, dikkat çekmeyen bir şerit bırakılır.
   İki class'ın da eşleşmesi gerektiğinden (özgüllük 0,0,2,0) mobil
   medya sorgusundaki tek class'lı aspect-ratio kuralını her zaman
   geçersiz kılar. */
.product-image-wrap.product-image-wrap--empty {
    aspect-ratio: auto;
    height: 88px;
    background: transparent;
}

.product-image-wrap--empty .product-image-placeholder {
    background: transparent;
    opacity: 0.3;
}

.product-image-wrap--empty .product-image-placeholder svg {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
}

.video-badge {
    position: absolute; bottom: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---------- Product Card Content - HİZALAMA PROBLEMİ ÇÖZÜLDÜ ---------- */
.product-info { 
    padding: 14px 18px 18px; 
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-align: left;
}

.product-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
    line-height: 1.3;
    color: var(--text-dark);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 25px;
}

.product-desc { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin: 0 0 10px; 
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 20px;
}

@media (min-width: 641px) {
    .product-desc { -webkit-line-clamp: 3; }
}

.product-meta-row { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin-top: auto;
}

.product-meta-row-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.product-price { 
    font-family: var(--font-display); 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--accent);
}

.product-calories { 
    font-size: 11px; 
    color: var(--text-muted); 
    background: var(--bg-page);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.product-portion { 
    font-size: 11px; 
    color: var(--text-muted);
    background: var(--bg-page);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* ---------- Allergen Row - SABİT YÜKSEKLİK ---------- */
.allergen-row {
    margin-top: 12px;
    min-height: 26px;
    display: flex;
    align-items: center;
}

.allergen-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4px; 
}

.allergen-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--accent-dark);
    border: 1px solid rgb(0 0 0 / 16%);
    white-space: nowrap;
}

.empty-menu { 
    text-align: center; 
    color: var(--text-muted); 
    padding: 50px 20px; 
    font-family: var(--font-display); 
    font-size: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

/* ---------- Fixed CTA ---------- */
.fixed-cta {
    position: fixed;
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
}

.cta-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    color: #fff;
    transition: all 0.25s ease;
}

@media (hover: hover) {
    .cta-icon:hover { 
        transform: translateY(-2px) scale(1.05);
        box-shadow: var(--shadow-xl);
    }
}

.cta-whatsapp { background: #25D366; }
.cta-phone { background: var(--text-dark); }

/* ---------- Campaign Popup ---------- */
.campaign-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 100;
    align-items: center; justify-content: center;
    padding: 16px;
}
.campaign-overlay.show { display: flex; }
.campaign-box { position: relative; max-width: 420px; width: 100%; }
.campaign-image { 
    width: 100%; 
    border-radius: var(--radius-lg); 
    max-height: 85vh; 
    object-fit: contain; 
    background: #fff; 
    box-shadow: var(--shadow-xl); 
}
.campaign-close {
    position: absolute; top: -10px; right: -10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.campaign-close:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: #fff;
}

/* ---------- Product Modal - PREMIUM ---------- */
.product-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 90;
    align-items: flex-end;
    justify-content: center;
}
.product-modal-overlay.show { display: flex; }
@media (min-width: 640px) {
    .product-modal-overlay { align-items: center; }
}

.product-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    padding-bottom: 20px;
    box-shadow: var(--shadow-xl);
}

.product-modal::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
    .product-modal { 
        border-radius: var(--radius-xl); 
        max-height: 85vh;
    }
}

@media (min-width: 900px) {
    .product-modal {
        max-width: 640px;
    }
}

.modal-close {
    position: absolute; top: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    font-size: 16px;
    z-index: 2;
    cursor: pointer;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: scale(1.1);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.modal-media { 
    width: 100%; 
    aspect-ratio: var(--product-image-ratio, 3/2); 
    background: var(--bg-card);
    position: relative;
}

.modal-media img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

.modal-media video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.modal-media iframe { 
    width: 100%; 
    aspect-ratio: 16/9; 
    height: auto; 
    border: none; 
}

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

.modal-name { 
    font-family: var(--font-display); 
    font-size: 20px; 
    font-weight: 600; 
    margin: 0 0 8px; 
    color: var(--text-dark);
    line-height: 1.3;
}

.modal-desc { 
    font-size: 13px; 
    color: var(--text-muted); 
    line-height: 1.6; 
    margin-bottom: 14px;
}

.modal-meta-row { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.modal-meta-row-secondary {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.modal-price { 
    font-family: var(--font-display); 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--accent);
}

.modal-calories { 
    font-size: 12px; 
    color: var(--text-muted); 
    background: var(--bg-page);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.modal-portion { 
    font-size: 12px; 
    color: var(--text-muted);
    background: var(--bg-page);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .product-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    :root {
        --header-height: 140px;
        --toolbar-height: 56px;
        --grid-gap: 20px;
        --container-max-width: 100%;
    }
    
    .menu-header {
        padding: calc(14px + var(--safe-top)) 18px 18px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .header-brand { }
    
    .header-logo {
        height: 80px;
        width: 80px;
        max-width: 80px;
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .header-logo-placeholder {
        width: 80px;
        height: 80px;
        padding: 8px;
        font-size: 30px;
        margin-bottom: 12px;
    }
    
    .header-title {
        font-size: 22px;
        margin: 0 0 8px;
    }
    
    .header-subtitle {
        font-size: 9px;
        letter-spacing: 0.16em;
    }
    
    .lang-selector {
        top: calc(12px + var(--safe-top));
        right: 12px;
    }
    
    .lang-btn {
        padding: 4px 9px;
        font-size: 9px;
    }
    
    .category-pill {
        padding: 6px 12px;
        font-size: 11px;
        height: 36px;
    }
    
    .category-heading {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .menu-main {
        padding: 36px 20px 100px;
        width: 100%;
    }
    
    .category-section {
        margin-bottom: 48px;
    }
    
    .product-card {
        border-radius: var(--radius-md);
    }
    
    .product-image-wrap {
        aspect-ratio: var(--product-image-ratio, 3/2);
    }
    
    .product-info {
        padding: 12px 14px 14px;
    }
    
    .product-name {
        font-size: 17px;
    }
    
    .fixed-cta {
        right: 16px;
        bottom: calc(16px + var(--safe-bottom));
    }
    
    .cta-icon {
        width: 48px;
        height: 48px;
    }
    
    .modal-body {
        padding: 16px 16px 0;
    }
    
    .modal-name {
        font-size: 18px;
    }
    
    .modal-price {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .menu-main {
        padding: 44px 40px 100px;
        width: 100%;
    }
    
    .category-section {
        margin-bottom: 80px;
    }
}

/* 5 kolon görünümünde daha kompakt kartlar */
html[data-product-cols="5"] .product-name {
    font-size: 17px;
}

html[data-product-cols="5"] .product-info {
    padding: 14px;
}

html[data-product-cols="5"] .product-price {
    font-size: 18px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { 
        transition-duration: 0.01ms !important; 
        animation-duration: 0.01ms !important; 
        scroll-behavior: auto !important; 
    }
}

.menu-footer {
    text-align: center;
    padding: 0 16px calc(24px + var(--safe-bottom));
    margin-top: -60px;
    font-size: 13px;
    color: var(--text-muted);
}
.menu-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.menu-footer a:hover { color: var(--accent); }