/* =============================================
   Valerice Video Carousel
   Premium dark/gold design
   ============================================= */

.vlr-vcarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0 60px;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Track ── */
.vlr-vcarousel__track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.vlr-vcarousel__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

/* ── Slide ── */
.vlr-vcarousel__slide {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    margin: 0 8px;
    transition: height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
        margin-top 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
        opacity 0.4s ease;
    height: 494px;
    margin-top: 56px;
    opacity: 0.6;
}

.vlr-vcarousel__slide.is-active {
    height: 606px;
    margin-top: 0;
    opacity: 1;
}

/* ── Video container ── */
.vlr-vcarousel__video-wrap {
    width: 100%;
    flex: 1 1 0%;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    background: #0a0a0a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.vlr-vcarousel__video-wrap video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Video controls (mute + pause) ── */
.vlr-vcarousel__ctrl {
    position: absolute !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: none !important;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s, background 0.2s;
    color: #fff !important;
    right: 10px !important;
    z-index: 50 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
    overflow: visible !important;
}

.vlr-vcarousel__ctrl:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

.vlr-vcarousel__ctrl svg {
    width: 22px !important;
    height: 22px !important;
    fill: #fff !important;
    pointer-events: none;
    display: block !important;
}

.vlr-vcarousel__ctrl--mute {
    top: 10px !important;
}

.vlr-vcarousel__ctrl--pause {
    top: 58px !important;
}

.vlr-vcarousel__slide.is-active .vlr-vcarousel__ctrl {
    display: flex !important;
}

/* ── Product card under video ── */
.vlr-vcarousel__product {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vlr-vcarousel__product-img {
    width: 52px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.vlr-vcarousel__product-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.vlr-vcarousel__product-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.vlr-vcarousel__product-title:hover {
    text-decoration: underline;
}

.vlr-vcarousel__product-price {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-top: 4px;
    white-space: nowrap;
}

.vlr-vcarousel__product-price del {
    color: #999;
    font-weight: 400;
    font-size: 11px;
}

.vlr-vcarousel__product-price ins {
    text-decoration: none;
    color: #c8a96e;
    font-weight: 700;
}

.vlr-vcarousel__product-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: #1a1a1a !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: #fff !important;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
    position: relative;
}

.vlr-vcarousel__product-btn:hover {
    background: #FF0000 !important;
    transform: scale(1.05);
}

.vlr-vcarousel__product-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    pointer-events: none;
    fill: #fff !important;
    display: block !important;
}

.vlr-vcarousel__product-btn svg path {
    fill: #fff !important;
}

.vlr-vcarousel__product-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.vlr-vcarousel__product-btn.is-added {
    background: #2e7d32;
}

/* ── Navigation arrows ── */
.vlr-vcarousel__nav {
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.vlr-vcarousel__arrow {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #eaeaea;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vlr-vcarousel__arrow:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vlr-vcarousel__arrow svg {
    width: 18px;
    height: 18px;
    stroke: #1a1a1a;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ── Dot pagination (mobile) ── */
.vlr-vcarousel__dots {
    display: none;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 0;
}

.vlr-vcarousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s;
    padding: 0;
}

.vlr-vcarousel__dot.is-active {
    background: #1a1a1a;
    width: 20px;
    border-radius: 4px;
    transform: scale(1);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .vlr-vcarousel__slide {
        flex: 0 0 260px;
        height: 440px;
        margin-top: 44px;
    }

    .vlr-vcarousel__slide.is-active {
        height: 530px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .vlr-vcarousel {
        padding: 20px 0 16px;
    }

    .vlr-vcarousel__slide {
        flex: 0 0 200px;
        height: 360px;
        margin-top: 30px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .vlr-vcarousel__slide.is-active {
        height: 420px;
        margin-top: 0;
    }

    /* Hide arrows, show dots on mobile */
    .vlr-vcarousel__nav {
        display: none !important;
    }

    .vlr-vcarousel__dots {
        display: flex;
    }

    .vlr-vcarousel__product {
        height: 68px;
        padding: 6px 8px;
        gap: 8px;
    }

    .vlr-vcarousel__product-img {
        width: 40px;
        height: 50px;
    }

    .vlr-vcarousel__product-title {
        font-size: 11px;
    }

    .vlr-vcarousel__product-price {
        font-size: 12px;
    }

    .vlr-vcarousel__ctrl {
        width: 32px;
        height: 32px;
    }

    .vlr-vcarousel__ctrl svg {
        width: 16px;
        height: 16px;
    }

    .vlr-vcarousel__ctrl--pause {
        top: 48px;
    }

    .vlr-vcarousel__video-wrap {
        border-radius: 16px;
    }
}
