/* Ensure the swiper container and slides are correctly set */
.hps-swiper-container {
    width:100%;
    /*max-width: 1685px; */
    height: 475px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 15px;
}
.hps-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;     
    color:black;        
}

.hps-custom-add-to-cart-button:hover .hps-cart-svg {
    content: url('assets/add-to-cart-nf-icon-hover.svg');
}


.hps-swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

img.hps-cart-svg {
    height: 30px!important;
    width:30px!important;
}

/* Product image styling */
.hps-myswiper-product-image {
    position: relative;
    display: flex;
    justify-content: left;
    align-items: center;
    height: 317px;
    width: 100%;
}

.hps-myswiper-product-image img {
    width: 262px;
    height: 317px;
    object-fit: cover;
}

.hps-swiper-horizontal {
    margin-bottom: 20px;
}

/* Product information styles */
.hps-swiper-slide .hps-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.hps-swiper-slide .hps-price-and-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap:10px;
    position: relative;
}

.hps-swiper-price-wrapper {
    flex-grow: 1;
    text-align: left;
}


.hps-swiper-cart-wrapper {
    flex-shrink: 0;
    margin-left: auto;
}

.hps-swiper-product-title, .hps-swiper-product-description {
    text-align: center;
    width: 100%;
}

.hps-price-and-cart .hps-custom-add-to-cart-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hps-swiper-product-title {
    color: #282828;
    font-size: 16px;
    font-family: "Fira Sans", Sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
}

.hps-cart .add-to-cart-icon::before {
    content: none!important; /* or whatever content you want */

  }


  .hps-custom-add-to-cart-button:focus,
.hps-custom-add-to-cart-button:active {
    background-color:white!important;
    color: white;
    outline: none;
    box-shadow: none;
    border-radius: 100px;;
    
}

/*.hps-custom-add-to-cart-button {
    padding-top:10px!important;
    padding-left:20px!important;
    padding-right:20px!important;
    padding-bottom:10px!important;
}*/

  

.hps-swiper-product-description {
    color: #000;
    font-size: 16px;
    font-family: "Fira Sans", Sans-serif;
    line-height:20px;
    font-weight: 300;
    margin-bottom: 10px;
    margin-top:10px;
}

/* Price styles */
.hps-swiper-sale-price, .hps-swiper-slide .hps-swiper-regular-price {
    font-family: "Fira Sans", Sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #de1528;
    text-align: center;
    margin-right: 10px;
    height: 19px;
}

.hps-swiper-slide .woocommerce-Price-amount bdi {
    font-size: 16px;
}

.hps-swiper-sale-price del, .hps-swiper-sale-price del span, .hps-swiper-sale-price del bdi {
    color: #282828;
    text-decoration: line-through;
    font-weight: 300;
}

.hps-swiper-sale-price ins, .hps-swiper-sale-price ins span, .hps-swiper-sale-price ins bdi {
    color: #28a745;
    text-decoration: none;
}

/* Cart icon styles */
.hps-cart-icon {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-left: 20px;
}


.hps-cart-button {
    margin-left: 80px;
}

/* Discount badge */
.hps-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 */
.hps-swiper-sale-price del, 
.hps-swiper-sale-price del span, 
.hps-swiper-sale-price del bdi {
    color: #282828;
    text-decoration: line-through;
    padding-right: 5px;
}

a.hps-myswiper-link.hps-product-link {
    width:300px;
}

.hps-swiper-sale-price ins, 
.hps-swiper-sale-price ins span, 
.hps-swiper-sale-price ins bdi {
    color: #000;
    text-decoration: none;
    font-size:24px;
}

.hps-swiper-sale-price {
    display: flex;
    align-items: center;
}

/* Mobile product description */
.hps-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 0.3s ease, color 0.3s ease;
    border-radius: 100px;
    display: block; /*  always visible */
    width: 100%;
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
    position: static; /*  no absolute */
    transform: none;
    z-index: 2;
    cursor: pointer;
}

.hps-custom-add-to-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1FB25A;
    color: #FFF;
    border: 1px solid #1FB25A;
    border-radius: 30px;
    padding: 8px 12px;
    height: 36px;
    font-size: 14px;
    cursor: pointer;
}




.ak-add-to-cart-icon-2 img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.swiper-slide.hps-product-item.swiper-slide-active {
    margin-right:120px!important;
    width:300px!important;
}

.swiper-slide.hps-product-item.swiper-slide-next {
    margin-right:120px!important;
    width:300px!important;
}

.swiper-slide.hps-product-item {
    margin-right:120px!important;
    width:300px!important;
} 
.menu-rating-stars.home {
    margin:0px!important;
}

.swiper-slide {
    flex-shrink: 0;
}

.homeproductswiperarrowleft {
    left: -50px!important;
}

.homeproductswiperarrowright img {
    height:60px!important;
}


.homeproductswiperarrowright {
    right: 10px!important;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
    content: none !important;
}



@media (max-width: 768px) {

    .hps-cart-button {
        margin-left: 40px !important;
    }

    .hps-swiper-product-description-mobile {
        display: block;
        text-align: center;
        width: 100%;
        color: #000;
        font-size: 16px;
        line-height:18px;
        margin-top:10px;
        font-family: "Fira Sans", Sans-serif;
        font-weight: 300;
    }

    .hps-swiper-product-description {
        display: none !important;
    }

    .hps-swiper-slide .hps-discount-badge {
        right: 0px;
    }

    .hps-swiper-horizontal {
        margin-bottom: 0px;
    }

    .hps-product-item .ak-add-to-cart-icon-2 {
        display: block !important;
        opacity: 1 !important;
        position: static;
        transform: none;
        margin-bottom: 10px;
        width: 100%;
    }

    .hps-product-item .hps-product-description,
    .hps-product-item .hps-price,
    .hps-product-item .hps-price-and-cart {
        opacity: 1 !important;
    }

    .hps-product-item .hps-product-image,
    .hps-product-item .hps-discount-badge {
        opacity: 1;
    }
}

.hps-best-seller-badge {
    width: 100%;
    position: absolute;
    left: 0px;
    top: 35px;
}

/*.swiper-container {
    width: 100%;
    overflow: visible;
    overflow-x: auto !important;
}

.swiper-wrapper {
    display: flex;
    overflow-x: auto;
    width: auto !important;
    flex-wrap:nowrap;
}*/

.swiper-slide.hps-product-item {
    width: 300px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-right: 30px;
}

/* 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 */
    position: relative;
}

/* 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%;
}

button.add-to-cart-icon.hps-custom-add-to-cart-button {
    line-height: 16px!important;
}


.hps-price-and-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.hps-swiper-price-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    pointer-events: none; /* So it doesn't block button clicks */
}

.hps-swiper-cart-wrapper {
    flex-shrink: 0;
}

.hps-custom-add-to-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1FB25A;
    color: #FFF;
    border: 1px solid #1FB25A;
    border-radius: 30px;
    padding: 8px 12px;
    height: 36px;
    line-height: 1;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.hps-custom-add-to-cart-button img {
    width: 20px;
    height: 20px;
    margin: 0;
}


/* Hide scrollbar on mobile */
@media (max-width: 767px) {
    .my-custom-swiper .swiper-scrollbar {
        display: none;
    }
}