

/* --- Part: common --- */
/* Основные стили для сетки товаров */


/* Отключение жестов Safari для PWA */

html,
body {
    touch-action: manipulation;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
}


/* Разрешаем прокрутку только внутри контента */

.elite5-products-wrapper,
.elite5-grid.active,
.elite5-products-carousel {
    touch-action: pan-y;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}


/* Разрешаем выделение текста только в полях ввода */

input,
textarea,
[contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

.elite5-products-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
/* --- Part: grid --- */
/* Сетка товаров */

.elite5-products-grid {
    display: none;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-flow: dense;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
    min-height: 200px;
}

.elite5-products-grid.grid-3-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.elite5-products-grid:not(.grid-3-columns) .elite5-product-item-large {
    grid-row: span 2;
    grid-column: span 2;
}


/* Большая карточка слева (колонки 1-2) */

.elite5-products-grid:not(.grid-3-columns) .elite5-product-item-large.elite5-large-left {
    grid-column: 1 / span 2;
}


/* Большая карточка справа (колонки 3-4) */

.elite5-products-grid:not(.grid-3-columns) .elite5-product-item-large.elite5-large-right {
    grid-column: 3 / span 2;
}

.elite5-products-grid.grid-3-columns .elite5-product-item-large {
    grid-column: span 1;
    grid-row: span 1;
}

.elite5-grid {
    height: auto;
    overflow: visible;
}

.elite5-grid.active {
    height: 79vh;
    overflow: auto;
}

@media (min-height: 960px) {
    .elite5-grid.active {
        height: 87vh;
        overflow: auto;
    }
}

.elite5-products-grid.active {
    display: grid;
    max-width: 1235px !important;
    padding-right: 15px;
    padding-left: 15px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px !important;
}

.elite5-products-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.elite5-product-item {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.07));
    overflow: visible;
    cursor: pointer;
    display: flex;
    padding: 16px 30px;
    gap: 20px;
    align-items: center;
    position: relative;
    border: 0;
}

.elite5-product-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.elite5-product-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.elite5-product-favorite .elite5-favorite-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s;
}

.elite5-product-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
}

.elite5-product-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.elite5-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: white;
}

.elite5-product-title {
    margin: 0;
    width: 90%;
    font-size: 16px;
    font-weight: 400;
    color: black;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: Tenor Sans;
}

.elite5-product-content .elite5-star {
    font-size: 16px;
}

.elite5-products-grid.grid-3-columns .elite5-product-title {
    font-size: 20px;
}

.elite5-product-price {
    font-family: Tenor Sans;
    font-size: 16px;
    font-weight: 400;
    color: #FFE499;
    text-align: right;
    position: absolute;
    margin: 0;
    right: 9px;
    bottom: 10px;
}

.elite5-product-price .woocommerce-Price-amount {
    color: #FFE499;
}

.elite5-product-price del {
    opacity: 0.6;
    font-size: 20px;
}

.elite5-product-price ins {
    text-decoration: none;
}


/* Пагинация */

.elite5-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.elite5-pagination a,
.elite5-pagination span {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.elite5-pagination a:hover {
    background: #6b46c1;
    color: white;
    border-color: #6b46c1;
}

.elite5-pagination .current {
    background: #6b46c1;
    color: white;
    border-color: #6b46c1;
}

/* Стили для архива (?archive) */
.elite5-archive .elite5-product-image img,
.elite5-archive .carousel-item-image {
    filter: grayscale(100%);
}

.elite5-archive .elite5-product-item .elite5-product-price,
.elite5-archive .elite5-product-item .elite5-product-price *,
.elite5-archive .carousel-current-price,
.elite5-archive .carousel-current-price * {
    color: #000000 !important;
}
/* --- Part: carousel --- */
/* Карусель скрыта по умолчанию */

.elite5-products-carousel {
    display: none;
}

.elite5-products-carousel.active {
    display: block;
}


/* Карусель товаров */

.elite5-products-carousel {
    margin-bottom: 0;
    padding: 0 0;
    position: relative;
    overflow: hidden;
}

.product-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
    margin-top: 40px;
}

