.lh-cat-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.lh-cat-slider-viewport {
    overflow: hidden; /* js потом ставит overflow-x:auto */
    flex: 1 1 auto;
}

.lh-cat-slider-track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

/* стрелки по умолчанию спрятаны */
.lh-cat-arrow {
    display: none;
    border: 1px solid #97bf39;
    background: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.lh-cat-arrow:hover {
    background: #97bf39;
    color: #fff;
}

/* когда есть что листать вручную */
.lh-cat-slider--manual .lh-cat-arrow {
    display: inline-flex;
}

/* скрываем полосу, но не скролл */
.lh-scroll-hidden::-webkit-scrollbar {
    display: none;
}
.lh-scroll-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* drag cursor */
.lh-cat-slider-viewport.lh-is-dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* КАРТОЧКА КАТЕГОРИИ */

.lh-cat-slide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    padding: 16px;
    margin-right: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
    flex: 0 0 auto; /* ширина задаётся inline-стилем */
    overflow: hidden; /* чтобы картинка повторяла радиус */
}

.lh-cat-slide:last-child {
    margin-right: 0;
}

.lh-cat-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.lh-cat-image img,
.lh-cat-image picture,
.lh-cat-image svg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* нижний блок */

.lh-cat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 8px;
}

.lh-cat-bottom--icon-left {
    flex-direction: row-reverse;
}

.lh-cat-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

/* кнопка / иконка */

.lh-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    border: 1px solid #97bf39;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.lh-cat-btn-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Elementor editor tweaks */

.elementor-editor-active .lh-cat-slider-wrapper {
    align-items: flex-start;
}

.elementor-editor-active .lh-cat-slider-viewport {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.elementor-editor-active .lh-cat-slider-track {
    transform: none !important;
}

.elementor-editor-active .lh-cat-slide {
    flex: 0 0 220px;
    max-width: 220px;
    margin-right: 12px;
}
.lh-cat-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: block;
    flex: 1 1 auto; /* <-- главное */
}
/* плавный поворот иконки */
.lh-cat-btn i,
.lh-cat-btn svg,
.lh-cat-btn img,
.lh-cat-btn .lh-cat-btn-svg {
    transition: transform .3s ease;
}

/* при наведении на всю карточку – крутим иконку */
.lh-cat-slide:hover .lh-cat-btn i,
.lh-cat-slide:hover .lh-cat-btn svg,
.lh-cat-slide:hover .lh-cat-btn img,
.lh-cat-slide:hover .lh-cat-btn .lh-cat-btn-svg {
    transform: rotate(-45deg);
}
