/*
Theme Name: Model Configurator
Theme URI: https://yourdomain.com/
Author: Ваше Имя
Author URI: https://yourdomain.com/
Description: Конфигуратор модели с Neumorphic UI, корзиной и поддержкой 3D.
Version: 10.0
Text Domain: model-configurator
*/

body, html, #page, .site-content { overflow-y:auto !important; }

body {
  background: #e0e0e0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}

.neumorphic-block {
  background: #e0e0e0;
  border-radius: 20px;
  box-shadow:  8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  padding: 32px;
  margin-bottom: 32px;
}

.neumorphic-btn {
  border-radius: 12px;
  background: #e0e0e0;
  box-shadow:  4px 4px 8px #bebebe,
              -4px -4px 8px #ffffff;
  border: none;
  padding: 12px 32px;
  font-size: 1.1em;
  transition: box-shadow 0.2s;
}

.neumorphic-btn:active {
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

input, select, textarea {
  border-radius: 10px;
  background: #e0e0e0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  border: none;
  padding: 10px;
  margin-bottom: 16px;
}

.neumorphic-card {
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow:  4px 4px 8px #bebebe,
              -4px -4px 8px #ffffff;
  padding: 24px;
  margin-bottom: 24px;
}

.neumorphic-header {
  background: #e0e0e0;
  box-shadow: 0 4px 12px #d1d9e6;
  border-radius: 0 0 24px 24px;
  padding: 24px 0;
  margin-bottom: 32px;
}

.neumorphic-footer {
  background: #e0e0e0;
  box-shadow: 0 -4px 12px #d1d9e6;
  border-radius: 24px 24px 0 0;
  padding: 24px 0;
  margin-top: 32px;
}

.t-store__card__img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* --- Стили из test.html для меню, брендов, сайдбара, Swiper и адаптивности --- */

.dropdown-menu, .dropdown-menu__sidebar {
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.dropdown-menu {
    padding: 40px 40px 80px 40px;
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.5fr;
    column-gap: 30px;
}
.dropdown-menu__sidebar {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(calc(100% + 20px), -50%);
    width: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dropdown-menu__sidebar div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dropdown-menu__sidebar div .menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: white;
    border-radius: 50%;
    margin-bottom: 8px;
}
.dropdown-menu__sidebar div span {
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    color: white;
}
@media (hover: hover) and (pointer: fine) {
    .dropdown-menu__sidebar div .menu-item {
        transition: transform 0.3s, background-color 0.3s;
        transform: translate3d(0, 0, 0);
    }
    .dropdown-menu__sidebar div .menu-item:hover {
        transform: translate3d(0, 0, 0) scale(1.1);
        background-color: #f0f0f0;
    }
}
.dropdown-menu__sidebar div .menu-item img {width: 50%;}

.dropdown-menu__brands {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.brands__span {
    height: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: white;
}
.brands__swiper {
    flex: 1 1 auto;
    margin-top: 24px;
}
.dropdown-menu__brands .swiper-slide {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 28px;
    row-gap: 40px;
}
.dropdown-menu__brands .configurator-slide {display: grid;}
.dropdown-menu__brands .carbon-slide, .dropdown-menu__brands .wheels-slide {display: none;}
.dropdown-menu__brands .swiper-slide a:not(.not-first-slide) {display: flex;}
.dropdown-menu__brands .swiper-slide .not-first-slide {display: none;}
.dropdown-menu__brands .swiper-slide a {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
@media (hover: hover) and (pointer: fine) {
    .dropdown-menu__brands .swiper-slide a img {
        transform: translate3d(0, 0, 0) scale(0.9);
        transition: transform 0.3s;
    }
    .dropdown-menu__brands .swiper-slide a:hover img {transform: translate3d(0, 0, 0) scale(1);}
}
.dropdown-menu__brands .swiper-slide a span {
    font-size: 10px;
    margin-top: 4px;
    word-break: break-all;
    color: white;
}
.dropdown-menu__brands .swiper-slide a img {width: 100%;}
.dropdown-menu__brands .swiper-pagination{
    position: unset;
    margin-top: 40px;
    font-size: 0;
}
.dropdown-menu__brands .swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.dropdown-menu__brands .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    background: white;
}
.dropdown-menu-wrapper iframe._hidden {display: none;}

@media (max-width: 1500.9px) {
    .dropdown-menu__sidebar {display: none;}
}
@media (max-width: 991.9px) {
    /* Скрываем элементы, но оставляем dropdown-menu-wrapper видимым, иначе меню недоступно */
    .header-elements__phone, .header-elements__btn {display: none;}
}

/* Мобильные устройства в ландшафтном режиме - показываем мобильный хедер */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1200px) {
    /* Скрываем десктопные элементы хедера */
    .header-elements__phone, 
    .header-elements__btn,
    .mobile-hidden {
        display: none !important;
    }
    
    /* Скрываем десктопное меню (premium-shop-menu) */
    .premium-shop-menu-wrapper {
        display: none !important;
    }
    
    /* Скрываем старое десктопное меню (dropdown-menu-wrapper) - оно не должно открываться в ландшафтном режиме */
    #cn-header .dropdown-menu-wrapper {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Убеждаемся, что старое меню не может быть открыто */
    #cn-header .dropdown-menu-wrapper._active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Показываем логотип по центру */
    #cn-header .header-elements__logo {
        display: block !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto !important;
    }
    
    #cn-header .header-elements__logo img {
        width: 36px !important;
        height: auto !important;
    }
    
    /* Выравнивание элементов хедера */
    #cn-header .header-elements {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
    }
    
    /* Показываем кнопку fullscreen в ландшафтном режиме */
    #cn-header .header-elements__btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0 12px 0 13px !important;
        border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
        background: transparent !important;
        cursor: pointer !important;
        transform: translate3d(0, 0, 0) !important;
    }
    
    /* Стили для SVG иконок fullscreen */
    #cn-header .header-elements__btn svg:last-child {
        display: none !important;
    }
    
    #cn-header .header-elements__btn.full-screen svg:first-child {
        display: none !important;
    }
    
    #cn-header .header-elements__btn.full-screen svg:last-child {
        display: block !important;
    }
    
    
    .mob-contacts__dividing-line {
        height: 1px !important;
        margin: 16px 0 10px 0 !important;
        background-color: rgba(0, 0, 0, 0.2) !important;
    }
    .mob-contacts__mob-additional-contacts {
        display: grid;
        grid-auto-flow: column;
        column-gap: 10px;
        justify-content: start;
        transform: translateX(-7px);
    }
    .mob-contacts__mob-additional-contacts svg {display: block;}
    .mob-contacts__phone, .mob-contacts__mail {
        display: flex;
        align-items: center;
        width: fit-content;
    }
    .mob-contacts__phone.phone-ru {margin: 10px 0;}
    .mob-contacts__phone img, .mob-contacts__mail img {width: 24px;}
    .mob-contacts__phone span, .mob-contacts__mail span {
        line-height: 1;
        margin-left: 10px;
        color: black;
    }
}
@media (max-width: 1880.9px) and (min-width: 321px) {
    .shop__cross {transform: translate3d(calc(15px + (20 - 15) * ((100vw - 321px) / (1880 - 321))), 0, 0);}
    .header-elements {padding: 0 calc(15px + (40 - 15) * ((100vw - 321px) / (1880 - 321)));}
    .header-elements__projects {
        padding: 0 calc(15px + (20 - 15) * ((100vw - 321px) / (1880 - 321)));
        margin-left: calc(17px + (22 - 17) * ((100vw - 321px) / (1880 - 321)));
    }
    .header-elements__logo img {width: calc(36px + (40 - 36) * ((100vw - 321px) / (1880 - 321)));}
    .tn-elem__8150181611722969355825 {margin-left: calc(30px + (60 - 30) * ((100vw - 321px) / (1880 - 321)));}
}
@media (max-width: 600.9px) {
    .header-elements__logo {
        opacity: 0;
        visibility: hidden;
    }
    .header-elements__logo._active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.25s, visibility 0.25s;
    }
    .title__points, .title__text, .header-elements__projects,
    .header-elements__wa, .header-elements__tg, .header-elements__lang {display: none;}
    .shop__title svg {display: block;}
    .shop__cross {transform: translate3d(0, 0, 0);}
    .header-elements__btn {
        padding: 0;
        border-right: unset;
    }
    /* Закомментировано - эти классы не используются в текущей структуре HTML
    .mob-contacts__projects {
        display: block;
        width: fit-content;
        line-height: 1;
        margin-bottom: 25px;
        color: black !important;
    }
    .mob-contacts__mob-additional-contacts {grid-template-columns: auto 1fr;}
    .mob-additional-contacts__telegram {width: fit-content;}
    .mob-additional-contacts__lang {
        display: flex;
        align-items: center;
        font-weight: 700;
        text-transform: uppercase;
        color: black !important;
    } */
}
@media (max-width: 480.9px) {
}
@media (max-width: 320.9px) {
    .header-elements {padding: 0 15px;}
    .header-elements__logo img {width: 36px;}
    .tn-elem__8150181611722969355825 {margin-left: 30px;}
}

/* --- Конец стилей из test.html --- */

@media(max-width: 640px){
    #rec983400371{
        bottom: 65px;
    }
}

/* Appended from orig/block_*.txt files */

/* --- FROM orig/block1.txt --- */
@keyframes tPopupSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.t-width_10 {max-width: none;}
.t-width_10 {background: unset;}
.t-popup__container.t-width.t-width_10.t-popup__container-animated {
    animation: tPopupSlideUp 0.7s ease-out;
}
input[type="checkbox"] {
    display: none;
}
.t706__bubble {
    display: none;
}
.inactive img {
    filter: grayscale(100%) brightness(2) opacity(0.5);
    transition: filter 0.3s ease;
}
.active img {
    filter: none;
    transition: filter 0.3s ease;
}
#rec983400361{
    position: fixed;
    left: 0;
    bottom: 0px;
    right: 0;
    top: 0;
    z-index: 1;
}
#rec983400366{
    position: absolute;
    max-width: 100vw;
    bottom: 120px;
    left: 0;
    right: 0;
    z-index: 100
}
#rec983400371{
    position: fixed;
    max-width: 100vw;
    bottom: 0px;
    left: 0;
    right: 0;
    z-index: 100;
}
#top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 26px;
    color: #b89f88;
    font-family: "Helvetica", sans-serif;
    text-transform: uppercase;
    height: auto;
    letter-spacing: 2px;
    background-color: rgba(255, 255, 255, 0.0);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    overflow: hidden;
}
.menu-logo img {
    width: 40px;
}
.menu-icons {
    margin-top: 10px;
}
.menu-icons img {
    width: 20px;
}
@media (max-width: 768px) {
    #top-menu {
        flex-direction: column;
        align-items: center;
    }
    .menu-item {
        font-size: 18px;
    }
    #cart {
        top: 10px;
        right: 10px;
    }
}
#cart {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 35;
}
#cart img {
    width: 40px;
    height: 40px;
    transition: all .1s ease;
}
/* Исправление для SVG корзины на Apple устройствах - удален конфликтующий background-image */
[href*="#cart_menu"]:not([href="#cartinfo"]) svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}
[href*="#cart_menu"]:not([href="#cartinfo"]) svg:hover {transform: none !important;}
.carticon-text{display: none;}
[href*="#cart_menu"][count]:not([href="#cartinfo"]):after {
    right: -5px !important;
    top: 8px !important;
}
/* OLD RULE DISABLED - конфликтует с новыми правилами на строке 1906 */
/*
#section-navigation {
    position: absolute;
    bottom: 12vh;
    width: 100%;
    z-index: 90;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 24px;
    font-family: "Helvetica", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b89f88;
    align-items: center;
}
#section-navigation div {
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    font-size: 24px;
    font-weight: bold;
}
#section-navigation div:hover {
    color: #007bff;
}
*/
/* OLD RULE DISABLED - конфликтует с новыми правилами на строке 1887+ */
/*
#bottom-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent !important;
    z-index: 10;
}
*/
#exterior-elements-container,
#gallery-elements-container,
#engines-elements-container,
#interior-elements-container,
#suspension-elements-container,
#brakes-elements-container,
#exhaust-elements-container {
    display: none;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-color: #E6C190 transparent;
    scrollbar-width: thin;
    align-items: center;
    overflow-y: hidden;
    background-color: transparent !important;
}
body {
    overflow-y: hidden;
    overflow-x: hidden;
}