.carousel-track {
    display: block;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    padding: 0;
    width: 100%;
    height: auto;
    min-height: 700px;
    touch-action: pan-x pan-y;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.carousel-track.is-ready {
    opacity: 1;
    visibility: visible;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track.dragging {
    cursor: grabbing;
}

.carousel-track.dragging * {
    pointer-events: none;
}

.carousel-track.dragging .carousel-item,
.carousel-track.animating .carousel-item {
    transition: none !important;
}

.carousel-item {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    margin: 0;
    transition: transform 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
    opacity: 0.6;
    transform: scale(0.7);
    position: absolute;
    cursor: default;
    z-index: 1;
    top: 0;
    left: 0;
    box-sizing: border-box;
    backface-visibility: hidden;
    transform-origin: center top;
}

.carousel-item.active,
.carousel-item.prev,
.carousel-item.next {
    will-change: transform;
}

.carousel-item.carousel-item-offscreen {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none !important;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    cursor: pointer;
    margin: 0;
}

.carousel-item.prev,
.carousel-item.next {
    opacity: 0.8;
    transform: scale(0.85);
    z-index: 5;
    cursor: pointer;
}

.carousel-item.prev-2,
.carousel-item.next-2 {
    transform: scale(0.75);
}

.carousel-item.prev-3,
.carousel-item.next-3 {
    transform: scale(0.7);
}

.carousel-item.prev-4,
.carousel-item.next-4 {
    transform: scale(0.65);
}

.carousel-item.prev-5,
.carousel-item.next-5 {
    transform: scale(0.6);
}

.carousel-item.prev-6,
.carousel-item.next-6 {
    transform: scale(0.55);
}

.carousel-item-inner {
    position: relative;
    background: transparent;
    text-align: center;
}


/* Изображение товара */

.carousel-item-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: height 0.3s ease;
    overflow: visible;
}


/* Высота для активной карточки */

.carousel-item.active .carousel-item-image {
    height: 500px;
    margin-top: 0;
}


/* Высота для первых соседних карточек */

.carousel-item.prev .carousel-item-image,
.carousel-item.next .carousel-item-image {
    height: 500px;
}


/* Высота для вторых соседних карточек */

.carousel-item.prev-2 .carousel-item-image,
.carousel-item.next-2 .carousel-item-image {
    height: 500px;
}


/* Высота для третьих соседних карточек */

.carousel-item.prev-3 .carousel-item-image,
.carousel-item.next-3 .carousel-item-image {
    height: 500px;
}


/* Высота для четвертых соседних карточек */

.carousel-item.prev-4 .carousel-item-image,
.carousel-item.next-4 .carousel-item-image {
    height: 500px;
}


/* Высота для пятых соседних карточек */

.carousel-item.prev-5 .carousel-item-image,
.carousel-item.next-5 .carousel-item-image {
    height: 500px;
}


/* Высота для шестых соседних карточек */

.carousel-item.prev-6 .carousel-item-image,
.carousel-item.next-6 .carousel-item-image {
    height: 500px;
}

.carousel-item-image .elite5-single-src {
    display: contents;
}

.carousel-item-image img,
.carousel-item-image .elite5-single-src img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: none;
    transition: filter 0.3s ease;
    z-index: 2;
}

.carousel-item.prev .carousel-item-image img,
.carousel-item.next .carousel-item-image img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.carousel-item.active .carousel-item-image img {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));
}


/* Зеркальное отражение через ::after (без второго img) */

.carousel-item-image::after {
    content: '';
    position: absolute;
    bottom: -97px;
    left: 50%;
    width: 70%;
    max-width: 100%;
    height: 100px;
    transform: translateX(-50%) scaleY(-1);
    background-image: var(--carousel-reflection);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.55;
    z-index: 1;
    mask-image: linear-gradient(180deg, rgb(1 1 1 / 0%), rgb(255 255 255));
    pointer-events: none;
}

.carousel-item.carousel-item-offscreen .carousel-item-image::after {
    opacity: 0;
}


/* Адаптив для iPad Pro (высота 960px и более) */

@media (min-height: 960px) {

    .elite5-products-carousel,
    .product-carousel {
        height: 87vh;
        margin-top: 0;
    }

    .carousel-item.active .carousel-item-image {
        height: 800px;
        transition: height 0.3s ease;
    }

    .carousel-item-image::after {
        bottom: -45px;
        width: 100%;
        transition: bottom 0.3s ease;
    }

    .carousel-current-info {
        top: auto;
        bottom: -100px;
        transition: bottom 0.3s ease;
    }

    .carousel-item .carousel-item-image {
        height: 800px !important;
        transition: height 0.3s ease;
    }

    .carousel-item.prev .carousel-item-image,
    .carousel-item.next .carousel-item-image {
        height: 800px;
        transition: height 0.3s ease;
    }

    .carousel-item.prev-2 .carousel-item-image,
    .carousel-item.next-2 .carousel-item-image {
        height: 800px;
        transition: height 0.3s ease;
    }

    .carousel-item.prev-3 .carousel-item-image,
    .carousel-item.next-3 .carousel-item-image {
        height: 800px;
        transition: height 0.3s ease;
    }

    .carousel-item.prev-4 .carousel-item-image,
    .carousel-item.next-4 .carousel-item-image {
        height: 800px;
        transition: height 0.3s ease;
    }

    .carousel-item.prev-6 .carousel-item-image,
    .carousel-item.next-6 .carousel-item-image {
        height: 800px;
        transition: height 0.3s ease;
    }

    .carousel-item.prev-6 .carousel-item-image,
    .carousel-item.next-6 .carousel-item-image {
        height: 800px;
        transition: height 0.3s ease;
    }

    .carousel-current-info {
        top: 80px !important;
        transition: top 0.3s ease, bottom 0.3s ease;
    }

    .elite5-popup-specs {
        gap: 16px;
    }
}


/* Информация о товаре - показываем только под каруселью */

.carousel-item-info {
    display: none !important;
}


/* Информация о текущем товаре под каруселью */

.carousel-current-info {
    padding: 0;
    text-align: center;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 0;
    position: relative;
    top: -130px;
    z-index: 50;
    isolation: isolate;
}

.carousel-current-info:empty {
    display: none;
}

.carousel-current-title {
    margin: 0;
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: white;
    line-height: 1.3;
    z-index: 100;
}

.carousel-current-price {
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #FFE499;
    margin: 0;
    white-space: nowrap;
    position: relative;
    z-index: 51;
}

.carousel-current-price .woocommerce-Price-amount {
    color: #FFE499;
}


/* Сообщение когда товары не найдены в карусели */

.elite5-products-carousel .carousel-no-products {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    font-family: 'Tenor Sans', sans-serif;
}


/* Сообщение когда результаты поиска не найдены в сетке */

.elite5-products-grid .elite5-search-no-results {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    font-family: 'Tenor Sans', sans-serif;
}


