/**
 * WooCommerce Product Carousel - Generates clean stylized product cards
 */

.wpc-carousel-container {
    padding-bottom: 40px !important;
}

/* Card inner setup */
.wpc-card-inner {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px 15px 25px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures contents don't break the border-radius shadow */
}

.wpc-card-inner:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Adjusted alpha for softer shadow */
    transform: translateY(-5px);
    border-color: #e5e5e5;
}

/* Link reset */
.wpc-product-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    margin-bottom: auto;
}

.wpc-product-link:hover,
.wpc-product-link:focus,
.wpc-product-link::before,
.wpc-product-link::after {
    background-color: transparent !important;
    opacity: 1 !important;
}

/* Image container */
.wpc-product-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    text-align: center;
    background: transparent !important;
}

.wpc-product-image::before,
.wpc-product-image::after {
    display: none !important;
}

.wpc-product-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    filter: none !important;
}

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

/* SKU Badge */
.wpc-product-image .sku_loop {
    position: relative;
    display: inline-block;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-top: 10px;
}

/* Title setup with line ellipsis */
.wpc-product-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #163f93;
    /* Main Brand color */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 3em;
}

/* Price block alignment */
.wpc-product-price {
    margin-top: auto;
    /* Pushes price to the bottom */
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
    padding-bottom: 5px;
    /* Anti-clip padding */
}

/* Swiper Nav/Pagination Customization */
.wpc-carousel-container .swiper-button-next,
.wpc-carousel-container .swiper-button-prev {
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #163f93;
    /* Main Brand Color */
}

.wpc-carousel-container .swiper-button-next:after,
.wpc-carousel-container .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.wpc-carousel-container .swiper-button-next:hover,
.wpc-carousel-container .swiper-button-prev:hover {
    background-color: #163f93;
    color: #fff;
}

.wpc-carousel-container .swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 0.5;
}

.wpc-carousel-container .swiper-pagination-bullet-active {
    background-color: #e72479;
    /* Brand Accent Color */
    opacity: 1;
}