:root {
    --tile-size: 216px;
}
.tiles {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem 1rem;
    padding-bottom: 1rem;
    justify-content: center;
}
.tile {
    --img-url: '';
    --double-img-url: '';
    --list-img-url: '';
    position: relative;
    flex: 1;
    height: var(--tile-size);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
}
.slick-slide .tile {
   margin-inline: 1rem;
}
.tile.good-deal .tile-caption {
    display: none;
}
.tile.action-set .tile-caption,
.tile.action-bb .tile-caption {
    z-index: 1;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--dngr-text);
    background: var(--dngr);
    opacity: 0.9;
}
.tile.good-deal:hover .tile-caption,
.tile.action-set:hover .tile-caption,
.tile.action-bb:hover .tile-caption {
    color: var(--dngr-text);
    background: var(--dngr-hov);
}
.tile.concept .tile-caption {
    z-index: 1;
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-align: center;
    font-size: 1rem;
    color: var(--sccss-text);
    background: var(--concept);
    opacity: 0.9;
}
.tile.concept:hover .tile-caption {
    color: var(--sccss-text-hov);
    background: var(--concept-hov);
}
.tile-bg {
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    background-size: contain;    
    transition: transform .5s;
    background-image: var(--img-url);
}
.tile.good-deal .tile-bg,
.tile.action-set .tile-bg {
    background-repeat: no-repeat;
}
.tile.good-deal .advert-note {
    position: absolute;
    bottom: 0;
    padding: .1rem .4rem;
    border-top-right-radius: var(--radius);
    background-color: rgba(255,255,255,.75);
    font-size: .6rem;
    font-weight: initial;
    color: var(--color);
}
.tile.good-deal .tile-price {
    position: absolute;
    bottom: 10px;
    right: -10px;
    width: 100px;
    aspect-ratio: 2 / 1;
    display: flex;
    flex-flow: column;
    justify-content: center; 
    align-items: center; 
    background: url('/images/icons/ad-price-f9f871.svg') no-repeat;
}
.tile.good-deal .tile-price > span {
    color: var(--dngr);
}
.tile.good-deal .tile-amount {
    line-height: 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
}
.tile.good-deal .tile-units {
    line-height: 0.6rem;
    font-size: 0.6rem;
    font-weight: normal;
}
a:not(.no-pointer) .tile:hover .tile-bg {
    transform: scale(1.06);
}
.tile + .advert-date {
    display: none;
    color: var(--color);
    font-weight: 400;
    text-align: center;
}
.tiles a .promo-date,
.tiles a:hover .promo-date {
    color: var(--color);
    font-weight: 400;
    text-align: center;
}
.tiles a[href*="promoid:expo"] {
    display: none;
}
.tiles a[href*="promoid:VV"] .promo-date {
    display: none;
}
.advert-card {
    display: flex;
    flex-flow: column;
    height: max-content;
    aspect-ratio: 328 / 232;
    border-radius: var(--radius);
}
.list-view .advert-card {
    width: calc(100vw - 1.5rem);
    max-width: 686px;
    aspect-ratio: 686 / 144;
    place-self: stretch center;
    margin-block: 0.5rem;
}
.list-view .advert-card .tile .tile-bg {
    background-image: var(--list-img-url);
}
.list-view .is-double,
.is-double {
    grid-column: span 1;
}
.double-vertical .tile {
    grid-row: span 2;
    height: calc(var(--tile-size) * 2 + 1rem);
    width: var(--tile-size);
}
.double-vertical .tile .tile-bg {
    background-image: var(--double-img-url);
}
.advert-card > .tile,
.is-double > .tile {
    aspect-ratio: auto;
}

/* md */
@media (min-width: 768px) {
    .tiles {
        justify-content: stretch;
    }
    .list-view .advert-card {
        width: calc(100vw - 1.5rem - var(--sidebar));
    }
}
/* lg */
@media (min-width: 992px) {
    .is-double {
        grid-column: span 2;
    }

    .is-double .tile-bg {
        background-image: var(--double-img-url);
    }
}