/* Кнопки навигации - скрыты */

.carousel-prev,
.carousel-next {
    display: none;
}



/* --- Part: modal --- */
/* Блокировка скролла при открытом модальном окне */

body.modal-open {
    overflow: hidden;
}


/* Модальное окно */

.elite5-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.elite5-modal-product {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.elite5-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.elite5-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.elite5-modal-content {
    position: relative;
    background: white;
    border-radius: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    z-index: 10001;
    box-shadow: none;
}

.elite5-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: background 0.3s;
}

.elite5-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}


/* Скрываем старую кнопку закрытия, так как теперь она в правой части */

.elite5-modal-content>.elite5-modal-close {
    display: none;
}

.elite5-modal-body {
    padding: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.elite5-modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #3c335c;
    color: #ffffff;
    font-size: 24px;
    text-align: center;
    z-index: 10;
}

.elite5-modal-loading .error {
    color: #ffffff;
    font-weight: 600;
}


/* Поп-ап товара */



/* --- Part: product-popup --- */
.elite5-popup-product {
    display: grid;
    grid-template-columns: 65% 35%;
    height: 100%;
    width: 100%;
    background-color: white;
    overflow: hidden;
}


/* Левая секция (белая, 2/3) */

.elite5-popup-left {
    background-color: #3c335c;
    background-image: url(../images/white.jpg);
    background-repeat: repeat;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.elite5-popup-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 25px;
    padding-left: 60px;
}

.elite5-popup-logo img {
    height: 54px;
    width: auto;
}

.elite5-popup-columns {
    display: grid;
    grid-template-columns: 40% 60%;
    flex: 1;
    min-height: 0;
}

.elite5-popup-left-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    min-height: 0;
}

.elite5-popup-country-map {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.elite5-popup-country-map:hover {
    opacity: 0.8;
}

.elite5-popup-country-map img {
    width: 100%;
    height: auto !important;
    max-width: 300px !important;
    object-fit: contain;
    pointer-events: none;
}

.elite5-popup-country-name {
    color: #3c335c;
    text-align: center;
    font-size: 28px;
    font-family: 'Playfair Display SC', serif;
}

.elite5-popup-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.elite5-gallery-item {
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid #ccc;
    border-radius: 0;
}

.elite5-gallery-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.elite5-popup-right-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    min-height: 0;
}

.elite5-popup-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.elite5-popup-main-image img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


/* Правая секция (фон #3c335c, 1/3) */

.elite5-popup-right {
    background: #3c335c;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
    color: white;
    overflow-y: auto;
    position: relative;
    padding-left: 100px;
}

.elite5-popup-right-stripe {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background: white;
    border-radius: 0 50px 50px 0;
    z-index: 1;
}

.elite5-popup-right.vine {
    background-image: url(/wp-content/uploads/2025/12/vine-fon.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.elite5-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.elite5-popup-favorite {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.elite5-popup-favorite .elite5-popup-favorite-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s;
}

.elite5-popup-close {
    background: transparent;
    border: none;
    font-size: 0;
    line-height: 1;
    width: 24px;
    height: 33px;
    display: flex;
    background-image: url(../images/xw.svg);
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 0;
}

.elite5-popup-title {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    color: white;
    line-height: 1.3;
    font-family: 'Playfair Display SC';
    margin-top: 20px;
}

.elite5-popup-title.vine {
    font-size: 36px;
    font-family: Great Vibes;
}

.elite5-popup-attr9 {
    font-size: 18px;
    color: #FFFFFFBF;
    margin-top: 5px;
    font-weight: 400;
    text-transform: lowercase;
    font-family: 'Tenor Sans';
}

.elite5-popup-specs {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elite5-review-link {
    margin-top: 40px;
    width: 100%;
}

.elite5-review-link a {
    font-family: "Tenor Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: auto;
    vertical-align: middle;
}

.elite5-review-link a:hover {
    color: white;
}

#elite5-product-modal>div.elite5-modal-content>div>div.elite5-modal-product>div>div.elite5-popup-right>div.elite5-popup-specs>div:nth-child(1)>span.elite5-spec-value,
#elite5-product-modal>div.elite5-modal-content>div>div.elite5-modal-product>div>div.elite5-popup-right>div.elite5-popup-specs>div:nth-child(2)>span.elite5-spec-value {
    min-width: 105px;
    border-radius: 20px;
    background-color: #363636;
    text-align: center;
    padding: 2px;
    padding-left: 5px;
    padding-right: 5px;
}


/* Стили для кликабельных атрибутов */

.elite5-filterable-attr {
    transition: opacity 0.3s ease;
}

.elite5-filterable-attr:hover {
    opacity: 0.8;
}

.elite5-cars-specs-left,
.elite5-cars-specs-right {
    gap: 18px;
    display: flex;
    flex-direction: column;
}

.elite5-spec-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 18px;
    color: white;
    font-family: 'Tenor Sans';
}

.elite5-spec-label {
    color: white;
    font-weight: 400;
    font-size: 18px;
    width: 140px;
}

.elite5-spec-value {
    color: white;
    font-weight: 400;
    text-align: right;
}

.elite5-rating {
    display: flex;
    gap: 4px;
}

.elite5-star {
    color: rgba(255, 255, 255, 0.3);
    font-size: 32px;
}

.elite5-star.filled {
    color: #CDA25A;
}


/* Описание товара */
.elite5-popup-description-box {
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
}

.elite5-popup-description-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 5px;
    font-family: 'Tenor Sans', sans-serif !important;
}

