/* WooCommerce Category Carousel Styles */
.wcc-carousel-container {
    position: relative;
    margin: 40px 0;
    padding: 0 50px;
}

.wcc-carousel {
    display: block !important; /* Override any grid/flex display */
    visibility: hidden; /* Hide until slick initializes */
}

.wcc-carousel.slick-initialized {
    visibility: visible;
}

.wcc-carousel-item {
    padding: 0 10px;
    text-align: center;
    outline: none; /* Remove focus outline from slick */
}

.wcc-category-link {
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.wcc-category-link:hover {
    text-decoration: none;
    color: #333;
    transform: translateY(-5px);
    background: #f8f9fa;
}

.wcc-category-thumbnail {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
    padding-bottom: 100%; /* Square aspect ratio */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wcc-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wcc-category-link:hover .wcc-thumbnail-img {
    transform: scale(1.05);
}

.wcc-placeholder-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcc-placeholder-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.wcc-category-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 0 5px;
    line-height: 1.3;
    color: #2c3338;
}

/* Navigation Arrows */
.wcc-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.wcc-carousel-prev,
.wcc-carousel-next {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-size: 0; /* Hide text */
}

.wcc-carousel-prev:hover,
.wcc-carousel-next:hover {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    transform: scale(1.1);
}

.wcc-carousel-prev:before,
.wcc-carousel-next:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") no-repeat center;
}

.wcc-carousel-next:before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") no-repeat center;
}

.wcc-carousel-prev {
    left: 0;
}

.wcc-carousel-next {
    right: 0;
}

/* Slick Carousel Default Styles Override */
.wcc-carousel .slick-list {
    margin: 0 -10px;
    overflow: hidden;
}

.wcc-carousel .slick-slide {
    float: left;
    padding: 0 10px;
    min-height: 1px;
}

.wcc-carousel .slick-track {
    display: flex !important;
    align-items: center;
}

.wcc-no-categories {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 16px;
}

/* Loading State */
.wcc-loading {
    opacity: 0.7;
}

.wcc-loaded .wcc-carousel {
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wcc-carousel-container {
        padding: 0 45px;
    }
}

@media (max-width: 768px) {
    .wcc-carousel-container {
        padding: 0 40px;
        margin: 30px 0;
    }
    
    .wcc-category-name {
        font-size: 14px;
    }
    
    .wcc-carousel-prev,
    .wcc-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .wcc-carousel-prev:before,
    .wcc-carousel-next:before {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .wcc-carousel-container {
        padding: 0 35px;
    }
    
    .wcc-category-link {
        padding: 8px;
    }
}

/* Subcategory Styles */
.wcc-subcategory .wcc-category-name {
    font-size: 14px;
}

.wcc-depth-2 .wcc-category-name {
    padding-left: 5px;
}

.wcc-depth-3 .wcc-category-name {
    padding-left: 10px;
}

.wcc-category-prefix {
    color: #666;
    font-weight: normal;
}

.wcc-subcategory-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 124, 186, 0.9);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.wcc-subcategory-indicator .dashicons {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

/* Different background for subcategories */
.wcc-depth-2 .wcc-category-link:hover {
    background: #e8f4fd;
}

.wcc-depth-3 .wcc-category-link:hover {
    background: #d1ecf1;
}

/* Responsive adjustments for subcategories */
@media (max-width: 768px) {
    .wcc-subcategory .wcc-category-name {
        font-size: 12px;
    }
    
    .wcc-subcategory-indicator {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .wcc-subcategory-indicator .dashicons {
        width: 10px;
        height: 10px;
        font-size: 10px;
    }
}