/* Ensure the swiper container and slides are correctly set */
.pps-swiper-container {
    width: 1685px;
    height: 475px;
    overflow: hidden;
}
.pps-product-description {
    display: -webkit-box;        /* Use for multi-line truncation */
    -webkit-box-orient: vertical;
    overflow: hidden;            /* Hide any overflowing content */
    -webkit-line-clamp: 2;       /* Limit to 2 lines */
    line-clamp: 2;               /* Fallback for non-webkit browsers */
    max-height: 3em;             /* Optional: max height for 2 lines */
}
.pps-swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

/* Product image styling */
.pps-myswiper-product-image {
    position: relative;
    display: flex;
    justify-content: left;
    align-items: center;
    height: 317px;
    width: 100%;
}

.pps-myswiper-product-image img {
    width: 262px;
    height: 317px;
    object-fit: cover;
}

.pps-swiper-horizontal {
    margin-bottom: 20px;
}

/* Product information styles */
.pps-swiper-slide .pps-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.pps-swiper-slide .pps-price-and-cart {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.pps-swiper-product-title, .pps-swiper-product-description, .pps-swiper-regular-price {
    text-align: left;
    width: 100%;
}

.pps-swiper-product-title {
    color: #282828;
    font-size: 16px;
    font-family: "Fira Sans", Sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
}

.pps-swiper-product-description {
    color: #858585;
    font-size: 14px;
    font-family: "Fira Sans", Sans-serif;
    font-weight: 300;
    margin-bottom: 10px;
}

/* Price styles */
.pps-swiper-sale-price, .pps-swiper-slide .pps-swiper-regular-price {
    font-family: "Fira Sans", Sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: red;
    text-align: left;
    margin-right: 10px;
    height: 19px;
}

.pps-swiper-slide .woocommerce-Price-amount bdi {
    font-size: 16px;
}

.pps-swiper-sale-price del, .pps-swiper-sale-price del span, .pps-swiper-sale-price del bdi {
    color: #282828;
    text-decoration: line-through;
}

.pps-swiper-sale-price ins, .pps-swiper-sale-price ins span, .pps-swiper-sale-price ins bdi {
    color: red;
    text-decoration: none;
}

/* Cart icon styles */
.pps-cart-icon {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-left: 20px;
}

.pps-cart-icon:hover {
    width: 20px;
    height: 20px;
    margin-left: 20px;
}

.pps-cart-button {
    margin-left: 80px;
}

/* Discount badge */
.pps-discount-badge {
    position: absolute;
    color: #fff;
    background-color: #DE1528;
    font-weight: bold;
    font-size: 13pt;
    border-radius: 100px;
    right: 0px;
    top: 40px;
    padding: 9px;
    align-content: center;
    width: 50px;
    height: 50px;
}

/* Sale price formatting */
.pps-swiper-sale-price del, 
.pps-swiper-sale-price del span, 
.pps-swiper-sale-price del bdi {
    color: #282828;
    text-decoration: line-through;
    padding-right: 5px;
}

.pps-swiper-sale-price ins, 
.pps-swiper-sale-price ins span, 
.pps-swiper-sale-price ins bdi {
    color: #de1528;
    text-decoration: none;
}

.pps-swiper-sale-price {
    display: flex;
    align-items: center;
}

/* Mobile product description */
.pps-swiper-product-description-mobile {
    display: none;
}

/* Add-to-cart button */
.ak-add-to-cart-icon-2 {
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    transition: background-color 1s ease, color 1s ease;
    border-radius: 100px;
    display: none;
    width: 70%;
    font-size: 16px;
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 45%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
}

.ak-add-to-cart-icon-2 img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.ak-add-to-cart-icon-2:hover {
    background-color: #f0f0f0;
	color: black;
}

/* Hover effects */
.pps-product-item:hover .pps-product-description,
.pps-product-item:hover .pps-price,
.pps-product-item:hover .pps-price-and-cart {
    opacity: 0;
}

.pps-product-item:hover .pps-cart .ak-add-to-cart-icon-2 {
    display: block;
    opacity: 1;
}

.pps-product-item:hover .pps-product-image,
.pps-product-item:hover .pps-discount-badge {
    opacity: 1;
}

@media (max-width: 768px) {

    .pps-cart-button {
        margin-left: 40px !important;
    }

    .pps-swiper-product-description-mobile {
        display: block;
        text-align: left;
        width: 100%;
        color: #858585;
        font-size: 14px;
        font-family: "Fira Sans", Sans-serif;
        font-weight: 300;
    }

    .pps-swiper-product-description {
        display: none !important;
    }

    .pps-swiper-slide .pps-discount-badge {
        right: 0px;
    }

    .pps-swiper-horizontal {
        margin-bottom: 0px;
    }

    .pps-product-item .ak-add-to-cart-icon-2 {
        display: block !important;
        opacity: 1 !important;
        position: static;
        transform: none;
        margin-bottom: 10px;
        width: 100%;
    }

    .pps-product-item .pps-product-description,
    .pps-product-item .pps-price,
    .pps-product-item .pps-price-and-cart {
        opacity: 1 !important;
    }

    .pps-product-item .pps-product-image,
    .pps-product-item .pps-discount-badge {
        opacity: 1;
    }
}

.pps-best-seller-badge {
    width: 100%;
    position: absolute;
    left: 0px;
    top: 35px;
}

/* Ensure the swiper container has enough padding for the scrollbar */
.my-custom-swiper {
    position: relative; /* Ensure the container is positioned relative to position the scrollbar inside */
    padding-bottom: 30px; /* Add 30px padding at the bottom to make space for the scrollbar */
}

/* Custom Swiper scrollbar styles specific to the widget with my-custom-swiper class */
.my-custom-swiper .swiper-horizontal > .swiper-scrollbar, 
.my-custom-swiper .swiper-scrollbar.swiper-scrollbar-horizontal {
    position: absolute;
    bottom: 5px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80%; 
    height: 4px;
    background-color: #f1f1f1;
    z-index: 10; 
}

/* Scrollbar handle (drag element) styling */
.my-custom-swiper .swiper-scrollbar .swiper-scrollbar-drag {
    background-color: gray;
    border-radius: 4px;
    height: 100%;
}

/* Hide scrollbar on mobile */
@media (max-width: 767px) {
    .my-custom-swiper .swiper-scrollbar {
        display: none;
    }
}