.habee-category-carousel {
    --habee-gap: 24px;
    --habee-visible-columns: var(--habee-columns, 6);
    position: relative;
    width: 100%;
}

.habee-category-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--habee-gap);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.habee-category-cards::-webkit-scrollbar {
    display: none;
}

.habee-category-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(
        (100% - (var(--habee-visible-columns) - 1) * var(--habee-gap))
        / var(--habee-visible-columns)
    );
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    color: #111111;
    text-decoration: none !important;
    border-radius: 0;
    scroll-snap-align: start;
}

.habee-category-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}

.habee-category-card__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    transition: transform .25s ease;
}

.habee-category-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 12px 10px;
    background: #ffffff;
    color: #111111;
    font-size: clamp(17px, 1.2vw, 22px);
    line-height: 1.15;
    font-weight: 500;
    text-align: center;
}

.habee-category-card:hover .habee-category-card__image {
    transform: scale(1.02);
}

.habee-category-card:hover .habee-category-card__title {
    color: #221b63;
}

.habee-category-card:focus-visible,
.habee-category-cards:focus-visible {
    outline: 2px solid #221b63;
    outline-offset: 3px;
}

.habee-category-carousel__arrow {
    position: absolute;
    z-index: 5;
    top: calc(50% - 31px);
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #111111;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.habee-category-carousel__arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.habee-category-carousel__arrow--prev {
    left: -23px;
}

.habee-category-carousel__arrow--next {
    right: -23px;
}

.habee-category-carousel__arrow[disabled],
.habee-category-carousel__arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .habee-category-carousel {
        --habee-gap: 20px;
        --habee-visible-columns: 3;
    }

    .habee-category-carousel__arrow--prev {
        left: -18px;
    }

    .habee-category-carousel__arrow--next {
        right: -18px;
    }
}

@media (max-width: 767px) {
    .habee-category-carousel {
        --habee-gap: 14px;
        --habee-visible-columns: 2;
    }

    .habee-category-card__title {
        min-height: 52px;
        padding: 10px 8px;
        font-size: 16px;
    }

    .habee-category-carousel__arrow {
        width: 38px;
        height: 38px;
        font-size: 21px;
        top: calc(50% - 26px);
    }

    .habee-category-carousel__arrow--prev {
        left: 5px;
    }

    .habee-category-carousel__arrow--next {
        right: 5px;
    }
}
