/* Ilumaailm product page, newsletter + app blocks before the brand logos (components/ilu-promo-pair).
   Martin 21.11: variant D «Šampanja» of the premium mock: warm champagne gradient, frosted panel, gold line icons, light
   sans title; 260 px high on desktops like the category banners, the same content width as the logo band. */
.ilu-promo {
  --ip-bg: linear-gradient(135deg, #F7EFE3 0%, #EEDFC8 100%); --ip-ink: #2A2117; --ip-muted: #75624B; --ip-gold: #A9834E;
  --ip-glass: rgba(255, 255, 255, .55); --ip-glass-line: rgba(255, 255, 255, .8); --ip-card: rgba(255, 255, 255, .85); --ip-card-shadow: 0 16px 34px rgba(120, 90, 50, .18);
  --ip-scr: #FFFBF5; --ip-scr-ink: #2A2117; --ip-prod: #F4EADB; --ip-map: #F0E6D6; --ip-grid: rgba(0, 0, 0, .05); --ip-step: #CDBFAA;
  padding: 8px 0 32px;
}
[data-bs-theme="dark"] .ilu-promo {
  --ip-bg: linear-gradient(135deg, #1C1712 0%, #2B2218 100%); --ip-ink: #F3E8D8; --ip-muted: #BCA98E; --ip-gold: #D7B57F;
  --ip-glass: rgba(255, 255, 255, .06); --ip-glass-line: rgba(255, 255, 255, .12); --ip-card: #F7EFE3; --ip-card-shadow: 0 16px 34px rgba(0, 0, 0, .4);
  --ip-scr: #201A14; --ip-scr-ink: #F3E8D8; --ip-prod: #2E261D; --ip-map: #29221A; --ip-grid: rgba(255, 255, 255, .06); --ip-step: #5A4C3B;
}
.ilu-promo__inner { max-width: var(--site-max, 1800px); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ilu-promo__blk { position: relative; overflow: hidden; isolation: isolate; min-height: 260px; border-radius: 24px; padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 24px; color: var(--ip-ink); background: var(--ip-bg); }
.ilu-promo__blk--app { grid-template-columns: minmax(0, 1fr) 150px; }
.ilu-promo__main { display: flex; flex-direction: column; min-width: 0; }
/* 25.11 (U647): Chilli type scale: eyebrow = small label, title = the rail heading (.h3.fw-bold in the markup), body 16/1.5, list 14 */
.ilu-promo__eb { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ip-gold); }
.ilu-promo__h { margin: 4px 0 0; color: var(--ip-ink); text-wrap: balance; }
/* the long sentence only where the block has room to grow (phones) */
.ilu-promo__p { display: none; margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--ip-muted); max-width: 46ch; }
.ilu-promo__panel { list-style: none; margin: 14px 0 0; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; border-radius: 14px;
  background: var(--ip-glass); border: 1px solid var(--ip-glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ilu-promo__panel li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ip-ink); }
.ilu-promo__panel svg { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--ip-gold); }
.ilu-promo__cta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ilu-promo .ilu-promo__btn { min-height: 48px; height: 48px; padding: 0 24px; font-size: 16px; font-weight: 700; }
.ilu-promo .ilu-promo__btn:focus-visible { outline: 3px solid var(--ip-ink); outline-offset: 2px; }
.ilu-promo__stores a { display: inline-flex; border-radius: 9px; cursor: pointer; }
.ilu-promo__stores a:focus-visible { outline: 3px solid var(--ip-ink); outline-offset: 2px; }
.ilu-promo__stores img { display: block; height: 48px; width: auto; }
/* this product on a white card (packshot, read only) */
.ilu-promo__pack { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: 22px; background: var(--ip-card); box-shadow: var(--ip-card-shadow); }
.ilu-promo__pack img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ilu-promo__pack--env { color: var(--ip-gold); }
/* UX-ring 26.11: the newsletter box shows the real price alert mail (zback2 sample) on a mail card; the whole box opens it
   in a modal (scripts/ilu-promo-pair.js sets --ms-s = card width / 480, the mail's phone width) */
