/* Carousel Auto-Play Animation */
@keyframes smoothScroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-50%); 
    }
}

/* Carousel Wrapper */
.carousel-wrapper {
    overflow: hidden;
    background: white;
    border-radius: 12px;
    position: relative;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    animation: smoothScroll 25s linear infinite;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* Carousel Item */
.carousel-item {
    flex: 0 0 calc(25% - 1.5rem);
    min-width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-8px);
}

/* Carousel Product Card */
.carousel-product {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.carousel-item:hover .carousel-product {
    border-color: #4f46e5;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

/* Carousel Image */
.carousel-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.carousel-item:hover .carousel-image {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Carousel Name */
.carousel-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.4;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .carousel-track {
        animation: smoothScroll 20s linear infinite;
    }
    
    .carousel-button {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-track {
        animation: smoothScroll 15s linear infinite;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Carousel Navigation Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(79, 70, 229, 0.8);
    hover: rgba(79, 70, 229, 1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.carousel-button:hover {
    background: rgba(79, 70, 229, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button-prev {
    left: 15px;
}

.carousel-button-next {
    right: 15px;
}

.carousel-track.manual-mode {
    animation: none;
}
