/* ============================================================
   Banner tile — appears between products in a product overview.
   Uses the same outer grid wrapper (.col-sm-6 .col-lg-4) as a
   product tile so it slots in without disturbing the grid.
   A full-bleed background image is darkened by a vertical
   gradient so the title reads at the top and the white body
   text + red button read at the bottom.
   ============================================================ */

.bannertile {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 42rem;
    margin-bottom: 5rem;
    overflow: hidden;
    border-radius: 1.6rem;
    background-color: var(--grey-light);
    page-break-inside: avoid;
}

/* Full background image: fills the whole tile behind the content. */
.bannertile__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bannertile__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vertical gradient: transparent at the top, solid black at the bottom. */
.bannertile:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
}

/* Content sits over the image and fills the tile top-to-bottom. */
.bannertile__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    padding: 2rem;
}

.bannertile__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bannertile__title {
    font-size: 5rem;
    line-height: 1.1;
    color: var(--black);
    margin: 0;
}

.bannertile__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bannertile__subtitle {
    color: var(--white);
    font-family: Inter;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .8rem;
}

.bannertile__text {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--white);
}

/* Reuse the existing .button styling; the absolute link handles the click. */
.bannertile__cta {
    margin-top: 2rem;
    pointer-events: none;
}

/* Whole tile is clickable. The link lives inside .bannertile__content so it shares that
   stacking context: it covers the static content (z-index 1) while the interactive product
   buttons are lifted above it (z-index 2) so they stay clickable. */
.bannertile__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---- Featured-product mode ---- */

/* Product content reuses the product-tile markup, but on the dark gradient the text goes white. */
.bannertile .productoverview__title {
    margin-bottom: 1rem;
}

.bannertile .productoverview__title .subtitle {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: .5rem;
    color: var(--white);
}

.bannertile .productoverview__title h3 {
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.bannertile .productoverview__title h3 span {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    opacity: .8;
}

.bannertile .product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.bannertile .product__price-old {
    width: 100%;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: line-through;
    opacity: .8;
}

.bannertile .product__price-default,
.bannertile .product__price-new {
    font-size: 2.4rem;
    font-weight: 700;
    margin-right: .5rem;
}

.bannertile .product__price-pu {
    font-size: 1.1rem;
    margin-top: .7rem;
    opacity: .8;
}

.bannertile__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Interactive product buttons must sit above the whole-tile overlay link. */
.bannertile__actions .button {
    position: relative;
    z-index: 2;
    margin-top: 0;
    white-space: nowrap;
}

/* On mobile the tile no longer shares a row with products, so height: 100% has nothing to
   stretch to — give it a fixed height and a tighter bottom margin instead. */
@media (max-width: 767px) {
    .bannertile {
        height: 50rem;
        margin-bottom: 3rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .bannertile:not(.bannertile--product):has(.bannertile__link:hover) .bannertile__cta {
        background-color: var(--red-hover);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bannertile,
    .bannertile * {
        transition: none !important;
        animation: none !important;
    }
}
