/* Elementor Product Carousel Pro - Styles */

.product-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.product-carousel-swiper {
    overflow: hidden;
    padding-bottom: 50px;
}

/* Product Item */
.product-carousel-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-carousel-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Image Container */
.product-carousel-image {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.product-carousel-image a {
    display: block;
    position: relative;
}

.product-carousel-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-carousel-image:hover img {
    transform: scale(1.05);
}

/* Sale Badge */
.product-carousel-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 5;
}

/* Content Area */
.product-carousel-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.product-carousel-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-carousel-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-carousel-title a:hover {
    color: #000000;
}

/* Rating */
.product-carousel-rating {
    margin-bottom: 10px;
}

.product-carousel-rating .star-rating {
    font-size: 14px;
}

/* Excerpt */
.product-carousel-excerpt {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Price */
.product-carousel-price {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
    margin-top: auto;
}

.product-carousel-price del {
    color: #999999;
    font-weight: normal;
    font-size: 16px;
    margin-right: 8px;
}

.product-carousel-price ins {
    color: #ff0000;
    text-decoration: none;
}

/* Button */
.product-carousel-button-wrapper {
    margin-top: auto;
}

.product-carousel-button-wrapper .button,
.product-carousel-button-wrapper .added_to_cart {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: #333333;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.product-carousel-button-wrapper .button:hover,
.product-carousel-button-wrapper .added_to_cart:hover {
    background: #000000;
    transform: translateY(-2px);
}

.product-carousel-button-wrapper .added_to_cart {
    background: #4caf50;
    margin-top: 10px;
}

/* Navigation Arrows */
.product-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.product-carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.product-carousel-prev {
    left: -20px;
}

.product-carousel-next {
    right: -20px;
}

.product-carousel-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.product-carousel-nav svg {
    width: 24px;
    height: 24px;
}

/* Pagination Dots */
.product-carousel-swiper .swiper-pagination {
    bottom: 15px !important;
}

.product-carousel-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.product-carousel-swiper .swiper-pagination-bullet-active {
    background-color: #000000;
    transform: scale(1.2);
}

/* Out of Stock Overlay */
.product-carousel-item .out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.product-carousel-item .out-of-stock-text {
    background: #ff0000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* Loading State */
.product-carousel-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-carousel-prev {
        left: -10px;
    }
    
    .product-carousel-next {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .product-carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .product-carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .product-carousel-prev {
        left: 5px;
    }
    
    .product-carousel-next {
        right: 5px;
    }
    
    .product-carousel-item {
        padding: 12px;
    }
    
    .product-carousel-title {
        font-size: 14px;
    }
    
    .product-carousel-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .product-carousel-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .product-carousel-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px !important;
    }
    
    .product-carousel-item {
        padding: 10px;
    }
    
    .product-carousel-button-wrapper .button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* WooCommerce Compatibility */
.product-carousel-wrapper .star-rating {
    color: #ffc107;
}

.product-carousel-wrapper .woocommerce-loop-product__link {
    text-decoration: none;
}

/* Elementor Editor Fixes */
.elementor-editor-active .product-carousel-swiper {
    overflow: visible;
}

/* RTL Support */
.rtl .product-carousel-prev {
    left: auto;
    right: -20px;
}

.rtl .product-carousel-next {
    right: auto;
    left: -20px;
}

/* Accessibility */
.product-carousel-nav:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Animation for Added to Cart */
@keyframes addedToCart {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-carousel-button-wrapper .added_to_cart {
    animation: addedToCart 0.3s ease;
}
