.xtd-smart-products__grid {
    display: grid;
}

.xtd-smart-products__carousel .swiper-slide,
.xtd-smart-product,
.xtd-smart-product__link,
.xtd-smart-product__inner {
    height: 100%;
}

.xtd-smart-product__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.xtd-smart-product__inner {
    display: flex;
    overflow: hidden;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.xtd-smart-product__content {
    display: flex;
    flex: 0 0 var(--xtd-text-width, 50%);
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.xtd-smart-product__image {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
}

.xtd-smart-product__image img {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.xtd-smart-product__title {
    margin: 0;
}

.xtd-smart-product__description,
.xtd-smart-product__price {
    margin-top: 1rem;
}

.xtd-smart-products--one-column .xtd-smart-product__inner {
    flex-direction: column;
}

.xtd-smart-products--one-column .xtd-smart-product__content {
    flex-basis: auto;
}

.xtd-smart-products--image-left .xtd-smart-product__inner {
    flex-direction: row-reverse;
}

.xtd-smart-products--alternating .xtd-smart-product:nth-child(even) .xtd-smart-product__inner,
.xtd-smart-products--alternating .swiper-slide:nth-child(even) .xtd-smart-product__inner {
    flex-direction: row-reverse;
}

.xtd-smart-products--overlay .xtd-smart-product__inner {
    display: grid;
    position: relative;
}

.xtd-smart-products--overlay .xtd-smart-product__content,
.xtd-smart-products--overlay .xtd-smart-product__image {
    grid-area: 1 / 1;
}

.xtd-smart-products--overlay .xtd-smart-product__image img {
    height: 100%;
    width: 100%;
}

.xtd-smart-products--overlay .xtd-smart-product__content {
    align-self: end;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    color: #fff;
    flex-basis: auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.xtd-smart-products--editorial .xtd-smart-products__grid > .xtd-smart-product:first-child {
    grid-column: span 2;
}

.xtd-smart-products--editorial .xtd-smart-products__grid > .xtd-smart-product:first-child .xtd-smart-product__image,
.xtd-smart-products--editorial .swiper-slide:first-child .xtd-smart-product__image {
    flex-basis: 60%;
}

@media (max-width: 767px) {
    .xtd-smart-products--two-columns .xtd-smart-product__inner,
    .xtd-smart-products--image-left .xtd-smart-product__inner,
    .xtd-smart-products--alternating .xtd-smart-product__inner,
    .xtd-smart-products--alternating .xtd-smart-product:nth-child(even) .xtd-smart-product__inner,
    .xtd-smart-products--alternating .swiper-slide:nth-child(even) .xtd-smart-product__inner {
        flex-direction: column;
    }

    .xtd-smart-products--two-columns .xtd-smart-product__content,
    .xtd-smart-products--image-left .xtd-smart-product__content,
    .xtd-smart-products--alternating .xtd-smart-product__content {
        flex-basis: auto;
    }

    .xtd-smart-products--editorial .xtd-smart-products__grid > .xtd-smart-product:first-child {
        grid-column: auto;
    }
}