/* --- FROM orig/block3.txt --- */
#exterior-elements-container,
#gallery-elements-container,
#engines-elements-container,
#interior-elements-container,
#suspension-elements-container,
#brakes-elements-container,
#exhaust-elements-container {
  cursor: grab;
}
.dragging {
  cursor: grabbing !important;
}
#color-picker-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.8s;
    pointer-events: none;
    z-index: 1100;
}
#color-picker-container::before, #color-picker-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    pointer-events: auto;
}
#color-picker-container::before {left: 0;}
#color-picker-container::after {right: 0;}
#color-picker-container._active {transform: translate3d(0, 0, 0);}
.close-color-picker {
    align-self: flex-end;
    margin-right: 20px;
    margin-bottom: 20px;
    width: 40px;
    cursor: pointer;
    z-index: 1;
    pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
    .close-color-picker {transform: translate3d(0, 0, 0);}
    .close-color-picker path {transition: fill 0.3s;}
    .close-color-picker:hover path {fill: white;}
}
.color-picker-wrapper {
    height: 55%;
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-columns: auto 1fr auto;
    z-index: 1;
    pointer-events: auto;
}
.color-picker-wrapper__categories, .color-picker-wrapper__category-details, .color-picker-wrapper__colors-section {padding: 30px 40px;}
.color-picker-wrapper__categories {
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.color-picker-wrapper__categories div:not(:first-child) {margin-top: 10px;}
.color-picker-wrapper__categories div {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s;
    transform: translate3d(0, 0, 0);
    cursor: pointer;
}
.color-picker-wrapper__categories div._active {background-color: rgba(255, 255, 255, 0.5);}
@media (hover: hover) and (pointer: fine) {
    .color-picker-wrapper__categories div:hover {background-color: rgba(255, 255, 255, 0.5);}
}
.color-picker-wrapper__categories div img {width: 20px;}
.color-picker-wrapper__categories div span {
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    padding-top: 2px;
    margin-left: 12px;
}
.color-picker-wrapper__category-details, .color-picker-wrapper__colors-section {
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.color-picker-wrapper__category-details:not(.category1-details) {display: none;}
.category-details__title {
    font-size: 18px;
    line-height: 120%;
}
.category-details__box, .colors-section__colors {
    position: absolute;
    left: 0;
    height: calc(100% - 140px);
    padding: 0 40px;
    overflow-y: auto;
    overflow-x: hidden;
}
.category-details__box::-webkit-scrollbar, .colors-section__colors::-webkit-scrollbar {width: 10px;}
.category-details__box::-webkit-scrollbar-track, .colors-section__colors::-webkit-scrollbar-track {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
.category-details__box::-webkit-scrollbar-thumb, .colors-section__colors::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}
.category-details__box {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    column-gap: 60px;
    row-gap: 30px;
}
.category-details__box.cd-box1 {display: grid;}
.category-details__box.cd-box2 {display: none;}
.box__detail img {
    display: block;
    width: 100%;
}
.box__detail span, .category-details__cd-btns button, .colors-section__btns button,
.colors__individual-colors span, #hexInput {font-size: 14px;}
.box__detail span {
    display: block;
    line-height: 1;
    text-transform: uppercase;
    margin-top: 14px;
}
.category-details__cd-btns, .colors-section__btns {
    max-width: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
    margin: 0 auto 30px auto;
    border-radius: 50px;
    background-color: #9e9e9e;
}
.category-details__cd-btns div, .colors-section__btns div,
.category-details__cd-btns button:nth-child(2), .colors-section__btns button:nth-child(2) {
    grid-column: 1/2;
    grid-row: 1/2;
}
.category-details__cd-btns div, .colors-section__btns div {
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    transform: translate3d(0, 0, 0);
}
.category-details__cd-btns div._transform, .colors-section__btns div._transform {transform: translate3d(100%, 0, 0);}
.category-details__cd-btns button, .colors-section__btns button {
    transform: translate3d(0, 0, 0);
    height: 40px;
    padding: 0 12px;
    border-radius: 50px;
    color: white;
    background-color: transparent;
    cursor: pointer;
}
.colors-section__colors {
    display: grid;
    grid-auto-flow: column;
    column-gap: 60px;
}
.colors__individual-colors.glossy-colors {display: grid;}
.colors__individual-colors.matte-colors {display: none;}
.colors__individual-colors {height: fit-content;}
.colors__individual-colors span {
    line-height: 1;
    margin-bottom: 10px;
}
.colors__individual-colors > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    max-width: 100%;
}
.colors__individual-colors div:not(:last-child) {margin-bottom: 30px;}
.colors__individual-colors div img {
    width: 100%;
    cursor: pointer;
}
.colors__picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}
.colors__picker #picker { margin-bottom: 10px; }
.colors__picker input { width: 100%; text-align: center; padding: 6px; }
#hexInput {
    width: 100%;
    height: 28px;
    text-align: center;
    margin-top: 20px;
    padding: 2px 20px 0 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
}

/* --- FROM orig/block4.txt --- */
.relative {
    position: relative;
}
#mobmenu {
    top: 40%;
    right: 0;
    transform: translateY(-50%);
}
.uc-mmenu.js-active {
    display: block;
}
.uc-mmenu > div,
.uc-mmenu > div > div {
    height: inherit!important;
}
.sg-hide-menu {
    display: none;
}
@media(max-width: 980px){
    .uc-container #model-container {
       height: calc(100vh - 65px);
    }
    #rec983400371{
        position: absolute;
        overflow-x: clip;
        left: 0;
        right: 0;
        max-width: 100vw;
        bottom: 95px;
    }
    #exterior-elements-container, #gallery-elements-container, #engines-elements-container, #interior-elements-container, #suspension-elements-container, #brakes-elements-container, #exhaust-elements-container{
        padding: 0
    }
    div.option{
        margin-right: 0;
    }
}
@media(max-width: 640px){
    .uc-container #model-container {
       height: calc(100vh - 55px);
    }
    #rec983400371{
        bottom: 65px;
    }
}

#section-navigation {
    position: static;
}
#color-section {
    bottom: auto;
}
#exterior-elements-wrapper {
    position: static;
}
.wheels-elements-container {
    position: absolute;
    top: 0;
    bottom: auto;
}
#gallery-elements-container {
    height: 110px;
    padding: 0!important;
}
#gallery-elements-container .t156__wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
#gallery-elements-container .t156__item {
    width: 120px;
    min-width: 120px;
    height: 80px;
    overflow: hidden;
}
#gallery-elements-container .t156,
#gallery-elements-container .t156 .t-container,
#gallery-elements-container .t156 .t-col {
    width: inherit;
    max-width: 100%;
}
@media screen and (max-width: 980px) {
    .uc-menu {
        width: 100%;
        position: fixed;
        z-index: 20;
    }
    .tmenu-mobile {
        background-color: transparent!important;
    }
    .tmenu-mobile__menucontent_hidden {
        background-color: #d5d7d8;
    }
    #color-section {
        right: 5px;
    }
}

@media screen and (max-width: 450px) {
    #section-navigation div {
        font-size: 16px;
    }
}
#rec983400416 .t975__list-item  {
   background: white;
}
#rec983400416 .t975__list-item  a{
   filter: grayscale(100%) brightness(1) opacity(0.5);
}
#rec983400416 .t975__list-item.active a{
   filter:none;
}
#section-navigation {
    margin-bottom:-20px;
}
#rec983400416 .t975__wrapper{
    max-width: 100vw;
}
#rec983400416 .t975__wrapper .t975__inner-wrapper{
    width: 100%;
}
@media(max-width: 640px){
    #rec983400416 .t975__wrapper::after {
        height: 55px;
    }
    #rec983400416 .t975__wrapper::before {
        height: 55px;
    }
}
@media(max-width:980px) and (min-width:640px) {
    .uc-container #model-container {
        height: calc(100vh - 54px);
    }
    .t975__icon-wrapper {
            width: 17px;
            height: 15px;
    }
    .t975__wrapper::before, .t975__wrapper::after {
        height: 72%;
    }
    .t975__icon-wrapper img[imgfield="li_img__1729762945908"] {
        width: 40px;
        height: 40px;
        transform: translate(-10px, -30px);
    }
    #rec983400371 {
        bottom: 54px;
    }
    .t975__list-item {
        padding: 8px 10px 10px;
         min-width: 85px;
    }
}
@media(max-width:980px) and (min-width:760px) {
    .t975__inner-wrapper {
        width: 100%;
    }
}
.t156 {
    display: none;
}

/* --- FROM orig/block5.txt --- */
#rec820674688{
    display: none;
}
.modal-color-none{
    border-radius: 50%;
    width: 10px;
    height: 10px;
}
#rec983400416 > div{
    background-color: transparent!important;
    border-top: none;
    left: 0;
    right: 0;
}
#rec983400416 ul{
    padding-top: 20px !important;
}
#rec983400416 .t975__list-item{
    border-top: solid 1px #E2E2E2;;
}
[imgfield="li_img__1729762945908"]{
    max-width: none;
    max-height: none;
    width: 60px;
    height: 60px;
    transform: translate(-15px, -40px);
}
#rec983400416 [href="#paint"] .t975__icon-wrapper{
    opacity: 1
}
#rec983400416 .t975__list-item:nth-child(4) a{
    filter: none;
}
@media(max-width: 640px){
     #rec983400416 ul{
        padding-top: 10px !important;
    }
    [imgfield="li_img__1729762945908"]{
        width: 40px;
        height: 40px;
        transform: translate(-7px, -20px);
    }
}
#rec815018161 .tn-elem__8150181611729501246442 .tn-atom{
    pointer-events: unset!important;
}

/* --- FROM orig/block8.txt --- */
.nlm_removeall, .nlm_removeallCartPage { background: #ffffff; color:#000000; font-size:14px; padding: 8px 15px 8px 15px; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } .nlm_removeall:hover, .nlm_removeallCartPage:hover { background: #eee; } .t706__sidebar-top .nlm_removeall { margin-right: 30px; } .t706__cartpage-top .nlm_removeallCartPage { margin-right: 70px; } .t706__cartwin-top, .t706__sidebar-top, .t706__cartpage-top { display: flex !important; justify-content: space-between !important; } .t706__cartpage-heading.t-name { margin-left: 50px; }

/* --- FROM orig/block9.txt --- */
.t706__cartwin {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0 40px;
}
.t706 .t706__close {
    width: auto;
    right: 20px;
}
.t706 .t706__close-button {width: 100%;}
.t706__cartwin-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    min-height: unset;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}
.t706__cartwin-products, .t706__product {padding: 10px 0;}
.t706__product {height: auto;}
.t706__product-thumb {
    width: 180px;
    height: auto;
}
.t706__product-imgdiv {
    width: 100%;
    height: 90px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}
