/* ==================== CSS ==================== */

/* Общий контейнер раздела */
.css-section-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    user-select: none;
}

/* Контейнер с горизонтальным скроллом */
.css-slider-wrapper {
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.css-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.css-slider-wrapper.css-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Сетка */
.css-slider-content {
    display: grid;
    grid-template-rows: repeat(2, 110px);
    grid-auto-columns: 100px;
    grid-auto-flow: column;
    gap: 10px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Элемент категории */
.css-category-item {
    width: 100px;
    height: 110px;
    text-align: center;
}

/* Ссылка */
.css-category-link {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Круг иконки — фикс для Safari */
.css-icon-circle {
    width: 70px;
    height: 70px;
    background: #f1f1f1 !important;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    /* FIX SAFARI BUG (image cuts background) */
    -webkit-mask-image: -webkit-radial-gradient(white, black);

    /* Тень (как в OLX) */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 5px;
}

/* Картинка внутри круга */
.css-icon-circle img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent !important;
    transition: transform 0.3s ease-in-out;
}

/* Увеличение при наведении */
.css-icon-circle img:hover {
    transform: translate(-50%, -50%) scale(1.2); /* 1.2 = увеличение на 20% */
}


/* ДОБАВЛЕНО: Увеличение картинки при наведении на элемент категории или ссылку */
.css-category-item:hover .css-icon-circle img,
.css-category-link:hover .css-icon-circle img {
    /* Сохраняем центрирование и увеличиваем на 10% */
    transform: translate(-50%, -50%) scale(1.1);
}

/* Иконка-заглушка */
.css-icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: #aeb6b8;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Текст категории */
.css-category-label {
    color: #02282C;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    max-width: 90px;

    /* ограничение двумя строками */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
    max-height: 28px;
}

/* Индикатор прокрутки */
.css-scroll-indicator-root {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.css-scroll-track {
    width: 40px;
    height: 6px;
    background-color: #e2e8ea;
    border-radius: 3px;
    position: relative;
}

.css-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: #aeb6b8;
    border-radius: 3px;

    /* FIX Safari: чтобы тень и цвет отображались */
    -webkit-transform: translateZ(0);
}