/* VEXORA Category Carousel Slider */
.vexora-category-carousel {
    --vexora-gap: 20px;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.vexora-category-carousel *,
.vexora-category-carousel *::before,
.vexora-category-carousel *::after {
    box-sizing: border-box;
}

.vexora-category-carousel__viewport {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.vexora-category-carousel__track {
    width: 100%;
    display: flex;
    gap: var(--vexora-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    padding: 4px 0;
    scroll-snap-type: x proximity;
}

.vexora-category-carousel__track::-webkit-scrollbar {
    display: none;
}

.vexora-category-carousel__track:active {
    cursor: grabbing;
}

.vexora-category-carousel__item {
    flex: 0 0 calc((100% - 5 * var(--vexora-gap)) / 6);
    min-width: 0;
    text-align: center;
    scroll-snap-align: start;
}

.vexora-category-carousel__link {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.vexora-category-carousel__link:hover {
    transform: translateY(-2px);
}

.vexora-category-carousel__image {
    width: 100%;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.vexora-category-carousel__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vexora-category-carousel__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 4px;
}

.vexora-category-carousel__count {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

.vexora-category-carousel__title {
    margin: 0;
    padding: 0 4px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrows */
.vexora-category-carousel__arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #00594f;
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.vexora-category-carousel__arrow:hover {
    background: #003f38;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.vexora-category-carousel__arrow--prev {
    left: -8px;
}

.vexora-category-carousel__arrow--next {
    right: -8px;
}

/* Dots */
.vexora-category-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    width: 100%;
}

.vexora-category-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #00594f;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.vexora-category-carousel__dot.is-active {
    background: #00594f;
    transform: scale(1.2);
}

.vexora-category-carousel__dot:hover {
    background: rgba(0, 89, 79, 0.4);
}

/* Tablet */
@media (max-width: 1024px) {
    .vexora-category-carousel__item {
        flex-basis: calc((100% - 3 * var(--vexora-gap)) / 4);
    }

    .vexora-category-carousel__image {
        height: 90px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .vexora-category-carousel {
        padding: 0 6px;
    }

    .vexora-category-carousel__track {
        gap: 10px;
        padding: 4px 2px;
    }

    .vexora-category-carousel__item {
        flex: 0 0 calc((100% - var(--vexora-gap)) / 2);
    }

    .vexora-category-carousel__image {
        height: 80px;
        border-radius: 6px;
    }

    .vexora-category-carousel__title {
        font-size: 12px;
        padding: 0 2px;
    }

    .vexora-category-carousel__count {
        font-size: 11px;
    }

    .vexora-category-carousel__arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .vexora-category-carousel__arrow--prev {
        left: 2px;
    }

    .vexora-category-carousel__arrow--next {
        right: 2px;
    }

    .vexora-category-carousel__dots {
        padding-top: 10px;
        gap: 6px;
    }

    .vexora-category-carousel__dot {
        width: 8px;
        height: 8px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .vexora-category-carousel__track {
        scroll-behavior: auto;
    }

    .vexora-category-carousel__link {
        transition: none;
    }

    .vexora-category-carousel__arrow {
        transition: none;
    }

    .vexora-category-carousel__dot {
        transition: none;
    }
}
