/* Product Slider Styles */
div.swiper-wrapper {
    display: flex;
    gap: 0px;
}

.swiper-slide.cps-slide {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.cps-product-card {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: inset 0 0 10px 0 color(srgb 0 0 0 / 0.5);
    border-radius: 0px 0px 0px 50px;
    justify-content: space-between;
}

.cps-product-image {
    height: calc((22.5vw - 15px) * 1.5);
    width: 100%;
}

.cps-product-image a img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.cps-product-info {
    gap: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 20px;
    padding-left: 20px;
    height: fit-content;
    justify-content: space-between;
    overflow-x: hidden;
}

.cps-product-info a.button {
    border: 1px solid;
    border-radius: 0px 0px 0px 30px;
    align-self: flex-end;
    width: 100%;
}

.cps-product-category {
    display: block;
    font-size: 12px;
    font-weight: 300;
    line-height: 1;
    font-style: italic;
    margin-bottom: 8px;
    text-overflow: ellipsis;
    white-space: normal;
}

h3.cps-product-title{
    margin: 0px !important;    
}

h3.cps-product-title a{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin: 0px;
    width: 100%;
    font-size: 1.5rem !important;
    line-height: 1.5rem;
    min-height: 3rem !important;
    max-height: 4.5rem;
    height: 3rem;
    font-family: 'Alata';
    font-weight: 100;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical !important;
    overflow: hidden;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    width: 100%;
    text-align: left;
    margin: 0;
}

/* Style for navigation buttons */
.swiper-button-next, .swiper-button-prev {
    color: #000 !important;
    background-color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    cursor: pointer !important;
}

.swiper-button-next {
    right: 10px !important;
}

.swiper-button-prev {
    left: 10px !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 2rem;
    font-weight: 600;
}

/* Mobile styles */
@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
        background-color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .swiper-button-next {
        right: 5px !important;
    }
    
    .swiper-button-prev {
        left: 5px !important;
    }
    
    .swiper-slide.cps-slide {
        flex-direction: row;
        gap: 20px;
    }

    .cps-product-card {
        width: calc(50% - 10px);
        border-radius: 0 0 0 30px;
    }

    .cps-product-image {
        height: calc((90vw) * 0.9); /* Adjust image height based on full width */
    }

    h3.cps-product-title a{
        /*font-size: 2.25rem !important;*/
        font-family: 'Alata';
        font-weight: 100;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
        text-align: left;
        margin: 0;
           font-size: 1.25rem !important; /* Reduced from 2.25rem */
    line-height: 1.5rem !important;
	max-height: 4.5rem;
	height:4.5rem;
   
    -webkit-line-clamp: 3;
    }
}
