

/* Start:/local/templates/eckse_shop/components/bitrix/catalog/eckse_catalog/style.css?179148557016361*/
/* Общий контейнер каталога */
.catalog-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.catalog-title {
    font-size: 25px;
    font-weight: 700;
    color: #111;
    margin: 20px 0;
}



/* --- 1. Хлебные крошки --- */
.catalog-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.catalog-breadcrumb .bx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-breadcrumb .bx-breadcrumb-item {
    display: flex;
    align-items: center;
    color: #666;
}

.catalog-breadcrumb .bx-breadcrumb-item a {
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: inherit;
}
.bx-breadcrumb .bx-breadcrumb-item span {
    font-family: inherit !important;
}

.catalog-breadcrumb .bx-breadcrumb-item a:hover {
    text-decoration: underline;
}

/* --- 2. Сетка подкатегорий --- */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.subcategory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.subcategory-item:hover {
    border-color: #ff6c00; /* фирменный цвет */
    box-shadow: 0 4px 12px rgba(255, 108, 0, 0.1);
    transform: translateY(-2px);
}

.subcategory-img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.subcategory-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* ДВУХКОЛОНОЧНЫЙ МАКЕТ */
.catalog-layout, .element-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Левая колонка строго 280px, правая занимает всё остальное */
    gap: 32px; /* Отступ между сайдбаром и товарами */
    align-items: start;
}

/* Сайдбар (подстраиваем наш красивый фильтр) */
.catalog-layout__sidebar {
    position: sticky;
    top: 20px; /* Фильтр будет мягко залипать при скролле */
}

/* СЕТКА ТОВАРОВ (Справа) */
.custom-products-grid {
    display: grid;
    /* Автоматически распределяет карточки по 3-4 в ряд в зависимости от ширины экрана */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 24px; /* Отступы между карточками товаров */
}

/* КАРТОЧКА ТОВАРА (Делаем аккуратный e-commerce стиль) */
.product-card {
    background: #ffffff;
    border: 1px solid #f0f2f1;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #e2e5e4;
}

.product-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03); /* Легкий интерактивный зум картинки при наведении */
}

/* Название товара */
.product-card__title {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex-grow: 1; /* Выталкивает цену вниз, чтобы карточки были одной высоты */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Обрезает текст, если название слишком длинное */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* СЛАЙДЕР И СЕКТОРЫ */
.product-card__gallery {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
}
.product-card__images-track {
    width: 100%;
    height: 100%;
    position: relative;
}
.product-card__images-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.product-card__images-track img.is-active {
    opacity: 1;
}

/* Сектора деления мыши */
.product-card__gallery-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2; /* Поверх ссылки, чтобы ловить hover */
}

.gallery-nav-zone {
    flex: 1;
    height: 100%;
}
/* Буллеты слайдера */
.product-card__gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none; /* Чтобы точки не мешали наведению на зоны */
}
.product-card__gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    display: block;
    z-index: 3;
}
.gallery-dot {
    width: 6px; height: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    transition: all 0.2s;
}
.gallery-dot.is-active {
    background: #ff6c00;
    width: 14px;
    border-radius: 3px;
}