.t706__product-title {
    line-height: 130%;
    padding: 0;
}
.t706__product-del-wrapper {padding: 15px 0 10px 15px !important;}
.t706__cartwin-prodamount-wrap {padding-bottom: 0;}
.t706__orderform, .t706 .t-input-group.t-input-group_ph {margin-bottom: 0;}
.t-input-group.t-input-group_cb {width: fit-content;}
.t-checkbox__indicator {
    transform: translate3d(0, 0, 0);
    border-radius: 5px;
}
.t-checkbox__indicator:after {
    top: 4px;
    left: 7px;
}
.t-input.js-tilda-rule {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}
.t-input.js-tilda-rule:focus {box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);}
.t706__cartwin-totalamount-wrap {display: none !important;}
.t706 .t-form__submit {
    margin-top: 36px;
    margin-bottom: 0;
}
.t706 .t-submit {
    width: auto;
    letter-spacing: 0.02em;
    background-color: #3f3f3f !important;
}
@media (hover: hover) and (pointer: fine) {
    .nlm_removeall, .nlm_removeallCartPage {transform: translate3d(0, 0, 0);}
    .t706 .t-submit {
        transition: background-color 0.3s;
        transform: translate3d(0, 0, 0);
    }
    .t706 .t-submit:hover {background-color: #1f1f1f !important;}
}
@media (min-width: 992px) {
    .t-name_xl {font-size: 28px;}
    .t706__product-title, .t706__cartwin-prodamount-wrap,
    .t706__product-quantity, .t706__product-amount, .t706__product-amount--portion {
        font-size: 18px;
    }
}
@media (min-width: 641px) {
    .t706__product-plusminus {padding: 13px 20px;}
}
@media (max-width: 991.9px) {
    .t706__cartwin {padding: 0 30px;}
    .t706__cartwin-content {padding: 30px;}
    .t706 .t-input-group {margin-bottom: 15px;}
    .t706 .t-form .t-input {height: 48px;}
    .t706 .t-form__submit {margin-top: 26px;}
    .t-submit {height: 52px;}
}
@media (max-width: 767.9px) {
    .t706__product-thumb {width: 144px;}
    .t706__product-imgdiv {height: 70px;}
}
@media screen and (max-width: 640px) {
    .t706__product {margin: 0;}
    .t706__product-title {
        font-size: 14px;
        padding-right: 20px;
        padding-bottom: 10px;
    }
    .t706__product-del {top: 11px;}
    .t706 .t-form__submit {padding-bottom: 0;}
}
@media (max-width: 600.9px) {
    .t706 .t706__close {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
@media screen and (max-width: 560px) {
    .t706 .t706__close {background: transparent;}
    .t706 .t706__close-button {margin-right: 0;}
    .t706__cartwin-content {margin: 50px auto;}
}
@media (max-width: 480.9px) {
    .nlm_removeall, .nlm_removeallCartPage {padding: 8px 12px;}
    .t706__cartwin {padding: 0 20px;}
    .t706__cartwin-content {padding: 20px;}
    .t706__cartwin-top {padding: 0 0 20px;}
    .t706__cartwin-bottom {padding-top: 25px;}
    .t706__product-thumb {width: 116px;}
    .t706__product-imgdiv {height: 54px;}
    .t706__orderform {margin-top: 16px;}
    .t706 .t-input-group {margin-bottom: 12px;}
    .t706 .t-form .t-input {
        height: 40px;
        font-size: 14px;
    }
    .t706 .t-form__submit {margin-top: 17px;}
    .t-submit {
        height: 44px;
        font-size: 14px;
    }
}
@media (max-width: 380.9px) {
    .nlm_removeall, .nlm_removeallCartPage {padding: 8px;}
    .t706__cartwin {padding: 0 10px;}
    .t-name_xl {font-size: 20px;}
}

/* --- FROM orig/block12.txt --- */
.modal-window-wrapper {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}
.modal-window-container {
    font-family: Arial, sans-serif;
    display: grid;
    align-items: start;
    row-gap: 40px;
    background-color: white;
}
.video-section {
    position: relative;
    padding-bottom: 56.25%;
}
.video-section-first {box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);}
.video-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.title-section {
    position: relative;
    margin-top: 40px;
}
.title-section button {
    transform: translate3d(0, -50%, 0);
    position: absolute;
    top: 50%;
    right: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .title-section button {transition: background-color 0.3s;}
    .title-section button:hover {background-color: #f0f0f0;}
}
.title-section button svg:last-child {display: none;}
.title-section .full-screen svg:first-child {display: none;}
.title-section .full-screen svg:last-child {display: block;}
.title-section, .text-section {padding: 0 40px;}
.title-section h2, .text-section h2 {
    margin-bottom: 14px;
    color: #222;
}
.text-section p {
    line-height: 1.6;
    color: #555;
}
.grid-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.grid-section img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.large {grid-column: 1/3;}
.fancybox-is-open .fancybox-bg {opacity: 1;}
.fancybox-bg {background: black;}
.slider-section{
    min-width: 0;
    position: relative;
    padding: 12px 0;
    background-color: #191919;
}
.slider-section .swiper img{
    display: block;
    width: 100%;
}
.floating-menu {
    display: grid;
    z-index: 102;
}
.floating-menu div .menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: white;
    border-radius: 50%;
}
.floating-menu div span {
    font-size: 11px;
    font-weight: bold;
    color: #959595;
}
@media (hover: hover) and (pointer: fine) {
    .floating-menu div .menu-item {
        transition: transform 0.3s, background-color 0.3s;
        transform: translate3d(0, 0, 0);
    }
    .floating-menu div .menu-item:hover {
        transform: translate3d(0, 0, 0) scale(1.1);
        background-color: #f0f0f0;
    }
}
.floating-menu div .menu-item img {width: 50%;}
@media (min-width: 992px) and (min-height: 720px) {
    .modal-window-wrapper {padding: 0 100px;}
    .modal-window-container {border-radius: 8px;}
    .title-section {
        grid-row: 1/2;
        grid-column: 1/2;
    }
    .video-section-first {
        grid-row: 2/3;
        grid-column: 1/2;
    }
    .slider-section{
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    .floating-menu {
        width: 100px;
        position: sticky;
        top: 95px;
        justify-self: end;
        transform: translateX(100%);
        row-gap: 20px;
        grid-row: 1/3;
        grid-column: 1/2;
    }
    .floating-menu div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .floating-menu div .menu-item {margin-bottom: 8px;}
    .floating-menu div span {text-align: center;}
}
@media (min-width: 1880px) and (min-height: 720px) {
    .floating-menu {top: 65px;}
}
@media (max-width: 991.9px), (max-height: 719.9px) {
    .modal-window-container {row-gap: 30px;}
    .title-section {margin-top: 33px;}
    .title-section button {
        transform: translate3d(0, 0, 0);
        top: -13px;
        right: 100px;
    }
    .title-section, .text-section, .floating-menu {padding: 0 30px;}
    .title-section h2, .text-section h2 {margin-bottom: 10px;}
    .slider-section {box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);}
    .floating-menu {
        grid-template-columns: repeat(auto-fill, 40px);
        gap: 12px;
        margin-bottom: 33px;
    }
    .floating-menu div .menu-item {
        width: 40px;
        height: 40px;
        border: 1px solid #e8e8e8;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .floating-menu div span {display: none;}
}
@media (max-width: 480.9px) {
    .modal-window-container {row-gap: 20px;}
    .title-section {margin-top: 23px;}
    .title-section button {
        top: -3px;
        right: 80px;
    }
    .title-section, .text-section, .floating-menu {padding: 0 20px;}
    .slider-section {padding: 8px 0;}
    .floating-menu {
        gap: 10px;
        margin-bottom: 23px;
    }
}

/* --- FROM orig/block13.txt --- */
#rec983400421 .t-popup__container {
    border-radius: unset;
    overflow: visible;
    background: unset;
}
#rec815018161 .t396__artboard {z-index: 99;}
.t-popup {
   padding: 0;
   z-index: 102;
}
@media (max-width: 991.9px), (max-height: 719.9px) {
    .t-popup__container.t-popup__container-static {
        margin: 0;
    }
}
.t-width_12 {max-width: none;}
.t-popup__close {transition: unset;}
.t-popup__close:hover {opacity: unset;}
.t-popup__block-close {
    width: 40px;
    height: 40px;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    overflow: hidden;
}
@media (min-width: 481px) {
    .t-popup__block-close {right: 40px;}
}
.t-popup__block-close-button {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}
.t-popup__block-close button svg {
    width: 13px;
    height: 13px;
}
.t-popup__block-close button svg g {fill: white;}
@media (hover: hover) and (pointer: fine) {
    .t-popup__block-close {transform: translate3d(0, 0, 0);}
    .t-popup__block-close button svg g {transition: fill 0.3s;}
    .t-popup__block-close button:hover svg g {fill: #cecaca;}
}
.t-popup__block-close button svg g rect {width: 4px;}
.t-popup__block-close button svg g rect:first-child {transform: translate(11.313708px, 11.313708px) rotate(-45deg) translate(-12.313708px, -11.313708px);}
.t-popup__block-close button svg g rect:last-child {transform: translate(11.313708px, 11.313708px) rotate(-315deg) translate(-12.313708px, -11.313708px);}
:-webkit-full-screen .t-popup {background-color: rgba(0, 0, 0, 1);}
:-moz-full-screen .t-popup {background-color: rgba(0, 0, 0, 1);}
:-ms-fullscreen .t-popup {background-color: rgba(0, 0, 0, 1);}
:fullscreen .t-popup {background-color: rgba(0, 0, 0, 1);}
.t-width_10 {
    left: 0;
    right: 0;
}
.box__detail img[data-color-accents] {
  cursor: pointer;
}

/* --- Styles for New Sidebar UI --- */
#configurator-controls {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-btn:hover, .control-btn.active {
    background-color: rgba(0, 0, 0, 0.8);
}

#options-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 25%;
    max-width: 400px;
    min-width: 320px;
    height: 100vh;
    background-color: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 102;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    border-left: 1px solid #ddd;
}

/* На разрешениях выше 992px сайдбар начинается ниже хэдера */
@media (min-width: 992px) {
    #options-sidebar {
        top: 53px; /* Высота хэдера (43px) + отступ 10px */
        height: calc(100vh - 53px); /* Высота экрана минус высота хэдера и отступ */
    }
}

#options-sidebar.open {
    transform: translateX(0);
}

/* Старые стили для абсолютного позиционирования удалены - крестик теперь в заголовке */

#sidebar-content {
    height: 100%;
    padding: 20px;
    padding-top: 20px; /* Убрали отступ для кнопки закрытия, так как она теперь в заголовке */
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

/* Заголовки сайдбаров - убираем отступ, так как сайдбар теперь начинается ниже хэдера */
@media (min-width: 992px) {
    .sidebar-panel h2 {
        margin-top: 0 !important; /* Отступ не нужен, сайдбар уже ниже хэдера */
    }

    /* Конфигуратор header также не нужен отступ */
    #colors-panel .configurator-header {
        margin-top: 0 !important; /* Отступ не нужен, сайдбар уже ниже хэдера */
    }

    #colors-panel .header-title-section {
        margin-top: 0 !important;
    }
}

/* На мобильных устройствах - заголовки и табы к верхней границе сайдбара */
@media (max-width: 991.9px) {
    /* Убираем все отступы сверху - контент прямо у границы */
    #sidebar-content {
        padding-top: 0 !important;
    }
    
    .sidebar-panel h2 {
        margin-top: 0 !important;
        padding-top: 12px !important; /* Небольшой отступ от края */
        margin-bottom: 10px !important;
    }

    /* Скрываем заголовок "Конфигуратор" и подзаголовок в colors-panel - начинаем с табов */
    #colors-panel .configurator-header .header-title-section {
        display: none !important;
    }
    
    /* Скрываем десктопный крестик в заголовке */
    #colors-panel .sidebar-close-btn.desktop-only {
        display: none !important;
    }
    
    /* Показываем мобильный крестик для colors - позиция на границе сайдбара (для iOS iframe) */
    #colors-panel .colors-mobile-close {
        display: flex !important;
        position: absolute !important;
        top: 5px !important; /* Немного ниже для colors панели */
        right: 20px !important;
        z-index: 10002 !important;
        background: #fff !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.2) !important;
        touch-action: manipulation !important;
    }
    
    /* Скрываем configurator-header полностью на мобильном */
    #colors-panel .configurator-header {
        display: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Скрываем разделитель */
    #colors-panel .separator-line {
        display: none !important;
    }
    
    /* Табы colors прямо к верхней границе сайдбара - убираем все отступы */
    #colors-panel .colors-tabs-nav-v2 {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 16px !important; /* Оставляем только нижний отступ */
    }
    
    /* Убираем все отступы сверху у colors-panel на мобильных */
    #colors-panel {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Убираем отступы у всех элементов в colors-panel сверху */
    #colors-panel > * {
        margin-top: 0 !important;
    }
    
    /* Убираем отступы у colors-mobile-close крестика */
    #colors-panel .colors-mobile-close {
        margin-top: 0 !important;
    }
}

/* Десктоп - скрываем мобильный крестик colors */
@media (min-width: 992px) {
    #colors-panel .colors-mobile-close {
        display: none !important;
    }
}

.sidebar-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-panel h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

/* Крестик закрытия в заголовке сайдбара */
#sidebar-close-btn,
.sidebar-close-btn {
    position: relative;
    top: auto;
    right: auto;
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #333;
    transition: transform 0.2s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
}

#sidebar-close-btn:hover,
.sidebar-close-btn:hover {
    transform: scale(1.2);
}

#sidebar-close-btn:active,
.sidebar-close-btn:active {
    transform: scale(0.95);
    opacity: 0.7;
    transition: transform 0.05s, opacity 0.05s;
}

.items-scroller {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 10px; /* to avoid scrollbar overlapping content */
}

/* Scrollbar styling */
.items-scroller::-webkit-scrollbar {
  width: 8px;
}
.items-scroller::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.items-scroller::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.items-scroller::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Styling for option items inside sidebar */
.option-group-wrapper {
    margin-bottom: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.option-item, .color-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 5px;
    transition: border-color 0.3s, background-color 0.3s;
}

