/* =========================================================
   WideoShop Frontend CSS — Stable Layout + Body Lightbox
========================================================= */

.wideoshop-wrapper,
.wideoshop-wrapper * {
    box-sizing: border-box !important;
}

.wideoshop-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flow-root !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
    isolation: auto !important;
    overflow: visible !important;
    margin: 36px auto 34px !important;
    padding: 0 20px 18px !important;
}

.wideoshop-section-header {
    text-align: center !important;
    margin: 0 0 24px !important;
}

.wideoshop-section-header h2 {
    font-size: 30px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wideoshop-empty-state {
    width: 100% !important;
    min-height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px dashed #d1d5db !important;
    border-radius: 16px !important;
    background: #f9fafb !important;
    color: #6b7280 !important;
    text-align: center !important;
    padding: 28px !important;
}

/* =========================
   Carousel Layout
========================= */

.wideoshop-carousel-shell {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: calc(
        (var(--ws-card-width) * var(--ws-desktop-cols)) +
        (var(--ws-card-gap) * (var(--ws-desktop-cols) - 1))
    ) !important;
    margin: 0 auto 6px !important;
    overflow: hidden !important;
}

.wideoshop-track {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: var(--ws-card-gap) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--ws-card-height) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    cursor: grab !important;
    user-select: none !important;
    padding: 0 0 4px !important;
    margin: 0 !important;
    list-style: none !important;
}

.wideoshop-track::-webkit-scrollbar {
    display: none !important;
}

.wideoshop-track.is-dragging {
    cursor: grabbing !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

.wideoshop-card {
    position: relative !important;
    z-index: 1 !important;
    width: min(
        var(--ws-card-width),
        calc((100% - (var(--ws-card-gap) * (var(--ws-desktop-cols) - 1))) / var(--ws-desktop-cols))
    ) !important;
    min-width: min(
        var(--ws-card-width),
        calc((100% - (var(--ws-card-gap) * (var(--ws-desktop-cols) - 1))) / var(--ws-desktop-cols))
    ) !important;
    max-width: var(--ws-card-width) !important;
    height: var(--ws-card-height) !important;
    min-height: var(--ws-card-height) !important;
    max-height: var(--ws-card-height) !important;
    flex: 0 0 min(
        var(--ws-card-width),
        calc((100% - (var(--ws-card-gap) * (var(--ws-desktop-cols) - 1))) / var(--ws-desktop-cols))
    ) !important;
    aspect-ratio: 9 / 16 !important;
    border-radius: var(--ws-card-radius) !important;
    overflow: hidden !important;
    background: #000 !important;
    cursor: pointer !important;
    scroll-snap-align: start !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

.wideoshop-card-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #000 !important;
}

.wideoshop-card-video,
.wideoshop-card-media video,
.wideoshop-card-media img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    user-select: none !important;
}

.wideoshop-play-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    z-index: 4 !important;
    pointer-events: none !important;
}

/* =========================
   Product Banner
========================= */

.wideoshop-product-banner {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 14px !important;
    height: 70px !important;
    border-radius: calc(var(--ws-card-radius) - 6px) !important;
    background: rgba(var(--ws-banner-bg-rgb, 50, 50, 50), var(--ws-banner-opacity, 0.66)) !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    z-index: 5 !important;
    overflow: hidden !important;
}

.wideoshop-product-thumb {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.wideoshop-product-thumb img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    display: block !important;
}

.wideoshop-product-info {
    min-width: 0 !important;
    max-width: calc(100% - 58px) !important;
    overflow: hidden !important;
}

