/* Ilumaailm brand showcase (spec 2026-11-20-ilumaailm-vitriin-brandid): bento of the brand top 3 + white logo strip */
.bh { --bh-h: clamp(440px, 39.5vw, 600px); --bh-sc-img-h: calc((var(--bh-h) - 16px) / 2 - 60px); --bh-surface: #F8F7F4; --bh-strip: #fff; --bh-ink: #151515; background: var(--bh-surface); padding-top: 24px; color: var(--bh-ink); }
/* Martin 20.11 evening: the world switch must not jump. The header is edge to edge like on the Elamused hero
   (logo 24 px from the edge) and the plum header melts into the showcase instead of ending in a hard edge. */
body.world-ilu:has(.bh) .nh-header { border-bottom: 0 !important; box-shadow: none !important; }
body.world-ilu .view-content:has(> .bh) { padding-top: 0 !important; }
.bh { background: linear-gradient(180deg, #160711 0, #3B2233 36px, #B9A9AF 120px, var(--bh-surface) 230px); }
@media (min-width: 576px) {
  body.world-ilu:has(.bh) .nh-header { margin-left: -.5rem !important; margin-right: -.5rem !important; }
  .bh { margin-left: -.5rem; margin-right: -.5rem; }
}
.bh__bento { display: grid; height: var(--bh-h); max-width: 1680px; margin: 0 auto; padding: 0 56px; box-sizing: border-box; }
.bh__set { grid-area: 1 / 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; transition: opacity .55s ease; }
.bh__set.is-entering, .bh__set.is-leaving { opacity: 0; }
.bh__set.is-leaving { pointer-events: none; }

/* card = text column + picture area; text never on the picture */
.bh-card { --bh-ew: 60%; --bh-eh: 95%; --bh-x: 80%; --bh-y: 50%; position: relative; min-width: 0; min-height: 0; display: grid; border-radius: 24px; overflow: hidden; color: var(--bh-ink); text-decoration: none; background: #fff radial-gradient(ellipse var(--bh-ew) var(--bh-eh) at var(--bh-x) var(--bh-y), #FFF 0%, #FFF 28%, var(--bh-t, #FCEEF4) 62%, var(--bh-d, #F9DDEA) 100%); }
a.bh-card:hover, a.bh-card:focus { color: var(--bh-ink); text-decoration: none; }
.bh-card:focus-visible { outline: 3px solid rgba(21, 21, 21, .45); outline-offset: 3px; }
.bh-card--big { grid-row: 1 / span 2; grid-template-columns: minmax(0, 1fr) 52%; --bh-ew: 55%; --bh-eh: 85%; --bh-x: 74%; }
.bh-card--small { grid-template-columns: minmax(0, 1fr) 40%; }
.bh-card__txt { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 0 8px 0 44px; }
.bh-card--small .bh-card__txt { gap: 10px; padding: 64px 8px 0 28px; }
.bh-card__brand { font-size: 26px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #111; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
a.bh-card__brand:hover, a.bh-card__brand:focus { color: #111; text-decoration: none; }
.bh-card--small .bh-card__brand { font-size: 18px; }
.bh-card__title { margin: 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--bh-ink); }
.bh-card__title, .bh-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; }
.bh-card__title--long { font-size: clamp(26px, 2.64vw, 38px); }
.bh-card__title--xlong { font-size: clamp(24px, 2.22vw, 32px); }
.bh-card__title a { color: inherit; text-decoration: none; }
.bh-card__title a:hover { color: inherit; text-decoration: none; }
.bh-card__size { font-size: 17px; font-weight: 700; line-height: 1.2; color: #5F5F5F; margin-top: -6px; }
.bh-card--small .bh-card__size { font-size: 15px; margin-top: -4px; }
.bh-card__name { font-size: clamp(18px, 1.8vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
/* discount (Martin 20.11 evening; bigger after live: 40/60 px) */
/* discount (Martin 20.11 evening): a black tag in the card's top left corner, never on the price row */
.bh-corner { position: absolute; left: 20px; top: 20px; z-index: 2; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 12px; background: #151515; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1; white-space: nowrap; pointer-events: none; }
.bh-corner--big { left: 28px; top: 28px; height: 60px; padding: 0 18px; border-radius: 15px; font-size: 40px; }
/* price row: sale price + struck regular price on one line; sizes follow the text column (cqi; the mock sizes at 1440),
   a row that still does not fit wraps the regular price, never onto the picture */
.bh-card__txt { container-type: inline-size; }
.bh-card__price { white-space: nowrap; display: flex; align-items: baseline; flex-wrap: wrap; row-gap: 2px; column-gap: 10px; column-gap: clamp(5px, 2.9cqi, 10px); max-width: 100%; }
.bh-card--small .bh-card__price { column-gap: 6px; column-gap: clamp(4px, 2.4cqi, 6px); }
.bh-card__now { font-size: clamp(26px, 2.64vw, 38px); font-size: clamp(16px, 11.2cqi, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.bh-card__now small { font-size: .55em; font-weight: 700; margin-right: 4px; }
.bh-card__was { font-size: 18px; font-size: clamp(11px, 5.3cqi, 18px); color: #6F6F6F; text-decoration: line-through; font-weight: 600; }
.bh-card--small .bh-card__now { font-size: clamp(18px, 1.8vw, 26px); font-size: clamp(13px, 10.3cqi, 26px); }
.bh-card--small .bh-card__was { font-size: 15px; font-size: clamp(11px, 6cqi, 15px); }
.bh-card__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bh-card__cta { display: flex; align-items: center; gap: 14px; }
.bh .bh-card__view { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 79px; border-radius: 15px; font-size: 19px; font-weight: 800; line-height: 1; }

/* picture area: packshot cut at the white edge, contain, bottom centre; white melts into the backdrop */
.bh-card__img { min-width: 0; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.bh-card--big .bh-card__img { padding: 40px 40px 36px 0; }
.bh-card--small .bh-card__img { padding: 20px 20px 20px 0; }
.bh-pk { display: block; width: auto; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; transition: transform .35s ease; }
.bh-card:hover .bh-pk { transform: scale(1.025); }

/* wide product on the big card (Martin 20.11 evening: «sarnasem tavalisega»): the same layout as a tall one, text left
   (name up to 2 lines), only the picture area a bit wider; the picture sits in the middle of it */
.bh-card--big.bh-card--wide { grid-template-columns: minmax(0, 1fr) 52%; --bh-x: 72%; }
.bh-card--big.bh-card--wide .bh-card__title--long { font-size: clamp(24px, 2.22vw, 32px); }
.bh-card--big.bh-card--wide .bh-card__title--xlong { font-size: clamp(22px, 1.95vw, 28px); }
.bh-card--big.bh-card--wide .bh-card__img { align-items: center; }
.bh-card--big.bh-card--wide .bh-pk { width: 100%; height: auto; object-position: center; }
/* small cards (Martin 20.11 evening): the text column at least 240 px, the picture area only the rest. Both small cards of a brand
   share one picture height: min(area height, (card - 240 px - 20 px) / --bh-r), --bh-r = the pair's widest w/h from the server
   (IlumaailmBrandHero::rowRatio), so the pictures are as high and never reach the text. No size known: plain contain. */
.bh-card--small:not(.bh-card--wide) { grid-template-columns: minmax(240px, 1fr) minmax(0, 40%); }
.bh-card--small.bh-card--fixh { grid-template-columns: minmax(240px, 1fr) minmax(0, max-content); }
.bh-card--small.bh-card--fixh .bh-pk { height: var(--bh-sc-img-h); height: min(calc(100cqh - 60px), calc((100cqw - 260px) / var(--bh-r, 1))); width: auto; max-width: 100%; max-height: none; }
@media (min-width: 1100px) { .bh-card--small { container-type: size; } }
.bh-card--small.bh-card--wide { grid-template-columns: minmax(240px, 1fr) minmax(0, 50%); --bh-x: 75%; }
.bh-card--small.bh-card--wide .bh-card__img { align-items: center; }
.bh-card--small.bh-card--wide .bh-pk { width: 100%; height: auto; object-position: center; }

/* logo strip (no title); timer B: the active card's background fills left to right */
.bh__strip { position: relative; margin-top: 24px; background: var(--bh-strip); border-top: 1px solid #EEE; }
.bh__row { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 32px 140px 40px max(56px, calc((100% - 1680px) / 2 + 56px)); scroll-padding-left: 56px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bh__row::-webkit-scrollbar { display: none; }
.bh-logo { position: relative; flex: 0 0 156px; height: 92px; border-radius: 18px; background: var(--bh-logo-bg, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .06); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #151515; text-decoration: none; transition: box-shadow .3s ease; }
.bh-logo:hover, .bh-logo:focus { color: #151515; text-decoration: none; }
.bh-logo:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 10px 26px rgba(0, 0, 0, .1); }
.bh-logo.is-on { box-shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 18px 40px rgba(0, 0, 0, .14); }
.bh-logo:focus-visible { outline: 3px solid rgba(21, 21, 21, .45); outline-offset: 3px; }
.bh-logo img { position: relative; max-width: 112px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.bh-logo__name { position: relative; font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 600; text-align: center; line-height: 1.1; padding: 0 10px; }
.bh-logo__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(123, 63, 228, .08), rgba(240, 82, 143, .14)); pointer-events: none; }
.bh.is-auto .bh-logo.is-on .bh-logo__fill { animation: bh-fill var(--bh-dur, 7000ms) linear forwards; }
.bh.is-paused .bh-logo.is-on .bh-logo__fill { animation-play-state: paused; }
@keyframes bh-fill { from { width: 0; } to { width: 100%; } }
.bh__fade { position: absolute; right: 0; top: 0; bottom: 0; width: 180px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--bh-strip) 70%); pointer-events: none; transition: opacity .2s; }
.bh.is-row-end .bh__fade { opacity: 0; }
.bh__arrow { position: absolute; right: 56px; top: 54px; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid #D6D6D6; color: #151515; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bh__arrow:hover { border-color: #151515; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.bh__arrow:focus-visible { outline: 3px solid rgba(21, 21, 21, .45); outline-offset: 3px; }
.bh__pause { position: absolute; left: 56px; top: 6px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: #151515; color: #fff; border: 0; font-size: 13px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    .bh__set { transition: none; }
    .bh-logo__fill { display: none; }
    .bh-pk { transition: none; }
}

@media (max-width: 1199.98px) {
    .bh__bento { padding: 0 24px; }
    .bh__row { padding-left: 24px; scroll-padding-left: 24px; }
    .bh__arrow { right: 24px; }
    .bh__pause { left: 24px; }
    .bh-card__txt { padding-left: 28px; }
    .bh-card--small .bh-card__txt { padding-left: 20px; }
    .bh-card__brand { font-size: 20px; }
    .bh-card--small .bh-card__brand { font-size: 15px; }
    .bh .bh-card__view { height: 50px; padding: 0 64px; font-size: 17px; }
}

/* phone and tablet (under 1100 px a 240 px text column and a picture do not fit side by side): big card full width
   (picture on top), two small cards side by side (picture on top, one height), then the logo strip */
@media (max-width: 1099.98px) {
    .bh { padding-top: 12px; }
    .bh__bento { height: auto; padding: 0 16px; }
    .bh__set { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
    .bh-card { border-radius: 20px; --bh-ew: 80%; --bh-eh: 70%; --bh-x: 50%; --bh-y: 34%; }
    .bh-card--big, .bh-card--big.bh-card--wide { grid-column: 1 / -1; grid-row: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: 260px auto; --bh-ew: 80%; --bh-eh: 70%; --bh-x: 50%; --bh-y: 34%; }
    .bh-card--small, .bh-card--small.bh-card--wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px auto; --bh-x: 50%; --bh-y: 34%; }
    .bh-card__img, .bh-card--small.bh-card--wide .bh-card__img { grid-row: 1; align-items: flex-end; justify-content: center; }
    .bh-card__txt { grid-row: 2; }
    .bh-card--big .bh-card__img, .bh-card--big.bh-card--wide .bh-card__img { padding: 20px 20px 4px; justify-content: center; }
    .bh-card--small .bh-card__img { padding: 12px 8px 2px; }
    .bh-card--small:not(.bh-card--wide), .bh-card--small.bh-card--fixh { grid-template-columns: minmax(0, 1fr); }
    .bh-card--small { container-type: inline-size; }
    .bh-card--small.bh-card--fixh .bh-pk { height: 100%; height: min(100%, calc((100cqw - 16px) / var(--bh-r, 1))); }
    .bh-card--small.bh-card--wide .bh-pk, .bh-card--big.bh-card--wide .bh-pk { width: auto; height: 100%; object-position: center bottom; }
    .bh-card--big .bh-card__txt, .bh-card--big.bh-card--wide .bh-card__txt { justify-content: flex-start; gap: 10px; padding: 14px 20px 20px; }
    .bh-card--small .bh-card__txt { justify-content: flex-start; gap: 4px; padding: 10px 14px 14px; }
    .bh-card__brand { font-size: 15px; }
    .bh-card--small .bh-card__brand { display: none; }
    .bh-card__size { font-size: 15px; margin-top: -4px; }
    .bh-card--small .bh-card__size { font-size: 13px; margin-top: 0; }
    .bh-card__title { font-size: 28px; line-height: 1.1; }
    .bh-card__title--long { font-size: 24px; }
    .bh-card__title--xlong { font-size: 22px; }
    .bh-card__name { font-size: 16px; line-height: 1.25; }
    .bh-card__price { column-gap: 8px; }
    .bh-card--small .bh-card__price { column-gap: 5px; }
    .bh-corner { left: 10px; top: 10px; height: 30px; padding: 0 9px; border-radius: 9px; font-size: 17px; }
    .bh-corner--big { left: 16px; top: 16px; height: 44px; padding: 0 14px; border-radius: 12px; font-size: 28px; }
    .bh-card--big.bh-card--wide .bh-corner--big { left: 16px; right: auto; }
    .bh-card__now { font-size: 26px; }
    .bh-card__was { font-size: 15px; }
    .bh-card--small .bh-card__now { font-size: 17px; }
    .bh-card--small .bh-card__was { font-size: 13px; }
    .bh-card__buy, .bh-card--big.bh-card--wide .bh-card__buy { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%; }
    .bh .bh-card__view { height: 48px; padding: 0 58px; font-size: 17px; }
    .bh__strip { margin-top: 16px; }
    .bh__row { gap: 12px; padding: 20px 56px 28px 16px; scroll-padding-left: 16px; }
    .bh-logo { flex-basis: 120px; height: 72px; border-radius: 14px; }
    .bh-logo img { max-width: 88px; max-height: 32px; }
    .bh-logo__name { font-size: 14px; padding: 0 8px; }
    .bh__fade { width: 64px; }
    .bh__arrow { display: none; }
    .bh__pause { left: 16px; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
    .bh__bento { padding: 0 24px; }
    .bh-card--big, .bh-card--big.bh-card--wide { grid-template-rows: 340px auto; }
    .bh-card--small, .bh-card--small.bh-card--wide { grid-template-rows: 200px auto; }
    .bh__row { padding-left: 24px; padding-right: 96px; scroll-padding-left: 24px; }
    .bh__arrow { display: inline-flex; right: 24px; top: 32px; }
    .bh__pause { left: 24px; }
}

/* dark theme: page surface, the cards keep their light backdrop and dark text, logos sit on white chips */
[data-bs-theme="dark"] body.world-ilu .bh { --bh-surface: var(--bs-body-bg, #121212); --bh-strip: var(--bs-body-bg, #121212); }
[data-bs-theme="dark"] body.world-ilu .bh__strip { border-top-color: rgba(255, 255, 255, .08); }
[data-bs-theme="dark"] body.world-ilu .bh__fade { background: linear-gradient(90deg, rgba(18, 18, 18, 0), var(--bh-strip) 70%); }
[data-bs-theme="dark"] body.world-ilu .bh-logo { background: var(--bh-logo-bg, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .35); }
[data-bs-theme="dark"] body.world-ilu .bh-logo.is-on { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 18px 40px rgba(0, 0, 0, .5); }
[data-bs-theme="dark"] body.world-ilu .bh__arrow { background: #1E1E1E; border-color: rgba(255, 255, 255, .28); color: #F3E4EC; }

/* 25.11 (U647, Martin «vitriin koos thumbidega sama lai kui ülejäänud sisu»): from 1100 px the showcase and the logo row
   sit on the edges of the rails below («Reelsid», «Enim ostetud»): the site box instead of 1680 px with 56 px sides.
   .bh bleeds 8 px over the app padding; the rails' container-fluid keeps 12 px on the right (and on the left under xl). */
@media (min-width: 1100px) {
  .bh__bento { max-width: none; padding: 0 20px; }
  .bh__row { padding-left: 20px; scroll-padding-left: 20px; }
  .bh__arrow { right: 20px; }
  .bh__pause { left: 20px; }
}
@media (min-width: 1200px) {
  .bh__bento { padding-left: 8px; }
  .bh__row { padding-left: 8px; scroll-padding-left: 8px; }
  .bh__pause { left: 8px; }
}