.option-item:hover {
    border-color: #aaa;
}

.option-item.active {
    border-color: #007bff;
    background-color: #e0eaff;
}
.option-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.option-label {
    font-size: 12px;
    text-align: center;
    display: block;
    margin-top: 5px;
}

.color-item .color-swatch {
    width: 48px;
    height: 42px; /* 48 * sin(60°) */
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    position: relative;
    border: 1px solid rgba(0,0,0,0.15);
}

.color-item .color-swatch::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: inherit;
    background: linear-gradient(to bottom, rgba(255,255,255,.4) 0%, rgba(255,255,255,.15) 45%, rgba(0,0,0,.18) 100%);
    pointer-events: none;
}

.color-item{
    display:flex;justify-content:center;align-items:center;cursor:pointer;
    padding:0!important;width:48px;height:42px;
    background:transparent!important;border:none!important;box-shadow:none!important;
}

.color-item.active .color-swatch {
    border: 2px solid #ffd000;
}

.colors__individual-colors > div {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}

/* --- Fix: make color items container full width --- */
#colors-panel .items-scroller {
    grid-template-columns: 1fr; /* один столбец, чтобы блок Base offer занимал 100% ширины */
}

/* --- Wheels product card styles (extracted from orig blocks) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px;
    transition: box-shadow .3s;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.product-card span {
    margin-top: 6px;
    font-size: 12px;
    text-align: center;
}

/* Применяем стили exterior к wheels - делаем карточки такими же как в exterior */
/* В wheels используется class="option-item product-card", поэтому применяем стили к обоим классам */
#wheels-panel .option-item.product-card,
#wheels-panel .product-card.option-item,
#wheels-panel .option-item {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    padding: 5px !important; /* Как в exterior */
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s !important;
    /* Переопределяем стили .product-card */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#wheels-panel .option-item.product-card:hover,
#wheels-panel .product-card.option-item:hover,
#wheels-panel .option-item:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
}

#wheels-panel .option-item.product-card.active,
#wheels-panel .product-card.option-item.active,
#wheels-panel .option-item.active {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: #007bff !important;
    box-shadow: 0 4px 16px rgba(0,123,255,0.25) !important;
}

/* Стили для изображений в wheels - как в exterior */
#wheels-panel .option-item.product-card img,
#wheels-panel .product-card.option-item img,
#wheels-panel .option-item img {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
    display: block !important;
    max-height: 140px !important;
    object-fit: cover !important;
}
/* Gallery button hidden for now */
.product-card__gallery-btn, .product-card__gallery-link {display:none;}

/* --- Wheels brand filter styles --- */
.brand-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.brand-filter .wheel-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(0,0,0,0.03);
    border: 1px solid #bbb;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background-color .3s, border-color .3s;
}
.brand-filter .wheel-filter-btn._active,
.brand-filter .wheel-filter-btn:hover {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* --- Fix: wheels — 2 диска в ряд; items-scroller как block, сетка только в options-grid --- */
#wheels-panel .items-scroller {
    display: block;
}

/* --- Gallery panel full-width --- */
.gallery-panel {
    width: 90vw !important;
    max-width: 90vw;
    margin: 0 auto;
}

/* --- Gallery modal overlay (MOVED TO GM SECTION BELOW) --- */
.gallery-modal-window {
    position: absolute;
    top:43px; /* высота хедера */
    left:50%;
    width:70%;
    transform:translateX(-50%);
    max-height: calc(100vh - 43px);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 15px 40px 30px 40px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-sizing: border-box;
}
.gallery-modal-window .product-grid{
    max-width:100%;
    box-sizing:border-box;
}
@media(max-width:768px){
    .gallery-modal-window{padding:20px 20px;} 
}
.gallery-modal-window .title-section{margin-top:10px;}

#sidebar-overlay{
    position:fixed;
    inset:0;
    background:transparent;
    backdrop-filter:none;
    display:none;
    z-index:100;
    pointer-events: none; /* overlay no longer blocks 3D rotation */
}
#sidebar-overlay.active{display:block;}

/* --- Header wrapper (Tilda) --- */
#cn-header {
    font-family: "SuisseIntl", sans-serif;
    position: fixed;
    z-index: 1300;
    top: 0;
    left: 0;
    width: 100%;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    pointer-events: auto;
}

#cn-header .header-elements {
    transform: translate3d(0, 0, 0);
    padding: 0 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    z-index: 1300;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    box-sizing: border-box !important;
    pointer-events: auto;
}
#cn-header .header-rectangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    opacity: 0;
    visibility: hidden;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px;
    background-color: white;
}
#cn-header .header-rectangle._active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s, visibility 0.25s;
}
#cn-header .header-elements .left-side,
#cn-header .header-elements .right-side {
    display: flex;
    align-items: center;
    height: 100%;
    transform: translate3d(0, 0, 0);
    box-sizing: border-box;
}

/* --- Dropdown menu wrapper (desktop) --- */
#cn-header .dropdown-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 120px 40px 90px 40px;
    overflow: auto;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.35s ease-out;
    z-index: 9999;
}
#cn-header .dropdown-menu-wrapper._active {
    transform: translate3d(0, 0, 0);
}

@media (max-width: 991.9px) {
    /* На мобильных десктоп-обёртка не нужна */
    #cn-header .dropdown-menu-wrapper {display: none;}
}

/* --- Cart modal overlay --- */
#cart-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center; /* горизонтально */
    align-items: center;     /* вертикально */
    z-index: 1200;
}
#cart-modal-container._active {display:flex;}

.cart-modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 95vw;
    background: #fff;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px 30px 40px 30px;
    box-sizing: border-box;
}

/* Заголовок корзины с крестиком в одной строке */
.cart-modal-window h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
    width: 100%;
}

#cart-close-btn {
    position: relative;
    top: auto;
    right: auto;
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#cart-items-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    column-gap: 10px;
    border-bottom: 1px solid #ddd;
    padding: 6px 0;
}
.cart-item img{
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    object-fit: contain;
    border:1px solid #f0f0f0;
    border-radius:4px;
}
.cart-item span.ci-name{font-size:14px;}
.cart-item span.ci-price{font-weight:600;}
.cart-total-info {
    margin-top: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.order-btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
.order-btn:hover {background:#0069d9;}

/* затемняющее поле по клику "Магазин" */
#header-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    backdrop-filter:blur(4px);
    display:none;
    z-index:100;
}
#header-overlay._active{display:block;}

/* --- Header inner elements (imported from test.html) --- */
#cn-header .header-elements__shop{height:100%;display:grid;}
#cn-header .shop__title{transform:translate3d(0,0,0);display:flex;align-items:center;transition:opacity .4s .4s,visibility .4s .4s;cursor:pointer;}
#cn-header .shop__title svg{display:none;}
#cn-header .header-elements__shop._open .shop__title{opacity:0;visibility:hidden;transition:opacity .4s,visibility .4s;}
#cn-header .title__points{margin-right:4px;width:12px;height:12px;display:grid;grid-template-columns:auto auto;}
#cn-header .title__points span{width:4px;height:4px;border-radius:50%;background-color:black;}
#cn-header .title__text{font-size:14px;line-height:1;text-transform:uppercase;}
#cn-header .shop__title,#cn-header .shop__cross{grid-column:1/2;grid-row:1/2;}
#cn-header .shop__cross{align-self:center;transform:translate3d(20px,0,0);opacity:0;visibility:hidden;transition:opacity .4s,visibility .4s;cursor:pointer;}
#cn-header .header-elements__shop._open .shop__cross{opacity:1;visibility:visible;transition:opacity .4s .4s,visibility .4s .4s;}
#cn-header .header-elements__logo{position:absolute;top:50%;left:50%;transform:translate3d(-50%,-50%,0);}
#cn-header .header-elements__logo img{display:block;width:40px;}
#cn-header .header-elements__projects{text-transform:uppercase;padding:0 20px;margin-left:22px;height:100%;display:flex;align-items:center;position:relative;}
#cn-header .header-elements__projects::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:rgba(0,0,0,.2);}
#cn-header .header-elements__projects::after{content:'';position:absolute;right:0;top:0;bottom:0;width:1px;background:rgba(0,0,0,.2);}
@media (hover:hover) and (pointer:fine){
  #cn-header .header-elements__projects{transform:translate3d(0,0,0);transition:color .3s,background-color .3s;}
  #cn-header .header-elements__projects:hover{color:#fff!important;background-color:#000;}
}
#cn-header .header-elements__projects,#cn-header .header-elements__phone,#cn-header .header-elements__lang{font-size:14px;line-height:1;color:#000!important;box-sizing:border-box!important;}
#cn-header .header-elements__phone{padding:0 12px 0 12px;height:100%;display:flex;align-items:center;position:relative;}
#cn-header .header-elements__phone::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:rgba(0,0,0,.2);}
#cn-header .header-element,#cn-header .tn-elem__8150181611722969355825 a{height:100%;display:flex;align-items:center;}
#cn-header .header-elements__lang{font-weight:700;text-transform:uppercase;padding:0 11px;margin-left:7px;height:100%;display:flex;align-items:center;position:relative;}
#cn-header .header-elements__lang::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:rgba(0,0,0,.2);}
#cn-header .header-elements__lang::after{content:'';position:absolute;right:0;top:0;bottom:0;width:1px;background:rgba(0,0,0,.2);}
#cn-header .header-social a{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin:0;}
#cn-header .header-elements__wa{margin:0;}
#cn-header .header-elements__btn{transform:translate3d(0,0,0);background:transparent;cursor:pointer;padding:0 12px 0 13px;height:100%;display:flex;align-items:center;box-sizing:border-box!important;position:relative;}
#cn-header .header-elements__btn::after{content:'';position:absolute;right:0;top:0;bottom:0;width:1px;background:rgba(0,0,0,.2);}
#cn-header .header-elements__btn svg:last-child{display:none;}
#cn-header .header-elements__btn.full-screen svg:first-child{display:none;}
#cn-header .header-elements__btn.full-screen svg:last-child{display:block;}
#cn-header .tn-elem__8150181611722969355825{margin-left:60px;}

#cn-header._expanded{height:100vh;overflow:hidden;}

/* --- Dropdown bottom & right panels --- */
#cn-header .dropdown-menu__bottom-panel{position:absolute;bottom:0;left:50%;transform:translate(-50%,50%);display:grid;grid-auto-flow:column;column-gap:6px;padding:10px;border-radius:50px;background:#9e9e9e;}
#cn-header .dropdown-menu__right-panel div{display:grid;grid-template-columns:1fr 1fr;column-gap:3px;padding:5px;border-radius:50px;background:#9e9e9e;}
#cn-header .dropdown-menu__right-panel img{width:100%;margin-top:24px;box-shadow:5px 5px 10px rgba(0,0,0,.3);}
#cn-header .dropdown-menu__bottom-panel button,#cn-header .dropdown-menu__right-panel div button{height:40px;font-size:14px;padding:0 20px;border-radius:50px;color:#fff;background:transparent;transition:background-color .3s;cursor:pointer;}
#cn-header .dropdown-menu__bottom-panel button._active,#cn-header .dropdown-menu__right-panel div button._active{background:rgba(0,0,0,.3);}
@media(hover:hover) and (pointer:fine){
  #cn-header .dropdown-menu__bottom-panel button:hover,#cn-header .dropdown-menu__right-panel div button:hover{background:rgba(0,0,0,.3);}  
}

/* --- Search wrapper adjustment --- */
#cn-header .search-wrapper{display:flex;justify-content:center;padding:20px 0;margin-bottom:20px;}
#cn-header .search-wrapper__search{width:300px;height:50px;display:flex;}
#cn-header .search-wrapper__search input{width:calc(100% - 54px);padding-left:20px;font-size:16px;background:rgba(255,255,255,.3);border-top-left-radius:25px;border-bottom-left-radius:25px;box-shadow:0 0 2px #9e9e9e inset;}
#cn-header .search-wrapper__search div{width:54px;border-top-right-radius:25px;border-bottom-right-radius:25px;background:url("https://img.icons8.com/ffffff/search") center/50% auto no-repeat,#9e9e9e;}

/* Prevent horizontal scroll */
#cn-header .dropdown-menu-wrapper{overflow-x:hidden;}

/* --- Wide screen adjustments --- */
#cn-header .search-wrapper,#cn-header .dropdown-menu{max-width:min(1600px,90vw);} /* растягиваем до 1600 или 90% */

#cn-header .dropdown-menu__brands .swiper-slide{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));}
#cn-header .dropdown-menu__brands .swiper-slide a img{width:80%;max-width:90px;height:auto;}
#cn-header .dropdown-menu__right-panel img{max-height:calc(100vh - 320px);object-fit:contain;}

/* --- Bottom navigation icons --- */
#section-navigation .control-btn{width:40px;height:40px;display:flex;justify-content:center;align-items:center;font-size:0;background:transparent;border:none!important;outline:none;}
/* ЗАКОММЕНТИРОВАНО - конфликтует с мобильным свайпом на < 900px */
/* #section-navigation{gap:20px!important;} */
#section-navigation .control-btn img{width:32px;height:32px;opacity:.6;transition:opacity .3s,transform .3s;}
#section-navigation .control-btn svg{width:32px;height:32px;opacity:.6;transition:opacity .3s,transform .3s;}
#section-navigation .control-btn:hover img,#section-navigation .control-btn.active img{opacity:1;transform:scale(1.1);}
#section-navigation .control-btn:hover svg,#section-navigation .control-btn.active svg{opacity:1;transform:scale(1.1);}

/* --- Позиционируем нижнюю навигацию у края окна --- */
#bottom-section{
    position:fixed;
    bottom:calc(5vh - 5px); /* Подняли иконки на 5px */
    left:50%;
    transform:translateX(-50%);
    width:auto;
    height:60px; /* Явная высота для iOS */
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:95;
    background:transparent;
    pointer-events:none; /* Прозрачность для кликов по модели */
}

