/* Modern Food Delivery App UI - Based on Burger App Design */

:root {
    /* Orange/Yellow Theme Colors - Inspired by reference UI */
    --primary-bg: #fef7ed;
    --secondary-bg: #ffffff;
    --card-bg: #ffffff;
    --surface-bg: #f9fafb;
    --accent-primary: #f59e0b;
    --accent-secondary: #d97706;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fef7ed 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Intro Screen */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.welcome-content {
    text-align: center;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.welcome-text {
    margin-bottom: var(--spacing-xxl);
}

.welcome-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

.restaurant-name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    color: white;
    position: relative;
}

.welcome-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-top: var(--spacing-md);
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xxl);
    background: white;
    border: none;
    border-radius: var(--radius-xl);
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.menu-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.lang-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 400px;
    max-width: 90vw;
}

.language-selection.hidden {
    display: none;
}

.language-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
}

.lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 80px;
    width: 100%;
}

.lang-btn:hover,
.lang-btn.active {
    background: white;
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.intro-screen.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.intro-screen.hidden {
    display: none;
}

/* Main Menu - Mobile App Style */
.main-menu {
    min-height: 100vh;
    background: var(--primary-bg);
    transition: all 0.5s ease;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

.main-menu.hidden {
    display: none;
}

/* Header - Mobile App Style */
.header {
    position: sticky;
    top: 0;
    background: white;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: var(--spacing-lg);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-icons {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.search-btn,
.cart-btn,
.reset-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    border: none;
    background: var(--surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.search-btn:hover,
.cart-btn:hover,
.reset-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

.reset-btn:active {
    transform: scale(0.95) rotate(180deg);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--spacing-sm);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
}

.lang-dropdown button {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: none;
    border: none;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-dropdown button:hover {
    background: var(--surface-bg);
}

/* Search Bar */
.search-container {
    padding: var(--spacing-lg);
    background: var(--primary-bg);
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.search-container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-md);
}

.search-bar i {
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Promotion Banner */
.promo-banner {
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.promo-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    transition: transform 0.3s ease;
}

.promo-banner:hover .promo-image {
    transform: scale(1.02);
}

/* Alle Kategorien Button */
.category-card.all-categories {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border: 2px solid #10b981;
    order: -1; /* Immer als erstes anzeigen */
}

.category-card.all-categories .category-card-title {
    color: white;
}

.category-card.all-categories .category-icon {
    color: white;
}

/* Banner Notification */
.banner-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
}

.banner-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.notification-content i {
    font-size: 1.1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Category Icons - Like the reference image */
.category-icons {
    padding: var(--spacing-lg);
    background: white;
}

.category-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.category-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--surface-bg);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.category-icon-btn.active {
    background: var(--text-primary);
    color: white;
}

.category-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-icon-btn.active .category-icon {
    color: white;
}

.category-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Food Menu Section */
.food-menu-section {
    padding: var(--spacing-lg);
    background: var(--secondary-bg);
}

.food-menu-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

/* Category Grid - Like the reference image */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.category-card {
    position: relative;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.category-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-card.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--accent-primary);
}

.category-card.cold-appetizers {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.category-card.hot-appetizers {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.category-card.main-dishes {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
}

.category-card.dunya-special {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.category-card.shawarma {
    background: linear-gradient(135deg, #fed7aa, #fb923c);
}

.category-card.salads {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.category-card.falafel {
    background: linear-gradient(135deg, #fed7aa, #fcd34d);
}

.category-card.beverages {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.category-card.desserts {
    background: linear-gradient(135deg, #fed7aa, #fb923c);
}

.category-card.dunya-sandwich {
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.category-card.kids-meals {
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
}

.category-card.cold-beverages {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.category-card.juices-schorlen {
    background: linear-gradient(135deg, #fed7aa, #fcd34d);
}

.category-card.hot-beverages {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Duplicate .category-card-content removed */

.category-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #92400e;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.category-icon {
    font-size: 1rem;
    color: #92400e;
    opacity: 0.9;
}

.category-card img {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Categories Filter - Top Navigation */
.categories {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.categories-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--surface-bg);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.category-btn.active {
    background: var(--accent-primary);
    color: white;
}

.category-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Products Section */
.products-section {
    padding: var(--spacing-lg);
    background: var(--primary-bg);
    min-height: 60vh;
}

.products-container {
    max-width: 100%;
}

/* Main products container */
#products-grid {
    display: block;
}

/* Products Layout - Similar to reference image */
.products-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: sticky;
    top: 120px;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnail.active {
    border-color: var(--accent-primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-main-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-btn {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.favorite-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.product-main-info {
    padding: var(--spacing-xl);
}

.product-main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.product-weight {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.product-main-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
}

.product-main-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.add-to-cart-btn {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Products Grid - Default 3 per row */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Category Section */
.category-section {
    margin-bottom: var(--spacing-xxl);
}

.category-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-primary), #ff8a65);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.category-header-icon {
    font-size: 2.5rem;
    margin-right: var(--spacing-lg);
    opacity: 0.9;
    color: #92400e;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #92400e;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Category specific colors */
.category-header.cold-appetizers {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.category-header.hot-appetizers {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.category-header.main-dishes {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
}

.category-header.dunya-special {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.category-header.shawarma {
    background: linear-gradient(135deg, #fed7aa, #fb923c);
}

.category-header.salads {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.category-header.falafel {
    background: linear-gradient(135deg, #fed7aa, #fcd34d);
}

.category-header.beverages {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.category-header.desserts {
    background: linear-gradient(135deg, #fed7aa, #fb923c);
}

.category-header.dunya-sandwich {
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.category-header.kids-meals {
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
}

.category-header.cold-beverages {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.category-header.juices-schorlen {
    background: linear-gradient(135deg, #fed7aa, #fcd34d);
}

.category-header.hot-beverages {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Desktop Design */
@media (min-width: 1025px) {
    .main-menu {
        max-width: 1200px;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
    
    .category-icons-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--spacing-xl);
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
    
    .header {
        padding: var(--spacing-xxl);
    }
    
    .search-container,
    .category-icons,
    .food-menu-section,
    .products-section {
        padding: var(--spacing-xxl);
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-main-image {
        height: 400px;
    }
    
    .modal-content {
        max-width: 700px;
    }
    
    .modal-image {
        height: 600px;
    }
}

.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--accent-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: var(--spacing-lg);
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
}

.modal-close:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

.modal-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: var(--spacing-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.modal-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.modal-details {
    display: grid;
    gap: var(--spacing-lg);
}

.detail-section {
    background: var(--surface-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.detail-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.detail-section i {
    color: var(--accent-primary);
}

.detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.allergen-item,
.additive-item {
    background: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* iPad and Tablet Design */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-menu {
        max-width: 800px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    
    .category-icons-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--spacing-lg);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .header {
        padding: var(--spacing-xl);
    }
    
    .search-container,
    .category-icons,
    .food-menu-section,
    .products-section {
        padding: var(--spacing-xl);
    }
    
    .product-card {
        height: auto;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-main-image {
        height: 350px;
    }
    
    .modal-content {
        max-width: 650px;
    }
    
    .modal-image {
        height: 450px;
    }
}

/* Mobile Design */
@media (max-width: 767px) {
    .main-menu {
        max-width: 100%;
        box-shadow: none;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .product-thumbnails {
        display: none;
    }
    
    .category-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .lang-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .header {
        padding: var(--spacing-md);
    }
    
    .search-container,
    .category-icons,
    .food-menu-section,
    .products-section {
        padding: var(--spacing-md);
    }
    
    .promo-banner {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .product-main-image {
        height: 250px;
    }
    
    .modal-image {
        height: 400px;
    }
    
    .modal-content {
        width: 98%;
        max-width: 100%;
        margin: 2vh auto;
    }
}

/* RTL Support */
[dir="rtl"] {
    .header-content {
        flex-direction: row-reverse;
    }
    
    .products-layout {
        grid-template-columns: 1fr 80px;
    }
    
    .search-bar {
        flex-direction: row-reverse;
    }
    
    .modal-header {
        flex-direction: row-reverse;
    }
    
    .detail-section h4 {
        flex-direction: row-reverse;
    }
    
    .lang-dropdown {
        left: 0;
        right: auto;
    }
    
    .favorite-btn {
        left: var(--spacing-lg);
        right: auto;
    }
    
    .modal-close {
        left: var(--spacing-lg);
        right: auto;
    }
}