﻿/* Hero Section Mobile Fixes */
@media (max-width: 768px) {
    #heroCarousel

{
    height: auto !important; /* Remove fixed height */
    min-height: 500px; /* Set minimum height for mobile */
}

.carousel-item .row {
    padding: 20px 0; /* Add vertical spacing */
}

.carousel-image {
    height: 300px !important; /* Reduce image height for mobile */
    width: 100% !important; /* Full width for mobile */
    margin-top: 1rem; /* Add spacing between text and image */
}
/* Text adjustments */
#heroCarousel h1.display-4 {
    font-size: 2.5rem !important; /* Reduce heading size */
}

    #heroCarousel h1.display-4 span:first-child {
        font-size: 2rem !important; /* Adjust sub-heading */
    }

    #heroCarousel h1.display-4 span:last-child {
        font-size: 2.2rem !important; /* Adjust main heading */
        line-height: 1.2 !important;
    }

#heroCarousel .lead {
    font-size: 1rem; /* Reduce paragraph text size */
    margin-bottom: 1.5rem;
}
/* Button adjustments */
#heroCarousel .lc-block {
    flex-direction: column; /* Stack buttons vertically */
    gap: 1rem !important;
}

#heroCarousel .btn {
    width: 100%; /* Full width buttons */
}

}

/* Ensure images maintain aspect ratio */
.carousel-image {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Change from cover to contain for mobile */
}

.carousel-image {
    height: 400px;
    width: auto;
    object-fit: cover;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star {
    cursor: pointer;
    font-size: 20px;
    filter: grayscale(100%);
    transition: filter 0.2s, transform 0.2s;
}

    .star:hover {
        transform: scale(1.1);
    }

    .star.selected {
        filter: grayscale(0%);
    }

    .star:hover,
    .star:hover ~ .star {
        filter: grayscale(0%);
    }

.average-rating {
    font-size: 16px;
    color: #666;
}

    .average-rating .star {
        cursor: default;
        filter: grayscale(0%);
    }

        .average-rating .star:hover {
            transform: none;
        }

.food-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.05);
}

    .food-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.save-btn {
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .save-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.object-fit-cover {
    object-fit: cover;
}

/* New styles for recommendations */
.recommendations-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.recommendation-slider {
    position: relative;
}

    .recommendation-slider .row {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .recommendation-slider .row::-webkit-scrollbar {
            display: none;
        }

.recommendation-card {
    margin-right: 1rem;
    position: relative;
}

.recommendation-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #d22710;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1;
}

/* Carousel Controls Hover Effect */
.carousel-control-prev,
.carousel-control-next {
    transition: background-color 0.3s ease;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: rgba(0, 0, 0, 0.2);
    }

.heart-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

    .heart-button:hover {
        transform: scale(1.1);
    }

/* Search and Filter Container Styles */
.search-filter-container {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.search-filter-wrapper {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

/* Search Input Styles */
.search-group {
    min-width: 300px;
}

    .search-group .input-group {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .search-group .input-group-text,
    .search-group .form-control {
        border-color: #e0e0e0;
        font-size: 0.95rem;
    }

        .search-group .form-control:focus {
            box-shadow: none;
            border-color: #primary;
        }

/* Filter Dropdown Styles */
.filter-group .form-select {
    min-width: 160px;
    border-radius: 8px;
    border-color: #e0e0e0;
    padding: 0.6rem 2.25rem 0.6rem 1rem;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .filter-group .form-select:focus {
        border-color: #primary;
        box-shadow: none;
    }

/* Search Button Styles */
.search-button .btn-primary {
    padding: 0.6rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    background-color: #d22710;
    border: none;
    transition: all 0.3s ease;
}

    .search-button .btn-primary:hover {
        background-color: #b01e0c;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(210, 39, 16, 0.2);
    }

/* Responsive Design */
@media (max-width: 992px) {
    .search-filter-wrapper {
        grid-template-columns: 1fr auto;
    }

    .search-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .search-filter-wrapper {
        grid-template-columns: 1fr;
    }

    .search-group {
        min-width: 100%;
    }

    .filter-group {
        width: 100%;
    }

        .filter-group .form-select {
            width: 100%;
        }
}

/* Animation */
.search-filter-container {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-order-now {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

    .btn-order-now:hover {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        transform: translateY(-2px);
    }

.heart-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .heart-button:hover {
        transform: scale(1.1);
    }

.rating-container .star {
    cursor: pointer;
    transition: color 0.3s ease;
}

    .rating-container .star:hover {
        color: #ffc107;
    }

.average-rating {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Shopping Cart Icon */
.btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    transition: all 0.3s ease;
}

    .btn-light:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

.small-cart {
    color: #6366f1;
    font-size: 1.25rem;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}