/* Кнопки навигации должны быть кликабельны */
#section-navigation .control-btn{
    pointer-events:auto;
}
#section-navigation{position:static;display:flex;gap:40px;background:transparent;letter-spacing:0;font-size:0;}
/* ВАЖНО: width и padding НЕ задаем здесь, чтобы не конфликтовать с медиа-запросом < 900px */
/* На мобильных (< 900px) переопределяется в медиа-запросе для свайпа */

/* iOS Safari fix: используем px вместо vh для мобильных */
@media (max-width: 767px) {
    #bottom-section {
        bottom: 15px !important; /* Подняли на 5px (было 20px) */
    }
}

/* iOS iPhone: опускаем панель до уровня перекрывающей полосы Sketchfab */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {
        #bottom-section {
            /* Опускаем панель до уровня полосы на iOS iPhone */
            bottom: env(safe-area-inset-bottom, 0px) !important;
        }
    }
}

/* iOS Safari fix: используем px вместо vh для планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
    #bottom-section {
        bottom: 35px !important; /* Подняли на 5px (было 40px) */
    }
}

/* iOS Safari fix: для больших планшетов (iPad Pro) */
@media (min-width: 1024px) and (max-width: 1366px) {
    #bottom-section {
        bottom: 45px !important; /* Подняли на 5px (было 50px) */
    }
}

/* Дополнительные iOS Safari оптимизации */
@supports (-webkit-touch-callout: none) {
    /* Определяем iOS Safari */
    #bottom-section {
        -webkit-transform: translateX(-50%) translateZ(0);
        transform: translateX(-50%) translateZ(0);
        will-change: transform;
        contain: layout style;
    }
    
    #section-navigation .control-btn {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
}

/* Скрываем старую вертикальную панель на десктопе */
@media (min-width:768px){#configurator-controls{display:none;}}

/* Gallery modal video fix */
.gallery-modal-window .video-section-first{padding-bottom:0;height:auto;}
.gallery-modal-window .video-section-first iframe{position:static;width:100%;height:45vh;max-height:400px;}

/* Gallery modal fine-tune */
.gallery-modal-window{padding-top:20px;}
.gallery-modal-window h2{margin:0 0 15px;}

/* floating contacts outside gallery */
.floating-menu{position:fixed;top:120px;right:calc( (100vw - 70vw)/2 - 70px );width:60px;z-index:1100;}
.floating-menu div{margin-bottom:18px;}

/* --- Gallery mosaic grid --- */
.gallery-modal-window .product-grid{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    grid-auto-rows:220px;
    gap:0;
}
.product-card{position:relative;overflow:hidden;border-radius:0;box-shadow:none;background:none;margin:0;padding:0;border:none;}
.product-card img{width:100%;height:100%;object-fit:cover;transition:transform .3s;border:none;}
.product-card:hover img{transform:scale(1.05);} 
.product-card.w2{grid-column:span 2;}
.product-card.h2{grid-row:span 2;}
.product-card.w2:not(.h2){grid-column:1 / -1;}

/* Убираем фон и границы у модального контейнера */
.gallery-modal-window{
    background:#ffffff;
    border-radius:0;
    box-shadow:none;
    padding:0;
}

#gallery-modal-container::before,#gallery-modal-container::after{display:none;}

/* === Glassmorphism effects (imported from Lucas Romero codepen) === */

/* Общий вспомогательный класс — можно добавить к любому блоку */
.glass {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Нижняя навигация с иконками */
#section-navigation .control-btn{
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform .3s, opacity .3s, background-color .3s, box-shadow .3s;
}
#section-navigation .control-btn:hover,
#section-navigation .control-btn.active{
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* Элементы-чекбоксы с изображениями (опции конфигуратора и цветовые свотчи) */
.option-item, .color-item{
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.option-item:hover, .color-item:hover{
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.option-item.active, .color-item.active{
    background: rgba(255, 255, 255, 0.28);
    border-color: #007bff;
    box-shadow: 0 4px 16px rgba(0,123,255,0.25);
}

/* === Hover scale for Exterior & Wheels images === */
#exterior-elements-container div.option img,
.wheels-elements-container img {
    transition: transform 0.3s ease;
}
#exterior-elements-container div.option:hover img,
.wheels-elements-container div.option:hover img,
.wheels-elements-container img:hover {
    transform: scale(1.08);
}

/* === Visual state for option checkboxes === */
.option-item img,
#wheels-panel .option-item.product-card img,
#wheels-panel .product-card.option-item img,
#wheels-panel .option-item img {
    transition: filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.35;
}
.option-item.active img,
#wheels-panel .option-item.product-card.active img,
#wheels-panel .product-card.option-item.active img,
#wheels-panel .option-item.active img {
    filter: grayscale(0%);
    opacity: 1;
}

#option-tooltip{
    position:fixed; padding:6px 10px; background:#000; color:#fff;
    border-radius:4px; font-size:12px; pointer-events:none; z-index:9999;
  } 

/* === GLB Loader progress bar === */
#glb-loader{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:220px;
    height:10px;
    background:rgba(255,255,255,0.35);
    border-radius:5px;
    overflow:hidden;
    z-index:12000;
}
#glb-loader .bar{
    height:100%;
    width:0;
    background:#2196f3;
    transition:width .2s ease-out;
}

/* Projects – включаем вертикальный скролл, если блок выше viewport */
._scrollable{
    max-height: calc(100vh - 250px); /* 100vh минус заголовок + отступы */
    overflow-y: auto;
    padding-right: 8px;              /* чтобы был отступ от скролл-бара */
}
._scrollable::-webkit-scrollbar{width:8px;}
._scrollable::-webkit-scrollbar-thumb{
    background:#ccc;border-radius:4px;
}

/* ширина и скругления строки поиска */
#cn-header .search-wrapper       {padding:40px 0 10px}
#cn-header .search-wrapper__search{width:420px;height:56px}
#cn-header .search-wrapper__search input{
    font-size:18px;border-radius:28px 0 0 28px;
}
#cn-header .search-wrapper__search div{        /* иконка-кнопка */
    width:66px;border-radius:0 28px 28px 0;
    background-size:22px;
}

.floating-menu.header-floating-menu{right:40px;top:120px;}

/* === Hexagon swatches for color picker === */
.color-item {display:flex;justify-content:center;align-items:center;cursor:pointer;}
.color-item .color-swatch {
    width: 48px;
    height: 42px;
    clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0% 50%);
    position: relative;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0; /* отменяем круг */
}
.color-item .color-swatch::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: inherit;
    background: linear-gradient(to bottom, rgba(255,255,255,.4) 0%, rgba(255,255,255,.15) 45%, rgba(0,0,0,.18) 100%);
    pointer-events: none;
}
.color-item.active .color-swatch {border:2px solid #ffd000;}

/* === Overrides for Color hexagon swatches === */
.color-item{background:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important;}
.color-item:hover,.color-item.active{background:transparent!important;}

#configurator-controls,
#section-navigation{
    z-index:150;          /* выше #sidebar-overlay (100) */
}

/* -.color-item diff removed */
.color-item-placeholder{}

/* +.color-item diff removed */
/* +.color-item {display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0!important;width:48px;height:42px;background:transparent!important;border:none!important;box-shadow:none!important;} */

#cart-modal-container .cart-input-row{
    flex-direction:column;
}
#cart-modal-container .cart-input-row label{
    margin-bottom:10px;
}

/* === Tooltip-like label inside option card === */
.option-item {
    position: relative; /* для абсолютного позиционирования подписи */
}
.option-item .option-meta {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    display: none;
    pointer-events: none;
    z-index: 3;
}
.option-item:hover .option-meta,
.option-item.active  .option-meta {
    display: block;
}

/* --- ADDITIONAL MOBILE REFINEMENTS (≤768px) --- */
@media (max-width: 767.98px) {
  /* 1. Align burger (left) and cart (right) */
  #cn-header .header-elements {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 15px !important;
  }
  .header-elements__shop {
    margin-right: auto !important; /* stick left */
  }
  .cartcopy_elem {
    margin-left: auto !important; /* stick right */
  }

  /* 2. Ensure hidden header items remain inside mobile menu only */
  .mobile-hidden {
    display: none !important;
  }

  /* 3. About section no-scroll fix */
  .about-section {
    width: 100% !important;
    padding: 40px 15px !important;
    overflow: hidden !important;
  }
  .about-image {
    max-width: 100% !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }
  /* ensure black background stays */
  .contacts-info{
    background:#1e1e1e !important;
    color:#fff !important;
  }
}

@media (max-width: 767.98px) {
  /* предотвращаем горизонтальный скролл */
  body,html{overflow-x:hidden !important;}
  #cn-header, #bottom-section{max-width:100vw !important;}

  /* контакты – внутренние отступы */
  .contacts-info{padding:25px 15px !important;}

  .mob-contacts__phone span{font-size:14px !important;}
  .mob-contacts__lang{display:block;margin-top:10px;color:#fff;font-weight:700;}

  /* cart icon spacing */
  .cartcopy_elem{margin-left:auto !important;margin-right:0 !important;}
}


@media (max-width: 767.98px) {
  /* 0. Header row align: burger | logo | cart */
  #cn-header .header-elements{display:flex!important;align-items:center!important;justify-content:space-between!important;}
  #cn-header .header-elements__logo{position:static!important;left:auto!important;transform:none!important;margin:0 auto!important;}
  /* reduce width so fits */
  #cn-header .header-elements__logo img{width:36px;height:auto;}

  /* 1. Hero slide caption higher */
  #hero .slide-caption{bottom:20% !important;}

}

/* === Debug flag === */
@media only screen and (max-width: 767.98px) {
    body::after{
        content:"MOBILE-CSS-ACTIVE";
        display:none;
    }
    
}

/* ------------------------------------------------------------------
   ULTIMATE OVERRIDE — ПО МОБИЛЬНОМУ МЕНЮ И ШАПКЕ
   ------------------------------------------------------------------ */
@media (max-width:767.98px){

  /* Шапка — показываем логотип */
  #cn-header .header-elements__logo{
      display:block!important;
      position:static!important;
      left:auto!important;
      transform:none!important;
  }

  /* Мобильное меню: показываем контакты и EN */
  .mob-contacts__projects,
  .mob-contacts__lang{
      display:block!important;
      color:#fff!important;
  }

  /* Никогда не скрывать телефоны */
  .mob-contacts__phone{display:block!important;}

  /* Убираем скрывающийся css от старых блоков */
  /* .mob-additional-contacts__lang{display:none!important;} */ /* старый класс не нужен */

  /* Стили для элементов мобильного меню */

  .mob-contacts__projects {
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 20px !important;
  }

  .mob-contacts__lang {
      font-weight: 700;
      text-transform: uppercase;
      margin-top: 15px !important;
  }

  .mob-contacts__phone {
      display: flex !important;
      align-items: center;
      gap: 8px;
  }

  .mob-contacts__phone img {
      width: 20px;
      height: auto;
  }
}