.elite5-popup-description-more {
    display: inline-block;
    color: #dcb36b;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    font-family: 'Tenor Sans', sans-serif;
}

.elite5-popup-description-more:hover {
    color: #dcb36b;
}

/* Модальное окно описания */
.elite5-desc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.elite5-desc-modal-content {
    background: #EDECF2 !important;
    padding: 30px !important;
    border-radius: 12px !important;
    max-width: 720px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    color: #333333 !important;
    font-family: 'Tenor Sans', sans-serif !important;
}

.elite5-desc-modal-content .elite5-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none !important;
    font-size: 0 !important;
    color: #333333 !important;
    cursor: pointer;
    transition: opacity 0.3s;
    line-height: 0.7;
    width: 20px;
    height: 20px;
    font-family: Arial, sans-serif !important;
    background-image: url(../images/x.svg);

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.elite5-desc-modal-content .elite5-popup-close:hover {
    opacity: 0.7;
}

.elite5-desc-modal-title {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-family: 'Tenor Sans', sans-serif !important;
    color: #333333 !important;
    font-size: 20px !important;
    text-align: left !important;
}

.elite5-desc-modal-text {
    line-height: 1.6 !important;
    font-size: 18px !important;
    white-space: pre-wrap !important;
    color: #333333 !important;
    font-family: 'Tenor Sans', sans-serif !important;
    text-align: left !important;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* Стили для параметров сортировки в плитке */
.elite5-product-sorting-info {
    margin: 5px 0;
    min-height: 20px;
}

.elite5-product-sorting-value {
    font-size: 13px;
    color: #dcb36b;
    font-weight: 500;
    margin-bottom: 10px;
}

.elite5-sorting-label {
    color: black;
    font-weight: normal;
    margin-right: 3px;
}

.elite5-star.empty {
    color: #444;
}

.elite5-product-volume {
    font-size: 14px;
    color: #dcb36b;
    margin-top: 5px;
    font-weight: 500;
}

/* --- Стили для поп-апа автомобилей (Car Popup Custom Layout) --- */

#elite5-product-modal.elite5-cars-modal .elite5-modal-content {
    background-color: #3c335c;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
}

.elite5-popup-product-cars {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    width: 100%;
    background-color: #3c335c;
    overflow: visible;
    justify-content: space-between;
}

/* Верхняя часть (белая) */
.elite5-popup-cars-top {
    background-color: white;
    border-radius: 0 0 40px 40px;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    height: 100%;
    justify-content: space-between;
}

.elite5-popup-cars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.elite5-popup-product-cars .elite5-popup-logo {
    padding: 0;
}

.elite5-popup-product-cars .elite5-popup-logo img {
    height: 54px;
    width: auto;
}

.elite5-popup-product-cars .elite5-popup-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.elite5-popup-product-cars .elite5-popup-favorite,
.elite5-popup-product-cars .elite5-popup-share,
.elite5-popup-product-cars .elite5-360-fullscreen-btn {
    background: #3c335c !important;
    border-radius: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s;
    border: none !important;
}

.elite5-popup-product-cars .elite5-360-fullscreen-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
}

.elite5-popup-product-cars .elite5-popup-favorite img,
.elite5-popup-product-cars .elite5-popup-share img,
.elite5-popup-product-cars .elite5-360-fullscreen-btn svg {
    width: 24px !important;
    height: 24px !important;
    filter: brightness(0) invert(1) !important;
}

.elite5-popup-product-cars .elite5-360-fullscreen-btn svg {
    color: white !important;
    filter: none !important;
}

.elite5-popup-product-cars .elite5-popup-favorite:hover,
.elite5-popup-product-cars .elite5-popup-share:hover,
.elite5-popup-product-cars .elite5-360-fullscreen-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.elite5-popup-product-cars .elite5-popup-close {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    background-image: url(/wp-content/uploads/2026/05/x-1.svg) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none !important;
}

.elite5-popup-product-cars .elite5-popup-close:hover {
    opacity: 0.8;
    transform: none;
}

.elite5-popup-cars-media-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-top: 10px;
    height: 45vh;
}

.elite5-popup-product-cars .elite5-popup-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.elite5-popup-product-cars .elite5-popup-main-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.elite5-popup-product-cars .elite5-360-icon {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: block !important;
}

/* Нижняя часть (фиолетовая) */
.elite5-popup-cars-bottom {
    background-color: #3c335c;
    padding: 28px;
    box-sizing: border-box;
}

.elite5-popup-cars-bottom-columns {
    display: grid;
    grid-template-columns: 50% 30% 20%;
    gap: 20px;
    align-items: start;
}

.elite5-popup-cars-col {
    display: flex;
    flex-direction: column;
}

/* Название авто */
.elite5-popup-product-cars .elite5-popup-title {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 400;
    color: white;
    line-height: 1.3;
    font-family: 'Playfair Display SC', serif;
    text-transform: none;
}

/* Характеристики в две колонки */
.elite5-cars-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

/* Комментарии */
.elite5-popup-cars-col-comments {
    padding-top: 55px;
}

/* Галерея */
.elite5-popup-cars-col-gallery {
    padding-top: 55px;
}

.elite5-popup-cars-col-gallery .elite5-popup-gallery {
    display: grid;
    grid-template-columns: repeat(2, 100px);
    gap: 12px;
    width: auto;
    max-width: 100%;
    margin: 0;
}

