.ovpc {
    position: relative;
    width: 100vw;
    max-width: none;
    margin: 56px calc(50% - 50vw);
    padding: 54px max(24px, calc((100vw - 1110px) / 2));
    box-sizing: border-box;
    background: #F9F6F6;
}

.ovpc__title {
    max-width: 1110px;
    margin: 0 auto 24px;
    color: #111;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ovpc__slider {
    position: relative;
    max-width: 1110px;
    margin: 0 auto;
}

.ovpc__viewport {
    overflow: hidden;
}

.ovpc__track {
    display: flex;
    gap: 18px;
    scroll-behavior: smooth;
}

.ovpc__track.owl-carousel {
    display: block;
}

.ovpc-item {
    position: relative;
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.08);
}

.ovpc-item__media {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.ovpc-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.ovpc-video::-webkit-media-controls,
.ovpc-video::-webkit-media-controls-enclosure,
.ovpc-video::-webkit-media-controls-panel,
.ovpc-video::-webkit-media-controls-play-button,
.ovpc-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.ovpc-profile {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 3px;
    border-radius: 50%;
    background: #1877f2;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.ovpc .owl-carousel .owl-item .ovpc-profile__image,
.ovpc-profile__image {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    flex: 0 0 54px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.ovpc-profile__name {
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.ovpc-product-overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 4;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.ovpc-item:hover .ovpc-product-overlay,
.ovpc-item:focus-within .ovpc-product-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ovpc-product-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    color: #111;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.ovpc-product-card__image-link {
    display: block;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

.ovpc-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ovpc-product-card__content {
    min-width: 0;
}

.ovpc-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 3px;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ovpc-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.ovpc-product-card__price {
    color: #111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.ovpc-product-card__price del {
    margin-right: 4px;
    color: #777;
    font-size: 12px;
    font-weight: 500;
}

.ovpc-product-card__price ins {
    text-decoration: none;
}

.ovpc-product-card__button {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #8cb83b !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: none !important;
    transition: background .18s ease, transform .18s ease;
}

.ovpc-product-card__button:hover,
.ovpc-product-card__button:focus {
    background: #7da535 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.ovpc__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.68);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    transition: background .18s ease, transform .18s ease;
}

.ovpc__arrow:hover,
.ovpc__arrow:focus {
    background: rgba(17, 17, 17, 0.9);
    transform: translateY(-50%) scale(1.04);
}

.ovpc__arrow svg {
    width: 20px;
    height: 20px;
}

.ovpc__arrow--prev {
    left: -16px;
}

.ovpc__arrow--next {
    right: -16px;
}

.ovpc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ovpc-modal.is-open {
    display: flex;
}

.ovpc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(3px);
}

.ovpc-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(430px, calc(100vw - 48px));
}

.ovpc-modal__content {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.ovpc-modal__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.ovpc-modal__video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 210px);
    object-fit: contain;
    background: #000;
}

.ovpc-modal__product {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    padding: 0;
    background: transparent;
}

.ovpc-modal__product .ovpc-product-card {
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.ovpc-modal__product .ovpc-product-card__button {
    min-height: 56px;
    border-radius: 12px !important;
    font-size: 18px;
}

.ovpc-modal__close,
.ovpc-modal__arrow {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.ovpc-modal__close {
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
}

.ovpc-modal__arrow {
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
}

.ovpc-modal__arrow--prev {
    left: -58px;
}

.ovpc-modal__arrow--next {
    right: -58px;
}

.ovpc-modal__close svg,
.ovpc-modal__arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

body.ovpc-modal-open {
    overflow: hidden;
}

@media (hover: none) {
    .ovpc-product-overlay {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 1023px) {
    .ovpc-item {
        flex-basis: calc((100% - 32px) / 3);
    }
}

@media (max-width: 767px) {
    .ovpc {
        margin: 36px calc(50% - 50vw);
        padding: 34px 16px 40px;
    }

    .ovpc__title {
        margin-bottom: 18px;
        font-size: 21px;
    }

    .ovpc__viewport {
        overflow: visible;
    }

    .ovpc-item {
        flex-basis: 72vw;
    }

    .ovpc-product-overlay {
        right: 8px;
        bottom: 8px;
        left: 8px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .ovpc-product-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 8px;
        border-radius: 12px;
    }

    .ovpc-product-card__image-link {
        width: 42px;
        height: 42px;
    }

    .ovpc-product-card__button {
        min-height: 38px;
        padding: 9px 12px !important;
        font-size: 13px;
    }

    .ovpc-profile {
        width: 42px;
        height: 42px;
    }

    .ovpc .owl-carousel .owl-item .ovpc-profile__image,
    .ovpc-profile__image {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        flex-basis: 36px;
    }

    .ovpc__arrow--prev {
        left: 6px;
    }

    .ovpc__arrow--next {
        right: 6px;
    }

    .ovpc-modal {
        padding: 18px;
    }

    .ovpc-modal__dialog {
        width: min(420px, calc(100vw - 36px));
    }

    .ovpc-modal__video {
        max-height: calc(100vh - 120px);
    }

    .ovpc-modal__product {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .ovpc-modal__product .ovpc-product-card__button {
        min-height: 44px;
        font-size: 14px;
    }

    .ovpc-modal__arrow {
        top: auto;
        bottom: -58px;
    }

    .ovpc-modal__arrow--prev {
        left: calc(50% - 52px);
    }

    .ovpc-modal__arrow--next {
        right: calc(50% - 52px);
    }
}

@media (max-width: 480px) {
    .ovpc-item {
        flex-basis: 78vw;
    }

    .ovpc-profile__name {
        max-width: 120px;
    }

}
