.product-cards {
    position: relative;
    z-index: 1;
}

.product-cards--homepage {
    padding: 50px 0 30px;
}

.product-curve {
    position: absolute;
    width: 100%;
    height: auto;
    bottom: -1px;
    left: 0;
    z-index: -1;
}

.product-card-text {
    padding: 0 8px;
}

.product-card-text__wrap {
    text-align: center;
    padding-bottom: 14px;
}

.product-card-flex {
    margin: 0 -8px;
}

.product-card-item {
    margin-top: 16px;
    padding: 0 8px;
}

.product-card {
    display: block;
    background: linear-gradient(135deg, rgba(247, 252, 255, 1) 0%, rgba(216, 240, 255, 1) 100%);
    border-radius: 35px !important;
    overflow: hidden;
    height: 226px;
    padding: 18px 15px 20px;
    text-decoration: none;
    border: none;
    position: relative;
}

.product-card__image {
    height: 132px;
}

.product-card__details {
    padding-top: 17px;
    text-align: center;
}

.product-card__title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #00347B;
    line-height: 1.25em;
    font-weight: 700;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 768px) {

    .product-cards--homepage {
        padding: 89px 0 50px;
    }

    .product-card-flex {
        margin: 0 -16px;
        align-items: flex-end;
    }

    .product-card-text {
        padding: 0 16px;
    }

    .product-card-text__wrap {
        text-align: left;
        padding-bottom: 0;
    }

    .product-card-text__wrap .btn+.btn {
        margin: 20px 0 0 0;
    }


    .product-card-item {
        margin-top: 32px;
        padding: 0 16px;
    }

    .product-card {
        height: 282px;
        padding: 19px 15px 20px;
    }

    .product-card__image {
        height: 177px;
    }

    .product-card__details {
        padding: 20px 5px 0;
    }

    .product-card__title {
        font-size: 19px;
        line-height: 1.263em;
        height: 45px;
    }
}


@media (min-width: 1200px) {

    .product-cards--homepage {
        padding: 87px 0 175px;
    }

    .product-card-text__wrap .btn+.btn {
        margin: 0 0 0 35px;
    }


    .product-card {
        height: 305px;
        padding: 31px 20px 30px;
    }

    .product-card__image {
        height: 188px;
    }

    .product-card__details {
        padding: 4px 0 0;
    }

    .product-card__title {
        font-size: 22px;
        line-height: 1.181em;
        height: 52px;
    }

    .product-card__hover {
        display: none;
    }

    .product-card:hover {
        background: linear-gradient(to right, rgba(252, 221, 49, 1) 0%, rgba(205, 39, 138, 1) 100%);
        padding: 31px 11px 21px;
    }

    .product-card:hover::before {
        content: '';
        position: absolute;
        width: 100%;
        height: calc(100% - 6px);
        top: 0;
        left: 0;
        background: linear-gradient(135deg, rgba(24, 135, 197, 1) 0%, rgba(0, 52, 123, 1) 100%);
        opacity: 0.9;
        border-radius: 35px;
    }

    .product-card:hover .product-card__image {
        height: 100%;
    }

    .product-card:hover .product-card__details {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        color: #fff;
        padding: 0 20px;
    }

    .product-card:hover .product-card__hover {
        display: block;
    }

    .product-card__hover p {
        font-weight: 300;
        margin: 18px 0;
    }

    .product-card:hover .product-card__title {
        color: #fff;
        height: auto;
    }

    .product-card__cta,
    .product-card__cta::before,
    .product-card__cta:hover,
    .product-card__cta:hover::before {
        color: #fff;

        & svg.bubble-wrapper {
            fill: #fff;
            width: 32px;
            height: 32px;
            right: -4px;
    
            & path {
                fill: #fff;
            }
        }
    }

    .product-card__cta::after,
    .product-card__cta:hover::after {
        color: #fff;
    }

    .product-card__cta:hover:before {
        background-image: url(/wp-content/themes/jbsindustries/assets/img/btn-link-arrow.png);
    }
}

.product-cards--homepage .repeater-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .product-cards--homepage .repeater-buttons {
        display: flex;
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
    }
}

@media (min-width: 1200px) {
    .product-cards--homepage .repeater-buttons {
        display: block;
    }
}