.wideoshop-product-info h3 {
    color: var(--ws-banner-text-color, #ffffff) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.wideoshop-product-info p {
    color: var(--ws-banner-text-color, #ffffff) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.wideoshop-product-info .ws-price-old,
.wideoshop-lightbox-price .ws-price-old,
.wideoshop-mobile-shop-info .ws-price-old,
.wideoshop-mobile-sheet-price .ws-price-old {
    opacity: 0.72 !important;
    text-decoration: line-through !important;
    font-weight: 600 !important;
}

.wideoshop-product-info .ws-price-current,
.wideoshop-lightbox-price .ws-price-current,
.wideoshop-mobile-shop-info .ws-price-current,
.wideoshop-mobile-sheet-price .ws-price-current {
    font-weight: 900 !important;
}

/* =========================
   Arrows + Dots
========================= */

.wideoshop-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 8 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #111 !important;
    font-size: 30px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.wideoshop-arrow-prev {
    left: 10px !important;
}

.wideoshop-arrow-next {
    right: 10px !important;
}

.wideoshop-dots {
    position: relative !important;
    z-index: 1 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 2px 0 10px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.wideoshop-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: #c4c4c4 !important;
    display: block !important;
}

.wideoshop-dot.is-active {
    background: #111 !important;
}

/* spacing protection after shortcode */
.wideoshop-wrapper + *,
.wideoshop-wrapper ~ .products,
.wideoshop-wrapper ~ .woocommerce,
.wideoshop-wrapper ~ .elementor-section,
.wideoshop-wrapper ~ .elementor-widget,
.wideoshop-wrapper ~ .wp-block-group {
    clear: both !important;
    position: relative !important;
    z-index: 0 !important;
    margin-top: 20px !important;
}

/* =========================
   Lightbox Global
========================= */

html.wideoshop-html-locked,
body.wideoshop-lightbox-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.wideoshop-lightbox {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    overscroll-behavior: contain !important;
    touch-action: none !important;
}

.wideoshop-lightbox.is-active {
    display: flex !important;
}

.wideoshop-lightbox-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: rgba(0, 0, 0, 0.72) !important;
}

.wideoshop-lightbox-content {
    position: relative !important;
    z-index: 2 !important;
    width: min(900px, 94vw) !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    display: grid !important;
    grid-template-columns: 1.08fr 0.92fr !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45) !important;
    touch-action: auto !important;
}

.wideoshop-lightbox-close {
    position: absolute !important;
    right: 14px !important;
    top: 12px !important;
    z-index: 50 !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #111 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wideoshop-lightbox-video {
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
}

.wideoshop-lightbox-video video {
    width: 100% !important;
    height: 100% !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    object-fit: contain !important;
    background: #000 !important;
    display: block !important;
}

.wideoshop-lightbox-product {
    padding: 34px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
}

.wideoshop-lightbox-product-img {
    width: 100% !important;
    max-height: 170px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-bottom: 22px !important;
    display: none;
}

.wideoshop-lightbox-title {
    color: #111 !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    margin: 0 0 14px !important;
}

.wideoshop-lightbox-price {
    color: #111 !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 0 18px !important;
}

.wideoshop-lightbox-desc {
    color: #555 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    margin: 0 0 22px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    padding-right: 6px !important;
}

.wideoshop-lightbox-actions {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: auto !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
}

.wideoshop-view-details,
.wideoshop-add-cart,
.wideoshop-mobile-view-details,
.wideoshop-mobile-add-cart {
    text-decoration: none !important;
    min-height: 48px !important;
    border-radius: 999px !important;
    padding: 0 24px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wideoshop-view-details,
.wideoshop-mobile-view-details {
    color: #111 !important;
    background: #f3f4f6 !important;
}

.wideoshop-add-cart,
.wideoshop-mobile-add-cart {
    color: #fff !important;
    background: #000 !important;
}

.wideoshop-add-cart.is-loading,
.wideoshop-mobile-add-cart.is-loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.wideoshop-add-cart.is-added,
.wideoshop-mobile-add-cart.is-added {
    background: #16a34a !important;
    color: #fff !important;
}

/* mobile-only default hidden */
.wideoshop-mobile-shop-banner,
.wideoshop-mobile-sheet {
    display: none !important;
}

/* =========================
   Tablet
========================= */

@media (min-width: 768px) and (max-width: 1024px) {
    .wideoshop-wrapper {
        --ws-card-width: var(--ws-tablet-card-width, 300px) !important;
        --ws-card-height: var(--ws-tablet-card-height, 533px) !important;
        --ws-card-gap: var(--ws-tablet-card-gap, 12px) !important;
        --ws-card-radius: var(--ws-tablet-radius, 14px) !important;
    }

    .wideoshop-carousel-shell {
        max-width: calc(
            (var(--ws-card-width) * var(--ws-tablet-cols)) +
            (var(--ws-card-gap) * (var(--ws-tablet-cols) - 1))
        ) !important;
    }

    .wideoshop-track {
        min-height: var(--ws-card-height) !important;
    }

    .wideoshop-card {
        width: min(
            var(--ws-card-width),
            calc((100% - (var(--ws-card-gap) * (var(--ws-tablet-cols) - 1))) / var(--ws-tablet-cols))
        ) !important;
        min-width: min(
            var(--ws-card-width),
            calc((100% - (var(--ws-card-gap) * (var(--ws-tablet-cols) - 1))) / var(--ws-tablet-cols))
        ) !important;
        flex: 0 0 min(
            var(--ws-card-width),
            calc((100% - (var(--ws-card-gap) * (var(--ws-tablet-cols) - 1))) / var(--ws-tablet-cols))
        ) !important;
        height: var(--ws-card-height) !important;
        min-height: var(--ws-card-height) !important;
        max-height: var(--ws-card-height) !important;
    }

    .wideoshop-lightbox-content {
        width: min(820px, 94vw) !important;
        grid-template-columns: 1fr 0.95fr !important;
    }
}

/* =========================
   Mobile
========================= */

@media (max-width: 767px) {
    .wideoshop-wrapper {
        --ws-card-width: var(--ws-mobile-card-width, 300px) !important;
        --ws-card-height: var(--ws-mobile-card-height, 533px) !important;
        --ws-card-gap: var(--ws-mobile-card-gap, 10px) !important;
        --ws-card-radius: var(--ws-mobile-radius, 12px) !important;
        margin: 28px auto 24px !important;
        padding: 0 16px 12px !important;
    }

    .wideoshop-section-header {
        margin-bottom: 20px !important;
    }

    .wideoshop-section-header h2 {
        font-size: 24px !important;
    }

    .wideoshop-carousel-shell {
        max-width: calc(
            (min(var(--ws-card-width), calc(100vw - 32px)) * var(--ws-mobile-cols)) +
            (var(--ws-card-gap) * (var(--ws-mobile-cols) - 1))
        ) !important;
        margin-bottom: 4px !important;
    }

    .wideoshop-track {
        min-height: var(--ws-card-height) !important;
        padding-bottom: 2px !important;
    }

    .wideoshop-card {
        width: min(
            var(--ws-card-width),
            calc((100% - (var(--ws-card-gap) * (var(--ws-mobile-cols) - 1))) / var(--ws-mobile-cols))
        ) !important;
        min-width: min(
            var(--ws-card-width),
            calc((100% - (var(--ws-card-gap) * (var(--ws-mobile-cols) - 1))) / var(--ws-mobile-cols))
        ) !important;
        max-width: calc(100vw - 32px) !important;
        flex: 0 0 min(
            var(--ws-card-width),
            calc((100% - (var(--ws-card-gap) * (var(--ws-mobile-cols) - 1))) / var(--ws-mobile-cols))
        ) !important;
        height: var(--ws-card-height) !important;
        min-height: var(--ws-card-height) !important;
        max-height: var(--ws-card-height) !important;
    }

    .wideoshop-product-banner {
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
        height: 70px !important;
    }

    .wideoshop-dots {
        display: flex !important;
        margin-top: 2px !important;
        margin-bottom: 10px !important;
    }

    .wideoshop-wrapper + *,
    .wideoshop-wrapper ~ .products,
    .wideoshop-wrapper ~ .woocommerce,
    .wideoshop-wrapper ~ .elementor-section,
    .wideoshop-wrapper ~ .elementor-widget,
    .wideoshop-wrapper ~ .wp-block-group {
        margin-top: 20px !important;
    }

    /* Mobile lightbox */
    .wideoshop-lightbox {
        padding: 12px 12px 76px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .wideoshop-lightbox-content {
        width: min(390px, calc(100vw - 28px)) !important;
        max-width: calc(100vw - 28px) !important;
        max-height: calc(100dvh - 108px) !important;
        display: flex !important;
        flex-direction: column !important;
        background: #111 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        transform: translateY(-8px) !important;
    }

    .wideoshop-lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 38px !important;
        height: 38px !important;
        z-index: 80 !important;
        background: rgba(255, 255, 255, 0.96) !important;
    }

    .wideoshop-lightbox-video {
        width: 100% !important;
        height: min(calc((100vw - 28px) * 1.7777), calc(100dvh - 192px)) !important;
        max-height: calc(100dvh - 192px) !important;
        aspect-ratio: auto !important;
        background: #000 !important;
        flex: 0 0 auto !important;
    }

    .wideoshop-lightbox-video video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        background: #000 !important;
    }

    .wideoshop-lightbox-product {
        display: none !important;
    }

    .wideoshop-mobile-shop-banner {
        display: flex !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: 72px !important;
        flex: 0 0 72px !important;
        z-index: 15 !important;
        background: rgba(var(--ws-banner-bg-rgb, 38, 38, 38), var(--ws-banner-opacity, 0.88)) !important;
        backdrop-filter: blur(8px) !important;
        border-radius: 0 !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        cursor: pointer !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
    }

    .wideoshop-mobile-shop-thumb {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 5px !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.18) !important;
    }

    .wideoshop-mobile-shop-thumb img {
        width: 48px !important;
        height: 48px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .wideoshop-mobile-shop-info {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
        padding-right: 4px !important;
    }

    .wideoshop-mobile-shop-info h3 {
        color: var(--ws-banner-text-color, #ffffff) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin: 0 0 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .wideoshop-mobile-shop-info p {
        color: var(--ws-banner-text-color, #ffffff) !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        margin: 0 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        display: flex !important;
        gap: 6px !important;
    }

    .wideoshop-mobile-shop-now {
        border: 0 !important;
        background: #ffffff !important;
        color: #111 !important;
        min-width: 92px !important;
        height: 40px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        cursor: pointer !important;
        padding: 0 14px !important;
        flex: 0 0 auto !important;
    }

    .wideoshop-mobile-sheet {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 70 !important;
        background: #ffffff !important;
        border-radius: 18px 18px 0 0 !important;
        padding: 20px 20px 0 !important;
        transform: translateY(110%) !important;
        transition: transform 0.28s ease !important;
        max-height: 78% !important;
        overflow: hidden !important;
        box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.28) !important;
    }

    .wideoshop-mobile-sheet.is-active {
        transform: translateY(0) !important;
    }

    .wideoshop-mobile-sheet-handle {
        width: 44px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: #d1d5db !important;
        margin: 0 auto 14px !important;
        flex: 0 0 auto !important;
    }

    .wideoshop-mobile-sheet-close {
        position: absolute !important;
        right: 14px !important;
        top: 14px !important;
        width: 34px !important;
        height: 34px !important;
        border: none !important;
        border-radius: 999px !important;
        background: #f3f4f6 !important;
        color: #111 !important;
        font-size: 24px !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .wideoshop-mobile-sheet-img {
        width: 100% !important;
        max-height: 150px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        display: block !important;
        flex: 0 0 auto !important;
    }

    .wideoshop-mobile-sheet-title {
        font-size: 22px !important;
        line-height: 1.15 !important;
        margin: 0 42px 10px 0 !important;
        color: #111 !important;
        flex: 0 0 auto !important;
    }

    .wideoshop-mobile-sheet-price {
        font-size: 19px !important;
        font-weight: 900 !important;
        color: #111 !important;
        margin: 0 0 12px !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        flex: 0 0 auto !important;
    }

    .wideoshop-mobile-sheet-desc {
        font-size: 15px !important;
        line-height: 1.6 !important;
        color: #555 !important;
        margin: 0 !important;
        padding-right: 6px !important;
        padding-bottom: 16px !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        max-height: 170px !important;
    }

    .wideoshop-mobile-sheet-actions {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 80 !important;
        flex: 0 0 auto !important;
        background: #ffffff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.10) !important;
        padding: 14px 0 18px !important;
        margin: 0 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .wideoshop-mobile-view-details,
    .wideoshop-mobile-add-cart {
        flex: 1 !important;
        min-height: 50px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        padding: 0 16px !important;
    }
}
/* =========================================================
   WideoShop Step 2 Safe: Premium Controls CSS Only
   - No JS changes
   - No loop/peek changes
   - Safe for existing lightbox click behavior
========================================================= */

.wideoshop-arrow {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    color: #111111 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16) !important;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
}

.wideoshop-arrow:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
}

.wideoshop-arrow:active {
    transform: translateY(-50%) scale(0.96) !important;
}

.wideoshop-arrow::before {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
    display: block !important;
}

.wideoshop-arrow-prev::before {
    transform: rotate(-135deg) translate(-1px, -1px) !important;
}

.wideoshop-arrow-next::before {
    transform: rotate(45deg) translate(-1px, 1px) !important;
}

.wideoshop-arrow-prev {
    left: 12px !important;
}

.wideoshop-arrow-next {
    right: 12px !important;
}

.wideoshop-play-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    color: transparent !important;
    font-size: 0 !important;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
}

.wideoshop-card:hover .wideoshop-play-icon {
    transform: translate(-50%, -50%) scale(1.04) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24) !important;
}

.wideoshop-play-icon::before {
    content: "" !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 9px solid transparent !important;
    border-bottom: 9px solid transparent !important;
    border-left: 14px solid #111111 !important;
    margin-left: 4px !important;
}

.wideoshop-dot {
    opacity: 0.58 !important;
    transition: width 0.2s ease, opacity 0.2s ease, background 0.2s ease !important;
}

.wideoshop-dot.is-active {
    width: 18px !important;
    opacity: 1 !important;
    background: #111111 !important;
}

@media (max-width: 767px) {
    .wideoshop-arrow {
        width: 40px !important;
        height: 40px !important;
    }

    .wideoshop-arrow-prev {
        left: 10px !important;
    }

    .wideoshop-arrow-next {
        right: 10px !important;
    }

    .wideoshop-play-icon {
        width: 54px !important;
        height: 54px !important;
    }
}


/* =========================================================
   WideoShop Step 3: Safe Peek Preview (CSS only, no JS)
========================================================= */
.wideoshop-wrapper {
    --ws-active-peek: var(--ws-desktop-peek, 0px);
}

.wideoshop-carousel-shell {
    max-width: calc(
        (var(--ws-card-width) * var(--ws-desktop-cols)) +
        (var(--ws-card-gap) * (var(--ws-desktop-cols) - 1)) +
        (var(--ws-active-peek) * 2)
    ) !important;
}

.wideoshop-track {
    padding-left: var(--ws-active-peek) !important;
    padding-right: var(--ws-active-peek) !important;
    scroll-padding-left: var(--ws-active-peek) !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .wideoshop-wrapper {
        --ws-active-peek: var(--ws-tablet-peek, 0px);
    }

    .wideoshop-carousel-shell {
        max-width: calc(
            (var(--ws-card-width) * var(--ws-tablet-cols)) +
            (var(--ws-card-gap) * (var(--ws-tablet-cols) - 1)) +
            (var(--ws-active-peek) * 2)
        ) !important;
    }
}

@media (max-width: 767px) {
    .wideoshop-wrapper {
        --ws-active-peek: var(--ws-mobile-peek, 34px);
    }

    .wideoshop-carousel-shell {
        max-width: 100vw !important;
    }

    .wideoshop-track {
        padding-left: var(--ws-active-peek) !important;
        padding-right: var(--ws-active-peek) !important;
        scroll-padding-left: var(--ws-active-peek) !important;
    }

    .wideoshop-card {
        max-width: calc(100vw - 32px - (var(--ws-active-peek) * 2)) !important;
        min-width: calc(100vw - 32px - (var(--ws-active-peek) * 2)) !important;
        flex-basis: calc(100vw - 32px - (var(--ws-active-peek) * 2)) !important;
    }
}


/* =========================================================
   WideoShop Mobile Swipe Smooth Safe Fix
   Loop removed — native mobile swipe only, no touch JS.
========================================================= */
.wideoshop-track {
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 767px) {
    .wideoshop-track {
        touch-action: pan-x pan-y pinch-zoom !important;
        scroll-behavior: auto !important;
        scroll-snap-type: x mandatory !important;
        cursor: default !important;
    }

    .wideoshop-track.is-dragging {
        scroll-snap-type: x mandatory !important;
    }

    .wideoshop-card {
        scroll-snap-align: start !important;
        scroll-snap-stop: normal !important;
    }
}


/* WideoShop: Video-only lightbox mode */
.wideoshop-lightbox.wideoshop-video-only .wideoshop-lightbox-content {
    grid-template-columns: 1fr !important;
    width: min(520px, 94vw) !important;
    background: #000000 !important;
}

.wideoshop-lightbox.wideoshop-video-only .wideoshop-lightbox-product,
.wideoshop-lightbox.wideoshop-video-only .wideoshop-mobile-shop-banner,
.wideoshop-lightbox.wideoshop-video-only .wideoshop-mobile-sheet {
    display: none !important;
}

.wideoshop-lightbox.wideoshop-video-only .wideoshop-lightbox-video {
    width: 100% !important;
    aspect-ratio: 9 / 16 !important;
    max-height: 88dvh !important;
}

@media (max-width: 767px) {
    .wideoshop-lightbox.wideoshop-video-only .wideoshop-lightbox-content {
        width: min(390px, calc(100vw - 28px)) !important;
        max-height: calc(100dvh - 76px) !important;
    }

    .wideoshop-lightbox.wideoshop-video-only .wideoshop-lightbox-video {
        height: min(calc((100vw - 28px) * 1.7777), calc(100dvh - 96px)) !important;
        max-height: calc(100dvh - 96px) !important;
    }
}
