/* Main Application Styles */

/* Global styles */
body {
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 20px;
    gap: 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Cart Button - Override framework styles for cart specific features */
.cart-btn.btn {
    position: relative; /* For cart count positioning */
    min-width: 50px;
}

.cart-icon {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    font-size: var(--font-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-icon {
    font-size: 18px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item span {
    font-size: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Login Button */
.login-icon {
    font-size: 18px;
    margin-right: 6px;
}

.login-text {
    font-size: 14px;
    font-weight: 500;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--font-xs);
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    
    .navbar {
        height: 60px;
        padding: 0 15px;
        gap: 12px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .navbar-nav {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .nav-link {
        display: none;
    }
    
    .cart-btn {
        padding: 8px 12px !important;
        font-size: 18px !important;
        min-width: 44px;
    }
    
    .cart-icon {
        font-size: 22px;
    }
    
    /* Hide user name on mobile, show only icon */
    .user-name {
        display: none;
    }
    
    .user-btn {
        padding: 8px 12px !important;
        min-width: 44px;
    }
    
    .user-icon {
        font-size: 20px;
    }
    
    /* Login button on mobile */
    .login-text {
        display: none;
    }
    
    .login-icon {
        font-size: 20px;
        margin-right: 0;
    }
    
    .navbar-nav .btn:not(.cart-btn):not(.user-btn) {
        padding: 8px 12px !important;
        font-size: 18px !important;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 10px;
        gap: 8px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .navbar-nav {
        gap: 6px;
    }
    
    .cart-btn {
        padding: 6px 10px !important;
        font-size: 18px !important;
        min-width: 40px;
    }
    
    .cart-icon {
        font-size: 20px;
    }
    
    .user-btn {
        padding: 6px 10px !important;
        min-width: 40px;
    }
    
    .user-icon {
        font-size: 18px;
    }
    
    .login-icon {
        font-size: 18px;
    }
    
    .navbar-nav .btn:not(.cart-btn):not(.user-btn) {
        padding: 6px 10px !important;
        font-size: 16px !important;
        min-width: 40px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Hero SVG Background */
.hero-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Floating animated food elements */
.floating-foods {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-food {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.85;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-food:hover {
    transform: scale(1.15);
    opacity: 1;
}

/* Pizza positioning & animation */
.floating-food.pizza {
    top: 15%;
    left: 8%;
    animation: float-rotate 8s ease-in-out infinite;
}

/* Burger positioning & animation */
.floating-food.burger {
    top: 12%;
    right: 10%;
    animation: float-up-down 6s ease-in-out infinite;
}

/* Tacos positioning & animation */
.floating-food.tacos {
    bottom: 18%;
    right: 12%;
    animation: float-diagonal 7s ease-in-out infinite;
}

/* Ice Cream positioning & animation */
.floating-food.icecream {
    top: 45%;
    right: 8%;
    animation: float-up-down 5s ease-in-out infinite 1s;
}

/* Ramen positioning & animation */
.floating-food.ramen {
    top: 50%;
    left: 6%;
    animation: float-rotate-slow 10s ease-in-out infinite;
}

/* Croissant positioning & animation */
.floating-food.croissant {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: float-sway 6s ease-in-out infinite;
}

@keyframes float-up-down {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes float-rotate {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes float-rotate-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-8deg); }
}

@keyframes float-diagonal {
    0%, 100% { transform: translate(0px, 0px); }
    50% { transform: translate(-20px, -20px); }
}

@keyframes float-sway {
    0%, 100% { transform: translateX(-50%) translateY(0px) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-18px) rotate(-5deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-food {
        width: 50px;
        height: 50px;
    }
    
    .floating-food.pizza { top: 10%; left: 5%; }
    .floating-food.burger { top: 8%; right: 5%; }
    .floating-food.tacos { bottom: 15%; right: 8%; }
    .floating-food.icecream { top: 40%; right: 5%; }
    .floating-food.ramen { top: 55%; left: 5%; }
    .floating-food.croissant { top: 15%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(var(--font-4xl), 5vw, var(--font-6xl));
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* View Mode Toggle */
.view-mode-toggle {
    margin-bottom: var(--space-6);
}

.toggle-buttons {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    padding: var(--space-1);
    gap: var(--space-4);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

/* Favorites Toggle Switch */
.favorites-toggle-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    margin-left: var(--space-3);
    border-left: 2px solid rgba(102, 126, 234, 0.2);
}

.favorites-toggle-label {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Hover effect */
.toggle-switch:hover .toggle-slider {
    opacity: 0.9;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    font-weight: 600;
    transform: translateY(-2px);
}

.toggle-icon {
    font-size: var(--font-base);
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.location-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.location-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.location-btn.loading {
    background: var(--gray-400);
    cursor: not-allowed;
}

.divider {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.autocomplete-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.location-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.city-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.city-autocomplete.active {
    display: block;
}

.city-autocomplete-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}

.city-autocomplete-item:last-child {
    border-bottom: none;
}

.city-autocomplete-item:hover,
.city-autocomplete-item.selected {
    background-color: var(--gray-50);
}

.city-autocomplete-item.selected {
    background-color: rgba(79, 70, 229, 0.05);
}

.city-autocomplete-item strong {
    color: var(--primary);
}

/* Radius Slider */
.radius-slider-container {
    width: 100%;
    padding: var(--space-4);
    margin-top: var(--space-3);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.radius-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.radius-slider-header label {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.radius-value {
    font-size: var(--font-base);
    color: var(--primary);
}

.radius-value strong {
    font-size: var(--font-lg);
    font-weight: 700;
}

.radius-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(to right, #4ade80 0%, #fbbf24 50%, #94a3b8 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.radius-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.radius-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.radius-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.radius-marks {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: var(--font-xs);
    color: var(--text-muted);
}

/* Search button now uses framework .btn .btn-primary .btn-block */

@media (max-width: 640px) {
    .location-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .location-btn {
        justify-content: center;
    }
    
    .divider {
        text-align: center;
    }
    
    /* Mobile radius slider adjustments */
    .radius-slider-container {
        padding: var(--space-3);
        margin-top: var(--space-2);
    }
    
    .radius-slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .radius-value {
        align-self: flex-end;
    }
}

/* Results Section */
.results-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
    margin-bottom: var(--space-5);
}

.results-header-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.results-header h2 {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* View Mode Toggle in Results */
.results-header .view-mode-toggle {
    margin: 0;
}

.results-header .toggle-buttons {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-end;
}

.search-input {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    min-width: 200px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.restaurants-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: var(--space-16);
}

/* Restaurant layout fix - ensure grid behavior */
.restaurants-section {
    width: 100%;
}

.restaurants-section .restaurants-grid,
.restaurants-section #restaurantsList {
    width: 100%;
}

.view-all-nearby {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: var(--space-6) 0 var(--space-2);
}

.view-all-nearby-btn {
    min-width: 240px;
    font-weight: 600;
}

/* ============================================
   Top Restaurants Section
   ============================================ */
.top-restaurants {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.top-restaurants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* Restaurant cards in top-restaurants grid should take full width */
.top-restaurants-grid .restaurant-card {
    flex: none !important;
    max-width: none !important;
    min-width: auto !important;
    width: 100%;
}

/* Restaurant Card */
.restaurant-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1 1 calc(33.333% - 15px) !important;
    max-width: calc(33.333% - 15px) !important;
    min-width: 280px !important;
}

.restaurant-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.restaurant-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.restaurant-card:hover .restaurant-image img {
    transform: scale(1.05);
}

.restaurant-rating {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.restaurant-info {
    padding: var(--space-6);
}

.restaurant-name {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.restaurant-address {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-bottom: var(--space-2);
}

.restaurant-address .restaurant-distance {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.restaurant-distance {
    color: var(--secondary);
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.current-menu h4 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.menu-items {
    margin-bottom: var(--space-4);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: var(--font-sm);
    color: var(--text-primary);
    flex: 1;
}

.item-price {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--secondary);
}

.more-items {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-style: italic;
    padding: var(--space-2) 0;
}

.restaurant-actions {
    display: flex;
    gap: var(--space-3);
}

.restaurant-actions .btn {
    flex: 1;
    justify-content: center;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-20) var(--space-8);
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: var(--font-6xl);
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.no-results h3 {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

/* Features Section */
.features {
    padding: var(--space-24) 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: var(--font-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-16);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: var(--font-5xl);
    margin-bottom: var(--space-4);
    display: block;
}

.feature-card h3 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand h3 {
    font-size: var(--font-2xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
}

.footer-brand p {
    color: var(--gray-400);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-8);
}

.footer-column h4 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: white;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: var(--space-2);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--gray-400);
}

/* Loading Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    text-align: center;
    max-width: 400px;
    margin: var(--space-4);
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-4);
}

/* Menu Modal */
.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
}

.menu-modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.menu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.menu-modal-header h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: var(--font-3xl);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.menu-modal-body {
    padding: var(--space-6);
}

.restaurant-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.restaurant-details img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.details p {
    margin-bottom: var(--space-2);
    font-size: var(--font-sm);
}

.menu-section h3 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.menu-items-full {
    display: grid;
    gap: var(--space-3);
}

.menu-item-full {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    align-items: center;
}

.menu-item-full h4 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.menu-item-full p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.4;
}

.menu-item-full .item-price {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--secondary);
}

.qr-section {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    text-align: center;
}

.qr-section h4 {
    margin-bottom: var(--space-4);
    font-size: var(--font-lg);
    font-weight: 600;
}

.qr-code {
    background: var(--bg-secondary);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    display: inline-block;
}

.qr-placeholder {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-2);
    font-family: monospace;
    color: var(--text-primary);
}

/* Notification */
.notification {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 1100;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
}

.notification-icon {
    flex-shrink: 0;
    font-size: var(--font-lg);
}

.notification-text {
    flex: 1;
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-lg);
    padding: var(--space-1);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.notification-error {
    border-left: 4px solid var(--warning);
}

.notification-warning {
    border-left: 4px solid var(--accent);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-info {
    border-left: 4px solid var(--info);
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: var(--font-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-lg);
    }
    
    .search-box {
        padding: var(--space-4);
    }
    
    .restaurant-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .restaurant-actions {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .top-restaurants-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: var(--space-6);
    }
    
    .results-header-left {
        align-items: center;
        text-align: center;
    }
    
    .search-controls {
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .restaurant-details {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .menu-item-full {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Menu Items Styles */
.menu-items-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: var(--space-16);
}

.menu-item-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Hidden by filtering */
.menu-item-card.filtered-hidden {
    display: none !important;
}

/* General hidden class */
.hidden {
    display: none !important;
}

/* Slider Filters Panel */
.slider-filters-panel {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.slider-filters-panel h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

/* Slider Filters */
.slider-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dual-range-slider {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 10px 0;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    top: -8px;
    width: 100%;
    height: 22px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dual-range-slider .slider-max::-webkit-slider-thumb {
    background: #28a745;
}

.dual-range-slider .slider-max::-moz-range-thumb {
    background: #28a745;
}

.reset-sliders-btn {
    align-self: flex-start;
    font-size: 12px;
    padding: 4px 8px;
}

/* Diet and Nutrition Row */
.diet-and-nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Inline Nutrition Filters */
.nutrition-filters-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.slider-group-inline {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 120px;
}

.slider-label-inline {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    white-space: nowrap;
}

.dual-range-slider-inline {
    position: relative;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    margin: 2px 0;
    width: 100%;
}

.dual-range-slider-inline input[type="range"] {
    position: absolute;
    top: -5px;
    width: 100%;
    height: 13px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.dual-range-slider-inline input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    pointer-events: all;
    border: 1px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dual-range-slider-inline input[type="range"]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    pointer-events: all;
    border: 1px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dual-range-slider-inline .slider-max::-webkit-slider-thumb {
    background: #28a745;
}

.dual-range-slider-inline .slider-max::-moz-range-thumb {
    background: #28a745;
}

/* Favorites Menu Button */
.favorites-menu-btn {
    margin-left: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.favorites-menu-btn .toggle-icon {
    margin-right: 5px;
}

/* Active state for favorites filter */
.favorites-menu-btn.favorites-active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

.favorites-menu-btn.favorites-active:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Favorites Modal */
.favorites-modal {
    max-width: 600px;
    width: 90%;
}

.favorite-restaurant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.restaurant-info h3 {
    margin: 0 0 5px 0;
    color: var(--color-text);
    font-size: 16px;
}

.restaurant-info p {
    margin: 0 0 3px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .slider-filters {
        gap: 12px;
    }
    
    .slider-label {
        font-size: 12px;
    }
    
    .diet-and-nutrition-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .nutrition-filters-inline {
        justify-content: center;
        gap: 10px;
    }
    
    .slider-group-inline {
        min-width: 100px;
    }
    
    .reset-sliders-btn {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .view-mode-toggle {
        flex-direction: column;
        gap: 10px;
    }
    
    .favorites-menu-btn {
        margin-left: 0;
        align-self: center;
    }
    
    .favorite-restaurant-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.menu-item-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Food Image */
.food-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .food-image img {
    transform: scale(1.05);
}

.food-price-badge {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
}

/* Service Indicators */
.service-indicators {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 2;
}

.service-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-indicator.lunch-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse-green 2s infinite;
}

.service-indicator.lunch-inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.service-indicator.delivery {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.service-indicator:hover {
    transform: scale(1.1);
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.menu-item-header {
    padding: var(--space-6);
}

.menu-item-name {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.menu-item-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-3);
}

.menu-item-price {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.menu-item-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mini nutrition info on food cards */
.nutrition-info-mini {
    margin-top: var(--space-2);
    margin-bottom: var(--space-1);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calories-mini, .protein-mini, .carbs-mini, .fats-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    border: 1px solid;
    white-space: nowrap;
}

.calories-mini {
    background: rgba(255, 107, 0, 0.1);
    color: #ff6b00;
    border-color: rgba(255, 107, 0, 0.2);
}

.protein-mini {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.2);
}

.carbs-mini {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.fats-mini {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
    border-color: rgba(156, 39, 176, 0.2);
}

/* Category and Diet Filters Section */
.filters-section {
    margin: 0px 0px 0px 0px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border-light);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-filters, .diet-filters {
    margin-bottom: 15px;
}

.category-filters:last-child, .diet-filters:last-child {
    margin-bottom: 0;
}

.filter-buttons, .diet-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons .btn {
    padding: 10px 20px;
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.diet-buttons .btn {
    padding: 6px 12px;
    font-size: var(--font-xs);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.diet-filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.diet-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .filters-section {
        padding: 20px 15px;
    }
    
    .filter-buttons, .diet-buttons {
        justify-content: center;
    }
    
    .filter-buttons .btn {
        padding: 8px 16px;
        font-size: var(--font-xs);
    }
    
    .diet-buttons .btn {
        padding: 5px 10px;
        font-size: 11px;
        gap: 3px;
    }
}

/* Category-specific colors */
.menu-item-category.polievky {
    background: #e67e22; /* Orange for soups */
    color: white;
}

.menu-item-category.hlavne-jedla {
    background: #27ae60; /* Green for main courses */
    color: white;
}

.menu-item-category.predjedla {
    background: #8e44ad; /* Purple for appetizers */
    color: white;
}

.menu-item-category.dezerty {
    background: #e91e63; /* Pink for desserts */
    color: white;
}

.menu-item-category.napoje {
    background: #3498db; /* Blue for drinks */
    color: white;
}

.menu-item-description {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-top: var(--space-3);
}

.menu-item-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.menu-info-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
}

.restaurant-name-mini {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.restaurant-address-mini {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.add-to-list-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.25);
    flex-shrink: 0;
}

.add-to-list-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.add-to-list-btn:active {
    transform: scale(0.95);
}

.add-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.restaurant-distance-mini {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

/* Category Sections */
.menu-category-section {
    margin-bottom: var(--space-16);
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--border);
}

.menu-category-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.menu-category-count {
    background: var(--primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
}

/* Search Results Header */
.search-results-header {
        width: 100% !important;
    display: block !important;
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}

.food-search-container {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.food-search-input {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.food-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.food-search-btn {
    padding: var(--space-4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25);
}

.food-search-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
}

.search-results-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.search-results-count {
    color: var(--text-secondary);
    font-size: var(--font-base);
}

/* Loading States for Menu Items */
.menu-items-loading {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.menu-item-skeleton {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.menu-item-skeleton-header {
    height: 120px;
    background: var(--gray-200);
    margin-bottom: var(--space-4);
}

.menu-item-skeleton-content {
    padding: var(--space-6);
}

.skeleton-line {
    height: 20px;
    background: var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
}

.skeleton-line.short {
    width: 70%;
}

.skeleton-line.long {
    width: 100%;
}

/* Empty State */
.menu-empty-state {
    text-align: center;
    padding: var(--space-16);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
}

.menu-empty-state h3 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.menu-empty-state p {
    color: var(--text-secondary);
    font-size: var(--font-base);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto var(--space-6);
}

.menu-empty-state .btn {
    margin-top: var(--space-4);
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .restaurant-card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    /* 3 columns for larger tablets */
    .menu-items-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    
    .restaurants-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

/* ========== MOBILE FRAMEWORK - INSPIRED BY DAILY-MENU ========== */

/* Tablet/Mobile responsive framework (768px and below) */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        min-height: 100vh;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding: 40px 0 60px 0;
    }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        padding: 0 10px;
    }
    
    .search-container {
        padding: 0 10px;
    }
    
    .search-box {
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    }
    
    .location-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .location-section .divider {
        margin: 0;
        font-size: 13px;
    }
    
    #locationBtn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .location-input {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    #searchBtn {
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 8px;
    }
    
    .floating-food {
        font-size: 2rem;
        opacity: 0.4;
    }
    
    /* Results Section Mobile */
    .results-section {
        padding: var(--space-10) 0;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
        margin-bottom: var(--space-8);
    }
    
    .results-header-left {
        text-align: center;
        align-items: center;
    }
    
    .results-header h2 {
        font-size: 24px;
        margin-bottom: var(--space-3);
    }
    
    .view-mode-toggle .toggle-buttons {
        background: white;
        border-radius: var(--radius-xl);
        padding: var(--space-1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .toggle-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 13px;
        border-radius: var(--radius-lg);
    }
    
    .search-controls {
        align-items: center;
    }
    
    .filters {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 12px;
        border-radius: var(--radius-full);
    }
    
    /* Menu Items Grid Mobile - 2 columns side by side for tablet */
    .menu-items-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: var(--space-12);
    }
    
    .menu-item-card {
        flex: none !important;
        max-width: none !important;
        min-width: auto !important;
        border-radius: var(--radius-xl);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .food-image {
        height: 120px;
    }
    
    .food-price-badge {
        padding: var(--space-1) var(--space-2);
        font-size: 11px;
        bottom: var(--space-2);
        right: var(--space-2);
        border-radius: var(--radius-lg);
    }
    
    .service-indicators {
        top: var(--space-2);
        left: var(--space-2);
        gap: var(--space-1);
    }
    
    .service-indicator {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .menu-item-header {
        padding: var(--space-4);
    }
    
    .menu-item-name {
        font-size: 14px;
        margin-bottom: var(--space-1);
        line-height: 1.3;
    }
    
    .menu-item-title {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    
    .menu-item-price {
        font-size: 16px;
        align-self: flex-end;
    }
    
    .menu-item-category {
        font-size: 10px;
        padding: 2px var(--space-2);
        border-radius: var(--radius-lg);
    }
    
    .menu-item-description {
        font-size: 12px;
        line-height: 1.4;
        margin-top: var(--space-2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .menu-item-footer {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-2);
    }
    
    .menu-info-left {
        gap: 2px;
    }
    
    .restaurant-name-mini {
        font-size: 11px;
        font-weight: 600;
    }
    
    .restaurant-address-mini {
        font-size: 10px;
    }
    
    .add-to-list-btn {
        width: 35px;
        height: 35px;
        border-radius: 50%;
    }
    
    .add-icon {
        font-size: 16px;
    }
    
    /* Restaurants Grid Mobile - 2 columns side by side for tablet */
    .restaurants-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: var(--space-12);
        flex-wrap: unset !important;
    }
    
    .restaurant-card {
        flex: none !important;
        max-width: none !important;
        min-width: auto !important;
        border-radius: var(--radius-xl);
    }
    
    .restaurant-image {
        height: 120px;
    }
    
    .restaurant-rating {
        font-size: 11px;
        padding: 2px var(--space-2);
        top: var(--space-2);
        right: var(--space-2);
    }
    
    .restaurant-info {
        padding: var(--space-4);
    }
    
    .restaurant-name {
        font-size: 14px;
        margin-bottom: var(--space-1);
        line-height: 1.3;
    }
    
    .restaurant-address {
        font-size: 11px;
        margin-bottom: var(--space-1);
    }
    
    .restaurant-distance {
        font-size: 12px;
        margin-bottom: var(--space-3);
    }
    
    .current-menu h4 {
        font-size: 13px;
        margin-bottom: var(--space-2);
    }
    
    .menu-item {
        padding: var(--space-1) 0;
    }
    
    .item-name {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .item-price {
        font-size: 11px;
    }
    
    .restaurant-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .restaurant-actions .btn {
        padding: var(--space-2) var(--space-3);
        font-size: 12px;
        border-radius: var(--radius-lg);
    }
    
    /* Features Section Mobile */
    .features {
        padding: var(--space-12) 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: var(--space-10);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .feature-card {
        padding: var(--space-4);
        border-radius: var(--radius-xl);
        text-align: center;
    }
    
    .feature-icon {
        font-size: 32px;
        margin-bottom: var(--space-2);
    }
    
    .feature-card h3 {
        font-size: 14px;
        margin-bottom: var(--space-2);
    }
    
    .feature-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: var(--space-4);
        padding: var(--space-4);
        border-radius: var(--radius-xl);
        max-width: calc(100vw - 32px);
    }
    
    .menu-modal-content {
        margin: var(--space-4);
        border-radius: var(--radius-xl);
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
    }
    
    .menu-modal-header {
        padding: var(--space-4);
    }
    
    .menu-modal-header h2 {
        font-size: 18px;
    }
    
    .menu-modal-body {
        padding: var(--space-4);
    }
    
    .restaurant-details {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-3);
    }
    
    .restaurant-details img {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .menu-item-full {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-3);
    }
    
    .menu-item-full h4 {
        font-size: 14px;
    }
    
    .menu-item-full p {
        font-size: 12px;
    }
    
    .menu-item-full .item-price {
        font-size: 16px;
    }
}

/* ========== CART MODAL STYLES ========== */

.cart-modal-content {
    max-width: 700px;
    max-height: 80vh;
    width: 90%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    margin: 0;
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: var(--font-2xl);
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-2);
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--error);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
    min-height: 200px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.cart-restaurant {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    border: 1px solid var(--border);
}

.cart-restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.cart-restaurant-name {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.cart-restaurant-phone {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.cart-restaurant-phone:hover {
    background: var(--secondary);
    color: white;
}

.cart-restaurant-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.cart-item-category {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.cart-item-price {
    font-weight: 600;
    color: var(--secondary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: background 0.2s ease;
}

.remove-btn:hover {
    background: var(--error-light);
}

.cart-restaurant-total {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    text-align: right;
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--primary);
}

.cart-empty {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-secondary);
}

.cart-empty h3 {
    font-size: var(--font-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

/* Responsive Food Items - removed duplicate 768px breakpoint */

@media (max-width: 480px) {
    .menu-item-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
    }
    
    /* Extra small mobile adjustments */
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 30px 0 50px 0;
    }
    
    .hero-content {
        padding-top: 30px;
    }
    
    .hero-title {
        font-size: clamp(24px, 8vw, 32px);
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        padding: 0 5px;
    }
    
    .search-container {
        padding: 0 5px;
    }
    
    .search-box {
        padding: 16px;
    }
    
    #locationBtn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .location-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    #searchBtn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .floating-food {
        font-size: 1.5rem;
        opacity: 0.3;
    }
    
    /* View Mode Toggle - Mobile */
    .toggle-buttons {
        gap: var(--space-2);
        padding: var(--space-1);
    }
    
    .toggle-buttons .btn {
        flex: 1;
        padding: var(--space-2) var(--space-2);
        font-size: var(--font-xs);
        min-width: unset;
    }
    
    /* Hide text labels on mobile, keep only icons */
    .toggle-buttons .btn .toggle-icon {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .toggle-buttons .btn span:not(.toggle-icon) {
        display: none;
    }
    
    /* Favorites Toggle - Mobile */
    .favorites-toggle-container {
        padding: var(--space-1) var(--space-2);
        margin-left: var(--space-2);
        gap: var(--space-1);
        border-left-width: 1px;
    }
    
    /* Hide label text on mobile, keep only heart icon */
    .favorites-toggle-label .favorites-text {
        display: none;
    }
    
    .favorites-toggle-label .heart-icon {
        font-size: 1.2rem;
        line-height: 1;
    }
    
    /* Make toggle switch smaller */
    .toggle-switch {
        width: 42px;
        height: 24px;
    }
    
    .toggle-slider:before {
        height: 18px;
        width: 18px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(18px);
    }
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-6);
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .cart-item-controls {
        align-self: flex-end;
    }
    
    .cart-restaurant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .cart-footer {
        flex-direction: column;
    }
    
    .cart-btn span:not(.cart-icon):not(.cart-count) {
        display: none;
    }
}

/* Responsive Restaurant Cards */
@media (max-width: 768px) {
    .restaurant-card {
        flex: 1 1 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
}

@media (max-width: 480px) {
    .restaurant-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
    }
    
    /* Top rated restaurants - 2 columns on mobile */
    .top-restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
}

/* Advanced Filters */
.search-results-header {
    margin-bottom: var(--space-4);
}

.search-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.food-search-input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-base);
}

.food-search-btn {
    padding: var(--space-3);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    min-width: 50px;
}

.search-row .divider {
    width: 1px;
    height: 30px;
    background: var(--border);
    margin: 0 var(--space-2);
}

.results-search-bar {
    position: relative;
    margin-bottom: var(--space-4);
}

.search-input-container {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.results-search-input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-base);
}

.results-search-btn {
    padding: var(--space-3);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.advanced-filters-toggle {
    text-align: center;
}

.advanced-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--font-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.advanced-filters-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.toggle-arrow {
    transition: transform 0.2s ease;
}

.advanced-filters-panel {
    margin-top: var(--space-3);
    padding: var(--space-4);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.advanced-filters-panel.hidden {
    display: none;
}

.filter-section h4 {
    margin: 0 0 var(--space-3) 0;
    color: var(--text-primary);
    font-size: var(--font-base);
    font-weight: 600;
}

.allergen-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.allergen-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: var(--font-sm);
}

.allergen-checkbox:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.allergen-checkbox input[type="checkbox"] {
    display: none;
}

.allergen-checkbox input:checked + .checkmark + .allergen-name {
    color: var(--primary);
    font-weight: 600;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.allergen-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.allergen-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.allergen-name {
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.filter-actions {
    display: flex;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.apply-filter-btn, .clear-filter-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-filter-btn {
    background: var(--primary);
    color: white;
}

.apply-filter-btn:hover {
    background: var(--secondary);
}

.clear-filter-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.clear-filter-btn:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

@media (max-width: 768px) {
    .allergen-filters {
        gap: var(--space-1);
    }
    
    .allergen-checkbox {
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-xs);
    }
    
    .checkmark {
        width: 14px;
        height: 14px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .apply-filter-btn, .clear-filter-btn {
        width: 100%;
    }

    /* Hide text and icon on mobile for advanced filters button */
    .filter-text-desktop,
    .advanced-filters-btn .filter-icon {
        display: none;
    }
    
    /* Adjust button size and position */
    .advanced-filters-btn {
        padding: var(--space-2);
        min-width: auto;
        margin-left: var(--space-2);
    }
    
    .toggle-arrow {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .allergen-filters {
        justify-content: center;
    }
    
    .allergen-checkbox {
        flex: 0 0 auto;
        min-width: max-content;
    }
}

/* Food Detail Modal Styles */
.food-detail-modal {
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.food-detail-content {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.food-detail-image {
    flex: 0 0 300px;
    position: relative;
}

.food-detail-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.food-price-large {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-lg);
    box-shadow: var(--shadow-md);
}

.food-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.food-detail-header h3 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.food-category {
    display: inline-block;
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 500;
}

.food-detail-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--font-base);
}

.food-detail-restaurant {
    padding: var(--space-4);
    background: var(--background-secondary);
    border-radius: var(--radius-md);
}

.food-detail-restaurant h4 {
    margin: 0 0 var(--space-3) 0;
    color: var(--text-primary);
    font-size: var(--font-base);
    font-weight: 600;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.restaurant-name {
    font-weight: 600;
    color: var(--text-primary);
}

.restaurant-address, .restaurant-phone {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.food-nutrition {
    padding: var(--space-4);
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf9 100%);
    border-radius: var(--radius-md);
    border: 1px solid #dcfce7;
}

.food-nutrition h4 {
    margin: 0 0 var(--space-4) 0;
    color: var(--text-primary);
    font-size: var(--font-base);
    font-weight: 600;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nutrition-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.nutrition-value {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.nutrition-source {
    text-align: center;
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid #e5e7eb;
}

.food-allergens {
    padding: var(--space-4);
    background: linear-gradient(135deg, #fefbef 0%, #fef3c7 100%);
    border-radius: var(--radius-md);
    border: 1px solid #fbbf24;
}

.food-allergens h4 {
    margin: 0 0 var(--space-3) 0;
    color: var(--text-primary);
    font-size: var(--font-base);
    font-weight: 600;
}

.allergens-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.allergen-tag {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: white;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.allergen-number {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    flex-shrink: 0;
}

.allergen-icon {
    font-size: 12px;
}

/* Mobile responsiveness for food detail modal */
@media (max-width: 768px) {
    .food-detail-modal {
        width: 95vw;
        max-height: 95vh;
    }
    
    .food-detail-content {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .food-detail-image {
        flex: none;
    }
    
    .food-detail-image img {
        height: 200px;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Compact Food Detail Modal Styles */
.food-detail-modal-compact {
    max-width: 600px;
    width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.modal-header-compact {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.modal-header-compact .modal-close {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-header-compact .modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body-compact {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 90vh;
}

.food-detail-layout {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.food-detail-image-section {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.food-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.food-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-price-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
}

.food-detail-info-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.food-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.food-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.food-category-tag {
    align-self: flex-start;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.food-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
}

.restaurant-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.restaurant-icon {
    font-size: 16px;
    margin-top: 2px;
}

.restaurant-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.restaurant-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.restaurant-address, .restaurant-phone {
    color: var(--text-secondary);
    font-size: 12px;
}

.nutrition-section {
    padding: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.nutrition-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.nutrition-icon {
    font-size: 14px;
}

.nutrition-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.nutrition-compact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.nutrition-compact-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nutrition-compact-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.nutrition-source-compact {
    text-align: center;
    font-size: 9px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
}

.allergens-section {
    padding: 12px;
    background: linear-gradient(135deg, #fefbef 0%, #fef3c7 100%);
    border-radius: 12px;
    border: 1px solid #fbbf24;
}

.allergens-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.allergens-icon {
    font-size: 14px;
}

.allergens-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.allergens-content .allergen-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: white;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    font-size: 10px;
    color: var(--text-secondary);
}

.allergens-content .allergen-number {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    flex-shrink: 0;
}

.allergens-content .allergen-icon {
    font-size: 9px;
}

.share-section {
    padding: 12px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.rating-section {
    padding: 12px;
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
    border-radius: 12px;
    border: 1px solid #fb923c;
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.rating-icon {
    font-size: 14px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-link {
    background: #64748b;
    color: white;
}

.share-link:hover {
    background: #475569;
    transform: translateY(-2px);
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.share-icon {
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-close {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border: none;
    border-radius: 25px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(149, 165, 166, 0.25);
}

.btn-close:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    color: white;
}

.btn-add-cart {
    flex: 2;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border: none;
    border-radius: 25px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.25);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    color: white;
}

.add-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Mobile responsiveness for compact modal */
@media (max-width: 768px) {
    .food-detail-modal-compact {
        width: 95vw;
        max-height: 95vh;
    }
    
    .food-detail-image-section {
        height: 150px;
    }
    
    .nutrition-compact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== RATING COMPONENT STYLES ========== */

.rating-component {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-family: inherit;
}

.rating-stars {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}

.rating-star {
    font-size: 20px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.rating-star.filled {
    color: #fbbf24;
}

.rating-star.user-rated {
    color: #10b981;
}

.rating-star.hovering {
    color: #f59e0b;
    transform: scale(1.1);
}

.rating-component.rating-readonly .rating-star {
    cursor: default;
}

.rating-text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.rating-count {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.rating-feedback {
    display: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--font-xs);
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.rating-feedback.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.rating-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rating-feedback.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

/* Size variants */
.rating-small .rating-star {
    font-size: 16px;
}

.rating-small .rating-text {
    font-size: var(--font-xs);
}

.rating-small .rating-count {
    font-size: 10px;
}

.rating-medium .rating-star {
    font-size: 20px;
}

.rating-large .rating-star {
    font-size: 24px;
}

.rating-large .rating-text {
    font-size: var(--font-base);
}

.rating-large .rating-count {
    font-size: var(--font-sm);
}

/* Horizontal layout */
.rating-horizontal {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
}

.rating-horizontal .rating-text,
.rating-horizontal .rating-count {
    white-space: nowrap;
}

/* Rating in cards */
.menu-item-card .rating-component,
.restaurant-card .rating-component {
    margin-top: var(--space-2);
}

.menu-item-card .rating-horizontal {
    justify-content: space-between;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
}

/* Rating animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.rating-star:active {
    animation: pulse 0.3s ease;
}

/* Restaurant rating summary */
.restaurant-rating-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.restaurant-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restaurant-rating-header h4 {
    margin: 0;
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.restaurant-rating-stats {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rating-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    
    .menu-item-card .rating-horizontal {
        flex-direction: row;
        align-items: center;
    }
    
    .add-icon {
        font-size: 16px;
    }
}

/* Small mobile (480px and below) - 2 columns with adjusted spacing */
@media (max-width: 480px) {
    .menu-items-grid {
        gap: 8px;
    }
    
    .restaurants-grid {
        gap: 8px;
    }
    
    .menu-item-card .food-image {
        height: 130px;
    }
    
    .menu-item-name {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .menu-item-description {
        font-size: 12px;
    }
}

/* Very small mobile (360px and below) - single column for tiny screens */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    /* Single column layout for very small screens */
    .menu-items-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .restaurants-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .top-restaurants-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .menu-item-card .food-image {
        height: 150px;
    }
    
    .menu-item-name {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .menu-item-description {
        font-size: 13px;
    }
    
    .food-detail-image-section {
        height: 180px;
    }
    
    .food-detail-info-section {
        padding: 20px;
        gap: 16px;
    }
    
    .food-title {
        font-size: 20px;
    }
    
    .nutrition-compact-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-close, .btn-add-cart {
        flex: none;
    }
}

/* ========== MODERN FOOD DETAIL MODAL REDESIGN ========== */

/* Modern Modal Sections */
.allergens-section,
.rating-section,
.share-section,
.nutrition-section,
.restaurant-section {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.allergens-section:hover,
.rating-section:hover,
.share-section:hover,
.nutrition-section:hover,
.restaurant-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Section Headers */
.allergens-header,
.rating-header,
.share-header,
.nutrition-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--bg-secondary);
}

.allergens-icon,
.rating-icon,
.share-icon,
.nutrition-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-sm);
}

.allergens-header span:last-child,
.rating-header span:last-child,
.share-header span:last-child,
.nutrition-header span:last-child {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rating Section Specific */
.rating-content {
    padding-top: var(--space-2);
}

/* Allergens Content */
.allergens-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.allergen-tag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    border: 1px solid #fbbf24;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.allergen-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.allergen-number {
    background: #f59e0b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: var(--space-3) var(--space-4);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex: 1;
    justify-content: center;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.share-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Share Button Icons */
.share-btn .share-icon {
    font-size: 18px;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    color: inherit;
}

/* Nutrition Section */
.nutrition-values-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.nutrition-compact-item {
    background: var(--bg-secondary);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.2s ease;
}

.nutrition-compact-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nutrition-compact-label {
    display: block;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.nutrition-compact-item:hover .nutrition-compact-label {
    color: white;
}

.nutrition-compact-value {
    display: block;
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.nutrition-compact-item:hover .nutrition-compact-value {
    color: white;
}

.nutrition-source-compact {
    text-align: center;
    font-size: var(--font-xs);
    padding: var(--space-2);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-style: italic;
}

/* Restaurant Section */
.restaurant-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid var(--border-light);
}

/* Restaurant Section */
.restaurant-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.restaurant-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.restaurant-details {
    flex: 1;
}

.restaurant-name {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.restaurant-address,
.restaurant-phone {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

/* Modal Actions */
.modal-actions {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-4);
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.btn-add-cart,
.btn-close {
    flex: 1;
    min-width: 120px;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-base);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-close {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.btn-close:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Modal Content Spacing */
.food-detail-modal .modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .allergens-section,
    .rating-section,
    .share-section,
    .nutrition-section,
    .restaurant-section {
        padding: var(--space-4);
        margin-bottom: var(--space-3);
        border-radius: var(--radius-xl);
    }
    
    .modal-actions {
        padding: var(--space-4);
        border-radius: var(--radius-xl);
    }
    
    .food-detail-modal .modal-content {
        padding: var(--space-4);
        border-radius: var(--radius-2xl);
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        min-width: unset;
    }
    
    .nutrition-values-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modern Button Framework - Same as QR Menu */
.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.25) !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25) !important;
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
    text-decoration: none !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
    text-decoration: none !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Location Button */
.location-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25) !important;
}

.location-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35) !important;
}

/* Toggle and Filter Buttons */
.toggle-btn, .filter-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 10px 18px !important;
    color: white !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
}

.toggle-btn:hover, .filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.35) !important;
}

.toggle-btn.active, .filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35) !important;
}

/* Outline Button */
.btn-outline {
    background: transparent !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
    text-decoration: none !important;
}

/* Small button variants */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

/* Food Detail Modal - Full Style (ako food-detail.php) */
.food-detail-modal-full {
    max-width: 1200px;
    width: 95vw;
    max-height: 95vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    background: white;
}

.modal-header-full {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
}

.modal-header-full {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

.modal-header-full .modal-close {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.modal-header-full .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-body-full {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    background: white;
}

/* Modal actions and buttons */
.modal-body-full .modal-actions {
    padding: 30px;
    background: #f9fafb;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #e5e7eb;
}

.modal-body-full .modal-actions .btn {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 1rem;
}

/* Responsive úpravy pre modál */
@media (max-width: 768px) {
    .food-detail-modal-full {
        width: 98vw;
        max-height: 98vh;
    }
    
    .modal-body-full .allergens-nutrition-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 15px;
    }
    
    .modal-body-full .food-detail-header {
        height: 250px;
        padding: 80px 15px 30px 15px;
    }
    
    .modal-body-full .food-title-glass h1 {
        font-size: 1.5rem;
    }
    
    .modal-body-full .food-description-centered {
        padding: 20px 15px;
    }
    
    .modal-body-full .restaurant-title {
        font-size: 1.4rem;
    }
    
    .modal-body-full .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-body-full .share-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .modal-body-full .modal-actions {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .modal-body-full .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Rating Component Styles */
.compact-rating-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Glass style - minimalistický vzhľad pre food-detail modal */
.compact-rating-section.glass-style {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 15px 0;
    margin: 15px 0 0 0;
    justify-content: center;
}

.compact-rating-section.glass-style .rating-stars-display {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Favorites System Styles */
.favorite-dish-btn,
.favorite-restaurant-btn {
    position: absolute;
    top: 50px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.favorite-dish-btn:hover,
.favorite-restaurant-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.favorite-dish-btn.is-favorite,
.favorite-restaurant-btn.is-favorite {
    background: rgba(255, 182, 193, 0.9);
}

.favorite-icon {
    font-size: 16px;
    transition: all 0.2s ease;
}

.favorite-dish-btn:hover .favorite-icon,
.favorite-restaurant-btn:hover .favorite-icon {
    transform: scale(1.2);
}

/* Priority indicator for favorites */
.favorite-priority-badge {
    position: absolute;
    top: 46px;
    right: 36px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 15;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.notification-message {
    font-weight: 500;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: unset;
    }
    
    .favorite-dish-btn,
    .favorite-restaurant-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }
    
    .favorite-icon {
        font-size: 14px;
    }
}

.compact-rating-section.glass-style .rating-stars-display:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.rating-stars-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars-display.medium {
    font-size: 18px;
}

.star-display {
    font-size: inherit;
    line-height: 1;
}

.rating-count {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.rating-click-hint {
    margin-left: 8px;
    opacity: 0.6;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.rating-click-hint i {
    font-size: 12px;
}

/* Modal Nutrition Grid Styles - same as food-detail.php */
.food-detail-modal-full .nutrition-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.food-detail-modal-full .nutrition-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 8px;
}

.food-detail-modal-full .nutrition-section h3 i {
    color: #28a745;
}

.food-detail-modal-full .nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.food-detail-modal-full .nutrition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #f8fff9;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
}

.food-detail-modal-full .nutrition-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.food-detail-modal-full .nutrition-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
}

/* Share icons for index.php modal */
.modal-share-icons-index {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.modal-share-icon-index {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-share-icon-index:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
    border-color: rgba(102, 126, 234, 0.4);
}

/* Food description and tags for index.php modal */
.modal-body-full .food-description-text {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.modal-body-full .food-description-text p {
    margin: 0;
    font-style: italic;
}

.modal-body-full .food-tags-below-description {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.modal-body-full .food-tag-simple {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Nová sekcia POD fialovou časťou */
.food-info-below-restaurant-modal {
    background: white;
    padding: 30px;
    margin: 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.food-info-below-restaurant-modal .food-description-below {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: center;
}

.food-tags-below-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.food-tag-below {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid;
    transition: transform 0.2s ease;
}

.food-tag-below:hover {
    transform: translateY(-2px);
}

.food-tag-below.vegan {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border-color: #059669;
}

.food-tag-below.vegetarian {
    background: rgba(34, 197, 94, 0.08);
    color: #059669;
    border-color: #10b981;
}

.food-tag-below.spicy {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: #dc2626;
}

.food-tag-below.gluten-free {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: #d97706;
}

/* ============================================
   Featured Food Card Styling
   ============================================ */

/* Featured Food Card - Zlatý gradient border s animáciou */
.menu-item-card.featured-food {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FFD700, #FFA500, #FF6B35) border-box;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
    animation: featured-glow 3s ease-in-out infinite;
}

.menu-item-card.featured-food:hover {
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.35);
    transform: translateY(-8px);
}

@keyframes featured-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    }
}

/* Featured Badge - Zlatý badge vpravo hore */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.featured-badge .badge-icon {
    font-size: 14px;
    animation: star-rotate 4s linear infinite;
}

@keyframes star-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.featured-badge .badge-text {
    letter-spacing: 0.5px;
}

/* Responsive styling pre featured badge */
@media (max-width: 768px) {
    .featured-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
        gap: 4px;
    }
    
    .featured-badge .badge-icon {
        font-size: 12px;
    }
}
