.viva-grid {
    padding-top: 28px;
    display: flex;
    gap: 29px;
    align-items: flex-start;
    box-sizing: border-box;
}

.viva-gallery-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(50% - 15px);
    box-sizing: border-box;
}

.viva-info-col {
    padding-top: 15.5px;
    width: calc(50% - 15px);
    box-sizing: border-box;
}

/* --- ГАЛЕРЕЯ / СЦЕНА --- */
.viva-stage {
    position: relative;
    width: 100%;
    height: 676px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    background-color: var(--white);
    box-sizing: border-box;
    user-select: none;
    border-radius: 20px;
    overflow: hidden; /* Чтобы элементы не вылезали */
}

.viva-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Swiper внутри сцены */
.viva-swiper-main {
    width: 100%;
    height: 100%;
}

.viva-swiper-main .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}


.viva-swiper-main img, .viva-prod-img {
    object-fit: contain;
    display: block;
    transition: transform 0.1s;
}

/* --- 360 VIEW SPECIFICS (ВАШИ НОВЫЕ СТИЛИ) --- */

#custom-360-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    padding: 13%;
    box-sizing: border-box;
}

#custom-360-container:active {
    cursor: grabbing;
}

#custom-360-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
    position: relative;
    z-index: 10;
}

/* ОВАЛ (Пол) */
.viva-360-floor {
    position: absolute;
    bottom: 67px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 75%;
    height: 228px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(180.16deg, rgba(0, 0, 0, 0) 17.04%, rgba(128, 128, 128, 0.5) 58.45%, var(--white) 99.86%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 5;
    pointer-events: none;
}

/* КНОПКА-ПОЛЗУНОК */
.viva-360-control {
    position: absolute;
    bottom: 40px;
    left: 50%;
    margin-left: -28px;
    width: 56px;
    height: 56px;
    background-color: var(--gray-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    pointer-events: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}

.viva-360-control:active {
    cursor: grabbing;
    background-color: #ced3d9;
}

.viva-360-btn-arrow svg {
    width: 8px;
    height: 10px;
    fill: #333;
    pointer-events: none;
}

.viva-360-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 40;
    pointer-events: none;
    display: none;
}

/* --- НИЖНИЙ СЛАЙДЕР (THUMBS) --- */
.viva-thumbs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    position: relative;
    gap: 10px;
}

.viva-thumbs-swiper {
    width: 100%;
    overflow: hidden;
    padding: 4px 4px 4px 0 !important;
}

.viva-thumbs-swiper .swiper-wrapper {
    flex-wrap: nowrap;
}

.viva-thumbs-swiper .swiper-slide {
    width: auto;
    height: auto;
    cursor: pointer;
}

.viva-thumbs-swiper .swiper-slide-active {
    opacity: 1;
}

.viva-thumb {
    width: 100%;
    height: 234px;
    border-radius: 20px;
    background: #f2f2f2;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    position: relative;
    border: 1px solid transparent;
    box-shadow: 2px 2px 4px 0px #00000029,
    2px 2px 3px 0px #00000029,
    -2px -2px 4px 0px #FFFFFF,
    -2px -2px 4px 0px #FFFFFF;
}

.viva-thumb::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(92.1deg, #f2f2f2 1.23%, rgba(255, 255, 255, 0.32) 99.83%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all var(--transition-base);
}

/* Active/Hover Styles (Inset) */
.viva-thumb.active,
.viva-thumb:hover {
    background: #f2f2f2;
    box-shadow: 2px 2px 4px 0px #00000029 inset,
    2px 2px 3px 0px #00000029 inset,
    -2px -2px 4px 0px #FFFFFF inset,
    -2px -2px 4px 0px #FFFFFF inset;
    transition: all var(--transition-base);
}

.viva-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    mix-blend-mode: multiply;
    transition: transform var(--transition-base);
}

.viva-thumb:hover img {
    transform: scale(1.02);
}

/* Стрелки навигации миниатюр */
.viva-thumb-arrow {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    transition: var(--transition-fast);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    border: 1px solid;
    border-image-source: linear-gradient(180.16deg, rgba(0, 0, 0, 0) 17.04%, rgba(128, 128, 128, 0.5) 58.45%, var(--white) 99.86%);
}

.viva-thumb-arrow.prev {
    left: -20px;
}

.viva-thumb-arrow.next {
    right: -20px;
}

.viva-thumb-arrow:hover {
    background: #f5f5f7;
    border-color: #999;
}

/* --- ПРАВАЯ КОЛОНКА (ИНФОРМАЦИЯ) --- */
.viva-title {
    color: var(--text-main);
    /*font-family: 'Poppins';*/
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 12px;
}

.viva-brand {
    margin-bottom: 12px;
    color: var(--text-main);
    /*font-family: 'Poppins';*/
    font-weight: 500;
    font-size: 16px;
}

.viva-desc {
    color: var(--filter-price-range);
    font-weight: 300;
    font-size: 16px;
}

