/* Mobile Responsive Fixes for Slider and Banner Images */

/* Hero Slider Mobile Improvements */
.hero__slider--items__style2 {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Mobile-first responsive heights for slider */
@media only screen and (max-width: 575px) {
    .hero__slider--items__style2 {
        height: 200px !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .hero__slider--section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .hero__slider--items__style2 {
        height: 250px !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .hero__slider--items__style2 {
        height: 300px !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* Banner Mobile Improvements */
.banner__items {
    overflow: hidden !important;
    border-radius: 5px !important;
}

.banner__thumbnail--img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    transition: transform 0.3s ease !important;
}

/* Mobile-first responsive heights for banners */
@media only screen and (max-width: 575px) {
    .banner__items {
        height: 150px !important;
        margin-bottom: 1rem !important;
    }
    
    .banner__thumbnail--img {
        height: 150px !important;
        object-fit: cover !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .banner__items {
        height: 180px !important;
        margin-bottom: 1rem !important;
    }
    
    .banner__thumbnail--img {
        height: 180px !important;
        object-fit: cover !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .banner__items {
        height: 220px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .banner__thumbnail--img {
        height: 220px !important;
        object-fit: cover !important;
    }
}

@media only screen and (min-width: 992px) {
    .banner__items {
        height: 283px !important;
    }
    
    .banner__thumbnail--img {
        height: 283px !important;
        object-fit: cover !important;
    }
}

/* Ensure proper aspect ratio maintenance */
.banner__thumbnail {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 5px !important;
}

/* Fix container spacing on mobile */
@media only screen and (max-width: 767px) {
    .banner__section .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .banner__section .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .banner__section .col-lg-6,
    .banner__section .col-md-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Improve slider navigation on mobile */
@media only screen and (max-width: 767px) {
    .hero__slider--activation .swiper__nav--btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .hero__slider--activation .swiper__nav--btn.swiper-button-prev {
        left: 10px !important;
    }
    
    .hero__slider--activation .swiper__nav--btn.swiper-button-next {
        right: 10px !important;
    }
}

/* Product Cards Mobile Responsiveness */
@media only screen and (max-width: 575px) {
    .product__card {
        margin-bottom: 1rem !important;
    }
    
    .product__card--thumbnail {
        height: 180px !important;
        overflow: hidden !important;
    }
    
    .product__card--thumbnail__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .product__card--content {
        padding: 0.75rem !important;
    }
    
    .product__card--content__title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product__card--price {
        font-size: 0.85rem !important;
    }
    
    /* Small product cards in promotions */
    .small__product--card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .small__product--card__img {
        width: 100% !important;
        max-width: 120px !important;
        margin: 0 auto !important;
    }
    
    .small__product--card__img img {
        width: 100% !important;
        height: 80px !important;
        object-fit: cover !important;
    }
    
    .small__product--card__title {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    
    .small__product--card__price {
        font-size: 0.75rem !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .product__card--thumbnail {
        height: 200px !important;
    }
    
    .product__card--content__title {
        font-size: 0.95rem !important;
    }
    
    .small__product--card__img img {
        height: 90px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .product__card--thumbnail {
        height: 220px !important;
    }
}
