.custom-product-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 0;
    margin-left: -57px;
    margin-right: -54px;
    opacity: 1;
    transform: translateY(0);
    /* overflow-x: hidden;
    max-width: 100%; */
}

.custom-product-card {
    background: #fff;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out;
    flex: 1 1 calc(33.33% - 30px);
    max-width: calc(33.33% - 50px);
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.custom-product-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    border-top-right-radius: 100px;
    display: flex;
    justify-content: center;
    /* center image horizontally */
    align-items: center;
}

.custom-product-image img {
    width: 70%;
    height: 100%;
    /* object-fit: cover; */
    display: block;
    border-radius: 20px 20px 0 0;
    object-fit: contain;
}

.custom-product-content {
    padding: 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    width: 100%;
    border: 1px solid #ddd;
}

.custom-product-content h3 {
    font-size: 28px;
    font-weight: 500;
    color: #222;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.custom-product-image a {
    all: unset !important;
    display: inline-block !important;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}



.custom-product-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* .custom-product-card:hover {
    transform: translateY(-8px);
} */
#read-more-products,
#read-less-products {
    z-index: 9999 !important;
    position: relative;
}

@media (max-width: 767px) {
    .custom-product-grid {
        margin-left: 34px;
        margin-right: 10px;
        width: 10px;
    }

    .custom-product-card {
        min-width: 374px;
    }
}