.viva-divider {
    height: 1px;
    background: var(--gray-400);
    margin: 18px 0;
    width: 100%;
}

/* Цены */
.viva-price-box {
    margin-bottom: 18px;
}

.viva-price-label {
    color: var(--filter-price-range);
    margin-right: 12px;
    font-weight: 600;
    font-size: 24px;
}

.viva-price-val {
    color: var(--text-main);
    font-weight: 500;
    font-size: 28px;
}

.viva-price-old {
    color: var(--gray-600);
    margin-left: 14px;
    font-weight: 600;
    font-size: 24px;
    text-decoration: line-through;
}

.viva-credit-line {
    color: var(--text-main);
    /*font-family: 'Poppins';*/
    font-weight: 500;
    font-size: 18px;
}

.display_credit_title {
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
}

/* Цвета и Опции */
.viva-sec-label {
    margin-bottom: 18px;
    display: block;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
}

.viva-sec-val-text {
    margin-left: 8px;
    font-weight: 400;
    display: none;
}

.viva-colors {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.viva-color-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-base);
    display: block;
    box-shadow: var(--shadow-main);
    position: relative;
    text-decoration: none;
}

.viva-color-item:hover, .viva-color-item.active {
    transform: scale(1.1);
    /*border: 1px solid var(--accent-red);*/
}

.viva-color-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-bottom: 10px;
    transform: translate(-50%, 8px) scale(0.95);
    background: #999999;
    color: var(--white);
    padding: 4px 16px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 2;
}

.viva-color-item::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-bottom: 4px;
    transform: translate(-50%, 8px);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #999999 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 2;
}

.viva-color-item:hover::after,
.viva-color-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.viva-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.viva-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 17px;
    background: var(--gray-350);
    color: var(--text-main);
    border-radius: 10px;
    text-decoration: none;
    border: 0.5px solid var(--gray-600);
    transition: all var(--transition-base);
    min-width: 74px;
    font-size: 14px;
}

.viva-pill:hover, .viva-pill.active {
    border: 1.5px solid var(--text-main);
}

.viva-actions-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.viva-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    gap: 8px;
    width: 135px;
    height: 44px;
}

.viva-qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gray-400);
    font-size: 20px;
    cursor: pointer;
    color: #151B33;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    transition: all var(--transition-base);
}

.viva-qty-btn:hover, .viva-qty-btn.active {
    opacity: 1;
}

.viva-qty-btn.disabled:hover {
    opacity: 0.45;
    cursor: no-drop;
}

.viva-qty-val {
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    color: var(--text-main);
    min-width: 31px;
}

.viva-compare, .viva-add-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-red-100);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    padding: 12px;
    margin-left: 20px;
    position: relative;
}

.viva-add-btn {
    margin-left: 0;
}

.viva-prod-img{
    max-width: 60%;
    width:100%;
    height:auto;
    object-fit:contain;
}
.easyzoom.easyzoom--overlay a{
    display: flex;
    align-items: center;
    justify-content: center;
}

.viva-compare:hover, .viva-add-btn:hover {
    border-color: var(--accent-red);
}

.viva-compare svg {
    stroke: var(--accent-red);
    width: 24px;
    height: 20px;
}

.viva-buy-btn {
    background: #F2F2F2;
    transition: var(--transition-base);
    color: var(--accent-red);
    height: 56px;
    padding: 0 40px;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--accent-red);
    cursor: pointer;
    flex: 1;
    max-width: 263px;
    font-weight: 500;
}

.viva-buy-btn:hover {
    background: var(--filter-price-range);
    border: none;
}

.viva-buy-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.viva-specs-cont {
    margin-top: 70px;
    max-width: 50%;
}

.viva-specs-title {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 32px;
    color: var(--filter-price-range);
}

.viva-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.description-head-title {
    font-weight: 600;
    font-size: 24px;
    padding: 32px 0 4px;
    color: var(--filter-price-range);
}

.viva-specs-row {
    border-bottom: 1px solid var(--gray-400);
}

.viva-specs-row:last-child {
    border-bottom: 0;
}

.viva-specs-row td {
    font-weight: 400;
    font-size: 16px;
    padding: 16px 0;
    color: var(--filter-price-range);
}

.viva-specs-key {
    width: 59%;
}

/* =========================================
   EASYZOOM FIXES (ДОБАВЛЕНО)
   ========================================= */

/* --- MEDIA QUERIES (Остаются внизу) --- */
@media (max-width: 1600px) {
    .viva-gallery-col {
        width: calc(58.8% - 15px);
    }

    .viva-info-col {
        width: calc(42.2% - 15px);
    }

    .viva-stage {
        margin-bottom: 20px;
    }

    .viva-thumb {
        height: 197px;
        padding: 20px;
    }

    .viva-specs-cont {
        max-width: 69%;
    }

    .viva-buy-btn {
        max-width: 254px;
        height: 48px;
    }

    .viva-price-label {
        font-size: 20px;
    }

    .viva-price-val, .viva-price-old {
        font-size: 24px;
    }
}

