/* WooCommerce Product Carousel Styles */

.wpc-product-carousel-wrapper {
    position: relative;
    margin: 30px 0;
    padding: 0 20px;
}

.wpc-product-carousel {
    margin: 0 -10px;
}

.wpc-product-item {
    padding: 0 10px;
    margin-bottom: 20px;
}

.wpc-product-inner {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wpc-product-inner:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #d5d5d5;
    transform: translateY(-3px);
}

.wpc-product-image {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

.wpc-product-image a {
    display: block;
    position: relative;
    padding-bottom: 100%;
}

.wpc-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.wpc-product-details {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wpc-product-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px;
}

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

.wpc-product-title a:hover {
    color: #e74c3c;
}

.wpc-product-price {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.wpc-product-price del {
    color: #999;
    font-size: 15px;
    font-weight: 400;
    margin-right: 8px;
}

.wpc-product-price ins {
    text-decoration: none;
}

.wpc-product-button {
    margin-top: auto;
}

.wpc-product-button a,
.wpc-add-to-cart {
    display: inline-block;
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpc-product-button a:hover,
.wpc-add-to-cart:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

/* Slick Carousel Navigation */
.wpc-product-carousel .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.wpc-product-carousel .slick-arrow:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

.wpc-product-carousel .slick-arrow:before {
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
}

.wpc-product-carousel .slick-arrow:hover:before {
    color: #fff;
}

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

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

.wpc-product-carousel .slick-prev:before {
    content: '‹';
}

.wpc-product-carousel .slick-next:before {
    content: '›';
}

/* RTL Support */
[dir="rtl"] .wpc-product-carousel .slick-prev {
    left: auto;
    right: -20px;
}

[dir="rtl"] .wpc-product-carousel .slick-next {
    right: auto;
    left: -20px;
}

/* Slick Dots */
.wpc-product-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}

.wpc-product-carousel .slick-dots li {
    margin: 0 5px;
}

.wpc-product-carousel .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
}

.wpc-product-carousel .slick-dots li.slick-active button,
.wpc-product-carousel .slick-dots li button:hover {
    background: #e74c3c;
    transform: scale(1.2);
}

/* Loading State */
.wpc-product-carousel.slick-loading {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1200px) {
    .wpc-product-carousel-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .wpc-product-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .wpc-product-price {
        font-size: 16px;
    }
    
    .wpc-product-button a,
    .wpc-add-to-cart {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .wpc-product-carousel .slick-arrow {
        width: 35px;
        height: 35px;
    }
    
    .wpc-product-carousel .slick-prev {
        left: -10px;
    }
    
    .wpc-product-carousel .slick-next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .wpc-product-details {
        padding: 15px;
    }
    
    .wpc-product-carousel .slick-arrow {
        display: none !important;
    }
}

/* Widget Area Styles */
.widget.wpc-product-carousel-widget {
    margin-bottom: 30px;
}

.widget.wpc-product-carousel-widget .widget-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WooCommerce Compatibility */
.wpc-product-price .amount {
    font-weight: 700;
}

.wpc-product-item .added_to_cart {
    display: none;
}

/* Sale Badge */
.wpc-product-image .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 5;
    text-transform: uppercase;
}

[dir="rtl"] .wpc-product-image .onsale {
    right: auto;
    left: 10px;
}

/* Out of Stock */
.wpc-product-item .out-of-stock {
    opacity: 0.6;
}

.wpc-product-item .out-of-stock .wpc-product-button a {
    background: #999;
    cursor: not-allowed;
}

.wpc-product-item .out-of-stock .wpc-product-button a:hover {
    background: #999;
    transform: none;
}
