/* menu.css */
.menu-section {
    padding: 4rem 5%;
}

.menu-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.item-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.item-price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #b50a52;
}

/* menu.css */
.menu-header {
    margin-bottom: 2rem;
    text-align: center;
}

.menu-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

#menu-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #f5f5f5;
}

.item-badge.vegetarian {
    background: #e8f5e9;
    color: #2e7d32;
}

.item-badge.spicy {
    background: #ffebee;
    color: #c62828;
}

.item-badge.healthy {
    background: #e3f2fd;
    color: #1565c0;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.item-rating {
    color: #ffc107;
    font-weight: bold;
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #b50a52;
}

@media (max-width: 768px) {
    .menu-controls {
        flex-direction: column;
    }

    .filter-controls {
        flex-direction: column;
    }
}

.item-quantity {
    font-size: 0.9rem;
    color: #666;
    margin-right: 1rem;
}

.add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Dropdown improvements */
#location-filter,
#price-filter {
    max-height: 250px;
    /* approximately 2.5 inches */
    overflow-y: auto;
    position: relative;
    z-index: 100;
}

#location-filter optgroup,
#price-filter optgroup {
    max-height: 200px;
    overflow-y: auto;
}

/* Style for the selected location in navbar */
.selected-location {
    background: white;
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.selected-location i {
    margin-right: 8px;
    color: var(--primary-color);
}