.wapu-video-shop {
    --wvs-primary: #111827;
    --wvs-accent: #be185d;
    --wvs-surface: #fff;
    --wvs-card: #0f172a;
    --wvs-radius: 8px;
    width: 100%;
    color: var(--wvs-primary);
}

.wvs-head {
    max-width: 1120px;
    margin: 0 auto 18px;
    padding: 0 clamp(18px, 4vw, 42px);
}

.wvs-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--wvs-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wvs-title {
    margin: 0;
    color: var(--wvs-primary);
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.04;
}

.wvs-track {
    display: grid;
    gap: 18px;
}

.wapu-video-shop--carousel .wvs-track,
.wapu-video-shop--inline .wvs-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px clamp(18px, 4vw, 42px) 18px;
    scrollbar-width: thin;
}

.wapu-video-shop--grid .wvs-track {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 42px);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.wvs-card {
    position: relative;
    min-width: min(76vw, 270px);
    border-radius: var(--wvs-radius);
    overflow: hidden;
    background: var(--wvs-card);
    color: #fff;
    scroll-snap-align: start;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .14);
}

.wapu-video-shop--inline .wvs-card {
    min-width: min(84vw, 360px);
}

.wvs-media {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #111827;
}

.wvs-video,
.wvs-iframe,
.wvs-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wvs-iframe {
    border: 0;
}

.wvs-missing {
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

.wvs-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .04) 56%, rgba(0, 0, 0, .18));
    pointer-events: none;
}

.wvs-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.wvs-play span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
}

.wvs-play span::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 17px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
}

.wvs-card.is-playing .wvs-play span {
    opacity: 0;
}

.wvs-card.is-playing:hover .wvs-play span {
    opacity: 1;
}

.wvs-overlay {
    position: absolute;
    z-index: 4;
    left: 14px;
    right: 14px;
    bottom: 16px;
    display: grid;
    gap: 7px;
    pointer-events: none;
}

.wvs-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.wvs-card-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
}

.wvs-caption {
    margin: 0;
    max-width: 26ch;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.35;
}

.wvs-product-dots {
    position: absolute;
    z-index: 5;
    right: 12px;
    top: 50%;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
}

.wvs-product-dot {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.wvs-product-dot.is-active {
    background: #fff;
    color: var(--wvs-primary);
}

.wvs-products {
    position: absolute;
    z-index: 6;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none;
}

.wvs-product {
    display: none;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, .96);
    color: var(--wvs-primary);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
    pointer-events: auto;
}

.wvs-product.is-active {
    display: grid;
}

.wvs-product-img img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.wvs-product-body {
    min-width: 0;
}

.wvs-product-name {
    display: block;
    color: var(--wvs-primary);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.wvs-product-price {
    margin-top: 3px;
    color: rgba(17, 24, 39, .7);
    font-size: 12px;
}

.wvs-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.wvs-product-link,
.wvs-product-buy {
    border-radius: 7px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.wvs-product-link {
    background: #eef0f4;
    color: var(--wvs-primary);
}

.wvs-product-buy {
    background: var(--wvs-primary);
    color: #fff;
}

.wvs-empty {
    max-width: 720px;
    margin: 0 auto;
    border: 1px dashed rgba(17, 24, 39, .2);
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    color: rgba(17, 24, 39, .62);
    background: var(--wvs-surface);
}

@media (max-width: 700px) {
    .wapu-video-shop--grid .wvs-track {
        grid-template-columns: 1fr;
    }

    .wapu-video-shop--grid .wvs-card {
        min-width: 0;
    }

    .wvs-product {
        grid-template-columns: 48px 1fr;
    }

    .wvs-product-img img {
        width: 48px;
        height: 48px;
    }
}
