/* Общая обертка */
.sm-module-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: e-Ukraine;
    padding: 0 15px;
}

/* Заголовки и баннер (идентичны прошлому блоку) */
.sm-module-title { text-align: center; color: #252D55; font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.sm-module-banner { background-color: #F2F4F8; color: #252D55; text-align: center; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 400; width: fit-content; margin: 0 auto 32px auto; }
.sm-module-banner .badge { background-color: #1C54F3; color: #fff; padding: 0 6px; border-radius: 4px; margin: 0 4px; font-weight: 400; }

/* =======================================
   РАЗМЕТКА CSS GRID (Сайдбар + Слайдер)
   ======================================= */
.sm-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Сайдбар 280px, слайдер занимает остаток */
    gap: 50px;
    align-items: flex-start;
}

/* --- САЙДБАР --- */
.sm-filter-group { margin-bottom: 30px; }
.sm-filter-title { font-size: 14px !important; color: #252D55; margin-bottom: 16px; font-weight: 400; }
.sm-filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }

/* Кнопки категорий */
.sm-filter-btn {
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    background-color: #fff;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    color: #252D55;
    font-family: e-Ukraine;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sm-filter-btn:hover { border-color: #252D55;  color: #252D55; box-shadow: 0px 4px 10.8px 0px #252D5512;}

/* Активная кнопка категории */
.sm-filter-btn.active {
    background-color: #252D55; /* Темно-синий/почти черный цвет макета */
    border-color: #252D55;
    font-weight: 300 !important;
    box-shadow: 0px 4px 10.8px 0px #252D5512;
    color: #fff;
    border-radius: 8px !important;
}

/* --- ЗОНА СЛАЙДЕРА --- */
.sm-slider-area { position: relative; width: 100%; min-width: 0; }
.sm-slider-area.loading { opacity: 0.5; pointer-events: none; }

/* Выравнивание высоты слайдов (как делали ранее) */
.sm-slider-container .slick-track { display: flex !important; }
.sm-slider-container .slick-slide { height: auto !important; display: flex !important; margin: 0 10px; }
.sm-slider-container .slick-slide > div { width: 100%; display: flex; }
.sm-slider-container .product { height: 100%; width: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); padding: 20px; box-sizing: border-box; }
.sm-slider-container .product > a:first-child { flex-grow: 1; }

/* Исправление теней 
.slick-list {overflow: hidden !important; }*/

/* --- СТРЕЛКИ СЛАЙДЕРА --- */
.sm-custom-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 36px; height: 36px; background: #fff; border: 2px solid #fff; box-shadow: 0px 2px 6px 0px #252D551F;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.08); color: #252D55; transition: 0.3s;
}
.sm-custom-arrow:hover { border-color: #252D55; }
.sm-prev { left: -32px; }
.sm-next { right: -32px; }

/* =========================================
   КАСТОМНЫЙ БЛОК ТОЧЕК ПАГИНАЦИИ
   ========================================= */

/* Обертка для всех точек (заменила стандартный .slick-dots) */
.sm-custom-dots-wrapper {
    list-style: none;
    display: flex !important;
    justify-content: center;
    align-items: center; /* Центрируем по вертикали, так как активная точка выше */
    padding: 0;
    margin: 25px 0 0 0 !important;
    gap: 16px; /* Расстояние между точками */
}

/* Slick оборачивает наш <div> в <li>, сбрасываем у него марджины */
.sm-custom-dots-wrapper li {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/* --- ВНЕШНИЙ ВИД НЕАКТИВНОЙ ТОЧКИ --- */
.sm-custom-dot {
    width: 10px;
    height: 10px;
    background-color: #d1d5db; /* Светло-серый цвет */
    border-radius: 50%; /* Делаем круглым */
    transition: all 0.3s ease; /* Плавная анимация при переключении */
}

/* Эффект при наведении на неактивную точку */
.sm-custom-dots-wrapper li:hover .sm-custom-dot {
    background-color: #a0a5af;
}

/* --- ВНЕШНИЙ ВИД АКТИВНОЙ ТОЧКИ (Таблетка) --- */
.sm-custom-dots-wrapper li.slick-active .sm-custom-dot {
    background-color: #1C54F3; /* Ваш фирменный синий цвет */
    border-radius: 4px; /* Скругляем углы как у таблетки */
}

/* =======================================
   АДАПТИВ (Мобилки и Планшеты)
   ======================================= */
/* =======================================
   АДАПТИВ (Мобилки и Планшеты)
   ======================================= */
@media (max-width: 992px) {
    .sm-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ: запрещаем сайдбару растягивать Grid на весь экран */
    .sm-sidebar,
    .sm-filter-group {
        min-width: 0;
        width: 100%;
    }
    
    /* 1. ГЛАВНЫЕ КАТЕГОРИИ (Вертикально) */
    .sm-filter-list {
        flex-direction: column;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .sm-filter-btn {
        width: 100%;
        white-space: normal;
    }

    /* 2. ПОДКАТЕГОРИИ (Горизонтально со скроллом) */
    .sm-filter-list.sm-subcats {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
        scrollbar-width: none; /* Прячем ползунок в Firefox */
    }
    .sm-filter-list.sm-subcats::-webkit-scrollbar {
        display: none; /* Прячем ползунок в Chrome/Safari */
    }

    /* КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ: запрещаем пунктам списка сплющиваться */
    .sm-filter-list.sm-subcats li {
        flex-shrink: 0;
    }
    
    /* Кнопки внутри подкатегорий */
    .sm-filter-list.sm-subcats .sm-filter-btn {
        width: max-content;
        white-space: nowrap;
    }

    /* Сдвиг стрелок слайдера */
    .sm-prev { left: -10px; }
    .sm-next { right: -10px; }
}