.elite5-popup-cars-col-gallery .elite5-gallery-item {
    width: 100px;
    height: 100px;
    min-width: 100px;
    max-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.elite5-popup-cars-col-gallery .elite5-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Фон для кликабельных характеристик (Бренд, Страна) в поп-апе авто */
.elite5-cars-modal .elite5-filterable-attr {
    min-width: 105px;
    border-radius: 20px;
    background-color: #363636;
    text-align: center;
    padding: 2px 10px;
    display: inline-block;
}

/* Высота поля комментария в поп-апе авто */
.elite5-cars-modal .elite5-comment-field {
    height: 150px;
}
/* --- Part: filters --- */
/* Кнопка фильтров */

.elite5-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.elite5-filters-btn span {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: white;
}

.elite5-filters-btn img {
    filter: brightness(0) invert(1);
    width: 16px;
    padding-top: 5px;
}


/* Модальное окно фильтров */

.elite5-filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.elite5-filters-modal.active {
    display: flex;
}

.elite5-filters-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.elite5-filters-modal-content {
    position: relative;
    background: #EDECF2;
    border-radius: 16px;
    max-width: 1000px;
    width: 95%;
    min-height: 500px;
    padding: 14px 40px 34px 40px;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.elite5-filters-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 30px;
    border: none;
    background: url('../images/x.svg') no-repeat center;
    background-size: contain;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
    font-size: 0;
}

.elite5-filters-modal-close:hover {
    opacity: 0.7;
}

.elite5-filters-modal-title {
    margin: 0 0 30px 0;
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -0.43px;
    text-align: center;
    color: #333;
}


/* Форма фильтров */

.elite5-filters-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.elite5-filters-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.elite5-filter-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.elite5-filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elite5-filter-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -0.43px;
    color: #333;
    padding-left: 38px;
}

.elite5-filter-group:has(.elite5-slider-container) .elite5-filter-title {
    padding-left: 0;
}

.elite5-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.elite5-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    position: relative;
}

.elite5-filter-checkbox input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 26px !important;
    height: 26px !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 2.5px solid #000000 !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.elite5-filter-checkbox input[type="checkbox"]:checked {
    background-color: #635883 !important;
    background-image: none !important;
}

.elite5-filter-checkbox span {
    flex: 1;
    color: #333;
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 35px;
    letter-spacing: -0.43px;
}

.elite5-wishlist-filter-checkbox {
    background: none;
    border-radius: 8px;
    padding: 0;
}

input[type="checkbox"]+span::before,
input[type="checkbox"]+label::before {
    outline: 0 !important;
    border: 2px solid #000;
}

input[type="checkbox"]:checked+span::after,
input[type="checkbox"]:checked+label::after {
    left: 0 !important;
    top: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #000 !important;
    border-radius: 5px !important;
    background: #635883;
    transition: all 0.2s ease;
    box-sizing: border-box;
    transform: none !important;
}


/* Кнопка "Показать ещё" */

.elite5-show-more {
    background: none;
    border: none;
    color: black !important;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 10px;
    text-align: left;
    transition: color 0.3s;
    font-family: 'Tenor Sans', sans-serif;
}

.elite5-show-more:hover {
    color: #553c9a;
}

.elite5-show-more.expanded::after {
    content: ' ▲';
}


/* Модальный select для фильтров */

.elite5-filter-select-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elite5-filter-select-modal.active {
    display: flex;
    opacity: 1;
}

.elite5-filter-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.elite5-filter-select-content {
    position: relative;
    background: #EDECF2;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    z-index: 10002;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.elite5-filter-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.elite5-filter-select-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -0.43px;
    color: #333;
}

.elite5-filter-select-close {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #333 !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    border-radius: 50%;
}

.elite5-filter-select-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.elite5-filter-select-body {
    padding: 20px 30px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.elite5-filter-select-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    position: relative;
}

.elite5-filter-select-checkbox:hover {
    background: rgba(107, 70, 193, 0.05);
}

.elite5-filter-select-checkbox input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 26px !important;
    height: 26px !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 2.5px solid #000000 !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.elite5-filter-select-checkbox input[type="checkbox"]:checked {
    background-color: #635883 !important;
    background-image: none !important;
}

.elite5-filter-select-checkbox span {
    flex: 1;
    color: #333;
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.3px;
}

body.elite5-filter-select-open {
    overflow: hidden;
}


/* Диапазон (от-до) */

.elite5-filter-range-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 250px;
}

.elite5-range-input-group {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex: 1;
    align-items: flex-end;
}

.elite5-range-input-group label {
    font-size: 20px;
    color: black;
    font-weight: 400;
    font-family: Tenor Sans;
}

.elite5-range-input {
    padding: 3px;
    border-radius: 10px;
    font-size: 24px;
    color: #333;
    transition: border-color 0.3s;
    text-align: center;
    font-weight: 400;
    width: 87px;
    border: 0;
    font-family: Tenor Sans;
}

.elite5-range-input:focus {
    outline: none;
    border-color: #6b46c1;
}


/* Ползунки */

.elite5-slider-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    padding: 0;
    top: -10px;
}

.elite5-slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #D9D9D9;
    border-radius: 2px;
    margin-top: 15px;
}

.elite5-slider-progress {
    position: absolute;
    height: 100%;
    background: #9B93B4;
    border-radius: 2px;
    left: 0;
    right: 0;
}

.elite5-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    outline: none;
    position: absolute;
    top: 15px;
    left: 0;
    pointer-events: none;
    margin: 0;
}

