.restaurant-menu-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.restaurant-menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: calc(50% - 10px); /* Adjust width to fit 2 products side by side */
}

/* Product image styling */
.restaurant-menu-item .product-image {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* Product info (title and description) */
.restaurant-menu-item .product-info {
    width: 100%;
}

.restaurant-menu-item .product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.restaurant-menu-item .product-short-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* Product actions (price, quantity, and Add to Cart button) */
.restaurant-menu-item .product-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.restaurant-menu-item .product-price {
    font-size: 14px;
    color: #0071a1;
}

/* Quantity selector styling */
.restaurant-menu-item .cart {
    display: flex;
    flex-direction: column; /* Stack quantity and Add to Cart button */
    align-items: stretch;
    gap: 10px;
}

/* Add to Cart Button */
.restaurant-menu-item .add_to_cart_button {
    background-color: #0071a1;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Full width for mobile view */
}

.restaurant-menu-item .add_to_cart_button:hover {
    background-color: #005780;
}

/* Mobile View: Adjust layout */
@media (max-width: 768px) {
    .restaurant-menu-products {
        gap: 10px; /* Reduce gap between products */
    }

    .restaurant-menu-item {
        width: calc(50% - 5px); /* Two products per row */
    }

    .restaurant-menu-item .product-image {
        margin-bottom: 10px;
    }

    .restaurant-menu-item .cart {
        flex-direction: column; /* Stack quantity and Add to Cart */
    }
}

/* Desktop View: Full-width layout for individual products */
@media (min-width: 769px) {
    .restaurant-menu-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 100%; /* Full width for each product */
    }

    .restaurant-menu-item .product-image {
        flex: 0 0 100px; /* Fixed width for product image */
        margin-right: 15px;
    }

    .restaurant-menu-item .product-info {
        flex: 1;
    }

    .restaurant-menu-item .product-actions {
        flex: 0 0 200px; /* Fixed width for price, quantity, and Add to Cart */
        text-align: right;
        align-self: flex-start;
    }
}
