/* Best Solution Carousel Section */
.best-solution-carousel {
    padding: 60px 0;
    background-color: #fff;
}

.carousel-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2d6a4f;
    margin-bottom: 50px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bestSolutionSwiper {
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}


.bestSolutionSwiper .swiper-wrapper {
    display: flex;
    gap: 20px;
    box-sizing: border-box;
}

.bestSolutionSwiper .swiper-slide {
    width: calc(25% - 15px);
    box-sizing: border-box;
    flex-shrink: 0;
}

.carousel-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    width: 100%;
}

.carousel-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.carousel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #52b788;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.carousel-product-card:hover .carousel-img {
    transform: scale(1.08);
}

.carousel-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d6a4f;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.carousel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.carousel-stars {
    font-size: 0.9rem;
    color: #52b788;
}

.carousel-review {
    font-size: 0.85rem;
    color: #999;
}

.carousel-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d6a4f;
}

.carousel-original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #2d6a4f;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background-color: #52b788;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev-btn {
    left: 10px;
}

.carousel-next-btn {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .bestSolutionSwiper .swiper-slide {
        width: calc(33.333% - 15px);
    }

    .carousel-image-container {
        height: 250px;
    }

    .carousel-product-name {
        font-size: 1rem;
    }

    .carousel-current-price {
        font-size: 1rem;
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .best-solution-carousel {
        padding: 40px 0;
    }

    .carousel-section-title {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    /* .bestSolutionSwiper .swiper-slide {
        width: calc(50% - 10px);
    } */

    .carousel-image-container {
        height: 220px;
    }

    .carousel-details {
        padding: 15px;
    }

    .carousel-product-name {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .carousel-rating {
        gap: 5px;
        margin-bottom: 10px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .best-solution-carousel {
        padding: 30px 0;
    }

    .carousel-section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .bestSolutionSwiper .swiper-slide {
        width: calc(50% - 10px);
    }

    .carousel-image-container {
        height: 200px;
    }

    .carousel-details {
        padding: 12px;
    }

    .carousel-product-name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .carousel-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .carousel-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .carousel-section-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    /* .bestSolutionSwiper .swiper-slide {
        width: 100%;
    } */

    .carousel-image-container {
        height: 180px;
    }

    .carousel-product-name {
        font-size: 0.85rem;
    }

    .carousel-current-price {
        font-size: 0.95rem;
    }

    .carousel-original-price {
        font-size: 0.8rem;
    }

    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .carousel-prev-btn {
        left: 5px;
    }

    .carousel-next-btn {
        right: 5px;
    }
}


.carousel-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.carousel-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.carousel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #52b788;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.carousel-product-card:hover .carousel-img {
    transform: scale(1.08);
}

.carousel-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d6a4f;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.carousel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.carousel-stars {
    font-size: 0.9rem;
    color: #52b788;
}

.carousel-review {
    font-size: 0.85rem;
    color: #999;
}

.carousel-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d6a4f;
}

.carousel-original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #2d6a4f;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background-color: #52b788;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev-btn {
    left: 10px;
}

.carousel-next-btn {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    /* .bestSolutionSwiper .swiper-slide {
        width: 33.333%;
    } */

    .carousel-image-container {
        height: 250px;
    }

    .carousel-product-name {
        font-size: 1rem;
    }

    .carousel-current-price {
        font-size: 1rem;
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .best-solution-carousel {
        padding: 40px 0;
    }

    .carousel-section-title {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    /* .bestSolutionSwiper .swiper-slide {
        width: 50%;
    } */

    .carousel-image-container {
        height: 220px;
    }

    .carousel-details {
        padding: 15px;
    }

    .carousel-product-name {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .carousel-rating {
        gap: 5px;
        margin-bottom: 10px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .best-solution-carousel {
        padding: 30px 0;
    }

    .carousel-section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    /* .bestSolutionSwiper .swiper-slide {
        width: 50%;
    } */

    .carousel-image-container {
        height: 200px;
    }

    .carousel-details {
        padding: 12px;
    }

    .carousel-product-name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .carousel-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .carousel-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .carousel-section-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    /* .bestSolutionSwiper .swiper-slide {
        width: 100%;
    } */

    .carousel-image-container {
        height: 180px;
    }

    .carousel-product-name {
        font-size: 0.85rem;
    }

    .carousel-current-price {
        font-size: 0.95rem;
    }

    .carousel-original-price {
        font-size: 0.8rem;
    }

    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .carousel-prev-btn {
        left: 5px;
    }

    .carousel-next-btn {
        right: 5px;
    }
}