@media (max-width: 1279px) {
    .viva-grid {
        padding-top: 28px;
        gap: 27px;
    }

    .viva-gallery-col {
        width: calc(50.2% - 14px);
    }

    .viva-info-col {
        padding-top: 0;
        width: calc(49.8% - 14px);
    }

    .viva-stage {
        height: 431px;
        margin-bottom: 16px;
    }

    .viva-thumb {
        height: 139px;
    }

    .viva-actions-bar {
        margin-top: 0;
    }

    .viva-specs-cont {
        max-width: 100%;
    }

    .viva-360-floor {
        width: 100%;
        height: 146px;
        bottom: 42px;
        max-width: 98%;
    }

    .viva-360-control {
        width: 40px;
        height: 40px;
        margin-left: -20px;
        bottom: 25px;
    }

    #custom-360-container {
        padding: 15%;
    }

    .viva-price-label {
        font-size: 18px;
    }

    .viva-price-val, .viva-price-old {
        font-size: 18px;
    }

    .viva-actions-bar-container {
        padding: 8px 60px 16px;
        border-bottom: 1px solid var(--gray-400);
        position: fixed;
        z-index: 9;
        width: 100%;
        bottom: 84px;
        left: 0;
        background: rgba(252, 252, 252, 0.9);
        -webkit-box-shadow: 2px -2px 4px 0px rgba(0, 0, 0, 0.16);
        -moz-box-shadow: 2px -2px 4px 0px rgba(0, 0, 0, 0.16);
        box-shadow: 2px -2px 4px 0px rgba(0, 0, 0, 0.16);
        display: flex;
        flex-direction: row-reverse;

    }

    .viva-compare, .viva-add-btn {
        border: 0;
    }

    .viva-buy-btn {
        font-size: 12px;
        padding: 9px 20px;
        max-width: 286px;
        min-width: 286px;
        height: 40px;
    }

    footer .bottom-bar {
        margin-bottom: 160px;
    }

    .viva-actions-bar {
        margin: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--gray-400);
        justify-content: flex-end;
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .viva-grid {
        padding-top: 38px;
        gap: 20px;
    }

    .viva-gallery-col {
        width: calc(50% - 10px);
    }

    .viva-info-col {
        width: calc(50% - 10px);
    }

    .viva-stage {
        height: 356px;
        margin-bottom: 32px;
    }

    .viva-thumb {
        height: 116px;
        padding: 10px;
    }

    .viva-actions-bar {
        margin-top: 0;
    }

    .viva-360-floor {
        width: 95%;
        height: 120px;
        bottom: 40px;
    }

    #custom-360-container {
        padding: 12%;
    }

    .viva-360-control {
        bottom: 12px;
    }

    .viva-buy-btn {
        max-width: 163px;
        min-width: 110px;
    }

    .viva-price-label {
        font-size: 14px;
    }

    .viva-price-val, .viva-price-old {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .viva-grid {
        padding-top: 24px;
        flex-direction: column;
    }

    .viva-gallery-col, .viva-info-col {
        width: 100%;
    }

    .viva-stage {
        height: 320px;
        margin-bottom: 12px;
    }

    .viva-thumb {
        height: 131px;
    }

    .viva-actions-bar {
        margin: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--gray-400);
        justify-content: space-between;
        gap: 8px;
    }

    .viva-actions-bar.flex-all {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .viva-360-floor {
        width: 91%;
        height: 120px;
        bottom: 35px;
    }

    .viva-360-control {
        width: 30px;
        height: 30px;
        margin-left: -15px;
        bottom: 20px;
    }

    #custom-360-container {
        padding: 15%;
    }

    .viva-actions-bar-container {
        padding: 8px 16px 16px;
        bottom: 60px;
    }

    .viva-buy-btn {
        max-width: 120px;
        min-width: 70px;
        padding: 9px 10px;
    }
}

@media (max-width: 374px) {
    .viva-actions-bar {
        gap: 0;
    }

    .viva-stage {
        height: 248px;
    }

    .viva-thumb {
        height: 114px;
        padding: 6px;
    }

    .viva-qty {
        width: 119px;
        min-width: 119px;
        gap: 0;
    }

    .viva-actions-bar-container {
        padding: 8px 8px 16px;
    }

    .viva-compare {
        margin-left: 8px;
        border: 0;
    }

    .viva-add-btn {
        margin-left: 0;
        border: 0;
    }

    .viva-buy-btn {
        padding: 0 25px;
    }

    .viva-360-floor {
        width: 100%;
        height: 113px;
        bottom: 20px;
    }

    .viva-360-control {
        width: 28px;
        height: 28px;
        margin-left: -14px;
        bottom: 6px;
    }

    #custom-360-container {
        padding: 10%;
    }

    .viva-price-val {
        font-size: 18px;
    }
}