/*
 * banner-layers.css - home banners built in Admin > Site > Home banners (em-lib/HomeHero.php).
 * The same file draws the banner on the shop home page and in the admin editor, so what the editor shows is what the shop shows.
 *
 * A banner is a 2.5 : 1 stage (one 2400 x 960 picture for every screen). Every layer is placed in % of the stage and sized in
 * % of its width (cqw), so it keeps the same place and size from a 1440px laptop down to a 360px phone. A layer can have its
 * own place / size on phones (--mx --my --mw --mfs), used when the banner is narrower than 600px.
 */
.bn-stage { position: relative; width: 100%; aspect-ratio: 2.5 / 1; overflow: hidden; container: hbs / inline-size; background: #F6F7F9; }
.bn-stage .bn-bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.bn-stage .bn-cover { position: absolute; inset: 0; z-index: 1; display: block; }
.bn-stage .bn-l { position: absolute; z-index: 2; left: var(--x, 5%); top: var(--y, 10%); width: var(--w, 30%); box-sizing: border-box;
  font-size: calc(var(--fs, 2) * 1cqw); transform: rotate(var(--r, 0deg)); transform-origin: center; }
@container hbs (max-width: 599.98px) {
  .bn-stage .bn-l { left: var(--mx, var(--x, 5%)); top: var(--my, var(--y, 10%)); width: var(--mw, var(--w, 30%)); font-size: calc(var(--mfs, var(--fs, 2)) * 1cqw); }
}

/* text: heading, line of text, badge */
.bn-stage .bn-text { margin: 0; color: var(--c, #141B34); font-family: inherit; font-weight: var(--fw, 700); line-height: var(--lh, 1.1);
  text-align: var(--al, left); letter-spacing: -.02em; white-space: pre-line; overflow-wrap: anywhere; }
.bn-stage .bn-text.bn-shadow { text-shadow: 0 .06em .35em rgba(0, 0, 0, .3); }
.bn-stage .bn-text.bn-pill { width: max-content; max-width: var(--w, 30%); padding: .38em .85em; border-radius: 999px; background: var(--bg, #fff);
  letter-spacing: .02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container hbs (max-width: 599.98px) { .bn-stage .bn-text.bn-pill { max-width: var(--mw, var(--w, 30%)); } }

/* button */
.bn-stage a.bn-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; width: max-content; padding: .72em 1.35em;
  border-radius: var(--rd, .7em); background: var(--bg, #141B34); color: var(--c, #fff); font-weight: 700; line-height: 1; white-space: nowrap;
  text-decoration: none; box-shadow: 0 .4em 1em -.4em rgba(15, 23, 42, .55); transition: filter .15s ease, box-shadow .15s ease; }
.bn-stage a.bn-btn:hover { filter: brightness(1.08); box-shadow: 0 .6em 1.3em -.4em rgba(15, 23, 42, .6); }
.bn-stage a.bn-btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* product photo (live from the catalogue): plain / white tile / white circle, with an optional live price */
.bn-stage .bn-prod { display: block; text-decoration: none; color: #141B34; }
.bn-stage .bn-prod > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bn-stage .bn-prod.bn-plain > img { filter: drop-shadow(0 .5cqw .9cqw rgba(15, 23, 42, .25)); }
.bn-stage .bn-prod.bn-tile { border-radius: 9%; background: #fff; box-shadow: 0 .8cqw 2cqw -.8cqw rgba(15, 23, 42, .45); }
.bn-stage .bn-prod.bn-circle { border-radius: 50%; background: #fff; box-shadow: 0 .8cqw 2cqw -.8cqw rgba(15, 23, 42, .45); }
.bn-stage .bn-prod.bn-tile > img { padding: 8%; }          /* % of the product box (the img's own container), not of the banner */
.bn-stage .bn-prod.bn-circle > img { padding: 15%; }
.bn-stage .bn-prod > img { box-sizing: border-box; transition: transform .25s ease; }
.bn-stage a.bn-prod:hover > img { transform: scale(1.04); }
.bn-stage .bn-price { position: absolute; left: 50%; bottom: -.4em; transform: translateX(-50%); padding: .35em .75em; border-radius: 999px; background: #fff;
  color: #141B34; font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: 0 .3em .8em -.2em rgba(15, 23, 42, .4); }
.bn-stage .bn-price s { margin-left: .35em; font-size: .72em; font-weight: 500; color: #94A3B8; }
.bn-stage .bn-price b { margin-left: .4em; color: #16A34A; font-size: .8em; }

/* sticker / logo picture */
.bn-stage .bn-img { display: block; height: auto; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .bn-stage a.bn-btn, .bn-stage .bn-prod > img { transition: none; } }
/* phones: the price chip shows the price only (the MRP and discount stay on the product page), so chips never run into each other */
@container hbs (max-width: 599.98px) { .bn-stage .bn-price s, .bn-stage .bn-price b { display: none; } }