/* Мобильная коррекция навигации - переопределяется в медиа-запросе @media (max-width: 900px) */
#section-navigation{
    /* Мобильная коррекция навигации – отступ только справа,
       слева иконка приходит вплотную к краю */
    padding-right: 15px;
}
#section-navigation .control-btn:first-child{
    margin-left: 15px; /* лёгкий зазор слева */
}

@media (max-width: 600px) {
  /* Показываем логотип между бургер-меню и корзиной на мобильных (<600px) */
  #cn-header .header-elements__logo {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}

/* === Fix 2025-06-29: поднять нижнее меню ещё на 15px === */
/* DISABLED - конфликтует с iOS-специфичными правилами выше */
/*
#bottom-section {
  bottom: calc(5vh + 15px) !important;
}

@media (max-width: 600px) {
  #bottom-section {
    bottom: 35px !important;
  }
}
*/


/* -------------------------
   UI FIX: убираем лишнюю вертикальную линию (border-right)
   у кнопки полноэкранного режима в шапке.
*/
#cn-header .header-elements__btn {
    border-bottom: none !important;                   /* убираем полосу снизу */
    border-top: none !important;    /* убираем полосу сверху */
    border-left: none !important;   /* убираем полосу слева */
}

/* На десктопе оставляем полосу справа, на мобильных скрываем */
@media (min-width: 1024px) {
    #cn-header .header-elements__btn {
        border-right: 1px solid rgba(0,0,0,.2) !important;
    }
}

@media (max-width: 1023px) {
    #cn-header .header-elements__btn,
    #cn-header .header-elements__projects,
    #cn-header .header-elements__phone,
    #cn-header .header-elements__lang {
        border-right: none !important;
        border-left: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    #cn-header .header-elements__btn::after,
    #cn-header .header-elements__btn::before,
    #cn-header .header-elements__projects::after,
    #cn-header .header-elements__projects::before,
    #cn-header .header-elements__phone::after,
    #cn-header .header-elements__phone::before,
    #cn-header .header-elements__lang::after,
    #cn-header .header-elements__lang::before {
        display: none !important;
    }
    /* Убираем разделитель у корзины на мобильных */
    #cn-header .cartcopy_elem {
        border-right: none !important;
        padding-right: 0 !important;
    }
    #cn-header .cartcopy_elem::after {
        display: none !important;
    }
}
  
  /* -------------------------------------------------
     FRONT-PAGE FIXES (contacts & about layout)
     ------------------------------------------------- */
  /* 1. Контакты – общий чёрный фон и внутренние отступы */
  .contacts-info{
    background:#1e1e1e;      /* чёрный фон на всех разрешениях */
    color:#fff;              /* белый текст */
    padding:40px 40px;       /* комфортные отступы */
    box-sizing:border-box;
  }
  /* 1.1 На мобильных (<768) уже есть override, но убедимся */
  @media (max-width:767.98px){
    .contacts-info{padding:25px 15px !important;}
  }
  /* 1.2 Горизонтальное размещение карты и контактов при ширине ≥1200 */
  @media (min-width:1200px){
    .contacts-section{display:flex;flex-wrap:nowrap;align-items:stretch;}
    .contacts-section .contacts-map{flex:1 1 50%;min-height:400px;}
    .contacts-section .contacts-map iframe{width:100%;height:100%;display:block;}
    .contacts-section .contacts-info{flex:1 1 50%;display:flex;flex-direction:column;justify-content:center;}
  }
  
  /* 2. Блок «О нас» – добавляем горизонтальный отступ слева/справа на десктопе */
  .about-section{
    padding:60px 40px;       /* слева/справа по 40, сверху/снизу 60 */
    box-sizing:border-box;
    display:flex;
    gap:40px;
    align-items:center;
  }
  .about-image{max-width:50%;flex:0 0 40%;height:auto;}
  .about-text{flex:1;}
  /* Мобильный вид – столбиком и меньшие отступы (уже задано, но дублируем на всякий) */
  @media (max-width:767.98px){
    .about-section{flex-direction:column;padding:40px 15px !important;}
    .about-image{max-width:100%;flex:0 0 auto;}
  }
  
  /* -------------------------------------------------
     FIX 2025-06-30: убираем горизонтальный скролл (>1900px)
     Причина: #cn-header .dropdown-menu-wrapper имел width:100% + 40px+40px
     внутренние отступы, что расширяло блок сверх viewport.
     Решение: включаем box-sizing:border-box и ограничиваем max-width:100vw.
  ---------------------------------------------------*/
  @media (min-width: 992px){   /* только для десктопов, где wrapper активен */
    #cn-header .dropdown-menu-wrapper{
      box-sizing: border-box; /* padding учитывается в 100% */
      max-width: 100vw;       /* не шире окна браузера */
    }
  }
  
  /* -------------------------------------------------
     FIX 2025-06-30 (front-page): убираем горизонтальный скролл >1900px
     Причина: секция #hero имела width:100vw во встроенном стиле, что при наличии
     вертикального скроллбара давало +15-20px и появлялась полоса прокрутки.
     Решение: ограничиваем ширину 100% (без учёта scrollbar) и страхуем body/html.
  ---------------------------------------------------*/
  body,html{overflow-x:hidden!important;}
  #hero{width:100%!important;max-width:100%;}
  
  /* -------------------------------------------------
     FIX 2025-07-01: восстанавливаем иконки/изображения
     в десктоп-меню и включаем отображение третьего
     уровня (подменю) в навигации.
  ---------------------------------------------------*/
  /* 1. Иконки/картинки в пункте контактного меню и сайдбаре */
  .dropdown-menu__sidebar .menu-item img,
  .floating-menu .menu-item img{
    filter:none !important;     /* убираем подавляющий brightness(0) */
    opacity:1 !important;
  }
  
  /* 2. Третий уровень выпадающего меню (ul>li>ul) */
  .main-navigation li:hover > ul.sub-menu,
  .main-navigation ul.sub-menu li:hover > ul.sub-menu{
    display:flex !important;    /* показываем подменю при наведении */
  }
  
  @media (max-width: 959.9px){
    #hero, .slider-section, .video-section-first{margin-top:10px!important;}
  }
  
  @media (max-width: 540.9px){
    #hero, .slider-section, .video-section-first{margin-top:43px!important;}
  }
  
  /* === Fix 2025-07-02: header social icons size & monochrome === */
  #cn-header .header-elements__wa img,
  #cn-header .header-elements__tg img {
      width: 100%;
      height: 100%;
      filter: grayscale(100%);
      transition: filter 0.3s ease;
      display: block;
  }
  
  /* Цветные иконки при наведении */
  #cn-header .header-elements__wa:hover img,
  #cn-header .header-elements__tg:hover img {
      filter: grayscale(0%);
  }
  
  /* SVG иконка email - серая по умолчанию */
  #cn-header .header-elements__email svg {
      color: #808080;
      transition: color 0.3s ease;
      display: block;
      width: 100%;
      height: 100%;
  }
  
  /* Красная иконка почты при наведении */
  #cn-header .header-elements__email:hover svg {
      color: #ff0000;
  }
  
  /* === Mobile language switcher === */
  .mob-contacts__lang-switch{
      display:flex;
      gap:10px;
      justify-content:center;
      margin-top:15px;
  }
  .mob-contacts__lang-switch .lang-link{
      font-size:16px;
      font-weight:700;
      color:#fff;
      text-transform:uppercase;
  }
  .mob-contacts__lang-switch .lang-link._active,
  .mob-contacts__lang-switch .lang-link:hover{
      text-decoration:underline;
  }
  
  /* === Fix 2025-07-03: align bottom navigation to left on small screens === */
  /* === SWIPE FIX: элементы должны свайпаться, а не сжиматься === */
  @media (max-width: 900px) {
    #section-navigation{
      position: static !important;
      display: flex !important;
      justify-content: center !important; /* Центрируем кнопки управления */
      align-items: center !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      flex-wrap: nowrap !important;
      width: 100% !important;
      max-width: 100vw !important;
      gap: 20px !important;
      padding: 0 15px 0 15px !important;
      padding-right: 30px !important; /* Отступ справа, чтобы последний элемент частично показывался */
      background: transparent !important;
      letter-spacing: 0 !important;
      font-size: 0 !important;
      margin: 0 !important;
      min-width: 100% !important;
      box-sizing: border-box !important;
      scrollbar-width: none !important;
      -webkit-overflow-scrolling: touch !important;
      overscroll-behavior-x: contain !important;
      touch-action: pan-x !important;
    }
    #section-navigation .control-btn{
      flex-shrink: 0 !important;
      flex-grow: 0 !important;
      flex-basis: auto !important;
      min-width: 40px !important;
      max-width: 40px !important;
      min-height: 40px !important;
      max-height: 40px !important;
      width: 40px !important;
      height: 40px !important;
      box-sizing: border-box !important;
      touch-action: pan-x !important;
    }
    #section-navigation::-webkit-scrollbar{
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }
    #section-navigation .control-btn img, #section-navigation .control-btn svg {
      width: 32px !important;
      height: 32px !important;
      flex-shrink: 0 !important;
    }
  }
  
  /* === AR modal text hidden (Sketchfab) === */
  #sketchfab-ar-wrapper .text,
  #skfb-arkit-modal .text,
  .sketchfab-ar-modal .text,
  #sketchfab-ar-wrapper a,
  #skfb-arkit-modal a,
  .sketchfab-ar-modal a,
  #sketchfab-ar-wrapper .link,
  #skfb-arkit-modal .link,
  .sketchfab-ar-modal .link,
  #sketchfab-ar-wrapper .cta,
  #skfb-arkit-modal .cta,
  .sketchfab-ar-modal .cta,
  .overlay-link {
    display:none !important;
  }
  
  #cart-share-btn, .cart-share-btn{
    background:transparent;
    border:none;
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
  #cart-submit-btn{display:inline-flex;align-items:center;gap:6px;}
  .cart-share-btn svg{stroke:#666;width:20px;height:20px;}
  
  .cart-actions{display:flex;align-items:center;gap:8px;width:100%;}
  #cart-submit-btn{flex:1 1 auto;max-width:calc(100% - 48px);display:inline-flex;align-items:center;justify-content:center;} /* centered */
  .cart-share-btn{flex:0 0 40px;}
  
  #cart-submit-btn, .cart-share-btn{
    height:55px;
  }
  
  .cart-pdf-btn{flex:0 0 40px;border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
  #cart-submit-btn{flex:1 1 auto;max-width:calc(100% - 96px);display:inline-flex;align-items:center;justify-content:center;} /* centered with two icons */
  
  /* Cart swatch size */
  .cart-item img.swatch, .cart-item img[src^="data:image"]{
    width:20px !important;
    height:20px !important;
    max-width:20px !important;
    border:none;
  }

/* === 2025-07-03 — Remove rounded corners of overall viewport (desktop & mobile) === */
html, body, #page, .site-content,
.uc-container #model-container,
#rec983400371,  /* 3D canvas wrapper */
#color-section,
#section-navigation,
#bottom-section {
  border-radius: 0 !important;
}

/* === Finish toggle: make matte / gloss into slider pill === */
.colors-section__btns{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:0;
    padding:4px;
    margin:0 auto 30px auto;
    width:max-content;
    background:rgba(255,255,255,0.18); /* glass */
    border:1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius:40px;
    position:relative;
}
.colors-section__btns button{
    flex:0 0 auto;
    width:96px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    color:#333;
    background:transparent;
    border:none;
    cursor:pointer;
    position:relative;
    z-index:2;
}
.colors-section__btns button._active{
    color:#fff;
}
.colors-section__btns div{
    position:absolute;
    top:4px;
    left:4px;
    width:calc(50% - 4px);
    height:calc(100% - 8px);
    background:#007bff;
    border-radius:32px;
    box-shadow:0 2px 6px rgba(0,0,0,0.15) inset;
    transition:transform 0.3s ease;
    pointer-events:none;
}
.colors-section__btns div._transform{
    transform:translateX(100%);
}

/* --- Glass pill fine-tune --- */
.colors-section__btns{background:rgba(255,255,255,0.9)!important;border:1px solid rgba(0,0,0,0.08)!important;border-radius:50px!important;box-shadow:0 1px 3px rgba(0,0,0,0.08) inset!important;}
.colors-section__btns div{border-radius:50px!important;}