.ilu-promo__blk[data-ilu-ms-open], .ilu-promo__blk[data-ilu-app-href] { cursor: pointer; }
.ilu-promo__blk[data-ilu-ms-open]:focus-visible { outline: 3px solid var(--ip-ink); outline-offset: 3px; }
.ilu-promo__blk--nl:has(.ilu-promo__mail) { grid-template-columns: minmax(0, 1fr) 200px; }
.ilu-promo__mail { position: relative; padding: 0; overflow: hidden; flex-direction: column; align-items: stretch; justify-content: flex-start; background: #fff; transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
.ilu-promo__blk--nl:hover .ilu-promo__mail { transform: translateY(-3px); box-shadow: 0 22px 40px rgba(120, 90, 50, .24); }
.ilu-promo__mail-tag { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 10px; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; color: #fff;
  background: var(--ilu-grad, var(--ip-gold)); }
.ilu-promo__mail-tag svg { width: 14px; height: 14px; flex: none; }
.ilu-promo__mail-frame { --ms-s: .4167; position: relative; flex: 1; min-height: 0; overflow: hidden; pointer-events: none; }
/* 26.11 järelfix: the frame always shows the mail down to the price line and «Hind langes» (480 x 700 mail px at any card width) */
.ilu-promo__mail-frame { flex: 1 0 auto; aspect-ratio: 480 / 700; }
.ilu-promo__mail-frame iframe { position: absolute; left: 0; top: 0; width: 480px; height: calc(100% / var(--ms-s)); border: 0; transform: scale(var(--ms-s)); transform-origin: 0 0; pointer-events: none; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .ilu-promo__mail { transition: none; }
  .ilu-promo__blk--nl:hover .ilu-promo__mail { transform: none; }
}
.ilu-promo__pack--env svg { width: 64px; height: 64px; }
/* drawn phone: this product on its way */
.ilu-promo__phone { position: absolute; right: 26px; top: 22px; width: 146px; height: 292px; padding: 5px; border-radius: 28px; background: #0E0D0C; box-shadow: 0 22px 44px rgba(60, 40, 20, .24); transform: rotate(-3deg); pointer-events: none; }
.ilu-promo__scr { width: 100%; height: 100%; border-radius: 23px; overflow: hidden; display: flex; flex-direction: column; font-size: 8.5px; line-height: 1.3; color: var(--ip-scr-ink); background: var(--ip-scr); }
.ilu-promo__notch { align-self: center; width: 42px; height: 11px; margin: 5px 0 3px; border-radius: 7px; background: #0E0D0C; }
.ilu-promo__ph-h { padding: 2px 10px 6px; font-size: 11px; font-weight: 700; }
.ilu-promo__prod { margin: 0 8px; padding: 6px; border-radius: 9px; display: flex; gap: 6px; align-items: center; background: var(--ip-prod); }
.ilu-promo__thumb { flex: none; width: 30px; height: 36px; border-radius: 6px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.ilu-promo__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ilu-promo__prod-t { min-width: 0; }
.ilu-promo__prod-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 8.5px; }
.ilu-promo__eta { margin: 7px 8px 0; padding: 7px 8px; border-radius: 9px; color: #fff; background: linear-gradient(110deg, #B8925C, #D9BC8C); }
.ilu-promo__eta b { display: block; font-size: 12px; }
.ilu-promo__steps { margin: 8px 10px 0; display: grid; gap: 6px; }
.ilu-promo__step { display: flex; align-items: center; gap: 6px; }
.ilu-promo__step i { width: 8px; height: 8px; flex: none; border-radius: 50%; border: 1.5px solid var(--ip-step); }
.ilu-promo__step.is-done i { background: var(--ip-gold); border-color: var(--ip-gold); }
.ilu-promo__step.is-now i { border-color: var(--ip-gold); box-shadow: 0 0 0 3px rgba(169, 131, 78, .22); }
.ilu-promo__map { position: relative; flex: 1; margin: 8px; border-radius: 9px;
  background: linear-gradient(90deg, var(--ip-grid) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(0deg, var(--ip-grid) 1px, transparent 1px) 0 0 / 16px 16px, var(--ip-map); }
.ilu-promo__map::after { content: ""; position: absolute; left: 46%; top: 32%; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ip-gold); }
/* 1200-1439: smaller product card and phone, the panel keeps one line per item */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .ilu-promo__blk { grid-template-columns: minmax(0, 1fr) 140px; gap: 18px; }
  .ilu-promo__blk--app { grid-template-columns: minmax(0, 1fr) 128px; }
  .ilu-promo__blk--nl:has(.ilu-promo__mail) { grid-template-columns: minmax(0, 1fr) 176px; }
  .ilu-promo__phone { width: 130px; height: 262px; right: 18px; }
  .ilu-promo__panel { gap: 8px 12px; }
}
/* 1200-1599: two blocks side by side leave too little room for two list columns at 14 px */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .ilu-promo__panel { grid-template-columns: 1fr; }
}
/* narrower desktops: one block per row keeps the 260 px height */
@media (max-width: 1199.98px) {
  .ilu-promo__inner { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .ilu-promo { padding: 4px 0 24px; }
  .ilu-promo__inner { padding: 0 12px; gap: 12px; }
  .ilu-promo__blk { min-height: 0; padding: 24px 22px; grid-template-columns: 1fr; gap: 14px; }
  .ilu-promo__blk--app { grid-template-columns: 1fr; padding-bottom: 200px; }
  .ilu-promo__pack { order: -1; height: 200px; }
  .ilu-promo__blk--nl:has(.ilu-promo__mail) { grid-template-columns: 1fr; }
  .ilu-promo__mail { height: auto; width: min(100%, 260px); justify-self: center; }
  .ilu-promo__p { display: block; }
  .ilu-promo__panel { grid-template-columns: 1fr; }
  .ilu-promo__phone { top: auto; bottom: -100px; right: 50%; transform: translateX(50%) rotate(-3deg); }
}

/* U652: on the Ilumaailm category page the boxes sit in the listing's container-fluid (px-3 px-md-4); undo its side padding so
   they keep the product page width (site box minus 24 px); phones: on the cards' 16 px edge (box gutter 12 px) */
.ilu-cat-promo { margin: 24px -12px 0; }
@media (min-width: 768px) { .ilu-cat-promo { margin-left: -1.5rem; margin-right: -1.5rem; } }
