/* PSM Product Carousel Styles */

.psm-product-carousel-wrapper {
    position: relative;
    padding: 40px 0 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.psm-product-carousel-wrapper .swiper {
    padding-bottom: 0;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.psm-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100% !important;
    height: 380px !important;
    display: flex;
    flex-direction: column;
}

.swiper-slide .psm-product-card {
    height: 380px !important;
}

.psm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.psm-product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    height: 250px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.psm-product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

.psm-product-card:hover .psm-product-image-link img {
    transform: scale(1.05);
}

.psm-product-details {
    padding: 0 15px 15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 80px;
    background: #ffffff;
    margin: 0;
}

.psm-product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #324ea8;
    font-weight: 600;
    margin: 10px 0 8px 0;
    padding: 0;
}

.psm-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.psm-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.psm-product-title a:hover {
    color: #324ea8;
}

.psm-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #324ea8;
    margin-bottom: 15px;
}

.psm-product-price del {
    opacity: 0.5;
    margin-right: 8px;
    font-size: 14px;
}

.psm-product-price ins {
    text-decoration: none;
}

.psm-product-actions {
    margin-top: auto;
}

.psm-add-to-cart,
.psm-product-actions .button {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: #324ea8;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.psm-add-to-cart:hover,
.psm-product-actions .button:hover {
    background: #2a3e8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 78, 168, 0.3);
}

/* Swiper Navigation Customization */
.psm-product-carousel-wrapper .swiper-button-next,
.psm-product-carousel-wrapper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.psm-product-carousel-wrapper .swiper-button-next:after,
.psm-product-carousel-wrapper .swiper-button-prev:after {
    font-size: 20px;
    color: #324ea8;
    font-weight: 700;
}

.psm-product-carousel-wrapper .swiper-button-next:hover,
.psm-product-carousel-wrapper .swiper-button-prev:hover {
    background: #324ea8;
    box-shadow: 0 4px 12px rgba(50, 78, 168, 0.3);
}

.psm-product-carousel-wrapper .swiper-button-next:hover:after,
.psm-product-carousel-wrapper .swiper-button-prev:hover:after {
    color: #ffffff;
}

/* Pagination Dots - Hidden */
.psm-product-carousel-wrapper .swiper-pagination {
    display: none;
}

/* Hide ALL add to cart/select options buttons in carousel */
.psm-product-card .psm-product-actions {
    display: none !important;
}

/* Show only simple product add to cart */
.psm-product-card .psm-product-actions .psm-add-to-cart {
    display: inline-block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .psm-product-carousel-wrapper {
        padding: 20px 10px;
    }

    .psm-product-title {
        font-size: 14px;
    }

    .psm-product-price {
        font-size: 16px;
    }

    .psm-add-to-cart,
    .psm-product-actions .button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Loading State */
.psm-product-carousel-wrapper.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Out of Stock Badge */
.psm-product-card.out-of-stock .psm-product-image-link:after {
    content: 'Out of Stock';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.psm-product-card.out-of-stock {
    opacity: 0.7;
}
