/* Product Carousel Styles */
.pce-product-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.pce-product-carousel-wrapper .swiper {
    width: 100%;
    height: auto;
    padding-bottom: 50px;
}

.pce-product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pce-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pce-product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.pce-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.pce-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pce-product-category {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 4px;
}

.pce-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pce-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 8px 0;
}

.pce-product-price .woocommerce-Price-amount {
    color: #2c3e50;
}

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

.pce-product-price ins {
    color: #e74c3c;
    text-decoration: none;
}

.pce-product-variations {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.pce-product-variation {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.pce-variation-colors {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pce-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    display: inline-block;
    opacity: 0.85;
}

.pce-more-colors {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-left: 4px;
}

/* Swiper Navigation */
.pce-product-carousel-wrapper .swiper-button-next,
.pce-product-carousel-wrapper .swiper-button-prev {
    color: #333;
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pce-product-carousel-wrapper .swiper-button-next:hover,
.pce-product-carousel-wrapper .swiper-button-prev:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.pce-product-carousel-wrapper .swiper-button-next:after,
.pce-product-carousel-wrapper .swiper-button-prev:after {
    font-size: 18px;
}

.pce-product-carousel-wrapper .swiper-button-next {
    right: 10px;
}

.pce-product-carousel-wrapper .swiper-button-prev {
    left: 10px;
}

/* Swiper Pagination */
.pce-product-carousel-wrapper .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.pce-product-carousel-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.pce-product-carousel-wrapper .swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pce-product-image {
        height: 200px;
    }
    
    .pce-product-content {
        padding: 16px;
    }
    
    .pce-product-title {
        font-size: 14px;
    }
    
    .pce-product-price {
        font-size: 16px;
    }
    
    .pce-product-carousel-wrapper .swiper-button-next,
    .pce-product-carousel-wrapper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 480px) {
    .pce-product-carousel-wrapper {
        padding: 10px 0;
    }
    
    .pce-product-image {
        height: 180px;
    }
    
    .pce-product-content {
        padding: 12px;
    }
    
    .pce-product-variations {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Loading Animation */
.pce-product-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pce-product-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Accessibility */
.pce-product-card:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] .pce-product-carousel-wrapper .swiper-button-next {
    left: 10px;
    right: auto;
}

[dir="rtl"] .pce-product-carousel-wrapper .swiper-button-prev {
    right: 10px;
    left: auto;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .pce-product-card {
        border: 2px solid #000;
    }
    
    .pce-product-title {
        color: #000;
    }
    
    .pce-product-price {
        color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pce-product-card,
    .pce-product-image img,
    .pce-product-carousel-wrapper .swiper-button-next,
    .pce-product-carousel-wrapper .swiper-button-prev,
    .pce-product-carousel-wrapper .swiper-pagination-bullet {
        transition: none;
    }
    
    .pce-product-card:hover {
        transform: none;
    }
    
    .pce-product-card:hover .pce-product-image img {
        transform: none;
    }
}