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

/* =============================================
   TOP PANEL - Sticky header with glass
   ============================================= */
.menu-top-panel {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 8px 16px 4px;
    margin: 0 -16px;
    margin-bottom: 4px;
    background: transparent;
    /* Scroll sırasında titremeyi önlemek için transform kullanma */
    will-change: padding, background;
    transition: padding 0.2s ease, background 0.2s ease;
}

/* Glass effect when scrolled - ŞEFFAF BEYAZ */
.menu-top-panel.is-scrolled {
    padding: 6px 16px 4px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Dark mode için */
.theme-mode-dark .menu-top-panel.is-scrolled {
    background: rgba(17,24,39,0.75);
    border-bottom-color: rgba(255,255,255,0.1);
}

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

.menu-top-panel.is-scrolled .menu-filter-tab {
    padding: 6px 10px;
    font-size: 12px;
}

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

.menu-top-panel.is-scrolled .menu-category-pill {
    padding: 6px 12px;
    font-size: 12px;
}

.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.6);
    border: 1.5px solid rgba(var(--sl-accent-rgb, 59,130,246), 0.2);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.06),
        0 0 15px rgba(var(--sl-accent-rgb, 59,130,246), 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: var(--sl-text-main, #111827);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    flex-shrink: 0;
}

.menu-back-btn:hover {
    background: rgba(255,255,255,0.95);
    transform: translateX(-2px);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.08),
        0 12px 32px rgba(15,23,42,0.12);
}

.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: 1.5px solid rgba(var(--sl-accent-rgb, 59,130,246), 0.2);
    border-radius: 14px;
    font-size: 15px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 0 20px rgba(var(--sl-accent-rgb, 59,130,246), 0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition: all 0.2s ease;
    outline: none;
}

.menu-search-inline input::placeholder {
    color: var(--sl-text-muted, #9ca3af);
}

.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: 8px;
    margin-top: 8px;
    margin-bottom: 6px;
}

.menu-filter-tab {
    flex: 1;
    border-radius: 12px;
    border: 1.5px solid rgba(var(--sl-accent-rgb, 59,130,246), 0.15);
    background: rgba(255,255,255,0.55);
    color: var(--sl-text-main, #374151);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.03),
        0 0 15px rgba(var(--sl-accent-rgb, 59,130,246), 0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.menu-filter-tab:hover {
    background: rgba(255,255,255,0.75);
    border-color: rgba(var(--sl-accent-rgb, 59,130,246), 0.25);
}

.menu-filter-tab.is-active {
    background: var(--sl-accent, #3b82f6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 
        0 4px 12px rgba(var(--sl-accent-rgb, 59,130,246), 0.3),
        0 8px 20px rgba(var(--sl-accent-rgb, 59,130,246), 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 0 12px;
    margin-top: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.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: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(var(--sl-accent-rgb, 59,130,246), 0.15);
    color: var(--sl-text-main, #111827);
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.03),
        0 0 15px rgba(var(--sl-accent-rgb, 59,130,246), 0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.menu-category-pill:hover {
    background: rgba(255,255,255,0.75);
    border-color: rgba(var(--sl-accent-rgb, 59,130,246), 0.3);
    transform: translateY(-1px);
}

.menu-category-pill.is-active {
    background: var(--sl-accent, #3b82f6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 
        0 4px 12px rgba(var(--sl-accent-rgb, 59,130,246), 0.35),
        0 8px 20px rgba(var(--sl-accent-rgb, 59,130,246), 0.2);
    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.2);
    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 {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(16px);
    padding: 10px 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--sl-accent, #3b82f6) 0%, color-mix(in srgb, var(--sl-accent, #3b82f6) 70%, #000) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 12px 32px rgba(var(--sl-accent-rgb, 59,130,246), 0.4),
        0 0 0 1px rgba(255,255,255,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
    max-width: calc(100% - 32px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.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);
}