.qccc-carousel { 
    margin: 5px 0; 
}

.qccc-cat-thumb { 
    transition: transform 0.3s; 
}

.qccc-cat-thumb:hover { 
    transform: scale(1.05); 
}

/* Quick Commerce Category Carousel Styles */
.qccc-carousel {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    min-height: 100px;
}

.qccc-carousel.swiper-initialized {
    opacity: 1;
}

.qccc-carousel:not(.swiper-initialized) {
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.qccc-carousel:not(.swiper-initialized)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: qccc-loadingShimmer 1.5s infinite;
}

@keyframes qccc-loadingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.qccc-cat { 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none; 
    color: inherit; 
    padding: 5px 5px;
    height: 100%;
    box-sizing: border-box;
}


.qccc-cat-name { 
    display: block; 
    margin-top: 12px; 
    font-size: 14px; 
    font-weight: 500; 
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

/* Swiper customization */
.qccc-carousel .swiper-wrapper {
    align-items: stretch;
    display: flex;
}

.qccc-carousel .swiper-slide {
    height: auto;
    display: flex;
}

/* Fix for first slide alignment */
.qccc-carousel .swiper-slide:first-child {
    justify-content: flex-start;
}

.qccc-carousel .swiper-slide:last-child {
    justify-content: flex-end;
}

/* Ensure all slides have consistent alignment */
.qccc-carousel .swiper-slide {
    justify-content: center;
}

/* Center the active slide */
.qccc-carousel .swiper-slide-active {
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .qccc-cat-thumb { 
        width: 80px; 
        height: 80px; 
    }
    
    .qccc-cat-name { 
        font-size: 13px; 
        margin-top: 10px;
    }
    
    .qccc-cat {
        padding: 12px 8px;
    }
}

/* Additional alignment fixes */
.qccc-carousel .swiper-container {
    overflow: hidden;
}

.qccc-carousel .swiper-slide {
    text-align: center;
}