/* --- PRODUCT / CATEGORY TEASER --- */
.tiles .tile--img {
    width: 100%;
}
.tiles__container {
    margin-top: -3rem;
}
.tiles__container .tile {
    margin-top: 3rem;
}
.tiles .teaser-box,
.tiles .teaser-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    container-type: inline-size;
}
.tiles .teaser-content {
    flex: 1 1 auto;
    justify-content: space-between;
    align-items: flex-start;
    display: flex;
}
.tiles .teaser-box .teaser-image .lazy-element {
    width: 100%;
    height: 100%;
}
.tiles .teaser-content .a-arrow:after {
    top: 0;
}
.tiles .teaser-content {
    padding: 1.5em;
}
.tiles .teaser-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    width: 320px;
    margin: auto;
    padding: 40px;
}
.tiles .col-lg-2 .teaser-image {
    height: auto;
}
.shop-teaser .teaser-image {
    background: #ededed;
    border-radius: 10px;
    width: 100%;
    height: auto;
    position: relative;
}
.teaser-image--bg {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-blend-mode: darken;
    background-color: #ededed;
    background-repeat: no-repeat;
    background-position: center;
    max-height: 240px;
    transition: transform .3s ease-out;
}
.shop-teaser:hover .teaser-image--bg {
    transform: scale(1.1);
}
.shop-teaser .h5 {
    color: var(--hy-black);
    transition: color .2s;
}
.shop-teaser a:hover .h5 {
    color: #00C2D3;
}
.shop-teaser__description-toggle {
    opacity: 0;
    position: absolute;
    right: 20px;
    top: 280px;
    color: #fff;
    border: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    line-height: 0;
    background-color: var(--hy-grey);
    transition: background-color .2s, opacity .3s;
    font-size: .9rem;
    font-weight: bold;
}
.shop-teaser:hover .shop-teaser__description-toggle {
    opacity: 1;
}
.shop-teaser__description-toggle:hover {
    background-color: var(--hy-teal);
}
.shop-teaser__description-close {
    position: absolute;
    right: 17px;
    top: 278px;
    border: 0;
    background-color: transparent;
    z-index: 2;
    color: var(--hy-grey);
    line-height: 0;
    font-size: 1.5rem;
    padding: 0;
    display: none;
}
.shop-teaser__description-close:before {
    margin: 0;
}
.shop-teaser__description-close:hover {
    color: var(--hy-teal);
}
.shop-teaser--active .shop-teaser__description-toggle {
    display: none;
}
.shop-teaser--active .shop-teaser__description-close {
    display: block;
}
.shop-teaser__description-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 15px 20px;
    transform: scale(0);
    background-color: var(--hy-black);
    border-radius: 10px;
    color: #fff;
    z-index: 1;
    opacity: 0;
    transition: opacity .5s, transform .2s ease-out;
    font-size: 12px;
}
.shop-teaser__description-content__truncate {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 14;
    overflow: hidden;
    text-overflow: ellipsis;
}
.col-lg-2 .shop-teaser__description-content__truncate {
    -webkit-line-clamp: 8;
}
.shop-teaser--active a {
    pointer-events: none;
}
.shop-teaser--active .shop-teaser__description-content {
    transform: scale(1);
    opacity: 1;
}

@container (max-width: 310px) {
    .shop-teaser__description-toggle {
        top: 270px;
    }
    .shop-teaser__description-close {
        top: 266px;
    }
    .shop-teaser__description-content__truncate {
        -webkit-line-clamp: 14;
    }
}
@container (max-width: 280px) {
    .shop-teaser__description-toggle {
        top: 240px;
    }
    .shop-teaser__description-close {
        top: 236px;
    }
    .shop-teaser__description-content__truncate {
        -webkit-line-clamp: 12;
    }
}
@container (max-width: 245px) {
    .shop-teaser__description-toggle {
        top: 205px;
    }
    .shop-teaser__description-close {
        top: 201px;
    }
    .shop-teaser__description-content__truncate {
        -webkit-line-clamp: 10;
    }
}
@container (max-width: 200px) {
    .shop-teaser__description-toggle {
        top: 160px;
    }
    .shop-teaser__description-close {
        top: 156px;
    }
    .shop-teaser__description-content__truncate {
        -webkit-line-clamp: 8;
    }
}
@container (max-width: 194px) {
    .shop-teaser__description-toggle {
        top: 160px;
    }
    .shop-teaser__description-close {
        top: 156px;
    }
}
@container (max-width: 150px) {
    .shop-teaser__description-toggle {
        top: 115px;
    }
    .shop-teaser__description-close {
        top: 111px;
    }
    .shop-teaser__description-content__truncate {
        -webkit-line-clamp: 5;
    }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* --- TABLET (MD) --- */
@media ( min-width: 768px ) {
    /* --- PRODUCT / CATEGORY TEASER --- */
    .tiles .col-lg-2 .teaser-image {
        padding: 20px;
    }
}
/* --- DESKTOP (LG) --- */
@media (min-width: 992px) {
    .tiles .col-lg-3 .teaser-content,
    .tiles .col-lg-4 .teaser-content,
    .tiles .col-lg-6 .teaser-content {
        padding: 2em;
    }
    .tiles .col-lg-8 .teaser-content {
        padding: 3em;
    }
    .tiles .teaser-image {
        width: 100%;
    }
}

/* --- DESKTOP (XL) --- */
@media (min-width: 1200px) {
    .tiles__container .tile
    {
        margin-top: 4.5rem;
    }
}

/* --- DESKTOP (XXL) --- */
@media ( min-width: 1440px ) {
    /* --- PRODUCT / CATEGORY TEASER --- */
    .tiles .col-lg-2 .teaser-image {
        padding: 34px;
    }

}
