/* Fharma Native Carousel - Scroll Snap Based */
.vs-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    padding: 0 !important;
    scrollbar-width: none;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* Hide scrollbar */
}

.vs-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
}

.vs-carousel>[class*="col-"],
.vs-carousel>div {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
}

/* Default: 1 slide */
.vs-carousel>* {
    width: 100% !important;
}

/* Responsive Overrides (Matching common data attributes) */
@media (min-width: 576px) {
    .vs-carousel[data-xs-slide-show="2"]>* {
        width: 50% !important;
    }
}

@media (min-width: 768px) {
    .vs-carousel[data-sm-slide-show="2"]>* {
        width: 50% !important;
    }

    .vs-carousel[data-sm-slide-show="3"]>* {
        width: 33.333% !important;
    }
}

@media (min-width: 992px) {
    .vs-carousel[data-md-slide-show="2"]>* {
        width: 50% !important;
    }

    .vs-carousel[data-md-slide-show="3"]>* {
        width: 33.333% !important;
    }

    .vs-carousel[data-md-slide-show="4"]>* {
        width: 25% !important;
    }
}

@media (min-width: 1200px) {
    .vs-carousel[data-lg-slide-show="2"]>* {
        width: 50% !important;
    }

    .vs-carousel[data-lg-slide-show="3"]>* {
        width: 33.333% !important;
    }

    .vs-carousel[data-lg-slide-show="4"]>* {
        width: 25% !important;
    }

    .vs-carousel[data-lg-slide-show="5"]>* {
        width: 20% !important;
    }
}

/* Main Slide Show fallback values */
.vs-carousel[data-slide-show="2"]>* {
    width: 50% !important;
}

.vs-carousel[data-slide-show="3"]>* {
    width: 33.333% !important;
}

.vs-carousel[data-slide-show="4"]>* {
    width: 25% !important;
}

.vs-carousel[data-slide-show="5"]>* {
    width: 20% !important;
}

/* Mobile: force 1 slide for all carousels */
@media (max-width: 768px) {

    .vs-carousel>*,
    .vs-carousel[data-slide-show="2"]>*,
    .vs-carousel[data-slide-show="3"]>*,
    .vs-carousel[data-slide-show="4"]>*,
    .vs-carousel[data-slide-show="5"]>* {
        width: 100% !important;
    }
}

/* Arrows: ensure the parent of .vs-carousel is the positioning context */
*:has(> .vs-carousel) {
    position: relative;
}

.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--brand-green);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.slick-prev:hover,
.slick-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slick-prev {
    left: -35px;
}

.slick-next {
    right: -35px;
}

@media (max-width: 1200px) {
    .slick-prev {
        left: -10px;
    }

    .slick-next {
        right: -10px;
    }
}

/* Hide arrows if data-arrows="false" */
.vs-carousel[data-arrows="false"]~.slick-prev,
.vs-carousel[data-arrows="false"]~.slick-next {
    display: none !important;
}