/* 
 * Product Slider Carousel - Premium Styling 
 */

:root {
    --psc-primary: #ed1c24; /* Red */
    --psc-secondary: #0b5e8c; /* Blue */
    --psc-white: #ffffff;
    --psc-text: #333333;
    --psc-price: #ed1c24;
    --psc-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.psc-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    padding-bottom: 50px;
    overflow: hidden;
}

.psc-product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
}

.psc-product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.psc-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
}

.psc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.psc-product-card:hover .psc-product-image img {
    transform: scale(1.08);
}

.psc-product-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.psc-product-title {
    font-size: 15px;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em; /* Force 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.psc-product-title a {
    color: var(--psc-text);
    text-decoration: none;
    transition: color 0.3s;
}

.psc-product-title a:hover {
    color: var(--psc-secondary);
}

.psc-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--psc-price);
}

.psc-product-price del {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

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

/* Navigation Buttons */
.psc-nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--psc-secondary) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    top: 40% !important;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.psc-slider-wrapper:hover .psc-nav {
    opacity: 1;
    visibility: visible;
}

.psc-nav:after {
    font-size: 18px !important;
    font-weight: bold;
}

.psc-nav:hover {
    background: var(--psc-secondary);
    color: #fff !important;
}

/* Pagination */
.psc-pagination {
    bottom: 0px !important;
}

.psc-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s;
}

.psc-pagination .swiper-pagination-bullet-active {
    background: var(--psc-secondary);
    width: 25px;
    border-radius: 5px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .psc-product-title {
        font-size: 14px;
    }
    .psc-product-price {
        font-size: 14px;
    }
}
