/* WooCommerce Product Carousel Styles */
.wc-product-carousel-line {
    margin: 40px 0;
    position: relative;
}

.wc-product-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 50px;
    /* Space for arrows */
}

.wc-product-carousel-wrapper {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
}

/* WooCommerce products container override */
.wc-product-carousel-wrapper .woocommerce {
    width: 100%;
}

.wc-product-carousel-wrapper .products {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    gap: 20px;
    transition: transform 0.4s ease;
}

.wc-product-carousel-wrapper .products .product {
    flex: 0 0 auto;
    width: 280px !important;
    /* Increased width for better appearance */
    margin: 0 !important;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-product-carousel-wrapper .products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wc-product-carousel-wrapper .products .product img {
    width: 100% !important;
    height: 200px !important;
    /* Increased height */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.wc-product-carousel-wrapper .products .product .woocommerce-loop-product__title {
    font-size: 16px !important;
    /* Increased font size */
    margin: 15px 0 10px 0 !important;
    color: #333;
    height: 48px;
    /* Increased height */
    overflow: hidden;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wc-product-carousel-wrapper .products .product .price {
    font-weight: bold !important;
    color: #e74c3c !important;
    font-size: 18px !important;
    /* Increased price font size */
    margin: 10px 0 !important;
}

.wc-product-carousel-wrapper .products .product .price del {
    color: #999 !important;
    font-size: 14px !important;
}

.wc-product-carousel-wrapper .products .product .add_to_cart_button {
    background: #333 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.wc-product-carousel-wrapper .products .product .add_to_cart_button:hover {
    background: #555 !important;
}

/* Carousel Controls */
.wc-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.wc-carousel-controls:hover {
    background: rgba(0, 0, 0, 0.9);
}

.wc-carousel-prev {
    left: 10px;
}

.wc-carousel-next {
    right: 10px;
}

/* Carousel Dots */
.wc-carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.wc-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wc-carousel-dot.wc-active {
    background: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-product-carousel-wrapper .products .product .woocommerce-loop-product__title {
        font-size: 12px !important;
        height: 32px !important;
    }

    .wc-product-carousel-wrapper .products .product img {
        height: 100px !important;
    }
}

@media (max-width: 576px) {
    .wc-product-carousel-container {
        padding: 0 45px;
        /* Reduce padding for mobile */
    }

    .wc-product-carousel-wrapper .products {
        gap: 15px;
    }

    .wc-product-carousel-wrapper .products .product {
        width: 240px !important;
        /* Increased mobile width */
    }

    .wc-product-carousel-wrapper .products .product img {
        height: 180px !important;
        /* Increased mobile image height */
    }

    .wc-product-carousel-wrapper .products .product .woocommerce-loop-product__title {
        font-size: 14px !important;
        height: 42px !important;
    }

    .wc-carousel-controls {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .wc-carousel-prev {
        left: 5px;
    }

    .wc-carousel-next {
        right: 5px;
    }
}

/* Hide default WooCommerce pagination if exists */
.wc-product-carousel-wrapper .woocommerce-pagination {
    display: none !important;
}