/* Uniform product card image heights site-wide */
.product__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product__card--thumbnail {
    padding: 0;
    flex-shrink: 0;
}

.product__card--thumbnail__link {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f6f8;
}

.product__card--thumbnail__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product__card--thumbnail__link .product__primary--img {
    position: absolute;
    top: 0;
    left: 0;
}

.product__card--content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product__card--action form {
    display: flex;
    margin: 0;
}

button.product__card--action__btn,
button.product__card--btn {
    border: 0;
    cursor: pointer;
}

button.product__card--action__btn {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.product__card--btn {
    width: 100%;
}

@media only screen and (max-width: 991px) {
    .product__card--action {
        opacity: 1;
        visibility: visible;
        bottom: 12px;
    }

    .product__card--action__btn {
        transform: scale(1);
    }
}

/* Equal-height cards in grids and carousels */
.product__section .swiper-slide,
.row > .col.mb-30 {
    display: flex;
    flex-direction: column;
    height: auto;
}

.product__section .swiper-slide .product__card,
.row > .col.mb-30 .product__card {
    width: 100%;
    flex: 1;
}

/* Category cards — uniform image area */
.categories__card--pro .categories__card--media {
    height: 160px;
}

.categories__card--pro .categories__card--media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media only screen and (max-width: 767px) {
    .product__card--thumbnail__link {
        height: 180px;
    }

    .categories__card--pro .categories__card--media {
        height: 130px;
    }
}