/* --- Bottom navigation buttons (Exterior / Colors / Wheels / Gallery / Play) --- */
#section-navigation .control-btn{
  background:rgba(255,255,255,0.18); /* glass */
  border:1px solid rgba(255,255,255,0.35);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-radius:14px;
  box-shadow:0 0 4px rgba(0,0,0,0.1) inset;
}
@media (hover:hover){
  #section-navigation .control-btn:hover img{transform:scale(1.1);}
}
#section-navigation .control-btn.active{
  background:rgba(0,123,255,0.25);
  border-color:rgba(0,123,255,0.7);
}

/* === Finish buttons match filter style === */
.colors-section__btns{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;gap:8px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;}
.colors-section__btns div{display:none!important;}
.colors-section__btns button{display:flex!important;align-items:center!important;justify-content:center!important;padding:6px 14px!important;background:rgba(0,0,0,0.03)!important;border:1px solid #bbb!important;border-radius:20px!important;font-size:13px!important;color:#333!important;transition:background-color .3s,border-color .3s!important;}
.colors-section__btns button._active{background:#007bff!important;border-color:#007bff!important;color:#fff!important;}

/* === Finish toggle as single pill === */
.colors-section__btns{display:grid!important;grid-template-columns:1fr 1fr!important;padding:5px!important;margin:0 auto 30px!important;width:max-content!important;background:transparent!important;border:1px solid #bbb!important;border-radius:25px!important;position:relative!important;gap:0!important;}
.colors-section__btns div{grid-column:1/2!important;grid-row:1/2!important;background:#007bff!important;border-radius:20px!important;transition:transform .3s ease!important;z-index:1!important;display:block!important;height:100%!important;width:100%!important;}
.colors-section__btns div._transform{transform:translateX(100%)!important;}
.colors-section__btns button{grid-column:1/2!important;grid-row:1/2!important;width:100%!important;height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:none!important;border-radius:20px!important;font-size:13px!important;color:#333!important;position:relative!important;z-index:2!important;cursor:pointer!important;}
.colors-section__btns button:nth-child(3){grid-column:2/3!important;}
.colors-section__btns button._active{color:#fff!important;}

/* --- Fix control button corner clipping --- */
#section-navigation .control-btn{border-radius:12px!important;overflow:hidden!important;}

#currency-dropdown,
#currency-dropdown-mob { z-index: 20000; } /* поверх всех */
  
  /* === 2025-07-15 Compact dropdown menu === */

.brand-item{display:flex;align-items:center;gap:8px;padding:6px 10px;height:36px;cursor:pointer;border-radius:4px;}
.brand-item img{width:22px;height:22px;object-fit:contain;}
.brand-item span{font-size:14px;line-height:1;}
/* hover */
.brand-item:hover{background:rgba(0,0,0,.05);} 

/* Mobile brands grid compact */
.mm-brand{padding:8px 6px;}
.mm-brand img{height:50px;width:auto;}

/* Consent checkbox alignment */
.personal-data-agreement input[type="checkbox"]{vertical-align:middle;margin-right:6px;}
.personal-data-agreement{display:flex;align-items:center;gap:6px;font-size:14px;}

/* Align special items (Новые / Популярные) to same row height */
.brand-item.special-item img{width:22px;height:22px;object-fit:contain;}
.brand-item.special-item span{line-height:1;font-size:14px;}

/* Force flex layout even if inline style sets block */
.personal-data-agreement{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    margin:8px 0 !important;
    font-size:14px !important;
    cursor:pointer !important;
    flex-wrap:nowrap !important; /* Не переносим на новую строку */
}

.personal-data-agreement input[type="checkbox"]{
    margin-right:6px !important;
    vertical-align:middle !important;
    appearance:auto !important;
    width:16px !important;
    height:16px !important;
    padding:0 !important;
    background:none !important;
    border:1px solid #666 !important;
    accent-color:#007bff !important;
    display:inline-block !important;
    flex-shrink:0 !important; /* Не сжимается */
}

.personal-data-agreement a{
    display:inline !important;
}

/* В ландшафтном режиме "Очистить корзину" переносим на новую строку с отступом */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1200px) {
    #cart-clear-link {
        display: block !important;
        margin-top: 35px !important; /* Опускаем ниже */
        margin-left: 0 !important; /* Выравнивание по левому краю */
        margin-bottom: 0 !important;
    }
}

/* Sidebar & modal order form: inputs full width */
.cart-modal-window input[type="text"],
.cart-modal-window input[type="tel"],
.cart-modal-window input[type="email"],
.cart-modal-window textarea,
#sidebar-order-form input[type="text"],
#sidebar-order-form input[type="tel"],
#sidebar-order-form input[type="email"],
#sidebar-order-form textarea{
    width:100% !important;
    box-sizing:border-box;
}

/* Применяем стили контактной формы к полям ввода в корзине */
#cart-order-form input[type="text"],
#cart-order-form input[type="tel"],
#cart-order-form input[type="email"],
#cart-order-form textarea {
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
    background: #f9f9f9 !important;
}

#cart-order-form input[type="text"]:focus,
#cart-order-form input[type="tel"]:focus,
#cart-order-form input[type="email"]:focus,
#cart-order-form textarea:focus {
    outline: none !important;
    border-color: #007bff !important;
    background: white !important;
}

#cart-order-form textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

.cart-modal-window label[style*="min-width"],
#sidebar-order-form label[style*="min-width"]{
    flex:1 1 100% !important;
    min-width:0 !important;
}
.cart-modal-window input[type="text"],
.cart-modal-window input[type="tel"],
.cart-modal-window input[type="email"],
#sidebar-order-form input[type="text"],
#sidebar-order-form input[type="tel"],
#sidebar-order-form input[type="email"]{
    width:100% !important;
}

/* === TEXTURES SECTION STYLES === */
.textures-scroller {
    margin-top: 20px;
}

.texture-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.texture-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.texture-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.texture-item.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

.texture-preview {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.texture-preview img {
    max-width: 140px !important;
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto 8px auto !important;
    display: block !important;
}

.texture-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 6px;
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.texture-item:hover .texture-overlay {
    transform: translateY(0);
}

.texture-name {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    display: block;
    text-align: center;
}

/* Активное состояние текстуры */
.texture-item.active {
    border: 2px solid #007bff !important;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3) !important;
}

.texture-item.active .texture-overlay {
    background: rgba(0, 123, 255, 0.8) !important;
}

/* Стили для контрола масштаба текстуры */
.texture-scale-control {
    border: 1px solid #ddd !important;
    transition: background-color 0.2s ease;
}

.texture-scale-control:hover {
    background: rgba(0,0,0,0.08) !important;
}

#texture-scale-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, #ddd 0%, #007bff 50%, #ddd 100%);
    outline: none;
    border-radius: 3px;
    cursor: pointer;
}

#texture-scale-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#texture-scale-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#texture-scale-value {
    font-weight: 700;
    color: #007bff;
    font-size: 14px;
}

/* Стили для текстур в корзине */
.cart-item .texture-swatch {
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    border: 1px solid #ddd !important;
}

.cart-item[data-group="texture"] {
    background: rgba(0, 123, 255, 0.05) !important;
    border-left: 3px solid #007bff !important;
    padding-left: 8px !important;
}

.cart-item[data-group="texture"] .ci-name {
    font-style: italic !important;
    color: #007bff !important;
}

/* === MOBILE SIDEBAR FIXES === */
@media (max-width: 768px) {
    #options-sidebar {
        width: 90% !important;
        max-width: none !important;
        min-width: auto !important;
        height: 100vh !important;
        height: 100dvh !important; /* динамическая высота вьюпорта для мобильных */
    }
    
    /* Сайдбар должен иметь overflow: visible для крестика на границе */
    #options-sidebar {
        overflow: visible !important;
        position: relative !important;
    }
    
    #options-sidebar .sidebar-panel,
    #options-sidebar #sidebar-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    /* Крестик на границе сайдбара (частично внутри, частично снаружи) */
    #sidebar-close-btn,
    .sidebar-close-btn {
        position: fixed !important;
        top: auto !important;
        right: 15px !important;
        font-size: 24px !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.2) !important;
        touch-action: manipulation !important;
        background: #fff !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #333 !important;
        line-height: 1 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    }
    
    /* Позиционирование крестика на верхней границе сайдбара */
    #options-sidebar.is-open #sidebar-close-btn,
    #options-sidebar.is-open .sidebar-close-btn,
    #options-sidebar.open #sidebar-close-btn,
    #options-sidebar.open .sidebar-close-btn {
        /* Для bottom-sheet сайдбара: крестик на верхней границе */
        bottom: calc(50vh - 18px) !important; /* 50vh = высота сайдбара, -18px = половина кнопки */
    }
    
    /* Заголовки сайдбаров */
    .sidebar-panel h2 {
        position: relative !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-right: 0 !important;
    }
    
    #sidebar-content {
        height: calc(100vh - 20px) !important;
        height: calc(100dvh - 20px) !important;
        padding: 15px !important;
        padding-top: 45px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important; /* плавный скролл на iOS */
    }
    
    /* В ландшафтном режиме на мобильном colors-panel header должен быть ниже хедера */
    @media (orientation: landscape) and (max-height: 600px) {
        #colors-panel .configurator-header {
            margin-top: 43px !important; /* Отступ ниже хедера (43px) */
        }
        
        #colors-panel .header-title-section {
            margin-top: 0 !important; /* Убираем дополнительный отступ */
        }
    }
    
    /* Визуальные индикаторы скролла */
    #sidebar-content::-webkit-scrollbar {
        width: 6px !important;
        background: rgba(0,0,0,0.1) !important;
    }
    
    #sidebar-content::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3) !important;
        border-radius: 3px !important;
    }
    
    #sidebar-content::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.5) !important;
    }
    
    /* Градиент внизу чтобы показать что есть еще контент */
    #sidebar-content::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(transparent, rgba(245, 245, 245, 0.8));
        pointer-events: none;
        margin-top: -20px;
        z-index: 1;
    }
    
    .sidebar-panel {
        padding-bottom: 30px !important; /* дополнительный отступ внизу */
    }
    
    /* Улучшаем сетку элементов на мобильном */
    .items-scroller {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Текстуры на мобильном */
    .texture-items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .texture-item {
        min-height: 80px !important;
    }
}

@media (max-width: 480px) {
    #options-sidebar {
        width: 95% !important;
    }
    
    #sidebar-content {
        padding: 10px !important;
        padding-top: 40px !important;
    }
    
    /* Mobile ≤480px: две карточки в строке */
    .items-scroller {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Убираем растягивание картинок на всю ширину в option-item */
    .option-item img {
        max-width: 100% !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    .texture-items-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- BASIC COLORS (Базовые цвета) smaller size --- */
.colors__individual-colors.glossy-colors > div {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 10px !important; /* reduce extra blank space */
}
.colors__individual-colors.glossy-colors .color-item {
    width: 48px !important;
    height: 42px !important;
}
.colors__individual-colors.glossy-colors .color-swatch {
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}

/* === FINAL OVERRIDE: reduce vertical space of Basic colors === */
.colors__individual-colors div:not(:last-child){
    margin-bottom: 10px !important;
}
.colors__individual-colors{
    margin-bottom: 0 !important;
}

/* === Texture & Tint vertical sliders === */
.texture-adjustments{display:flex;gap:24px;justify-content:center;align-items:flex-start;margin:15px 0;}
.adjust-slider{display:flex;flex-direction:column;align-items:center;gap:8px;width:40px;}
.adjust-label{font-size:13px;font-weight:500;color:#333;}
.adjust-slider input[type=range]{writing-mode:vertical-lr;direction:rtl;height:160px;width:6px;border-radius:3px;background:#ddd;outline:none;margin:0;accent-color:#007bff;}
.adjust-slider input[type=range]::-webkit-slider-thumb{width:18px;height:18px;border-radius:50%;background:#007bff;border:2px solid #fff;cursor:pointer;box-shadow:0 2px 4px rgba(0,0,0,.25);}

/* === Slider fine-tune === */
.adjust-slider input[type=range]{width:6px!important;height:180px!important;display:block;margin:0 auto!important;}

/* Приводим install-option-sidebar-card к размерам option-item */
#install-option-sidebar-card {
    padding: 5px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}

#install-option-sidebar-card:hover {
    border-color: #aaa !important;
    box-shadow: none !important;
}

#install-option-sidebar-card img {
    max-height: 140px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

#wheels-panel .product-grid,
#wheels-panel .options-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
#wheels-panel .product-grid .option-item img {
    max-height: 140px !important; /* идентично экстерьеру */
    height: auto !important;
    width: 100% !important;
    object-fit: cover !important;
}

#wheels-panel .product-grid .product-card img {
    height: auto !important;   /* переопределяем height:100% */
    max-height: 140px !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* --- Mobile icon size fix merged --- */
@media (max-width: 767px){
  .bottom-nav-icons .icon-btn img{height:32px!important;width:32px!important;}
}

/* Удалены переопределения размеров изображений - используем стили как в exterior */

/* === GM Gallery Modal (ПОЛНАЯ ИЗОЛЯЦИЯ) === */
#gallery-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    transform: translateY(100%);
    transition: transform 0.8s ease;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOS Safari smooth scroll */
    display: none;
    padding: 40px 20px;
    box-sizing: border-box;
    /* Safari flexbox fixes */
    will-change: transform;
    -webkit-transform: translateY(100%);
}

#gallery-modal-container._active {
    transform: translateY(0);
    -webkit-transform: translateY(0); /* Safari */
    display: block;
}

