
.swiperRelated {
    overflow-x: clip;
}

.relatedProducts {
    width: 70%;
    margin: 8em auto;
    position: relative;
    height: fit-content;
}

.relatedProducts * {
    text-decoration: unset;
}

.relatedProducts h3 {
    font-family: 'General Sans';
}

.relatedProducts .swiper-button-next {
    left: 100%;
    transform: translateX(50%);
    border: 1px solid #292246;
    border-radius: 50px;
    height: 30px;
    transition: all 0.25s ease-in-out;
    width: 30px;
    padding: 0.5em;
}
.relatedProducts .swiper-button-prev {
    left: 0;
    transform: translateX(-150%);
    border: 1px solid #292246;
    border-radius: 50px;
    height: 30px;
    width: 30px;
    transition: all 0.25s ease-in-out;
    padding: 0.5em;
}

.relatedProducts .swiper-button-next::after, .relatedProducts .swiper-button-prev::after {
    content: unset;
}

.relatedProducts .swiper-button-prev svg {
    transform: rotate(180deg);
}

.relatedProducts .swiper-button-prev:hover, .relatedProducts .swiper-button-next:hover {
    background-color: #a6a6a6;
    box-shadow: 0 0 0 7px rgba(166, 166, 166, 0.6);
}




.relatedProducts .swiper-slide:hover .relatedProductImage img {
    transform: scale(1.05);
}


.relatedProductImage img {
    width: 100%;
    height: 100%!important;
    display: block;
    object-fit: contain;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.relatedProductImage {
    border: 2px solid #DCDCDC;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    height: 25vh;
    overflow: hidden;
}

.relatedProductImage img {
    width: 100%;
    height: 100%!important;
    display: block;
    object-fit: contain;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    z-index: -1;
    transition: all 0.25s ease-in-out;
}

.relatedProductTitlePrice {
    background-color: #dcdcdc;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 5% 0;
    height: 12vh;
    display: flex;
    flex-direction: column;
}

.relatedProductTitlePrice h2 {
    font-family: 'General sans';
    color: #1A1A1A;
    font-weight: 700;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 0.5em;
    font-size: 1.1em;
    padding: 0 10%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.relatedProductTitlePrice p {
    font-family: 'General sans';
    color: #1A1A1A;
    font-weight: 700;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    font-size: 1.2em;
    margin-top: auto;
}

@media only screen and (max-width:1600px){
    .relatedProducts {
        width: 83%;
    }
    .relatedProductTitlePrice h2 {
        font-size: 1em;
        padding: 0 10%;
    }
    .relatedProductTitlePrice p {
        font-size: 1.1em;
    }
}

@media only screen and (max-width:800px){
    .relatedProducts .swiper-button-next {
        left: 97%;
    }
    .relatedProducts .swiper-button-prev {
        left: 3%;
    }
    .relatedProductTitlePrice h2 {
        font-size: 1em;
        padding: 0 10%;
    }
    .relatedProductTitlePrice p {
        font-size: 1.1em;
    }
}



@media only screen and (max-width:600px){
    .relatedProducts {
        width: 62%;
    }
    .relatedProducts .swiper-button-next, .relatedProducts .swiper-button-prev {
        width: 16px;
        height: 16px;
    }
    .relatedProducts .swiper-button-next {
        left: 96%;
    }
    .relatedProducts .swiper-button-prev {
        left: 4%;
    }
}

@media only screen and (max-width:400px){
    .relatedProducts {
        width: 71%;
    }
}