* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
}

/* Remove stock warning badge */
.info-badge.stock-low {
    display: none;
}

/* Fix top navigation bar to match index page */
.header {
    background: #000000;
    backdrop-filter: blur(10px);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .logo img {
        height: 48px;
        border-radius: 10px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a.active {
    color: #e74c3c;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #e74c3c;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.book-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 10px;
}

.multi-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}
.multi-select-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #000;
    background: #fff;
}
.multi-select-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.multi-select-list li {
    padding: 6px 8px;
}
.multi-select-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
}
.multi-select-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.multi-select-actions .btn-apply,
.multi-select-actions .btn-clear {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #000;
    font-size: 13px;
    cursor: pointer;
}
.multi-select-actions .btn-apply {
    border-color: #c0392b;
}
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

/* Adjust main content to account for fixed header */
.menu-container {
    padding-top: 96px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
}
.dropdown-header span {
    color: #000;
    white-space: nowrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.dropdown-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-content.show {
    display: block;
}

.dropdown-option {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.8rem;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.85rem;
        min-height: 38px;
    }

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f8fafc;
}

.dropdown-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #e74c3c;
}

.dropdown-option span {
    font-size: 0.95rem;
    color: #000;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

/* Mobile Optimizations for Custom Dropdowns */
@media (max-width: 768px) {
    .custom-dropdown {
        margin-bottom: 0.5rem;
    }
    
    .dropdown-header {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .dropdown-content {
        max-height: 150px;
        border-radius: 0 0 8px 8px;
    }
    
    .dropdown-option {
        padding: 0.6rem 0.8rem;
    }
    
    .dropdown-option span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dropdown-header {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .dropdown-content {
        max-height: 120px;
    }
    
    .dropdown-option {
        padding: 0.5rem 0.7rem;
    }
    
    .dropdown-option span {
        font-size: 0.85rem;
    }
    
    .dropdown-arrow {
        font-size: 0.7rem;
    }
}

@media (min-width: 992px) {
    .filter-row {
        grid-template-columns: 1.6fr auto auto 0.8fr 0.8fr auto auto;
    }
    #categoryDropdown,
    #subcategoryDropdown {
        width: auto;
        max-width: none;
        justify-self: start;
    }
    .dropdown-content {
        width: max-content;
        min-width: 280px;
        max-height: 420px;
    }
    .dropdown-header {
        min-height: 40px;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
}
@media (min-width: 992px) {
    .menu-filter-form {
        max-width: 1100px;
        margin: 0 auto;
        padding: 1rem;
    }
    .filter-row {
        grid-template-columns: minmax(200px, 2fr) minmax(260px, 1.5fr) minmax(260px, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr) auto auto;
        justify-content: center;
        align-items: center;
    }
    .custom-dropdown {
        max-width: 280px;
    }
    .dropdown-content {
        min-width: 280px;
        max-height: 420px;
    }
    .dropdown-header {
        min-height: 48px;
    }
    .filter-section-menu {
        padding: 1rem 0 0.25rem;
    }
    .results-summary {
        padding: 0.75rem 0;
    }
}

/* Modern Filter Section */
.filter-section-menu {
    background: white;
    padding: 2rem 0;
    margin-top: 80px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

.filter-section-menu .container {
    position: relative;
    z-index: 2;
}

.filter-section-menu h2 {
    color: #2d3748;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.menu-filter-form {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 0;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr 0.8fr auto auto;
    gap: 1rem;
    align-items: center;
}

.search-input, .filter-select, .price-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: none;
    font-family: inherit;
    color: #000;
}

.search-input {
    font-weight: 500;
}

.search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-input:focus, .filter-select:focus, .price-input:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: white;
    border-color: #e74c3c;
}

/* Professional price input styling for desktop */
.price-input {
    width: 120px;
    min-width: 100px;
    max-width: 140px;
}

/* Adjust grid columns for price inputs */
.filter-row {
    grid-template-columns: 2fr 1fr 1fr 0.6fr 0.6fr auto auto;
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.search-btn, .reset-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 120px;
}

.search-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.reset-btn {
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.reset-btn:hover {
    background: #edf2f7;
    color: #4a5568;
    transform: translateY(-1px);
    border-color: #cbd5e0;
}

/* Results Summary - Enhanced */
.results-summary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    padding: 2rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
}

.results-summary h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.showing-all {
    color: #718096;
    font-size: 1.1rem;
    font-weight: 400;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.5rem;
}

.filter-tag {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

.clear-filters {
    color: #718096;
    text-decoration: none;
    font-weight: 700;
    margin-left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: rgba(113, 128, 150, 0.1);
    text-decoration: none;
}

/* Category Sections - Enhanced with Slider Controls */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
    padding-left: 1.5rem;
    border-left: 6px solid #718096;
    font-weight: 800;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.slider-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.slider-btn:active {
    transform: translateY(0) scale(0.95);
}

.slider-btn span {
    line-height: 1;
    font-weight: bold;
}

/* Dishes Grid - Horizontal Row Slider with Flex Wrap */
.dishes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f1f1f1;
}

.dishes-grid::-webkit-scrollbar {
    height: 8px;
}

.dishes-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dishes-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 4px;
}

.dishes-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Enhanced Dish Cards - Flex Layout */
.dish-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 380px;
    width: 100%;
    margin-bottom: 1rem;
}