/* ОСТАТКИ */
.product-card__stock {
    font-size: 13px;
    margin-bottom: 12px;
}
.stock-status.in-stock { color: #2e7d32; font-weight: 500; }
.stock-status.pre-order { color: #ef6c00; font-weight: 500; }

/* РАЗМЕРЫ */
.product-card__sizes { margin-bottom: 15px; }
.sizes-list {
    display: flex; flex-wrap: wrap; gap: 6px;
    list-style: none; padding: 0; margin: 0;
}
.size-item {
    border: 1px solid #e0e0e0;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    user-select: none;
    transition: all 0.2s ease;
}
.size-item:hover { border-color: #ff6c00; color: #ff6c00; }
.size-item.is-selected { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.size-item.out-of-stock {
    border-style: dashed;
    color: #b0b0b0;
    background: #fafafa;
}

/* АНИМАЦИЯ КНОПКИ С ШАРИКОМ (Ripple Hover Effect) */
.ripple-button {
    position: relative;
    width: 100%;
    height: 44px;
    background: #ff8008; /* Изначально оранжевая кнопка */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.ripple-button__text {
    position: relative;
    z-index: 3;
    pointer-events: none;
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100%;
}

.ripple-circle {
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4); /* Белая полупрозрачная волна (блик) */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.3, 1), height 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
    z-index: 2;
    pointer-events: none;
}

/* При наведении кружок мгновенно расширяется */
.ripple-circle.is-expanded {
    width: 320px;
    height: 320px;
}

/* Цена */
.product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: auto 0 15px;
    display: block;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991px) {
    .catalog-layout, .element-layout {
        grid-template-columns: 1fr; /* На планшетах и мобилках фильтр встает наверх */
        gap: 24px;
    }
}

.catalog-page__layout {
    display: flex;
    gap: 30px; /* Отступ между фильтром и товарами */
}
.catalog-page__sidebar {
    width: 280px; /* Фиксированная ширина фильтра слева */
    flex-shrink: 0;
}
.catalog-page__content {
    flex-grow: 1; /* Товары занимают всё оставшееся пространство */
}

.grid {}

.grid .bx_content_section { margin-bottom: 15px; }

.grid .bx_sidebar { margin-bottom: 15px; }

/* grid2x1 */
.grid2x1 {}

.grid2x1 .bx_content_section {
	float: left;
	width: 66%;
	margin-bottom: 15px;
}

.grid2x1 .bx_sidebar {
	float: right;
	width: 33%;
	margin-bottom: 15px;
	padding-left: 5%;
	box-sizing: border-box;
}









/* FILTERS */

/* Общий контейнер фильтра */
.eckse-filter {
    background: #ffffff;
    border: 1px solid #ebeeec;
    border-radius: 8px;
    padding: 24px;
}

/* Стилизация отдельных блоков (групп фильтрации) */
.filter-group {
    border-bottom: 1px solid #f4f6f5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

/* Шапка группы (кликабельная, с анимацией стрелочки) */
.filter-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group__arrow {
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #999;
    border-right: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -4px;
}

/* Тело группы с контентом */
.filter-group__body {
    margin-top: 16px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 1;
}

/* Логика анимации скрытия блоков */
.filter-group.is-closed .filter-group__body {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
}

.filter-group.is-closed .filter-group__arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* ДИЗАЙН ИНПУТОВ И ПОЛЗУНКА ЦЕНЫ */
.price-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    background: #f7f8f8;
    border: 1px solid #e2e4e4;
    border-radius: 6px;
    padding: 0 12px;
    flex: 1;
    height: 40px;
    transition: border-color 0.2s ease;
}

.price-input-wrapper:focus-within {
    border-color: #ff6c00;
    background: #fff;
}

.price-label {
    font-size: 13px;
    color: #8a8d8d;
    margin-right: 6px;
}

.price-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Конструктор премиум-трека ползунка Битрикса */
.price-slider-container {
    padding: 0 10px;
    margin-bottom: 10px;
}

.price-slider-track {
    position: relative;
    height: 4px;
    background: #e2e4e4;
    border-radius: 2px;
    cursor: pointer;
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: #ff6c00; /* Цвет заполнения между ползунками */
    border-radius: 2px;
}

.price-slider-handle {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid #ff6c00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    z-index: 2;
}

.price-slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50__) scale(1.15);
    box-shadow: 0 0 0 5px rgba(255, 108, 0, 0.15);
}

/* КАСТОМНЫЕ ДИЗАЙНЕРСКИЕ ЧЕКБОКСЫ */
.filter-checkboxes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox__box {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #c8cccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox:hover input ~ .custom-checkbox__box {
    border-color: #ff6c00;
}

.custom-checkbox input:checked ~ .custom-checkbox__box {
    background-color: #ff6c00;
    border-color: #ff6c00;
}

/* Красивая галочка внутри чекбокса */
.custom-checkbox__box:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .custom-checkbox__box:after {
    display: block;
}

.custom-checkbox__text {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.custom-checkbox input:checked ~ .custom-checkbox__text {
    color: #1a1a1a;
    font-weight: 500;
}

.custom-checkbox.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* СТИЛИ КНОПОК ДЕЙСТВИЯ */
.filter-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.filter-btn {
    height: 44px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 100%;
}

.filter-btn--submit {
    background: #ff6c00;
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(255, 108, 0, 0.2);
}

.filter-btn--submit:hover {
    background: #e05f00;
    box-shadow: 0 4px 8px rgba(255, 108, 0, 0.3);
}

.filter-btn--reset {
    background: transparent;
    color: #7a7a7a;
    border: 1px solid #d2d5d5;
}

.filter-btn--reset:hover {
    color: #1a1a1a;
    border-color: #9a9d9d;
    background: #f7f8f8;
}

/* СОВРЕМЕННЫЙ ТУЛТИП (БАДЖ) "ВЫБРАНО: X" */
.filter-popup-badge {
    position: absolute;
    left: calc(100% + 16px);
    top: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    animation: fadeInRight 0.2s ease-out;
}

/* Маленький треугольник тултипа */
.filter-popup-badge:before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #1a1a1a transparent transparent;
}

.filter-badge-link {
    color: #ff6c00;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #ff6c00;
    transition: color 0.2s ease;
}

.filter-badge-link:hover {
    color: #fff;
    border-bottom-color: transparent;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}





















@media (max-width: 960px) {
	.grid2x1 .bx_sidebar { padding-left: 4%; }
}

