
.related-product-wrapper{
    padding-right: 15px;
    padding-left: 15px;
    padding-bottom: 8px;
    margin-right: 105.5px;
    margin-left: 105.5px;
}

.related-product-list-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Adjust spacing between cards */
}

.related-product-header h3{
    margin-top: 30px;
    font-size: 23px;
    letter-spacing: 0;
    font-weight:500;
    color: #464646;
    margin-bottom: .5rem;
    line-height: 1.2;
    box-sizing: border-box;
    font-variant-ligatures: none;
}

.related-product-wrapper .product-card-image {
    display: flex;
    justify-content: flex-end;
}

.related-product-wrapper .product-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    position: relative;
    top: 142px;
    z-index: 1;
    margin-bottom: 6rem;
}

.related-product-wrapper .product-card{
width: 100%;
height: 100%;
}

.related-product-wrapper .card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #F9F8F5;
    background-clip: border-box;
    border-radius: 0.25rem;
    box-sizing: border-box;
    padding: 70px 10px 20px;
    overflow: hidden;
    height: 420px;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
}

.related-product-wrapper .product-card .card-body{
    margin-bottom: 10px;
}

.related-product-wrapper .product-card .card-body a {
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    font-size: 20px;
    line-height: 35px;
    font-weight: 700;
    overflow: hidden;
    text-align: left;
    color: #14577B;
}

.related-product-wrapper .product-card .model-div a {
    color: #464646;
    background-color: transparent;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    text-transform: uppercase;
    margin-top: -0.375rem;
    font-weight: 400;
    font-variant-ligatures: none;
}

.related-product-wrapper .product-card .card-body a:hover {
    color: #14577B;
}

.related-product-wrapper .model-div{
    padding-bottom: 5px;
}

.related-product-wrapper .product-description {
    color: #464646;
    background-color: transparent;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 1rem;
    word-wrap: break-word;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 24px;
    max-width: 100%;
}

.related-product-wrapper .product-model {
    margin-bottom: 1rem;
    box-sizing: border-box;
    color: #464646;
    font-size: 1rem;
    font-weight: 400;
}

.related-product-wrapper .product-purpose {
    text-transform: uppercase;
    color: #464646;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0;
    margin-top: auto; /* Pushes the content to the bottom */
    text-align: center; /* Centers text horizontally */
    display: flex; /* Use flexbox */
    justify-content: left; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
}

@media (width <= 1470px) {
    .related-product-wrapper .product-card-image {
        display: flex;
        justify-content: center; /* Align the image container to the right */
    }

    .related-product-wrapper .product-card-image img {
        width: 100%; /* Adjust the width as per your design */
        height: auto;
        border-radius: 5px;
        position: relative;
        top: 142px; /* Adjust the vertical position as needed */
        z-index: 1;
        margin-bottom: 6rem;
        right: 0; /* Align the image to the right side of the container */
    }
}


@media (width <= 1024px) {
    /* For desktop sizes */
    .related-product-wrapper .product-card-image {
        display: flex;
        justify-content: center;
    }
}

 @media (width <= 990px) {
    .related-product-wrapper .product-card-image {
        display: flex;
        justify-content: center; /* Align the image to the center horizontally */
        align-items: center; /* Align the image to the center vertically */
        margin-bottom: 6rem;
    }

    .related-product-wrapper .product-card-image img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        position: relative;
        top: 160px; /* Keep the offset for visual alignment */
        z-index: 1; /* Set z-index to 0 */
    }

}


@media (width <= 768px) {
    .related-product-list-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
    }


    .related-product-wrapper .product-card-image {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 6rem;
        margin-top: -48px;
    }

    .related-product-wrapper .product-card-image img {
        display: block;
        margin: 0;
        max-width: 100%;
        border-radius: 5px;
        position: relative;
        top: 200px;
        z-index: 1;
        width: 300px;
        height: 300px;
    }

    .related-product-wrapper .product-card .card-body a {
        display: block;
        max-width: 99%;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        box-sizing: border-box;
    }



    .related-product-wrapper {
        margin: 0 auto;
        overflow-x: hidden;
        padding: 0;
    }

    .related-product-wrapper .card-content {
        width: auto;
        padding: 128px 15px 15px; /* Consolidated padding: top, left/right, bottom */
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Ensures proper spacing between content */
    }

    .related-product-wrapper .product-description {
        max-width: 95%;
    }

    .related-product-wrapper .product-purpose {
        display: flex;
        justify-content: left;
        padding: 0;
    }
}
