/* Essential Addons for Elementor Product Carousel Overlap Fix */

/* Container and wrapper fixes */
.eael-woo-product-carousel-container {
    overflow: visible !important;
}

.eael-woo-product-carousel-container .eael-woo-product-carousel {
    overflow: visible !important;
}

.eael-woo-product-carousel-container .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
}

/* Product slide fixes */
.eael-woo-product-carousel-container .swiper-slide {
    width: auto !important;
    min-width: 280px !important;
    max-width: 350px !important;
    flex: 0 0 auto !important;
    margin-right: 20px !important;
    box-sizing: border-box !important;
}

.eael-woo-product-carousel-container .product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Preset-specific fixes */
.eael-woo-product-carousel-container.preset-1 .eael-product-carousel {
    margin: 0 !important;
    width: 100% !important;
    min-height: 400px !important;
}

.eael-woo-product-carousel-container.preset-2 .eael-product-carousel {
    margin: 0 !important;
    width: 100% !important;
    min-height: 400px !important;
}

.eael-woo-product-carousel-container.preset-3 .eael-product-carousel {
    margin: 0 !important;
    width: 100% !important;
    min-height: 400px !important;
}

/* Product details wrapper */
.eael-woo-product-carousel-container .product-details-wrap {
    padding: 15px !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.eael-woo-product-carousel-container .product-details {
    flex: 1 !important;
    width: 100% !important;
}

/* Image wrapper fixes */
.eael-woo-product-carousel-container .product-image-wrap {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
}

.eael-woo-product-carousel-container .image-wrap {
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
}

.eael-woo-product-carousel-container .image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Grid fallback fixes for non-initialized carousels */
.eael-woo-product-carousel-container .eael-woo-product-carousel:not(.swiper-initialized) .swiper-wrapper.products {
    display: grid !important;
    gap: 20px !important;
    grid-auto-columns: minmax(280px, 1fr) !important;
    grid-auto-flow: column !important;
    overflow-x: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.eael-woo-product-carousel-container .eael-woo-product-carousel:not(.swiper-initialized) .swiper-wrapper.products .product {
    margin: 0 !important;
    width: 100% !important;
    min-width: 280px !important;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .eael-woo-product-carousel-container .swiper-slide {
        min-width: 250px !important;
        max-width: 300px !important;
    }
}

@media (max-width: 768px) {
    .eael-woo-product-carousel-container .swiper-slide {
        min-width: 220px !important;
        max-width: 280px !important;
        margin-right: 15px !important;
    }
    
    .eael-woo-product-carousel-container .image-wrap {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .eael-woo-product-carousel-container .swiper-slide {
        min-width: 200px !important;
        max-width: 250px !important;
        margin-right: 10px !important;
    }
    
    .eael-woo-product-carousel-container .image-wrap {
        height: 180px !important;
    }
    
    .eael-woo-product-carousel-container .product-details-wrap {
        padding: 10px !important;
    }
}