/* ========================================
   ROW-PARENT-SWIPERS HORIZONTAL SCROLL FIX
   Convert vertical layout to horizontal scroll
   Supports both Swiper structure AND direct package-cards
   ======================================== */

/* Fix .new-title-label padding - override legacy 80px */
.rowfull-margin .new-title-label,
section .new-title-label {
    padding-bottom: 24px !important;
}

@media screen and (max-width: 768px) {
    .rowfull-margin .new-title-label,
    section .new-title-label {
        padding-bottom: 16px !important;
    }
}

.row-parent-swipers {
    position: relative;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    /* Native horizontal scroll for direct cards */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 10px 10px 10px;
    /* Left padding for first card shadow */
    margin-left: -10px;
    margin-right: -10px;
    /* Drag cursor */
    cursor: grab;
    user-select: none;
}

.row-parent-swipers:active,
.row-parent-swipers.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.row-parent-swipers.is-dragging .package-card {
    pointer-events: none;
}

/* Hide scrollbar */
.row-parent-swipers::-webkit-scrollbar {
    display: none;
}

/* Direct package-card children - Native horizontal scroll */
.row-parent-swipers > .package-card {
    flex: 0 0 342px !important;
    min-width: 342px !important;
    max-width: 342px !important;
    width: 342px !important;
}

/* ID-based selectors for higher specificity - Override legacy CSS */
#content-swiper-content-internet,
#content-swiper-content-camera,
#content-swiper-content-fptplay,
#comboCameraTrack,
.rowfull-margin .row-parent-swipers,
section .row-parent-swipers,
div.row-parent-swipers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 10px !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
}

#content-swiper-content-internet::-webkit-scrollbar,
#content-swiper-content-camera::-webkit-scrollbar,
#content-swiper-content-fptplay::-webkit-scrollbar,
#comboCameraTrack::-webkit-scrollbar {
    display: none !important;
}

#content-swiper-content-internet > .package-card,
#content-swiper-content-camera > .package-card,
#content-swiper-content-fptplay > .package-card,
.rowfull-margin .row-parent-swipers > .package-card,
section .row-parent-swipers > .package-card {
    flex: 0 0 342px !important;
    min-width: 342px !important;
    max-width: 342px !important;
    width: 342px !important;
}

/* Swiper container inside row-parent-swipers */
.row-parent-swipers .swiper {
    width: 100%;
    padding: 0 50px;
    /* Space for navigation buttons */
}

.row-parent-swipers .swiper-wrapper {
    display: flex;
    flex-direction: row;
    /* Force horizontal layout */
    gap: 20px;
}

.row-parent-swipers .swiper-slide {
    flex-shrink: 0;
    /* Prevent slides from shrinking */
    width: 342px;
    /* Fixed width for each card */
    height: auto;
}

/* Navigation buttons */
.row-parent-swipers .swiper-button-prev,
.row-parent-swipers .swiper-button-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
    border-radius: 90px;
    background: rgba(255, 255, 255, 0.7) url("../images/owl-arrow-right.svg") no-repeat center center/26px;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.row-parent-swipers .swiper-button-prev::after,
.row-parent-swipers .swiper-button-next::after {
    display: none;
}

.row-parent-swipers .swiper-button-prev {
    left: -25px;
    right: unset;
    transform: translateY(-50%) rotate(180deg);
}

/* Responsive */
@media screen and (max-width: 1440px) {
    .row-parent-swipers {
        width: 100%;
    }

    .row-parent-swipers .swiper {
        padding: 0 15px;
    }

    .row-parent-swipers .swiper-button-prev {
        left: 0;
    }

    .row-parent-swipers .swiper-button-next {
        right: 0;
    }
}

@media screen and (max-width: 1024px) {

    .row-parent-swipers .swiper-button-prev,
    .row-parent-swipers .swiper-button-next {
        display: none !important;
    }

    .row-parent-swipers .swiper {
        padding: 0;
    }
}

@media screen and (max-width: 768px) {
    .row-parent-swipers .swiper-slide {
        width: 280px;
    }
}

@media screen and (max-width: 540px) {
    .row-parent-swipers .swiper-slide {
        width: 75vw;
    }
}