@media (max-width: 640px) {
	.grid2x1 .bx_content_section,
	.grid2x1 .bx_sidebar {
		width: 100%;
		float: none;
	}

	.grid2x1 .bx_sidebar { padding-left: 3%; }
}

@media (max-width: 479px) {
	.grid2x1 .bx_sidebar { padding-left: 1%; }
}

.catalog-block-header {
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	margin: 5px 0;
	padding: 5px 0;
	border-bottom: 2px solid #d9dee6;
	border-bottom-color: var(--primary);
	color: #000;
}





/* End */


/* Start:/local/templates/eckse_shop/components/bitrix/catalog/eckse_catalog/bitrix/catalog.element/.default/style.css?179148631711385*/
/* КАРТОЧКА ТОВАРА */
.product-detail-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    max-width: 1440px;
    margin: 10px auto 30px;
    padding: 0 10px;
    align-items: start;
}

.detail-left-col {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
}

.detail-right-col {
    display: grid;
    gap: 10px;
    align-items: start;
}


/* ГАЛЕРЕЯ */
.product-gallery {
    display: flex;
    flex-direction: row; /* Превью слева, главное фото справа */
    gap: 15px;
    align-items: flex-start;
    width: 100%;
}

.product-gallery__thumbs {
    display: flex;
    flex-direction: column; /* Вертикальный список превью */
    gap: 10px;
    width: 80px; /* Ширина превью */
    flex-shrink: 0;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.thumb-item { 
    border: 2px solid transparent; 
    border-radius: 6px; 
    cursor: pointer; 
    aspect-ratio: 3/4; 
    overflow: hidden; 
    background: #f7f7f7; 
    transition: border-color 0.15s ease;
}

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

.thumb-item.is-active, 
.thumb-item:hover { 
    border-color: #ff6c00; 
}

.product-gallery__main {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 565px;
    border: 1px solid #eef0f2;
}
.product-gallery__main img {
    display: block;
    object-fit: contain;
    width: 85%;
    height: auto;
    max-height: 80%;
}

/* Описание в правом блоке */
.product-description-section { 
    border-top: 1px solid #eee; 
    padding-top: 20px; 
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-detail-container { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .detail-left-col {
        position: static;
    }
    .product-gallery { 
        flex-direction: column-reverse; /* На смартфонах превью снизу */
    }
    .product-gallery__thumbs { 
        flex-direction: row; 
        width: 100%; 
        max-height: 90px; 
        overflow-x: auto; 
        overflow-y: hidden; 
    }
    .thumb-item { 
        width: 65px; 
        height: 85px; 
        flex-shrink: 0; 
    }
}

/* ИНФОРМАЦИЯ И СЕТКА */
.product-brand { font-size: 13px; text-transform: uppercase; color: #888; display: block; margin-bottom: 4px; }
.product-title { font-size: 25px; font-weight: 700; margin: 20px 0; color: #111; }
.section-title { font-size: 14px; font-weight: 600; color: #444; display: block; margin: 15px 0 0; }

.sizes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 8px; }
.size-box { border: 1px solid #e0e0e0; border-radius: 6px; padding: 8px 4px; text-align: center; cursor: pointer; background: #fff; }
.size-name { display: block; font-size: 15px; font-weight: 700; }
.size-sub-text { display: block; font-size: 9px; color: #999; margin-top: 1px; }
.size-box:hover { border-color: #ff6c00; }
.size-box.is-selected { border-color: #ff6c00; background: #fff3eb; }
.size-box.is-out { border-style: dashed; background: #fafafa; opacity: 0.7; }

/* КРАСИВЫЕ ХАРАКТЕРИСТИКИ С ТОЧКАМИ */
.product-features-section { margin-top: 30px; }
.features-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.features-list li { display: flex; align-items: bottom; justify-content: space-between; font-size: 14px; }
.feature-label { color: #777; white-space: nowrap; }
.feature-dots { flex: 1; border-bottom: 1px dotted #ccc; margin: 0 8px; position: relative; top: -4px; }
.feature-value { color: #111; font-weight: 500; text-align: right; }

/* САЙДБАР С КАРТОЧКАМИ */
.product-sidebar-actions { display: flex; flex-direction: column; gap: 20px; }
.sidebar-buy-card { background: #fff; border: 1px solid #eef0f2; border-radius: 8px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }

.product-price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.price-current { font-size: 28px; font-weight: 800; color: #111; }
.price-old { font-size: 16px; color: #aaa; text-decoration: line-through; }
.product-stock-status { margin-bottom: 20px; font-size: 13px; }


/* БЛОК СО ССЫЛКАМИ */
.links_block a {color: #ff6c00; text-decoration: underline; cursor: pointer; display: block; margin: 10px 0}

/* КНОПКА С НАПЛЫВОМ */
.detail-ripple-btn { position: relative; width: 100%; height: 50px; background: #ff6c00; color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; overflow: hidden; z-index: 1; }
.btn-text-content { position: relative; z-index: 3; pointer-events: none; }
.btn-ripple-layer { position: absolute; width: 0; height: 0; background: #e05f00; border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.4s ease, height 0.4s ease; z-index: 2; pointer-events: none; }
.detail-ripple-btn:hover .btn-ripple-layer.is-active { width: 500px; height: 500px; }

.consult-icon { margin-bottom: 14px; }
.consult-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 10px 0; }
.consult-text { font-size: 13px; color: #666; line-height: 1.5; margin: 0 0 18px 0; }
.consult-btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 100%; height: 42px; border: 1px solid #ff6c00; border-radius: 6px; 
    color: #ff6c00; text-decoration: none; font-size: 14px; font-weight: 600; 
    transition: all 0.2s ease; 
}
.consult-btn:hover { background: #ff6c00; color: #fff; }

.product-description-section { border-top: 1px solid #eee; padding-top: 20px; }

/* Адаптивность */
@media (max-width: 1200px) {
    .detail-right-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .product-detail-container { grid-template-columns: 1fr; gap: 20px; }
    .product-gallery { height: 420px; }
}




/* ==========================================================================
   БЛОКИ ВЫБОРА ОПЦИЙ (МАТЕРИАЛ, КАБЛУК, ЗАДИНКА, РАЗМЕР)
   ========================================================================== */

.product-material-section,
.product-kabluk-section,
.product-zadinka-section {
    margin-top: 20px;
}

.materials-grid,
.kabluk-grid,
.zadinka-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* ОБЩИЙ ЕДИНЫЙ СТИЛЬ КНОПОК-ПЕРЕКЛЮЧАТЕЛЕЙ */
.material-item,
.kabluk-item,
.zadinka-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px; /* Единая фиксированная высота */
    padding: 0 16px; /* Единые горизонтальные отступы */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    box-sizing: border-box;

    /* Мгновенный отклик: подсвечиваем только нужные свойства без задержек */
    transition: background-color 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease, color 0.08s ease;
    user-select: none;
}

/* Эффект при наведении (без подпрыгивания translateY) */
.material-item:hover,
.kabluk-item:hover,
.zadinka-item:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Быстрый визуальный отклик в момент клика мышью */
.material-item:active,
.kabluk-item:active,
.zadinka-item:active,
.size-box:active {
    transform: scale(0.97); /* Легкое утапливание кнопки без сдвига верстки */
    transition: transform 0.05s ease;
}

/* Активное состояние (Выбрано) */
.material-item.is-selected,
.kabluk-item.is-selected,
.zadinka-item.is-selected {
    border-color: #ff6c00;
    background: #fff8f5;
    color: #1a202c;
    font-weight: 600;
    box-shadow: 0 0 0 1px #ff6c00;
}

/* Иконки / картинки внутри вариантов */
.material-item img,
.kabluk-item img,
.zadinka-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Образцы материалов делаем круглыми */
.material-item img {
    border-radius: 50%;
    object-fit: cover;
}

/* СЕТКА РАЗМЕРОВ */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.size-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    box-sizing: border-box;
    /* Убрано translateY, ускорен transition */
    transition: background-color 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}

.size-box:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.size-box.is-selected {
    border-color: #ff6c00;
    background: #fff8f5;
    box-shadow: 0 0 0 1px #ff6c00;
}

.size-box.is-selected .size-name {
    color: #ff6c00;
}

.size-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
}

.size-sub-text {
    display: block;
    font-size: 10px;
    color: #a0aec0;
    margin-top: 2px;
}

.size-box.is-selected .size-sub-text {
    color: #e66000;
}

.size-box.is-out {
    border-style: dashed;
    background: #f7fafc;
    opacity: 0.65;
}

/* УВЕЛИЧЕННЫЙ И ОПТИМИЗИРОВАННЫЙ ПОПОВЕР (ВСПОЛЫВАЮЩЕЕ ФОТО) */
.option-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    padding: 12px;
    pointer-events: none;
    width: max-content;
    max-width: 380px; /* Увеличено (было 280px) */
}

.option-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.kabluk-item:hover .option-popover,
.zadinka-item:hover .option-popover {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.1s ease-out; /* Быстрое появление */
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, 6px); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, 0); 
    }
}

.kabluk-item .option-popover__img {
    max-width: 340px;  /* Увеличено (было 240px) */
    max-height: 260px; /* Увеличено (было 180px) */
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* End */
/* /local/templates/eckse_shop/components/bitrix/catalog/eckse_catalog/style.css?179148557016361 */
/* /local/templates/eckse_shop/components/bitrix/catalog/eckse_catalog/bitrix/catalog.element/.default/style.css?179148631711385 */