.elite5-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #9B93B4;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: opacity 0.3s;
}

.elite5-range-slider::-webkit-slider-thumb:hover {
    opacity: 0.8;
}

.elite5-range-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #9B93B4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: opacity 0.3s;
}

.elite5-range-slider::-moz-range-thumb:hover {
    opacity: 0.8;
}

.elite5-range-slider-min {
    z-index: 3;
}

.elite5-range-slider-max {
    z-index: 4;
}

.elite5-slider-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 35px;
    letter-spacing: -0.43px;
    text-align: center;
    color: #333;
    position: relative;
    margin-top: 20px;
}


/* Кнопки действий */

.elite5-filters-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.elite5-filters-reset-btn,
.elite5-filters-apply-btn {
    padding: 12px 30px;
    border: 2px solid #9B93B4;
    border-radius: 5px;
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -0.43px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
    color: #261953;
}

.elite5-filters-reset-btn {
    background-color: #ffffff00 !important;
    color: #261953 !important;
    border: 0;
}

.elite5-filters-reset-btn:hover {
    opacity: 0.8;
}

.elite5-filters-apply-btn {
    background-color: #ffffff00 !important;
    color: #261953 !important;
}

.elite5-filters-apply-btn:hover {
    opacity: 0.8;
}


/* Адаптивность для фильтров - только для мобильных */

@media (max-width: 600px) {
    .elite5-filters-modal-content {
        max-width: 95%;
        max-height: 90vh;
        padding: 30px 20px;
    }

    .elite5-filters-columns {
        grid-template-columns: 1fr;
        max-height: calc(90vh - 200px);
    }

    .elite5-filters-actions {
        flex-direction: column;
    }

    .elite5-filters-reset-btn,
    .elite5-filters-apply-btn {
        width: 100%;
    }
}



/* --- Part: search --- */
/* Поиск товаров */

.elite5-search-wrapper {
    width: 100%;
    margin-bottom: 0;
}

.elite5-search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.elite5-search-input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #D2C9EF59;
    border-radius: 9px;
    background: transparent;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 14px;
    color: #D2C9EF59;
    outline: none;
    transition: all 0.3s;
}

.elite5-search-input::placeholder {
    color: rgba(155, 147, 180, 0.6);
}

.elite5-search-input:focus {
    border-color: rgba(155, 147, 180, 0.8);
    color: rgba(155, 147, 180, 1);
}

.elite5-search-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.elite5-search-btn svg {
    stroke: rgba(155, 147, 180, 0.8);
    transition: stroke 0.3s;
}

.elite5-search-btn:hover svg {
    stroke: rgba(155, 147, 180, 1);
}



/* --- Part: sorting --- */
/* Сортировка */

.elite5-sort-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    color: white;
    position: relative;
    max-width: 1215px;
    margin-left: auto;
    margin-right: auto;
}

.elite5-wishlist-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}


.elite5-wishlist-toggle .elite5-wishlist-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s;
}

.elite5-wishlist-count {
    position: absolute;
    top: 2px;
    right: -3px;
    background: none;
    color: white;
    font-size: 11px;
    font-weight: 400;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.elite5-sort-label {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    cursor: pointer;
}

.elite5-sort-toggle {
    width: 29px;
    height: 29px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    left: -10px;
}

.elite5-sort-toggle img {
    filter: brightness(0) invert(1);
    width: 16px;
    padding-top: 3px;
}


/* Поп-ап сортировки */

.elite5-sort-popup {
    position: absolute;
    top: 60px;
    right: 90px;
    background: #EDECF2;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 250px;
}

.elite5-sort-popup-title {
    margin: 0 0 20px 0;
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #333;
}

.elite5-sort-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elite5-sort-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.elite5-sort-option:hover {
    background: rgba(107, 70, 193, 0.05);
}

.elite5-sort-option input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 26px !important;
    height: 26px !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 2.5px solid #000000 !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.elite5-sort-option input[type="radio"]:checked {
    background-color: #635883 !important;
}

.elite5-sort-option span {
    flex: 1;
    color: #333;
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
}
/* --- Part: view-toggle --- */
/* Кнопки переключения вида */

.elite5-view-toggle {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.elite5-view-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.elite5-view-btn svg {
    stroke: currentColor;
}

.elite5-view-btn img {
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}


/* Неактивная иконка - прозрачность 60% */

.elite5-view-btn:not(.active) img {
    opacity: 0.6;
}


/* Активная иконка - полная непрозрачность */

.elite5-view-btn.active img {
    opacity: 1;
}
/* --- Part: 360-viewer --- */
/* 360 просмотр */

.elite5-360-viewer {
    position: relative;
    margin-bottom: 80px;
}

.elite5-360-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    position: relative;
    touch-action: none;
    -webkit-user-select: none;
    overscroll-behavior: none;
}

.elite5-360-container.dragging {
    cursor: grabbing;
}

.elite5-360-container img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.1s;
    pointer-events: none;
}

.elite5-360-container.dragging img {
    transition: none;
}

.elite5-360-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.92);
    z-index: 10;
    pointer-events: auto;
    user-select: none;
}

.elite5-360-icon {
    position: absolute;
    bottom: -5px;
    font-size: 0;
    color: #333;
    display: inline-block;
    pointer-events: none;
    user-select: none;
    width: 55px;
    height: 55px;
    background-image: url(../images/360.svg);
}

