.sv-watch-buy,
.sv-watch-buy *,
.sv-watch-buy *::before,
.sv-watch-buy *::after {
    box-sizing: border-box !important;
}

.sv-watch-buy :where(h1, h2, h3, h4, h5, h6, p, a, span, button, article, aside, div, section, img, video, iframe) {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-decoration: none;
    letter-spacing: normal;
    text-transform: none;
}

.sv-watch-buy {
    --sv-bg: transparent;
    --sv-card-bg: #f4f4f6;
    --sv-text-light: #1a1a20;
    --sv-primary: #e00808;
    --sv-button: #050505;
    --sv-muted: #8d8d95;
    --sv-radius: 14px;
    --sv-cards-per-row: 5;
    --sv-card-gap: 16px;
    background: var(--sv-bg);
    border-radius: 0;
    display: block;
    padding: 14px 0;
    color: var(--sv-text-light);
    overflow: hidden;
    font-family: "Sora", sans-serif;
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
    isolation: isolate;
    position: relative;
}

.sv-carousel {
    overflow: hidden;
    width: 100%;
}

.sv-track {
    display: flex;
    gap: var(--sv-card-gap);
    align-items: stretch;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.sv-video-card {
    flex: 0 0 calc((100% - ((var(--sv-cards-per-row) - 1) * var(--sv-card-gap))) / var(--sv-cards-per-row));
    border-radius: var(--sv-radius);
    border: 1px solid rgba(0, 0, 0, 0.11);
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.sv-video-card:hover,
.sv-video-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.sv-video-media {
    position: relative;
    aspect-ratio: 9 / 16;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.sv-card-player {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    display: block;
    background: #000;
}

.sv-video-media.no-preview {
    background: linear-gradient(160deg, #b9b9c0 0%, #ececf2 50%, #b9b9c0 100%);
}

.sv-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sv-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 4px 10px;
}

.sv-card-product {
    background: var(--sv-card-bg);
    color: #1b1b20;
    padding: 14px 14px 16px;
    position: relative;
    min-height: 128px;
}

.sv-card-thumb {
    position: absolute;
    top: -22px;
    left: 14px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.sv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-card-product h3 {
    margin: 14px 0 8px;
    font-size: 1.15rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sv-rating {
    display: flex;
    gap: 2px;
    margin: 0 0 8px;
}

.sv-star {
    color: #c6c6ca;
    line-height: 1;
    font-size: 1rem;
}

.sv-star.is-filled {
    color: #f5a400;
}

.sv-price {
    color: #d00909;
    font-weight: 700;
    font-size: 1.08rem;
}

.sv-price del {
    color: #9c9ca3;
    margin-left: 6px;
}

.sv-watch-buy .sv-price :where(.amount, .woocommerce-Price-amount, bdi, ins, del, span) {
    font: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.sv-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
}

.sv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 252, 0.95);
    backdrop-filter: blur(4px);
}

.sv-modal-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.sv-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #15151a;
    background: rgba(255, 255, 255, 0.98);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sv-modal-sound {
    position: absolute;
    top: 16px;
    right: 74px;
    z-index: 4;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #15151a;
    background: rgba(255, 255, 255, 0.98);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 14px;
}

.sv-modal-sound.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.sv-modal-layout {
    position: relative;
    z-index: 3;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 32%);
}

.sv-modal-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 70px;
    background: #f5f6f8;
}

.sv-modal-video-frame {
    width: min(460px, 64vh);
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.sv-player {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.sv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #101015;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
}

.sv-prev {
    left: 18px;
}

.sv-next {
    right: 18px;
}

.sv-modal-right {
    background: #f2f2f5;
    color: #1a1a1e;
    padding: 22px 14px;
    overflow-y: auto;
}

.sv-modal-right h3 {
    margin: 0 0 16px;
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
}

.sv-modal-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sv-product-card {
    background: transparent;
    position: relative;
}

.sv-product-image-wrap {
    background: #dfdde0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 0.84;
    margin-bottom: 10px;
}

.sv-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-product-card h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sv-product-card .sv-price {
    margin: 6px 0;
}

.sv-product-card p {
    margin: 0 0 10px;
    color: #3f3f47;
    font-size: 0.94rem;
    line-height: 1.45;
}

.sv-watch-buy .sv-shop-btn,
.sv-watch-buy a.sv-shop-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 44px;
    background: #050505 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 12px;
    opacity: 1 !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
}

.sv-watch-buy .sv-shop-btn:hover,
.sv-watch-buy .sv-shop-btn:focus-visible,
.sv-watch-buy a.sv-shop-btn:hover,
.sv-watch-buy a.sv-shop-btn:focus-visible {
    background: #1a1a1d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.sv-empty {
    color: #1f1f24;
    font-size: 1rem;
    padding: 16px;
}

.sv-track-empty {
    width: 100%;
    padding: 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f2f5;
    color: #1f1f24;
}

.sv-modal-products-grid .sv-empty {
    color: #2a2a2f;
    background: #fff;
    border-radius: 10px;
}

.sv-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #d8d8dc 0%, #ececef 100%);
}

html.sv-modal-open,
body.sv-modal-open {
    overflow: hidden;
    height: 100%;
}

@media (max-width: 1200px) {
    .sv-modal-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
    }
}

@media (max-width: 980px) {
    .sv-watch-buy {
        padding: 10px 0;
        --sv-cards-per-row: 3;
    }

    .sv-modal-layout {
        grid-template-columns: 1fr;
    }

    .sv-modal-left {
        padding: 70px 24px 14px;
        min-height: 56vh;
    }

    .sv-modal-video-frame {
        width: min(380px, 78vw);
    }

    .sv-nav {
        width: 42px;
        height: 42px;
    }

    .sv-modal-right {
        height: 44vh;
    }

    .sv-modal-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sv-watch-buy {
        --sv-cards-per-row: 2;
        --sv-card-gap: 10px;
    }

    .sv-modal-sound {
        right: 68px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .sv-modal-products-grid {
        grid-template-columns: 1fr;
    }

    .sv-card-product h3 {
        font-size: 1rem;
    }

    .sv-modal-right h3 {
        font-size: 1.15rem;
    }
}