.dish-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(113, 128, 150, 0.3);
}

.dish-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.dish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dish-card:hover .dish-image {
    transform: scale(1.08);
}

.dish-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dish-image-placeholder p {
    margin: 1rem 0 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Badges */
.special-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    animation: pulse 2s infinite;
}

.info-badge {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.info-badge.prep-time {
    bottom: 4rem;
    left: 1rem;
}

.info-badge.spice-level {
    bottom: 4rem;
    right: 1rem;
}

.info-badge.dealer-suspended {
    top: 3rem;
    left: 1rem;
    background: rgba(149, 165, 166, 0.9);
}

/* Enhanced Overlay */
.dish-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(113, 128, 150, 0.95), rgba(74, 85, 104, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.dish-card:hover .dish-overlay {
    opacity: 1;
}

.add-to-cart-btn {
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.add-to-cart-btn:hover {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    background: #000000;
    color: #ffffff;
}

.add-to-cart-btn:disabled {
    background: #2a2a2a;
    color: #bfbfbf;
    cursor: not-allowed;
}

/* Enhanced Content */
.dish-content {
    padding: 2rem;
}

.dish-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
}

.dish-description {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.dietary-info {
    margin-bottom: 1.5rem;
}

.dietary-label {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.dish-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    color: #4a5568;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.dish-price, .special-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #718096;
    text-shadow: 0 2px 10px rgba(113, 128, 150, 0.2);
}

.original-price {
    font-size: 1.1rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.dish-rating .stars {
    color: #f6ad55;
    font-size: 1rem;
    text-shadow: 0 2px 5px rgba(246, 173, 85, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

/* Responsive Design for Flex Layout */
@media (max-width: 1200px) {
    .dishes-grid {
        gap: 1.2rem;
    }
    
    .dish-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-section-menu h2 {
        font-size: 2.2rem;
    }
    
    .menu-filter-form {
        padding: 2rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .dishes-grid {
        gap: 1rem;
        padding: 0.5rem 0;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .dish-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .dish-card:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .dishes-grid {
        gap: 0.8rem;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .dish-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 0.8rem;
    }
    
    .dish-card:last-child {
        margin-bottom: 0;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    border-top: 2px solid rgba(231, 76, 60, 0.4);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-section {
    text-align: center;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ecf0f1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.quick-link-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.quick-link-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

.quick-link-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.quick-link-content p {
    font-size: 0.95rem;
    margin: 0;
    color: #e8e8e8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-link-card.breakfast:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
}

.quick-link-card.lunch:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.2));
}

.quick-link-card.desserts:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(156, 39, 176, 0.2));
}

.quick-link-card.beverages:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(3, 169, 244, 0.2));
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-brand p {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #e74c3c;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
    .footer-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-link-card {
        padding: 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.5rem;
    }
    
    .quick-link-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .quick-link-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .filter-section-menu {
        padding: 3rem 0;
    }
    
    .filter-section-menu h2 {
        font-size: 1.8rem;
    }
    
    .menu-filter-form {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Enhanced Responsive Design for Main Page */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .filter-section-menu {
        padding: 4rem 0 2rem;
    }
    
    .menu-filter-form {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .menu-container {
        padding-top: 80px;
    }

    .filter-section-menu {
        padding: 1.5rem 0;
    }
    
    .filter-section-menu h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .menu-filter-form {
        padding: 1rem;
        margin: 0 1rem;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-input, .filter-select, .price-input {
        width: 100%;
    }
    
    .search-btn, .reset-btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .slider-controls {
        align-self: flex-end;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        justify-content: center;
        display: grid;
        place-items: center;
        overflow-x: visible;
        margin: 0 auto;
    }
    
    .dish-card {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .filter-section-menu {
        padding: 3rem 0 1rem;
    }
    
    .filter-section-menu h2 {
        font-size: 1.8rem;
    }
    
    .menu-filter-form {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .dish-card-content {
        padding: 1.5rem;
    }
    
    .dish-title {
        font-size: 1.2rem;
    }
    
    .dish-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav {
        padding: 0 0.5rem;
    }
    
    .dishes-grid {
        padding: 0 0.5rem;
        gap: 1rem;
        justify-content: center;
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        overflow-x: visible;
        margin: 0 auto;
    }
    
    .category-title {
        font-size: 1.4rem;
        padding: 0 1rem;
    }
    
    .menu-filter-form {
        margin: 0.25rem;
        padding: 1rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

/* Large screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }
}

/* Animation Keyframes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dish-card {
    animation: fadeInUp 0.6s ease-out;
}

.dish-card:nth-child(2) { animation-delay: 0.1s; }
.dish-card:nth-child(3) { animation-delay: 0.2s; }
.dish-card:nth-child(4) { animation-delay: 0.3s; }
 -->
            <div class="footer-bottom">
                <div class="footer-bottom-content">
                    <p>&copy; 2024 pepesonthelake. All rights reserved.</p>
                    <div class="social-links">
                        <a href="#" class="social-link"></a>
                        <a href="#" class="social-link">📷</a>
                        <a href="#" class="social-link"></a>
                        <a href="#" class="social-link"></a>
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <script>
        // Subcategories data for JavaScript
        const subcategoriesData = <?= json_encode($subcategories) ?>;

        // Custom dropdown functionality
        function toggleDropdown(dropdownId) {
            const dropdown = document.getElementById(dropdownId);
            const content = dropdown.querySelector('.dropdown-content');
            const arrow = dropdown.querySelector('.dropdown-arrow');

            // Close other dropdowns
            document.querySelectorAll('.custom-dropdown').forEach(dd => {
                if (dd.id !== dropdownId) {
                    dd.querySelector('.dropdown-content').classList.remove('show');
                    dd.querySelector('.dropdown-arrow').style.transform = 'rotate(0deg)';
                }
            });

            // Toggle current dropdown
            content.classList.toggle('show');
            arrow.style.transform = content.classList.contains('show') ? 'rotate(180deg)' : 'rotate(0deg)';
        }

        function updateCategorySelection() {
            const selectedRadio = document.querySelector('input[name="category"]:checked');
            const selectedText = selectedRadio.nextElementSibling.textContent;
            document.getElementById('categorySelected').textContent = selectedText;

            // Close dropdown
            document.getElementById('categoryDropdown').querySelector('.dropdown-content').classList.remove('show');
            document.getElementById('categoryDropdown').querySelector('.dropdown-arrow').style.transform = 'rotate(0deg)';

            // Load subcategories
            loadSubcategories();
        }

        function updateSubcategorySelection() {
            const selectedRadio = document.querySelector('input[name="subcategory"]:checked');
            const selectedText = selectedRadio.nextElementSibling.textContent;
            document.getElementById('subcategorySelected').textContent = selectedText;

            // Close dropdown
            document.getElementById('subcategoryDropdown').querySelector('.dropdown-content').classList.remove('show');
            document.getElementById('subcategoryDropdown').querySelector('.dropdown-arrow').style.transform = 'rotate(0deg)';
        }

        // Close dropdowns when clicking outside
        document.addEventListener('click', function(event) {
            if (!event.target.closest('.custom-dropdown')) {
                document.querySelectorAll('.dropdown-content').forEach(content => {
                    content.classList.remove('show');
                });
                document.querySelectorAll('.dropdown-arrow').forEach(arrow => {
                    arrow.style.transform = 'rotate(0deg)';
                });
            }
        });

        // Load subcategories based on selected category
        function loadSubcategories() {
            const selectedCategoryRadio = document.querySelector('input[name="category"]:checked');
            const subcategoryContent = document.getElementById('subcategoryDropdown').querySelector('.dropdown-content');
            const selectedCategoryId = selectedCategoryRadio ? selectedCategoryRadio.value : '';

            // Clear existing subcategories
            subcategoryContent.innerHTML = '<label class="dropdown-option"><input type="radio" name="subcategory" value="" checked onchange="updateSubcategorySelection()"><span>All Dish Types</span></label>';

            if (selectedCategoryId) {
                // Filter subcategories for selected category
                const relevantSubcategories = subcategoriesData.filter(sub =>
                    sub.category_id == selectedCategoryId
                );

                // Add filtered subcategories
                relevantSubcategories.forEach(subcategory => {
                    const label = document.createElement('label');
                    label.className = 'dropdown-option';
                    label.innerHTML = `
                        <input type="radio" name="subcategory" value="${subcategory.subcategory_id}" onchange="updateSubcategorySelection()">
                        <span>${subcategory.name}</span>
                    `;
                    subcategoryContent.appendChild(label);
                });
            }

            // Reset subcategory selection
            document.getElementById('subcategorySelected').textContent = 'All Dish Types';
        }

        // Book table function
        function bookTable() {
            <?php if (!isset($_SESSION['user_id'])): ?>
                alert('Please login to book a table');
                window.location.href = '../auth/login.php';
                return;
            <?php elseif ($_SESSION['role'] !== 'customer'): ?>
                alert('Only customers can book tables');
                return;
            <?php else: ?>
                window.location.href = 'customer-panel.php';
            <?php endif; ?>
        }

        // View dish function
        function viewDish(dishId) {
            window.location.href = `dish-details.php?id=${dishId}`;
        }

        // Add to cart function
        function addToCart(dishId, dishName, price) {
            <?php if (!isset($_SESSION['user_id'])): ?>
                alert('Please login to add items to cart');
                window.location.href = '../auth/login.php';
                return;
            <?php endif; ?>

            console.log(`Adding to cart: ${dishName} - R${price}`);
            alert(`${dishName} added to cart!`);
        }

        // Slider functionality for categories
        function slideCategory(categoryName, direction) {
            const gridId = 'grid-' + categoryName.replace(/\s+/g, '-');
            const grid = document.getElementById(gridId);

            if (!grid) return;

            const cardWidth = 320; // Base card width
            const gap = 24; // Gap between cards (1.5rem = 24px)
            const scrollAmount = cardWidth + gap;

            if (direction === 'prev') {
                grid.scrollBy({
                    left: -scrollAmount * 2, // Scroll 2 cards at a time
                    behavior: 'smooth'
                });
            } else {
                grid.scrollBy({
                    left: scrollAmount * 2, // Scroll 2 cards at a time
                    behavior: 'smooth'
                });
            }
        }

        // Initialize subcategories on page load
        document.addEventListener('DOMContentLoaded', function() {
            const urlParams = new URLSearchParams(window.location.search);
            const selectedSubcategory = urlParams.get('subcategory');
            const selectedCategory = urlParams.get('category');

            // Set category selection display
            if (selectedCategory) {
                const categoryRadio = document.querySelector(`input[name="category"][value="${selectedCategory}"]`);
                if (categoryRadio) {
                    const categoryText = categoryRadio.nextElementSibling.textContent;
                    document.getElementById('categorySelected').textContent = categoryText;
                }
            }

            // Load subcategories first
            loadSubcategories();

            // Then set subcategory selection if exists
            if (selectedSubcategory) {
                setTimeout(() => {
                    const subcategoryRadio = document.querySelector(`input[name="subcategory"][value="${selectedSubcategory}"]`);
                    if (subcategoryRadio) {
                        subcategoryRadio.checked = true;
                        const subcategoryText = subcategoryRadio.nextElementSibling.textContent;
                        document.getElementById('subcategorySelected').textContent = subcategoryText;
                    }
                }, 100);
            }

            // Add touch/swipe support for mobile
            const grids = document.querySelectorAll('.dishes-grid');

            grids.forEach(grid => {
                let isDown = false;
                let startX;
                let scrollLeft;

                grid.addEventListener('mousedown', (e) => {
                    isDown = true;
                    startX = e.pageX - grid.offsetLeft;
                    scrollLeft = grid.scrollLeft;
                    grid.style.cursor = 'grabbing';
                });

                grid.addEventListener('mouseleave', () => {
                    isDown = false;
                    grid.style.cursor = 'grab';
                });

                grid.addEventListener('mouseup', () => {
                    isDown = false;
                    grid.style.cursor = 'grab';
                });

                grid.addEventListener('mousemove', (e) => {
                    if (!isDown) return;
                    e.preventDefault();
                    const x = e.pageX - grid.offsetLeft;
                    const walk = (x - startX) * 2;
                    grid.scrollLeft = scrollLeft - walk;
                });

                // Set initial cursor
                grid.style.cursor = 'grab';
            });
        });

        // Mobile menu toggle function
        function toggleMobileMenu() {
            const mobileMenu = document.getElementById('mobileMenu');
            const menuBtn = document.querySelector('.mobile-menu-btn');

            mobileMenu.classList.toggle('active');
            menuBtn.classList.toggle('active');
        }

        // Close mobile menu when clicking on links
        document.addEventListener('DOMContentLoaded', function() {
            document.querySelectorAll('.mobile-menu-content a').forEach(link => {
                link.addEventListener('click', function() {
                    const mobileMenu = document.getElementById('mobileMenu');
                    const menuBtn = document.querySelector('.mobile-menu-btn');
                    mobileMenu.classList.remove('active');
                    menuBtn.classList.remove('active');
                });
            });
        });
    </script>
</body>

</html>