.elite5-360-fullscreen-btn {
    position: absolute;
    top: 60px;
    right: 60px;
    width: 44px;
    height: 44px;
    background-color: #261953 !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.elite5-cars-modal .elite5-360-fullscreen-btn,
.elite5-popup-product-cars .elite5-360-fullscreen-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #3c335c !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.elite5-360-viewer.elite5-360-fullscreen .elite5-360-fullscreen-btn {
    display: none !important;
}

.elite5-360-fullscreen-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.elite5-360-viewer.elite5-360-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #3C335C;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elite5-360-viewer.elite5-360-fullscreen .elite5-360-container {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background: #3c335c;
}

.elite5-360-viewer.elite5-360-fullscreen .elite5-360-container img {
    width: auto;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

.elite5-360-viewer.elite5-360-fullscreen .elite5-360-icon {
    display: none;
}

body.elite5-360-fullscreen-active {
    overflow: hidden;
}

.elite5-360-viewer.elite5-360-fullscreen .elite5-360-close {
    position: absolute;
    top: 40px;
    right: 30px;
    z-index: 10000;
    background: transparent;
    border: none;
    font-size: 0;
    line-height: 1;
    width: 24px;
    height: 33px;
    display: flex;
    background-image: url(../images/xw.svg);
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 0;
    cursor: pointer;
}



/* --- Part: lightbox --- */
/* Лайтбокс галереи */

.elite5-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elite5-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #25212ECC;
}

.elite5-lightbox-content {
    position: relative;
    z-index: 20001;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.elite5-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 37px;
    height: 37px;
    background-color: white !important;
    color: black !important;
    border-radius: 50%;
    font-size: 32px;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 20002;
    font-weight: 300;
    border: 0;
}

.elite5-lightbox-prev,
.elite5-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 71px;
    height: 71px;
    border: none;
    background-color: white !important;
    color: black;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 20002;
}

.elite5-lightbox-prev {
    left: 0;
}

.elite5-lightbox-next {
    right: 0;
}

.elite5-lightbox-prev:hover,
.elite5-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.elite5-lightbox-prev svg,
.elite5-lightbox-next svg {
    stroke: black;
    fill: none;
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.elite5-lightbox-main {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.elite5-lightbox-main img {
    max-width: 100%;
    height: 70vh !important;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
}

.elite5-lightbox-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    max-width: 100%;
    overflow-x: auto;
}

.elite5-lightbox-thumb {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 1;
    flex-shrink: 0;
}

.elite5-lightbox-thumb:hover {
    opacity: 1;
    transform: scale(1.1);
}

.elite5-lightbox-thumb.active {
    border-color: white;
    opacity: 1;
}

.elite5-lightbox-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

body.elite5-lightbox-open {
    overflow: hidden;
}


/* Адаптивность лайтбокса */

@media (max-width: 768px) {
    .elite5-lightbox-prev {
        left: 0;
        width: 50px;
        height: 50px;
    }

    .elite5-lightbox-prev svg {
        width: 20px;
        height: 20px;
    }

    .elite5-lightbox-next {
        right: 0;
        width: 50px;
        height: 50px;
    }

    .elite5-lightbox-next svg {
        width: 20px;
        height: 20px;
    }

    .elite5-lightbox-close {
        top: 0;
        right: 0;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .elite5-lightbox-main {
        max-height: 60vh;
    }

    .elite5-lightbox-thumbnails {
        gap: 8px;
    }

    .elite5-lightbox-thumb {
        width: 60px;
        height: 60px;
    }
}
/* --- Part: comment --- */
/* Поле комментария */

.elite5-popup-comment {
    margin-top: auto;
    padding-top: 20px;
}

.elite5-comment-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.elite5-comment-field {
    flex: 1;
    height: 70px;
    padding: 7px 16px;
    border: 1px solid white;
    border-radius: 10px;
    font-weight: 400;
    background: transparent;
    color: #A9A5C9;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    font-family: 'Tenor Sans';
}

.elite5-comment-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.elite5-comment-send {
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    background: none !important;
    box-shadow: none;
    border: 0;
}

.elite5-comment-send:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.elite5-comment-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.elite5-comment-send img {
    width: 20px;
    height: 20px;
    display: block;
}



/* --- Part: preloader --- */
/* Прелоадер карусели (loader-collection-bottle) */

.elite5-carousel-preloader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    background: transparent;
    pointer-events: auto;
}

.elite5-carousel-preloader.is-active {
    display: flex;
}

.elite5-products-carousel.is-loading .carousel-track,
.elite5-products-carousel.is-loading .carousel-current-info,
.elite5-products-carousel.is-loading .carousel-no-products {
    opacity: 0 !important;
    visibility: hidden !important;
}

.elite5-products-carousel.is-loading .product-carousel {
    pointer-events: none;
}

.elite5-carousel-preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.elite5-bottle-loader {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elite5-bottle-loader--light .elite5-loader-bottle {
    border-color: #3c335c;
    background: #ffffff;
    color: #3c335c;
}

.elite5-bottle-loader--light .elite5-loader-bottle::after {
    border-color: #3c335c;
    background: #ffffff;
}

.elite5-bottle-loader--light .elite5-loader-caption {
    color: #3c335c;
}

.elite5-loader-bottle {
    width: 40px;
    height: 98px;
    display: inline-block;
    position: relative;
    border: 2px solid #FFF;
    box-sizing: border-box;
    border-radius: 20px 20px 4px 4px;
    background: #fff;
    color: #3c335c;
    animation: elite5FillBottle 2s linear infinite alternate;
}

.elite5-loader-bottle::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -95%);
    border: 2px solid #FFF;
    border-bottom: none;
    background: #fff;
    width: 15px;
    height: 35px;
    animation: elite5FillBottleNeck 2s linear infinite alternate;
}