.gm-open {
    overflow: hidden;
}

.gm-modal-wrapper {
    max-width: 1190px; /* уменьшено на 15% от 1400px */
    margin: 0 auto;
    position: relative;
    min-height: 100vh; /* чтобы контакты могли позиционироваться относительно wrapper */
}

.gm-modal-container {
    display: grid;
    grid-template-columns: 1fr 100px;
    grid-template-rows: auto auto 1fr auto;
    row-gap: 40px;
    background: #fff;
    font-family: Arial, sans-serif;
    align-items: start;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
}

.gm-title {
    padding: 40px 40px 0;
    position: relative;
    grid-column: 1;
    grid-row: 1;
}

.gm-title h2 {
    margin: 0 0 14px;
    color: #222;
    font-size: 28px;
    font-weight: 700;
}

.gm-title span {
    color: #666;
    font-size: 14px;
}

.gm-title button {
    position: absolute;
    top: 50%;
    right: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
    border-radius: 50%;
}

.gm-title button:hover {
    background: #f0f0f0;
}

.gm-title button svg {
    width: 24px;
    height: 24px;
}

.gm-video {
    position: relative;
    padding-bottom: 56.25%;
    margin: 0 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gm-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gm-text {
    padding: 0 40px;
}

.gm-text h2 {
    margin: 0 0 14px;
    color: #222;
}

.gm-text p {
    line-height: 1.6;
    color: #555;
}

.gm-grid {
    margin: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    grid-column: 1;
    grid-row: 4;
}

.gm-grid > div {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.gm-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gm-grid .large {
    grid-column: 1 / -1;
}

.gm-float {
    position: sticky;
    top: 95px;
    transform: translateX(100%);
    display: grid;
    row-gap: 20px;
    width: 100px;
    z-index: 2001;
    justify-self: end;
    grid-column: 2;
    grid-row: 1/5;
}

@media (max-width: 1300px) {
    .gm-float {
        right: 20px;
    }
}

.gm-float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #959595;
    text-align: center;
}

.gm-float-item a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #fff;
    -webkit-transition: -webkit-transform 0.3s, background-color 0.3s;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    /* Safari stabilization */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.gm-float-item a:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.gm-float-item img {
    width: 50%;
    display: block;
}

/* Mobile адаптация */
@media (max-width: 991.98px) {
    #gallery-modal-container {
        padding: 20px 10px;
    }
    
    .gm-modal-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
    }
    
    .gm-title {
        padding: 30px 30px 0;
        grid-column: 1;
        grid-row: 1;
    }
    
    .gm-video {
        grid-column: 1;
        grid-row: 2;
    }
    
    .gm-text {
        grid-column: 1;
        grid-row: 3;
    }
    
    .gm-grid {
        grid-column: 1;
        grid-row: 4;
    }
    
    .gm-video,
    .gm-grid {
        margin: 0 30px;
    }
    
    .gm-text {
        padding: 0 30px;
    }
    
    .gm-float {
        position: static;
        width: auto;
        grid-template-columns: repeat(auto-fill, 40px);
        gap: 12px;
        justify-content: center;
        margin: 30px 30px;
        right: auto;
        top: auto;
    }
    
    .gm-float-item span {
        display: none;
    }
    
    .gm-float-item a {
        width: 40px;
        height: 40px;
        border: 1px solid #e8e8e8;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    #gallery-modal-container {
        padding: 15px 5px;
    }
    
    .gm-title {
        padding: 20px 20px 0;
    }
    
    .gm-video,
    .gm-grid {
        margin: 0 20px;
    }
    
    .gm-text {
        padding: 0 20px;
    }
    
    .gm-modal-container {
        gap: 20px;
    }
}

/* === Safari-specific fixes === */
@supports (-webkit-appearance: none) {
    #gallery-modal-container {
        /* Safari backdrop-filter enhancement */
        -webkit-backdrop-filter: blur(8px) saturate(180%);
    }
    
    .gm-modal-container {
        /* Fallback для старых версий Safari без gap support */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
    }
    
    .gm-modal-container > * {
        margin-bottom: 40px;
    }
    
    .gm-modal-container > *:last-child {
        margin-bottom: 0;
    }
    
    .gm-grid {
        /* Safari flexbox stability */
        -webkit-flex-wrap: wrap;
        -webkit-justify-content: flex-start;
        -webkit-align-items: stretch;
    }
    
    .gm-grid > div {
        /* Force Safari to respect flex-basis */
        -webkit-flex-basis: 50%;
        width: 50%;
        -webkit-box-sizing: border-box;
    }
    
    .gm-grid .large {
        -webkit-flex-basis: 100%;
        width: 100%;
    }
}.gm-gallery-grid {
    margin: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 16px;
    grid-auto-flow: dense;
    align-content: stretch;
}

.gm-gallery-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0f0f0f;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gm-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.gm-gallery-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.gm-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gm-gallery-item:hover .gm-gallery-image {
    transform: scale(1.04);
}

.gm-gallery-item--portrait {
    grid-row: span 2;
    background: #050505;
}

.gm-gallery-item--portrait .gm-gallery-image {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.gm-gallery-item--wide {
    grid-column: span 2;
}

.gm-gallery-item--hero {
    grid-column: span 2;
    grid-row: span 2;
}

/* === Gallery Grid Responsive Styles === */
@media (max-width: 991.98px) {
    .gm-gallery-grid {
        margin: 0 20px;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .gm-gallery-grid {
        margin: 0 15px;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }
    
    .gm-gallery-item--portrait {
        grid-row: span 2;
    }
    
    .gm-gallery-item--hero {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gm-gallery-item--wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .gm-gallery-grid {
        margin: 0 10px;
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 12px;
    }
    
    .gm-gallery-item,
    .gm-gallery-item--portrait,
    .gm-gallery-item--wide,
    .gm-gallery-item--hero {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .gm-gallery-item--portrait .gm-gallery-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#cn-header .header-elements .right-side{display:flex;align-items:center;gap:8px;}
/* =================================================================================== */
/* ФИНАЛЬНЫЕ ПРАВИЛА - МАКСИМАЛЬНЫЙ ПРИОРИТЕТ */
/* =================================================================================== */

/* МОБИЛЬНЫЕ УСТРОЙСТВА (< 992px): bottom-section опущен и центрирован */
@media (max-width: 991.9px) {
  #bottom-section {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 20px !important;
    /* Иконки на 5px выше полосы Safari iOS */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5px) !important;
  }
}

/* iOS iPhone: опускаем панель до уровня перекрывающей полосы Sketchfab */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 991.9px) {
    #bottom-section {
      /* Опускаем панель до уровня полосы (убираем отступ +5px для iOS) */
      bottom: env(safe-area-inset-bottom, 0px) !important;
    }
  }
}


/* Exterior sidebar inputs: match cart styles (strong override) */
#exterior-panel #sidebar-order-form input[type="text"],
#exterior-panel #sidebar-order-form input[type="tel"],
#exterior-panel #sidebar-order-form input[type="email"],
#exterior-panel #sidebar-order-form textarea{
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
    background: #f9f9f9 !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#exterior-panel #sidebar-order-form input[type="text"]:focus,
#exterior-panel #sidebar-order-form input[type="tel"]:focus,
#exterior-panel #sidebar-order-form input[type="email"]:focus,
#exterior-panel #sidebar-order-form textarea:focus{
    outline: none !important;
    border-color: #007bff !important;
    background: #ffffff !important;
}
#exterior-panel #sidebar-order-form textarea{
    resize: vertical !important;
    min-height: 100px !important;
}

/* Exterior consent label: keep text and link on proper wrapped line */
#exterior-panel .personal-data-agreement{
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin: 8px 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}
#exterior-panel .personal-data-agreement input[type="checkbox"]{
    margin-right: 6px !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}
#exterior-panel .personal-data-agreement a{
    display: inline !important;
    white-space: normal !important;
}

/* Мобильные крестики для exterior и wheels на iOS */
@media (max-width: 991.9px) {
    /* Скрываем крестик внутри h2 на мобильных для exterior и wheels */
    #exterior-panel h2 #sidebar-close-btn,
    #exterior-panel h2 .sidebar-close-btn,
    #wheels-panel h2 .sidebar-close-btn {
        display: none !important;
    }
    
    /* Показываем мобильный крестик для exterior - позиция на границе сайдбара (для iOS iframe) */
    #exterior-panel #sidebar-close-btn,
    #exterior-panel .sidebar-close-btn {
        display: flex !important;
        position: absolute !important;
        top: -18px !important; /* Половина кнопки снаружи панели */
        right: 20px !important;
        z-index: 10001 !important;
        background: #fff !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.2) !important;
        touch-action: manipulation !important;
    }
    
    /* Показываем мобильный крестик для wheels - позиция на границе сайдбара (для iOS iframe) */
    #wheels-panel .sidebar-close-btn {
        display: flex !important;
        position: absolute !important;
        top: -18px !important; /* Половина кнопки снаружи панели */
        right: 20px !important;
        z-index: 10001 !important;
        background: #fff !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.2) !important;
        touch-action: manipulation !important;
    }
    
    /* Убеждаемся, что панели имеют position relative для правильного позиционирования absolute */
    #exterior-panel,
    #wheels-panel,
    #colors-panel {
        position: relative !important;
    }
}

    /* Показываем крестик только когда панель открыта */
    /* Показываем крестик когда сайдбар открыт - используем absolute для iOS iframe на границе */
    #options-sidebar.is-open #exterior-panel #sidebar-close-btn,
    #options-sidebar.is-open #exterior-panel .sidebar-close-btn,
    #options-sidebar.is-open #wheels-panel .sidebar-close-btn,
    #options-sidebar.open #exterior-panel #sidebar-close-btn,
    #options-sidebar.open #exterior-panel .sidebar-close-btn,
    #options-sidebar.open #wheels-panel .sidebar-close-btn {
        display: flex !important;
        position: absolute !important;
        top: -18px !important;
        right: 20px !important;
        z-index: 10002 !important;
    }
    
    /* Для colors-panel крестик немного ниже */
    #options-sidebar.is-open #colors-panel .colors-mobile-close,
    #options-sidebar.open #colors-panel .colors-mobile-close {
        display: flex !important;
        position: absolute !important;
        top: 5px !important;
        right: 20px !important;
        z-index: 10002 !important;
    }
    
    /* Убеждаемся, что sidebar-content не обрезает крестик сверху */
    #options-sidebar #sidebar-content {
        padding-top: 0 !important; /* Убираем padding-top чтобы крестик был виден */
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    /* Убеждаемся, что панели не обрезают крестик */
    #exterior-panel,
    #wheels-panel {
        overflow: visible !important;
        padding-top: 18px !important; /* Добавляем отступ сверху для крестика */
    }
    
    /* Для colors-panel убираем padding-top, так как там нет h2 заголовка */
    #colors-panel {
        overflow: visible !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
/* Tuning Option Variants */
.option-variants-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid #eee;
}

.variant-item {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-item:hover {
    transform: scale(1.05);
    border-color: #999;
}

.variant-item._active {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.variant-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.variant-item.variant-body-color .variant-color-swatch {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #888;
}

/* Mobile adjustments */
@media (max-width: 991.9px) {
    .variant-item {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}
