/* ==============================================
   Slider Product Category - Swiper Styles
   ============================================== */

/* Container */
.slider-product-category-wrap {
    position: relative;
    padding: 0 25px;
}

/* Swiper */
.slider-cat-swiper {
    overflow: hidden;
}

/* Item */
.slider-cat-item {
    text-align: center;
    padding: 5px;
    text-decoration: none !important;
    display: block;
    transition: transform 0.3s ease;
}

.slider-cat-item:hover {
    transform: translateY(-4px);
}

/* Image wrapper */
.slider-cat-item .cat-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.slider-cat-item:hover .cat-image-wrap {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.slider-cat-item .cat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    transition: transform 0.3s ease;
}

.slider-cat-item:hover .cat-image-wrap img {
    transform: scale(1.05);
}

/* Category name */
.slider-cat-item .cat-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-cat-item:hover .cat-name {
    color: var(--primary-color, #446084);
}

/* --- Swiper Navigation Arrows --- */
.slider-product-category-wrap .swiper-button-prev,
.slider-product-category-wrap .swiper-button-next {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    top: 40%;
}

.slider-product-category-wrap .swiper-button-prev:hover,
.slider-product-category-wrap .swiper-button-next:hover {
    background: var(--primary-color, #446084);
}

.slider-product-category-wrap .swiper-button-prev:after,
.slider-product-category-wrap .swiper-button-next:after {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    transition: color 0.3s ease;
}

.slider-product-category-wrap .swiper-button-prev:hover:after,
.slider-product-category-wrap .swiper-button-next:hover:after {
    color: #fff;
}

.slider-product-category-wrap .swiper-button-prev {
    left: -2px;
}

.slider-product-category-wrap .swiper-button-next {
    right: -2px;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 991px) {
    .slider-product-category-wrap {
        padding: 0 22px;
    }

    .slider-cat-item .cat-name {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 549px) {
    .slider-product-category-wrap {
        padding: 0px;
    }

    .slider-cat-item {
        padding: 3px;
    }

    .slider-cat-item .cat-image-wrap {
        border-radius: 8px;
    }

    .slider-cat-item .cat-name {
        font-size: 11px;
        margin-top: 5px;
    }

    .slider-product-category-wrap .swiper-button-prev,
    .slider-product-category-wrap .swiper-button-next {
        width: 26px;
        height: 26px;
    }

    .slider-product-category-wrap .swiper-button-prev:after,
    .slider-product-category-wrap .swiper-button-next:after {
        font-size: 12px;
    }
}
