/* =============================================
   SimetriLink Menu - Premium Glass Design
   Apple-inspired glassmorphism + glow effects
   ============================================= */

/* Scrollbar gizle */
html, body, .app-shell, .app-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Menü sayfasında üst boşluğu kaldır - header safe area'yı kapsasın */
.app-inner:has(.menu-top-panel) {
    padding-top: 0 !important;
}

/* Body gradient overlay'ı menü sayfasında devre dışı - status bar renk farkını önler */
body:has(.menu-top-panel)::before {
    display: none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-shell::-webkit-scrollbar,
.app-inner::-webkit-scrollbar {
    display: none;
}

/* =============================================
   TOP PANEL - Sticky header with glass
   ============================================= */
.menu-top-panel {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 16px 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
    margin: 0 -16px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--sl-accent, #3b82f6) 0%, color-mix(in srgb, var(--sl-accent, #3b82f6) 75%, #000) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: none;
    box-shadow: none;
    will-change: padding;
    transition: padding 0.2s ease;
}

/* Glass effect when scrolled - TEMA RENGİ ARKA PLAN */
.menu-top-panel.is-scrolled {
    padding: 6px 16px 0;
    background: linear-gradient(135deg, var(--sl-accent, #3b82f6) 0%, color-mix(in srgb, var(--sl-accent, #3b82f6) 75%, #000) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: none;
    box-shadow: none;
}

/* Scrolled - Back butonu beyaz */
.menu-top-panel.is-scrolled .menu-back-btn {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: none;
}
.menu-top-panel.is-scrolled .menu-back-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* Scrolled - Arama inputu beyaz/yarı saydam */
.menu-top-panel.is-scrolled .menu-search-inline input {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: none;
}
.menu-top-panel.is-scrolled .menu-search-inline input::placeholder {
    color: rgba(255,255,255,0.65);
}
.menu-top-panel.is-scrolled .menu-search-inline input:focus {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

/* Scrolled - Filter tabları beyaz */
.menu-top-panel.is-scrolled .menu-filter-tab {
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    box-shadow: none;
}
.menu-top-panel.is-scrolled .menu-filter-tab:hover {
    background: rgba(255,255,255,0.3);
}
.menu-top-panel.is-scrolled .menu-filter-tab.is-active {
    background: rgba(255,255,255,0.95);
    color: var(--sl-accent, #3b82f6);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.menu-top-panel.is-scrolled .menu-filter-tab.is-active .fav-tab-icon {
    color: #ef4444;
}

/* Scrolled - Kategori pill'leri beyaz */
.menu-top-panel.is-scrolled .menu-category-pill {
    padding: 6px 12px;
    font-size: 12px;
}
.menu-top-panel.is-scrolled .menu-category-pill.is-active {
    transform: translateY(-1px);
}

.menu-top-panel.is-scrolled .menu-filter-tabs {
    margin-top: 8px;
    margin-bottom: 8px;
}

.menu-top-panel.is-scrolled .menu-category-scroll {
    padding: 6px 16px 8px;
}

/* Dark mode için - alt bölümde kapsamlı tanımlı */

.menu-top-panel.is-compact {
    padding-top: 8px;
    padding-bottom: 8px;
}

.menu-top-panel.is-compact .menu-header-name {
    font-size: 15px;
}

.menu-top-panel.is-compact .menu-header-slogan {
    display: none;
}

.menu-top-panel.is-compact .menu-section-title {
    font-size: 10px;
}

/* =============================================
   HEADER - Restaurant info
   ============================================= */
.menu-header {
    margin-bottom: 6px;
}

.menu-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.menu-back-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.menu-back-btn:hover {
    background: rgba(255,255,255,0.35);
}

.menu-back-btn:active {
    transform: scale(0.95);
}

/* Inline search next to back button */
.menu-search-inline {
    flex: 1;
}

.menu-search-inline input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    font-size: 15px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: none;
    transition: all 0.2s ease;
    outline: none;
}

.menu-search-inline input::placeholder {
    color: rgba(255,255,255,0.65);
}

.menu-search-inline input:focus {
    border-color: var(--sl-accent, #3b82f6);
    box-shadow: 
        0 0 0 3px rgba(var(--sl-accent-rgb, 59,130,246), 0.15),
        0 2px 8px rgba(0,0,0,0.04);
}

/* Section title inline with back button */
.menu-header-top .menu-section-title {
    margin: 0;
    flex: 1;
}

.menu-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-header-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--sl-text-main, #111827);
    letter-spacing: -0.01em;
}

.menu-header-slogan {
    font-size: 13px;
    color: var(--sl-text-muted, #6b7280);
}

/* =============================================
   SECTION TITLE - Premium with accent lines
   ============================================= */
.menu-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sl-text-main, #111827);
    margin: 0;
    font-weight: 700;
}

.menu-section-title::before,
.menu-section-title::after {
    content: '';
    flex: 1;
    max-width: 50px;
    height: 2px;
    opacity: 0.25;
}

.menu-section-title::before {
    background: linear-gradient(90deg, transparent, var(--sl-accent, #3b82f6));
}

.menu-section-title::after {
    background: linear-gradient(90deg, var(--sl-accent, #3b82f6), transparent);
}

/* Active category chip */
.menu-active-cat-chip {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

.menu-active-cat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--sl-text-main, #111827);
}

/* =============================================
   SEARCH INPUT - Glass style
   ============================================= */
.menu-search {
    margin-top: 10px;
    margin-bottom: 8px;
}

.menu-search input[type="search"] {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 12px 18px;
    font-size: 15px;
    outline: none;
    background: rgba(255,255,255,0.8);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.03),
        0 4px 16px rgba(15,23,42,0.04),
        inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.menu-search input[type="search"]:focus {
    background: rgba(255,255,255,0.95);
    border-color: var(--sl-accent, #3b82f6);
    box-shadow: 
        0 0 0 3px rgba(var(--sl-accent-rgb, 59,130,246), 0.12),
        0 4px 16px rgba(15,23,42,0.06);
}

.menu-search input[type="search"]::placeholder {
    color: var(--sl-text-muted, #9ca3af);
    font-size: 14px;
}

/* =============================================
   FILTER TABS - All items / Favorites
   ============================================= */
.menu-filter-tabs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.menu-filter-tab {
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.menu-filter-tab:hover {
    background: rgba(255,255,255,0.3);
}

.menu-filter-tab.is-active {
    background: rgba(255,255,255,0.95);
    color: var(--sl-accent, #3b82f6);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fav-tab-icon {
    font-size: 13px;
    color: #ef4444;
}

.menu-filter-tab.is-active .fav-tab-icon {
    color: #fff;
}

.fav-tab-text {
    font-size: 13px;
}

.fav-tab-count {
    background: rgba(255,255,255,0.25);
    color: inherit;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
}

.menu-filter-tab.is-active .fav-tab-count {
    background: rgba(255,255,255,0.3);
}

/* =============================================
   CATEGORY PILLS - Horizontal scroll
   ============================================= */
.menu-category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 16px 14px;
    margin-top: 0;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -4px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    scrollbar-width: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
}

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

.menu-category-pill {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    border: 1.5px solid rgba(var(--sl-accent-rgb, 59,130,246), 0.25);
    color: var(--sl-text-main, #111827);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
}

.menu-category-pill:hover {
    background: rgba(var(--sl-accent-rgb, 59,130,246), 0.05);
    border-color: rgba(var(--sl-accent-rgb, 59,130,246), 0.4);
}

.menu-category-pill.is-active {
    background: var(--sl-accent, #3b82f6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--sl-accent-rgb, 59,130,246), 0.3);
    transform: translateY(-1px);
}

.menu-category-pill.pulse {
    animation: slTabPulse 0.32s ease-out;
}

@keyframes slTabPulse {
    0%   { transform: scale(0.95); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* =============================================
   MENU GRID - Product cards layout
   ============================================= */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

/* =============================================
   MENU ITEM CARD - Glass morphism with image top
   ============================================= */
.menu-item-card {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(var(--sl-accent-rgb, 59,130,246), 0.5);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.04),
        0 12px 28px rgba(15,23,42,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    cursor: pointer;
}

.menu-item-card.is-out {
    opacity: 0.6;
}

@media (hover: hover) {
    .menu-item-card:hover {
        transform: translateY(-4px);
        border-color: rgba(var(--sl-accent-rgb, 59,130,246), 0.4);
        box-shadow: 
            0 8px 20px rgba(0,0,0,0.08),
            0 20px 40px rgba(15,23,42,0.12);
    }
    
    .menu-item-card:hover .menu-item-img img {
        transform: scale(1.05);
    }
}

.menu-item-card:active {
    transform: translateY(-2px);
}

/* =============================================
   ITEM IMAGE - Top section
   ============================================= */
.menu-item-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.menu-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Chef's special badge */
.menu-item-badge,
.menu-item-badge-noimg {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 3;
}

.menu-item-badge-noimg {
    position: static;
    margin: 10px 12px 0;
    display: inline-block;
}

/* =============================================
   ITEM BODY - White box below image
   ============================================= */
.menu-item-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.95);
}

.menu-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.menu-item-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.menu-item-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--sl-text-main, #111827);
    line-height: 1.3;
}

.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Info button */
.menu-item-info {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    background: rgba(0,0,0,0.06);
    color: var(--sl-text-muted, #6b7280);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.menu-item-info:hover {
    background: rgba(0,0,0,0.1);
    color: var(--sl-text-main, #374151);
}

.menu-item-info:active {
    transform: scale(0.9);
}

/* Favorite button */
.menu-item-fav {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: none;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 0;
    font-size: 15px;
    line-height: 1;
    color: var(--sl-text-muted, #9ca3af);
    transition: all 0.2s ease;
}

.menu-item-fav:hover {
    background: rgba(0,0,0,0.08);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.menu-item-fav:active {
    transform: scale(0.95);
}

/* Favorited state */
.menu-item-card.is-fav .menu-item-fav {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border-color: rgba(239,68,68,0.2);
    box-shadow: 0 2px 10px rgba(239,68,68,0.25);
}

.menu-item-card.is-fav .menu-item-fav .fav-icon {
    font-size: 16px;
}

.menu-item-card.fav-pop .menu-item-fav {
    animation: favPop 0.25s ease-out;
}

@keyframes favPop {
    0%   { transform: scale(0.85); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Price area */
.menu-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 70px;
    text-align: right;
}

.menu-item-out-label {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
}

.menu-item-price-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--sl-accent, #3b82f6);
    padding: 6px 12px;
    background: rgba(var(--sl-accent-rgb, 59,130,246), 0.1);
    border-radius: 10px;
}

.menu-item-desc {
    font-size: 13px;
    color: var(--sl-text-muted, #6b7280);
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.menu-empty {
    font-size: 14px;
    color: var(--sl-text-muted, #6b7280);
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 16px;
    margin-top: 20px;
}

/* =============================================
   BOTTOM SHEET - Product detail modal
   ============================================= */
.menu-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 16px;
    animation: sheetBackdropIn 0.2s ease;
}

@keyframes sheetBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-sheet-backdrop.is-closing {
    animation: sheetBackdropOut 0.18s ease forwards;
}

@keyframes sheetBackdropOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.menu-sheet {
    background: rgba(255,255,255,0.95);
    width: 100%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 14px;
    position: relative;
    box-shadow: 
        0 24px 60px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    animation: sheetZoomIn 0.25s ease;
}

@keyframes sheetZoomIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.menu-sheet-backdrop.is-closing .menu-sheet {
    animation: sheetZoomOut 0.18s ease forwards;
}

@keyframes sheetZoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.95);
        opacity: 0;
    }
}

.menu-sheet-handle {
    display: none; /* Not needed for center modal */
}

.menu-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: rgba(0,0,0,0.06);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--sl-text-muted, #6b7280);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.menu-sheet-close:hover {
    background: rgba(0,0,0,0.1);
}

.menu-sheet-close:active {
    transform: scale(0.92);
}

/* Sheet header */
.menu-sheet-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
    margin-bottom: 12px;
}

.menu-sheet-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.menu-sheet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-sheet-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sl-text-main, #111827);
}

.menu-sheet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.menu-sheet-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
}

.menu-sheet-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--sl-accent, #3b82f6);
    padding: 4px 12px;
    background: rgba(var(--sl-accent-rgb, 59,130,246), 0.08);
    border-radius: 8px;
}

.menu-sheet-body {
    margin-top: 8px;
    font-size: 14px;
    color: var(--sl-text-muted, #4b5563);
    line-height: 1.6;
}

/* Sheet favorite button */
.menu-sheet-actions {
    margin-top: 16px;
}

.menu-sheet-fav-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0,0,0,0.05);
    color: var(--sl-text-main, #111827);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.menu-sheet-fav-btn:hover {
    background: rgba(0,0,0,0.08);
}

.menu-sheet-fav-btn:active {
    transform: scale(0.98);
}

.menu-sheet-fav-btn .sheet-fav-icon {
    font-size: 16px;
}

.menu-sheet-fav-btn.is-active {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}

.menu-sheet-fav-btn.is-active .sheet-fav-icon {
    font-size: 17px;
}

/* =============================================
   SKELETON LOADING
   ============================================= */
.menu-grid-skeleton {
    opacity: 1;
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #e5e7eb 0px, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-top: 8px;
    background: linear-gradient(90deg, #e5e7eb 0px, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-line-lg { width: 75%; }
.skeleton-line-sm { width: 45%; }

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

/* =============================================
   FLOATING CATEGORY BAR - Tema gradient
   ============================================= */
.menu-floating-cat-bar {
    display: none !important;
}

.menu-floating-cat-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.menu-floating-cat-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.menu-floating-cat-scroll::-webkit-scrollbar {
    display: none;
}

.menu-floating-cat-pill {
    border: 0;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-floating-cat-pill:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.menu-floating-cat-pill.is-active {
    background: rgba(255,255,255,0.95);
    color: var(--sl-accent, #3b82f6);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =============================================
   LANG SWITCH IN MENU
   ============================================= */
.menu-lang-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 2px 8px;
}

.menu-lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.menu-lang-pill {
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--sl-text-muted, #6b7280);
    transition: all 0.2s ease;
}

.menu-lang-pill.is-active {
    background: var(--sl-accent, #3b82f6);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(var(--sl-accent-rgb, 59,130,246), 0.25);
}

.menu-brand-mini {
    font-size: 11px;
    color: var(--sl-text-muted, #9ca3af);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.menu-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--sl-accent, #ef4444);
}

/* =============================================
   GRID ANIMATION
   ============================================= */
.menu-grid-fade-in {
    animation: menuGridFadeIn 0.3s ease-out;
}

@keyframes menuGridFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card entrance animation */
.menu-item-card {
    animation: cardEntrance 0.4s ease backwards;
}

.menu-item-card:nth-child(1) { animation-delay: 0.05s; }
.menu-item-card:nth-child(2) { animation-delay: 0.1s; }
.menu-item-card:nth-child(3) { animation-delay: 0.15s; }
.menu-item-card:nth-child(4) { animation-delay: 0.2s; }
.menu-item-card:nth-child(5) { animation-delay: 0.25s; }
.menu-item-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   PHOTO-HEAVY THEME PRESET
   ============================================= */
body.theme-photo .menu-item-card {
    position: relative;
    padding: 0;
}

body.theme-photo .menu-item-img {
    aspect-ratio: 16 / 9;
}

body.theme-photo .menu-item-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
    color: #fff;
}

body.theme-photo .menu-item-name,
body.theme-photo .menu-item-price-value {
    color: #fff;
}

body.theme-photo .menu-item-price-value {
    background: rgba(255,255,255,0.2);
}

body.theme-photo .menu-item-desc {
    display: none;
}

body.theme-photo .menu-item-actions .menu-item-info,
body.theme-photo .menu-item-actions .menu-item-fav {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

/* =============================================================
   MENU DARK MODE - !important ile agresif override
   ============================================================= */

/* --- Body & Background --- */
body.theme-mode-dark,
body.theme-mode-dark .app-shell,
body.theme-mode-dark .app-inner {
    background: #000 !important;
}
body.theme-mode-dark::before,
body.theme-mode-dark::after {
    display: none !important;
}

/* --- Header / Top Panel --- */
body.theme-mode-dark .menu-top-panel {
    background: #111 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}
body.theme-mode-dark .menu-top-panel.is-scrolled {
    background: #111 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

/* Back button */
body.theme-mode-dark .menu-back-btn {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}

/* Search */
body.theme-mode-dark .menu-search-inline input {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-search-inline input::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

/* --- Filter Tabs Dark --- */
body.theme-mode-dark .menu-filter-tab {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.theme-mode-dark .menu-filter-tab.is-active {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: none !important;
}

/* --- Category Pills Dark --- */
body.theme-mode-dark .menu-category-scroll {
    background: #000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2) !important;
}
body.theme-mode-dark .menu-category-pill {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.8) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.theme-mode-dark .menu-category-pill.is-active {
    background: var(--sl-accent, #3b82f6) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(var(--sl-accent-rgb, 59,130,246), 0.4) !important;
}

/* --- Scrolled durumda da aynı dark stiller --- */
body.theme-mode-dark .menu-top-panel.is-scrolled .menu-back-btn {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-top-panel.is-scrolled .menu-search-inline input {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-top-panel.is-scrolled .menu-filter-tab {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-top-panel.is-scrolled .menu-filter-tab.is-active {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.2) !important;
}
body.theme-mode-dark .menu-top-panel.is-scrolled .menu-category-pill {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.8) !important;
}
body.theme-mode-dark .menu-top-panel.is-scrolled .menu-category-pill.is-active {
    background: var(--sl-accent, #3b82f6) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* --- Product Cards Dark --- */
body.theme-mode-dark .menu-item-card {
    background: #111 !important;
    border-color: rgba(var(--sl-accent-rgb, 59,130,246), 0.5) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Kart text */
body.theme-mode-dark .menu-item-name {
    color: #fff !important;
}
body.theme-mode-dark .menu-item-desc {
    color: rgba(255,255,255,0.55) !important;
}
body.theme-mode-dark .menu-item-price-value {
    background: var(--sl-accent, #3b82f6) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-item-info {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.theme-mode-dark .menu-item-fav {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.5) !important;
}
body.theme-mode-dark .menu-item-fav.is-liked,
body.theme-mode-dark .menu-item-card.is-fav .menu-item-fav {
    background: rgba(239,68,68,0.2) !important;
    border-color: rgba(239,68,68,0.4) !important;
    color: #ef4444 !important;
}

/* --- Section Dividers Dark --- */
body.theme-mode-dark .menu-section-divider-text {
    color: rgba(255,255,255,0.9) !important;
}
body.theme-mode-dark .menu-section-divider::before,
body.theme-mode-dark .menu-section-divider::after {
    background: rgba(255,255,255,0.1) !important;
}

/* --- Extras Dark --- */
body.theme-mode-dark .menu-item-extras {
    color: rgba(255,255,255,0.5) !important;
}
body.theme-mode-dark .menu-empty-state {
    color: rgba(255,255,255,0.5) !important;
}

/* --- Lang switch Dark --- */
body.theme-mode-dark .menu-lang-btn {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.7) !important;
}
body.theme-mode-dark .menu-lang-btn.is-active {
    background: var(--sl-accent, #3b82f6) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* --- Sheet Dark --- */
body.theme-mode-dark .menu-sheet-content {
    background: #111 !important;
    color: #fff !important;
}

/* --- Badge Dark --- */
body.theme-mode-dark .menu-item-badge,
body.theme-mode-dark .menu-item-badge-noimg {
    background: var(--sl-accent, #3b82f6) !important;
    color: #fff !important;
}

/* --- Photo theme dark --- */
body.theme-mode-dark.theme-photo .menu-item-card {
    background: #111 !important;
}
body.theme-mode-dark.theme-photo .menu-item-body {
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0)) !important;
}

/* --- Tema preset'leri ile dark mode birleşimi --- */
body.theme-mode-dark.theme-elegant .menu-item-card,
body.theme-mode-dark.theme-minimal .menu-item-card,
body.theme-mode-dark.theme-classic .menu-item-card,
body.theme-mode-dark.theme-modern .menu-item-card,
body.theme-mode-dark.theme-bold .menu-item-card {
    background: #111 !important;
    border-color: rgba(var(--sl-accent-rgb, 59,130,246), 0.5) !important;
}

body.theme-mode-dark.theme-elegant .menu-item-body,
body.theme-mode-dark.theme-minimal .menu-item-body,
body.theme-mode-dark.theme-classic .menu-item-body,
body.theme-mode-dark.theme-modern .menu-item-body,
body.theme-mode-dark.theme-bold .menu-item-body {
    background: #111 !important;
}

body.theme-mode-dark.theme-elegant .menu-item-name,
body.theme-mode-dark.theme-minimal .menu-item-name,
body.theme-mode-dark.theme-classic .menu-item-name,
body.theme-mode-dark.theme-modern .menu-item-name,
body.theme-mode-dark.theme-bold .menu-item-name {
    color: #fff !important;
}

body.theme-mode-dark.theme-elegant .menu-item-desc,
body.theme-mode-dark.theme-minimal .menu-item-desc,
body.theme-mode-dark.theme-classic .menu-item-desc,
body.theme-mode-dark.theme-modern .menu-item-desc,
body.theme-mode-dark.theme-bold .menu-item-desc {
    color: rgba(255,255,255,0.55) !important;
}

body.theme-mode-dark.theme-elegant .menu-item-price-value,
body.theme-mode-dark.theme-minimal .menu-item-price-value,
body.theme-mode-dark.theme-classic .menu-item-price-value,
body.theme-mode-dark.theme-modern .menu-item-price-value,
body.theme-mode-dark.theme-bold .menu-item-price-value {
    background: var(--sl-accent, #3b82f6) !important;
    color: #fff !important;
}

body.theme-mode-dark.theme-elegant .menu-item-info,
body.theme-mode-dark.theme-elegant .menu-item-fav {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.5) !important;
}

body.theme-mode-dark.theme-elegant .menu-item-fav.is-liked,
body.theme-mode-dark.theme-elegant .menu-item-card.is-fav .menu-item-fav {
    background: rgba(239,68,68,0.2) !important;
    border-color: rgba(239,68,68,0.4) !important;
    color: #ef4444 !important;
}

/* Inline dark mode badge renkleri */
body.theme-mode-dark .menu-item-badge-sm {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.6) !important;
}
body.theme-mode-dark .menu-item-badge-sm.prep {
    background: rgba(var(--sl-accent-rgb, 59,130,246), 0.15) !important;
    color: rgba(255,255,255,0.8) !important;
}

/* =============================================================
   SHEET / DETAY POPUP - Dark Mode
   ============================================================= */
body.theme-mode-dark .menu-sheet {
    background: #111 !important;
    border: 2px solid rgba(var(--sl-accent-rgb, 59,130,246), 0.5) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 30px rgba(var(--sl-accent-rgb, 59,130,246), 0.15) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-sheet-backdrop {
    background: rgba(0,0,0,0.85) !important;
}
body.theme-mode-dark .menu-sheet-close {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-sheet-title {
    color: #fff !important;
}
body.theme-mode-dark .menu-sheet-price {
    color: #fff !important;
}
body.theme-mode-dark .menu-sheet-price .price-val {
    background: var(--sl-accent, #3b82f6) !important;
    color: #fff !important;
}
body.theme-mode-dark .menu-sheet-desc,
body.theme-mode-dark .menu-sheet-meta {
    color: rgba(255,255,255,0.6) !important;
}

/* Variant options dark */
body.theme-mode-dark .menu-sheet-variants-title {
    color: rgba(255,255,255,0.9) !important;
}
body.theme-mode-dark .variant-option {
    background: #1a1a1a !important;
    border-color: #333 !important;
}
body.theme-mode-dark .variant-option .variant-name {
    color: #fff !important;
}
body.theme-mode-dark .variant-option .variant-price {
    color: var(--sl-accent, #3b82f6) !important;
}
body.theme-mode-dark .variant-option.selected {
    border-color: var(--sl-accent, #3b82f6) !important;
    background: rgba(var(--sl-accent-rgb, 59,130,246), 0.1) !important;
}

/* Extra options dark */
body.theme-mode-dark .menu-sheet-extras-title {
    color: rgba(255,255,255,0.9) !important;
}
body.theme-mode-dark .extra-option {
    background: #1a1a1a !important;
    border-color: #333 !important;
}
body.theme-mode-dark .extra-option .extra-name {
    color: #fff !important;
}
body.theme-mode-dark .extra-option .extra-price {
    color: #10b981 !important;
}
body.theme-mode-dark .extra-option.selected {
    border-color: var(--sl-accent, #3b82f6) !important;
    background: rgba(var(--sl-accent-rgb, 59,130,246), 0.1) !important;
}

/* Allergens dark */
body.theme-mode-dark .menu-sheet-allergens-sm {
    background: rgba(146,64,14,0.15) !important;
    border-color: rgba(254,243,199,0.2) !important;
}
body.theme-mode-dark .menu-sheet-allergens-title-sm {
    color: #fbbf24 !important;
}
body.theme-mode-dark .allergen-tag-sm {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.7) !important;
}

/* Fav button dark */
body.theme-mode-dark .menu-sheet-fav-btn {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.7) !important;
    border-color: rgba(255,255,255,0.12) !important;
}
body.theme-mode-dark .menu-sheet-fav-btn.is-active {
    background: rgba(239,68,68,0.15) !important;
    color: #ef4444 !important;
    border-color: rgba(239,68,68,0.3) !important;
}

/* Handle bar dark */
body.theme-mode-dark .menu-sheet-handle {
    background: rgba(255,255,255,0.2) !important;
}

/* Detail badges dark */
body.theme-mode-dark .menu-sheet-detail-item {
    background: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.8) !important;
}

/* =============================================
   STICKY WHATSAPP BUTONU
   Bu CSS'i home.css'in EN ALTINA ekle
   ============================================= */
.sl-whatsapp-sticky {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(37, 211, 102, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: slWaEntrance 0.5s ease backwards 1s;
}

.sl-whatsapp-sticky svg {
    width: 28px;
    height: 28px;
}

.sl-whatsapp-sticky:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(37, 211, 102, 0.5),
        0 12px 32px rgba(0, 0, 0, 0.2);
}

.sl-whatsapp-sticky:active {
    transform: scale(0.95);
}

.sl-whatsapp-sticky::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: slWaPulse 2s ease-in-out infinite;
}

@keyframes slWaPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0; }
}

@keyframes slWaEntrance {
    from { opacity: 0; transform: scale(0.5) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Dark mode switch varsa yukarı kaydır */
body:has(.sl-dark-switch) .sl-whatsapp-sticky {
    bottom: 80px;
}

@media (max-width: 480px) {
    .sl-whatsapp-sticky {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 16px;
    }
    .sl-whatsapp-sticky svg {
        width: 26px;
        height: 26px;
    }
    body:has(.sl-dark-switch) .sl-whatsapp-sticky {
        bottom: 76px;
    }
}
