/* Common styles for both grid and carousel */
.clpcw-grid,
.clpcw-carousel {
    margin: 20px 0;
}

.clpcw-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    padding: 10px;
}

.clpcw-category {
    text-align: center;
    padding: 0;
    background: none;
    border-radius: 0;
    transition: none;
    position: relative;
    overflow: visible;
    margin-bottom: 10px;
}

/* Remove box hover transform */
.clpcw-category:hover {
    /* No transform or box-shadow here */
}

.clpcw-category a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image styles */
.clpcw-category-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 10px auto;
    background: #f3f8fb;
    border-radius: 50%;
    box-shadow: none;
    padding: 20px;
    transition: background 0.3s;
}

.clpcw-category img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
    background: none;
    box-shadow: none;
    transition: transform 0.3s;
}

.clpcw-category:hover img {
    transform: scale(1.05);
}

/* Category name styles */
.clpcw-category h4 {
    margin: 12px 0 0 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    padding: 0;
    background: none;
}

/* Carousel specific styles */
.clpcw-carousel .clpcw-category {
    margin: 10px;
}

/* Carousel navigation */
.slick-prev,
.slick-next {
    background: #fff;
    color: #333;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

/* Dots/pagination styles */
.slick-dots {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
    background: #666;
    transform: scale(1.2);
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .clpcw-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 1024px) {
    .clpcw-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .clpcw-category-image-wrapper {
        width: 120px;
        height: 120px;
        padding: 12px;
    }
    .clpcw-category img {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 768px) {
    .clpcw-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .clpcw-category-image-wrapper {
        width: 80px;
        height: 80px;
        padding: 6px;
    }
    .clpcw-category img {
        width: 40px;
        height: 40px;
    }
    
    .clpcw-category h4 {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .clpcw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .clpcw-category-image-wrapper {
        width: 120px;
        height: 120px;
        padding: 6px;
    }
    .clpcw-category img {
        width: 70px;
        height: 70px;
    }
    
    .slick-prev,
    .slick-next {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }
}

@media screen and (max-width: 600px) {
    .clpcw-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 10px;
    }
    .clpcw-grid .clpcw-category {
        min-width: 40vw;
        flex: 0 0 auto;
        margin-bottom: 0;
    }
    .clpcw-category-image-wrapper {
        width: 120px;
        height: 120px;
        padding: 6px;
    }
    .clpcw-category img {
        width: 70px;
        height: 70px;
    }
    .clpcw-category h4 {
        font-size: 14px;
    }
}
