/**
 * WooCommerce Categories Shortcode Styles
 * Design with dotted circle border around category images
 * Using Swiper Slider
 */

.wc-categories-slider-wrapper {
    position: relative;
    padding: 0;
}

.wc-categories-slider-wrapper .swiper {
    width: 100%;
    padding: 0;
}

.wc-categories-slider-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.wc-categories-slider-wrapper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* Category Item */
.wc-category-item {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Navigation Arrows */
.wc-categories-slider-wrapper .swiper-button-next,
.wc-categories-slider-wrapper .swiper-button-prev {
    color: #333;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
}

.wc-categories-slider-wrapper .swiper-button-next::after,
.wc-categories-slider-wrapper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.wc-categories-slider-wrapper .swiper-button-next {
    right: 0;
}

.wc-categories-slider-wrapper .swiper-button-prev {
    left: 0;
}

/* Pagination - Hidden */
.wc-categories-slider-wrapper .swiper-pagination {
    display: none;
}

/* Category Link */
.wc-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image Wrapper */
.wc-category-image-wrapper {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dotted Circle Border (like in the image) */
.wc-category-dotted-circle {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f8f8f8;    
    border: 1px dotted #999;
    overflow: hidden;
}

/* Inner circle for better dotted effect */
.wc-category-dotted-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    background: #ffffff;
    z-index: 1;
}

/* Category Image */
.wc-category-image {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wc-category-item:hover .wc-category-image {
    transform: scale(1.2);
}

/* Category Info */
.wc-category-info {
    padding: 10px;
}

/* Category Title */
.wc-category-title {
    font-size: 18px !important;
    font-weight: 400;
    margin: 0;
    color: #333;
}

/* Product Count - Hidden */
.wc-category-count {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wc-category-dotted-circle {
        width: 180px;
        height: 180px;
    }
    
    .wc-category-image {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .wc-category-dotted-circle {
        width: 160px;
        height: 160px;
    }
    
    .wc-category-image {
        width: 120px;
        height: 120px;
    }
    
    .wc-category-title {
        font-size: 16px;
    }
    
    .wc-categories-slider-wrapper .swiper-button-next,
    .wc-categories-slider-wrapper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .wc-categories-slider-wrapper .swiper-button-next::after,
    .wc-categories-slider-wrapper .swiper-button-prev::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wc-category-dotted-circle {
        width: 180px;
        height: 180px;
    }
    
    .wc-category-image {
        width: 140px;
        height: 140px;
    }
}
