/**
 * EON Product Carousel Styles
*/

.eon-product-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 400px;
    padding: 10px;
}

.eon-product-carousel .swiper-wrapper {
    align-items: stretch;
}


/* Slide */

.eon-product-carousel .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    max-height: 430px !important;
    border-style: solid;
    border-width: 0;
    overflow: visible !important;
    transition-duration: .5s;
    transition-property: border, background, transform;
    will-change: transform;
    ;
}


/* Product Card Styles - Using theme colors */
.eon-product-carousel .swiper-slide .product {
    width: 95%;
    margin: 0px;
    background: var(--wc-background-color, var(--wp--preset--color--base, #ffffff));
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wc-border-color, var(--wp--preset--color--contrast, rgba(0, 0, 0, 0.1)));
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    height: 380px;
}

.eon-product-carousel .swiper-slide .product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Product Image */
.eon-product-carousel .product .woocommerce-loop-product__link {
    display: flex;
    text-decoration: none;
    max-width: 250px;
    flex-direction: column;
    align-items: center;
    max-height: 300px;
}

.eon-product-carousel .product img {
    width: 100%;
    height: 22svh;
    margin-bottom: 15px;
    object-fit: contain;
}

.eon-product-carousel .astra-shop-summary-wrap {
    text-align: center;
}

.eon-product-carousel .product span.ast-shop-product-out-of-stock {
    display: none;
}

.eon-product-carousel .product .button,
.eon-product-carousel .product .added_to_cart {
    background: var(--wc-primary-color, var(--wp--preset--color--primary, #00a0e1));
    color: var(--wc-primary-text-color, var(--wp--preset--color--contrast, #ffffff));
    border: none;
    border-radius: 25px;
    padding: 8px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 25px 0px 10px;
    transition: all 0.3s ease;
}

.eon-product-carousel .product .button:hover,
.eon-product-carousel .product .added_to_cart:hover {
    background: var(--wc-primary-hover-color, var(--wp--preset--color--secondary, #0099cc));
    opacity: 0.9;
}

.eon-product-carousel a.added_to_cart.wc-forward {
    display: none;
}

.eon-product-carousel .product .woocommerce-loop-product__title,
.eon-product-carousel .product h2,
.eon-product-carousel .product h3 {
    color: var(--wc-text-color, var(--wp--preset--color--contrast, #333333));
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2em;
    text-decoration: none;
    text-align: center;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 20px;
    margin-bottom: 10px;
}

.eon-product-carousel .product a {
    color: inherit;
    text-decoration: none;
}

.eon-product-carousel .product a:hover h2,
.eon-product-carousel .product a:hover h3,
.eon-product-carousel .product a:hover .woocommerce-loop-product__title {
    color: var(--wc-primary-color, var(--wp--preset--color--primary, #0588cc));
}

/* Price - using theme price color */
.eon-product-carousel .product .price {
    color: var(--wc-price-color, #00a0e1);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.eon-product-carousel .product .price del {
    color: var(--wc-text-muted, var(--wp--preset--color--contrast, #999999));
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
    opacity: 0.6;
}

.eon-product-carousel .product .price ins {
    text-decoration: none;
}

/* Price without tax text */
.eon-product-carousel .product .woocommerce-price-suffix,
.eon-product-carousel .product small {
    color: var(--wc-text-muted, var(--wp--preset--color--contrast, #666666));
    font-size: 12px;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

/* Navigation buttons - using theme colors */
.eon-product-carousel .eon-carousel-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.eon-product-carousel .swiper-button-prev,
.eon-product-carousel .swiper-button-next {
    pointer-events: auto;
    background: var(--wc-background-color, var(--wp--preset--color--base, rgba(255, 255, 255, 0.9)));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgb(0 0 0 / 29%);
    transition: all 0.3s ease;
    border: 1px solid var(--wc-border-color, rgba(0, 0, 0, 0.1));
}

.eon-product-carousel .swiper-button-prev:hover,
.eon-product-carousel .swiper-button-next:hover {
    background: var(--wc-background-color, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eon-product-carousel .swiper-button-prev::after,
.eon-product-carousel .swiper-button-next::after {
    font-size: 17px;
    font-weight: 800;
    color: var(--wc-text-color, var(--wp--preset--color--contrast, #474d4f57));
    text-shadow: 0 2px 4px rgb(0 0 0 / 29%);
}

/* Pagination - using theme colors */
.eon-product-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.eon-product-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--wc-border-color, var(--wp--preset--color--contrast, #ddd));
    opacity: 0.5;
    transition: all 0.3s ease;
}

.eon-product-carousel .swiper-pagination-bullet-active {
    background: var(--wc-primary-color, var(--wp--preset--color--primary, #333));
    opacity: 1;
    transform: scale(1.2);
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: 4px;
    right: auto;
    top: 200px;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    right: 4px;
    left: auto;
    top: 200px;
}

/* Disabled state for buttons */
.eon-product-carousel .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Remove default WooCommerce grid styles inside carousel */
.eon-product-carousel ul.products {
    display: contents;
}

.eon-product-carousel ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure proper spacing between slides */
.eon-product-carousel .swiper-slide {
    box-sizing: border-box;
}

/* Star ratings - using theme colors */
.eon-product-carousel .product .star-rating {
    margin: 8px 0;
}

.eon-product-carousel .product .star-rating span::before {
    color: var(--wc-star-color, var(--wc-primary-color, #ffc107));
}

/* Out of stock badge - using theme colors */
.eon-product-carousel .product .out-of-stock-badge {
    background: var(--wc-error-color, var(--wp--preset--color--error, #ff4444));
    color: var(--wc-primary-text-color, #ffffff);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Sale badge - using theme colors */
.eon-product-carousel .product .onsale {
    background: var(--wc-sale-color, var(--wc-primary-color, var(--wp--preset--color--primary, #00b4e6)));
    color: var(--wc-primary-text-color, #ffffff);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

/* Additional WooCommerce elements */
.eon-product-carousel .product .added_to_cart.wc-forward {
    margin-left: 5px;
}

/* Category badges */
.eon-product-carousel .product .product-categories {
    margin-bottom: 10px;
}

.eon-product-carousel .product .product-categories a {
    color: var(--wc-text-muted, #666);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .eon-product-carousel .product span.awl-product-label.awl-type-label.awl-type-label-rounded {
        margin: -14px 0px 0px 0px !important;
    }
}

#carrusel .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

div#eon-carousel {
    height: 420px !important;
}

.eon-product-carousel span.awl-product-label.awl-type-label.awl-type-label-rounded {
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
    top: -158px;
    margin: 0 !important;
    z-index: 5;
}

.eon-product-carousel .advanced-woo-labels.awl-position-type-on-image.awl-label-type-archive.awl-align-right-top {
    top: 8px !important;
    left: 12px !important;
    justify-content: flex-start !important;
}


@media (max-width: 767px) {
    .eon-product-carousel span.awl-product-label.awl-type-label.awl-type-label-rounded {
        top: -170px;
    }

    .eon-product-carousel .product span.awl-product-label.awl-type-label.awl-type-label-rounded {
        margin: -14px 0px 0px 0px !important;
    }
}

@media (max-width: 1024px) {
    .eon-product-carousel span.awl-product-label.awl-type-label.awl-type-label-rounded {
        top: -170px;
    }
}