@keyframes elite5FillBottle {
    0% {
        box-shadow: 0 0 inset;
    }

    50%,
    100% {
        box-shadow: 0 -98px inset #3c335c;
    }
}

@keyframes elite5FillBottleNeck {

    0%,
    50% {
        box-shadow: 0 0 inset;
    }

    100% {
        box-shadow: 0 -20px inset #3c335c;
    }
}

.elite5-loader-caption {
    font-size: 24px;
    color: white;
    font-family: 'Tenor Sans', sans-serif;
    letter-spacing: 0.5px;
}


/* --- Part: no-results --- */
.elite5-products-wrapper {
    position: relative;
    min-height: 400px;
}

.elite5-no-results-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.elite5-no-results-plaque {
    padding: 40px 50px;
    color: #ffffff;
    text-align: center;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 22px;
    line-height: 1.4;
    width: 100%;
    max-width: 400px;
    pointer-events: auto;
    animation: elite5FadeIn 0.5s ease-out;
}

@keyframes elite5FadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .elite5-no-results-plaque {
        padding: 30px 20px;
        font-size: 18px;
        max-width: 280px;
    }
}

/* Кнопка сброса в плашке */
.elite5-no-results-plaque .elite5-filters-reset-btn {
    display: inline-block;
    margin-top: 25px;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: auto;
}

.elite5-no-results-plaque .elite5-filters-reset-btn:hover {
    background: #f0f0f0;
}
/* --- Part: responsive --- */
/* Адаптивность */


/* Планшеты (до 1024px) - 2 карточки в ряд */

@media (max-width: 1024px) {
    .elite5-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .elite5-products-grid.grid-3-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .elite5-products-grid:not(.grid-3-columns) .elite5-product-item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .elite5-products-grid.grid-3-columns .elite5-product-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* Только для мобильных (меньше 600px) - 1 карточка в ряд */

@media (max-width: 600px) {
    .elite5-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .elite5-products-grid.grid-3-columns {
        grid-template-columns: 1fr;
    }

    .elite5-product-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .elite5-popup-product {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .elite5-popup-left,
    .elite5-popup-right {
        padding: 20px;
    }

    .elite5-popup-columns {
        grid-template-columns: 1fr;
    }

    .elite5-popup-specs {
        margin-top: 40px;
    }


    .elite5-product-item {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .elite5-product-image {
        flex: 0 0 auto;
    }

    .elite5-product-title {
        font-size: 18px;
    }

    .elite5-product-price {
        font-size: 24px;
        text-align: center;
    }

    .elite5-modal-content {
        width: 95%;
        max-width: 100%;
        height: 100vh;
        max-height: 95vh;
    }

    .elite5-modal-body {
        padding: 20px;
    }

    .elite5-sort-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }

    .elite5-view-toggle {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}



/* --- Part: carousel-cars --- */
/* Специальные стили для карусели автомобилей (Category ID 490) */

.elite5-products-carousel.elite5-carousel-cars .product-carousel {
    max-width: 100%;
}

/* Стандартные экраны (высота менее 960px) */
.elite5-products-carousel.elite5-carousel-cars .carousel-track {
    min-height: 600px;
}

/* Ширина 860px по запросу пользователя */
.elite5-products-carousel.elite5-carousel-cars .carousel-item {
    width: 860px;
    min-width: 860px;
    max-width: 860px;
    transform-origin: center center;
}

.elite5-products-carousel.elite5-carousel-cars .carousel-item-image {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elite5-products-carousel.elite5-carousel-cars .carousel-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.25));
}

.elite5-products-carousel.elite5-carousel-cars .elite5-single-src {
    position: relative;
    display: inline-flex;
}

.elite5-products-carousel.elite5-carousel-cars .carousel-item-image::after {
    display: none !important;
}

/* Отражение для стандартных экранов */
.elite5-products-carousel.elite5-carousel-cars .elite5-single-src::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -110px;
    width: 100%;
    height: 110px;
    background-image: inherit;
    background-image: var(--carousel-reflection);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: scaleY(-1);
    opacity: 0.45;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

/* Смещение информации для стандартных экранов (подтягиваем вверх под машину) */
.elite5-products-carousel.elite5-carousel-cars .carousel-current-info {
    gap: 30px;
    top: -95px !important;
}

.elite5-products-carousel.elite5-carousel-cars .carousel-current-title,
.elite5-products-carousel.elite5-carousel-cars .carousel-current-price {
    font-size: 28px;
}

/* Убираем эффект уменьшения для соседних слайдов, чтобы они не казались слишком мелкими */
.elite5-products-carousel.elite5-carousel-cars .carousel-item.prev,
.elite5-products-carousel.elite5-carousel-cars .carousel-item.next {
    opacity: 0.4;
}

/* Большие экраны (высота 960px и более) */
@media (min-height: 960px) {
    .elite5-products-carousel.elite5-carousel-cars .carousel-track {
        min-height: 750px;
    }

    .elite5-products-carousel.elite5-carousel-cars .carousel-item-image {
        height: 550px;
    }

    .elite5-products-carousel.elite5-carousel-cars .elite5-single-src::after {
        bottom: -150px;
        height: 150px;
    }

    .elite5-products-carousel.elite5-carousel-cars .carousel-current-info {
        top: -70px !important;
    }
}