/* Base Styles */
.category-carousel-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-carousel-item a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.category-carousel-image {
    overflow: hidden;
}

.category-carousel-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.category-carousel-title {
    margin: 10px 0;
    transition: color 0.3s ease;
}

.category-carousel-count {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Skin: Circle */
.skin-circle .category-carousel-image {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.skin-circle .category-carousel-image img {
    height: 100%;
    object-fit: cover;
}

.skin-circle .category-carousel-title {
    text-align: center;
    font-size: 1.1em;
}

/* Skin: Overlay */
.skin-overlay .category-carousel-item {
    height: 300px; /* Default height for overlay cards, customizable via CSS/Elementor if needed */
    border-radius: 10px;
}

.skin-overlay .category-carousel-image {
    height: 100%;
}

.skin-overlay .category-carousel-image img {
    height: 100%;
    object-fit: cover;
}

.skin-overlay .category-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
    text-align: center;
}

.skin-overlay .category-carousel-title {
    color: #fff !important;
    margin: 0;
}

.skin-overlay .category-carousel-count {
    color: rgba(255,255,255,0.8);
}

/* Animations */
.hover-zoom:hover .category-carousel-image img {
    transform: scale(1.1);
}

.hover-grayscale .category-carousel-image img {
    filter: grayscale(100%);
}

.hover-grayscale:hover .category-carousel-image img {
    filter: grayscale(0%);
}

.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}
