/* =============================================
   Video Carousel — Videowise-style
   ============================================= */

.zt-vcarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0 60px;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Track ── */
.zt-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;
}

.zt-vcarousel__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

/* ── Slide ── */
.zt-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);
    height: 494px;
    margin-top: 56px;
}

.zt-vcarousel__slide.is-active {
    height: 606px;
    margin-top: 0;
}

/* ── Video container ── */
.zt-vcarousel__video-wrap {
    width: 100%;
    flex: 1 1 0%;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    background: #000;
}

.zt-vcarousel__video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Video controls (mute + pause) ── */
.zt-vcarousel__ctrl {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: none;
    /* hidden by default */
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s;
    color: #fff;
    right: 8px;
    z-index: 5;
    padding: 0;
}

.zt-vcarousel__ctrl svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    pointer-events: none;
}

.zt-vcarousel__ctrl--mute {
    top: 8px;
}

.zt-vcarousel__ctrl--pause {
    top: 56px;
}

.zt-vcarousel__slide.is-active .zt-vcarousel__ctrl {
    display: flex;
}

/* ── Product card under video ── */
.zt-vcarousel__product {
    width: 100%;
    height: 88px;
    margin-top: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e8e8;
    display: flex;
    align-items: center;
    padding: 9px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.zt-vcarousel__product-img {
    width: 56px;
    height: 68px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.zt-vcarousel__product-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.zt-vcarousel__product-title {
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: #000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zt-vcarousel__product-title:hover {
    text-decoration: underline;
}

.zt-vcarousel__product-price {
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    color: #000;
    margin-top: 6px;
    white-space: nowrap;
}

.zt-vcarousel__product-btn {
    width: 32px;
    height: 32px;
    background: #2e2939;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: #fff;
    transition: background 0.2s;
}

.zt-vcarousel__product-btn:hover {
    background: #1a1721;
}

.zt-vcarousel__product-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.zt-vcarousel__product-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.zt-vcarousel__product-btn.is-added {
    background: #1c7c3c;
}

/* ── Navigation arrows ── */
.zt-vcarousel__nav {
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.zt-vcarousel__arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e8e8;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
}

.zt-vcarousel__arrow:hover {
    background: #fff;
    transform: scale(1.08);
}

.zt-vcarousel__arrow svg {
    width: 20px;
    height: 20px;
    stroke: #2e2939;
    fill: none;
    stroke-width: 2;
    stroke-linecap: square;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .zt-vcarousel__slide {
        flex: 0 0 260px;
        height: 440px;
        margin-top: 44px;
    }

    .zt-vcarousel__slide.is-active {
        height: 530px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .zt-vcarousel {
        padding: 24px 0 52px;
    }

    .zt-vcarousel__slide {
        flex: 0 0 220px;
        height: 380px;
        margin-top: 36px;
        margin-left: 6px;
        margin-right: 6px;
    }

    .zt-vcarousel__slide.is-active {
        height: 450px;
        margin-top: 0;
    }

    .zt-vcarousel__product {
        height: 72px;
        padding: 6px;
        gap: 8px;
    }

    .zt-vcarousel__product-img {
        width: 44px;
        height: 54px;
    }

    .zt-vcarousel__product-title {
        font-size: 11px;
    }

    .zt-vcarousel__product-price {
        font-size: 12px;
    }

    .zt-vcarousel__ctrl {
        width: 32px;
        height: 32px;
    }

    .zt-vcarousel__ctrl svg {
        width: 18px;
        height: 18px;
    }

    .zt-vcarousel__ctrl--pause {
        top: 48px;
    }
}