/* Offer page on phones (standard layout), round 3: collage rail with vendor reels behind the transparent header,
   a rounded content sheet over it with feedback stars, title, TOP description, Chilli Plus, stats, prices,
   option rows and buy. Spec: ai/specs/2026-09-27-offer-mobile-round3-design.md */

@media (max-width: 767.98px) {
  body.offer-hero-page .view-content.-listing-details > .bgimage { display: none; }

  /* gallery: edge to edge, from the very top of the page */
  body.offer-hero-page .offer-hero-row .listing-gallery {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: calc(-1 * var(--offer-hero-top, 0px));
  }

  /* collage rail: free horizontal scroll, 2 rows, half and full width blocks; the next block peeks at the edge */
  .offer-rail-wrap { position: relative; height: min(86vw, 420px); background: var(--bs-body-bg); }
  .offer-rail-wrap::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; z-index: 2; pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
  }
  .offer-rail {
    position: absolute; inset: 0; display: flex; gap: 3px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .offer-rail::-webkit-scrollbar { display: none; }
  .offer-rail__blk { flex: none; height: 100%; display: grid; gap: 3px; grid-template-rows: 1fr 1fr; }
  .offer-rail__blk--half { width: calc((100% - 28px) / 2); grid-template-columns: 1fr; }
  .offer-rail__blk--full { width: calc(100% - 25px); grid-template-columns: 1fr 1fr; }
  /* a rail that does not overflow (few photos) ends flush with the screen edge instead of a peek gap */
  .offer-rail__blk:last-child { flex-grow: 1; }
  .offer-rail__tile {
    position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: 0;
    overflow: hidden; min-width: 0; min-height: 0; background: var(--bs-secondary-bg); cursor: pointer;
  }
  .offer-rail__tile img,
  .offer-rail__tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .offer-rail__tile.span-c { grid-column: 1 / 3; }
  .offer-rail__tile.span-r { grid-row: 1 / 3; }
  .offer-rail__tile.span-all { grid-column: 1 / 3; grid-row: 1 / 3; }
  .offer-rail__tag {
    position: absolute; left: 10px; bottom: 38px; z-index: 1;
    display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px 4px 7px; border-radius: 999px;
    background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 600;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .offer-rail__count {
    position: absolute; right: 14px; bottom: 38px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 10px;
    background: #fff; color: #111; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  }

  /* the offer's own heart and the gift card badge sit under the header */
  body.offer-hero-page .offer-hero-row .listing-gallery .favourite-heart--hero {
    top: calc(var(--nh-header-h, 56px) + 6px) !important; right: 12px !important; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  body.offer-hero-page .offer-hero-row .listing-gallery .favourite-heart--hero i { font-size: 1.35rem; }
  body.offer-hero-page .offer-hero-row .listing-gallery .kinkekas-badge {
    top: calc(var(--nh-header-h, 56px) + 8px) !important; bottom: auto !important; left: 14px !important; right: auto !important;
    z-index: 3; font-size: .8rem; padding: 6px 12px;
  }

  /* content sheet with rounded top corners rising over the rail */
  body.offer-hero-page .offer-hero-row .listing-hero {
    position: relative; z-index: 4;
    width: 100vw; margin-left: calc(50% - 50vw); margin-top: -28px;
    padding: 18px 16px 0; background: var(--bs-body-bg); border-radius: 28px 28px 0 0;
    display: flex; flex-direction: column; align-items: stretch;
  }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info, .offer-buy) > * { order: 10; }
  /* feedback stars sit above the title (Marti round 4: in place of the vendor label) */
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .rating { order: 0; align-self: center; margin-bottom: 14px; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > h1 {
    order: 1; text-align: center; margin-bottom: 14px !important; font-size: 1.6rem !important; line-height: 1.15; text-wrap: balance;
  }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-hero-qty-badge { order: 2; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-hero-short-desc {
    order: 3; display: block !important; text-align: center; font-size: 1rem !important; line-height: 1.45; margin-bottom: 1.25rem !important;
  }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .plus-deal-detail-banner { order: 5; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-stats-mobile { order: 6; }
  /* keep icon and value on one line in the three narrow columns */
  body.offer-hero-page .listing-stats-mobile .fs-base { flex-wrap: nowrap !important; white-space: nowrap; font-size: 15px !important; }
  body.offer-hero-page .listing-stats-mobile .fs-base.time-urgent {
    display: inline-flex !important; padding: 2px 8px; gap: 3px !important; font-size: 14px !important;
  }
  body.offer-hero-page .listing-stats-mobile .time-urgent .time-left { min-width: 0 !important; font-variant-numeric: tabular-nums; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .progress { order: 7; }

  /* discount badge next to the prices */
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-hero-price-row { order: 8; align-items: center !important; gap: 14px; overflow: visible !important; }
  body.offer-hero-page .offer-hero-row .listing-hero-price-row > .flex-shrink-0.d-none { display: block !important; }
  body.offer-hero-page .offer-hero-row .listing-hero-price-row .discount {
    background: #DC251E; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.1;
    border-radius: 10px; padding: 5px 10px; width: auto; height: auto;
    display: inline-block !important; /* app.css hides it below 992 px */
  }

  /* campaigns with option rows: prices live on each row, the select only feeds desktop and the kinkekas button */
  body.offer-hero-page .listing-hero.has-offer-steps .listing-hero-price-row { display: none !important; }
  body.offer-hero-page .listing-hero.has-offer-steps select[id^="options-"] { display: none !important; }
  body.offer-hero-page .listing-hero .add-to-cart.offer-steps-empty {
    background: #c9d2c6 !important; border-color: #c9d2c6 !important; box-shadow: none !important;
  }
}

/* desktop round wrappers (ai/specs/2026-09-28-offer-desktop-design.md): real boxes only from 992 px with option rows,
   everywhere else their children stay direct items of .listing-hero, so phone order and tablet flow do not change */
.offer-info, .offer-buy { display: contents; }
.offer-buy__desk, .offer-rail__arr { display: none; }
@media (min-width: 768px) and (max-width: 991.98px) {
  .offer-steps--view { display: none !important; }
}

/* offer title in the same big rounded bold as the homepage hero title */
.offer-hero-row .listing-hero > h1 { font-weight: 800; letter-spacing: -.02em; }

/* countdown under 100 h: red label with white text and icon (scripts.js toggles .time-urgent) */
.listing-hero .time-urgent {
  display: inline-flex; align-items: center; gap: 4px;
  background: #DC251E; color: #fff !important; border-radius: 999px; padding: 2px 10px; font-weight: 700;
}
.listing-hero .time-urgent i, .listing-hero .time-urgent .time-left { color: #fff !important; }

/* Osta in bold */
.listing-hero .add-to-cart { font-weight: 700 !important; }

/* trust badges: icon in a soft green circle above a short label */
.offer-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.offer-trust__item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.3; color: var(--bs-secondary-color); }
.offer-trust__ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(24, 174, 0, .1); color: #118300;
}
.offer-trust__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-bs-theme="dark"] .offer-trust__ico { background: rgba(76, 217, 100, .14); color: #4cd964; }

/* rail actions wrapper only groups them on desktop */
.offer-rail__acts { display: contents; }

/* option rows (component is phones only) */
.offer-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; text-align: left; }
.offer-steps__title { font-weight: 700; font-size: 15px; }
.offer-step {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
  border: 1.5px solid var(--bs-border-color); border-radius: 16px; padding: 12px 12px 12px 14px;
  transition: border-color .15s, background-color .15s;
}
.offer-step.is-on { border-color: #18ae00; background: rgba(24, 174, 0, .07); }
.offer-step.is-sold { opacity: .55; }
.offer-step__name {
  font-size: 15px; line-height: 1.3; font-weight: 500; cursor: pointer;
  text-decoration: underline dotted; text-decoration-color: rgba(var(--bs-emphasis-color-rgb, 33, 37, 41), .35); text-underline-offset: 3px;
}
.offer-step__info { color: var(--bs-secondary-color); font-size: 13px; }
.offer-step__special { color: #DC251E; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
/* badge | price | old price sit in fixed columns so every row lines up; a column is dropped when no row uses it */
.offer-steps { --step-pct-w: 66px; --step-now-w: 88px; --step-was-w: 80px; }
.offer-steps:not(:has(.offer-step__pct)) { --step-pct-w: 0px; }
.offer-steps:not(:has(.offer-step__price s)) { --step-was-w: 0px; }
.offer-step__price {
  display: grid; align-items: center; justify-content: start; margin-top: 6px; white-space: nowrap;
  grid-template-columns: var(--step-pct-w) minmax(var(--step-now-w), max-content) minmax(var(--step-was-w), max-content);
}
.offer-step__price b { grid-column: 2; font-size: 17px; font-variant-numeric: tabular-nums; }
.offer-step__price s { grid-column: 3; padding-left: 10px; color: var(--bs-secondary-color); font-size: 14px; font-variant-numeric: tabular-nums; }
.offer-step__price .flash-zap-btn { grid-column: 4; margin-left: 8px; }
.offer-step__pct {
  grid-column: 1; justify-self: start; box-sizing: border-box; min-width: 54px; text-align: center;
  background: #DC251E; color: #fff; font-weight: 800; font-size: 14px; border-radius: 9px; padding: 3px 9px;
}
.offer-step__sold { grid-column: 1 / -1; font-weight: 700; color: var(--bs-secondary-color); }
.offer-step__ctl { display: flex; align-items: center; gap: 2px; border-radius: 999px; border: 1.5px solid transparent; }
.offer-step.is-on .offer-step__ctl { border-color: #18ae00; background: var(--bs-body-bg); }
.offer-step__btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1.5px solid #18ae00; background: var(--bs-body-bg); color: #118300;
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.offer-step.is-on .offer-step__btn { border-color: transparent; background: transparent; }
.offer-step__btn:disabled { opacity: .35; }
.offer-step:not(.is-on) [data-step="-1"],
.offer-step:not(.is-on) .offer-step__qty,
.offer-step:not(.is-on) .offer-step__plus,
.offer-step.is-on .offer-step__cart { display: none; }
.offer-step__btn.offer-step__cart {
  width: 44px; height: 44px; border: 0; color: #fff; font-size: 20px;
  background: linear-gradient(135deg, #18ae00 0%, #4cd964 100%); box-shadow: 0 3px 10px rgba(24, 174, 0, .28);
}
[data-bs-theme="dark"] .offer-step__btn.offer-step__cart { color: #fff; }
.offer-step__qty { min-width: 22px; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
[data-bs-theme="dark"] .offer-step__btn { color: #4cd964; border-color: #4cd964; }
[data-bs-theme="dark"] .offer-step.is-on .offer-step__btn { border-color: transparent; }
[data-bs-theme="dark"] .offer-step.is-on,
[data-bs-theme="dark"] .offer-step.is-on .offer-step__ctl { border-color: #4cd964; }
/* Osta with nothing chosen: rows wave slightly bigger top to bottom, each row's cart button right after its row */
@keyframes offer-step-wave { 0% { transform: scale(1); } 45% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes offer-step-wave-btn { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.offer-steps.is-wave .offer-step:not(.is-sold) {
  animation: offer-step-wave .9s cubic-bezier(.45, 0, .25, 1) both;
  animation-delay: calc(var(--wave-i, 0) * 140ms);
}
.offer-steps.is-wave .offer-step:not(.is-sold) .offer-step__ctl {
  animation: offer-step-wave-btn .75s cubic-bezier(.45, 0, .25, 1) both;
  animation-delay: calc(var(--wave-i, 0) * 140ms + 380ms);
}
@media (prefers-reduced-motion: reduce) {
  .offer-steps.is-wave .offer-step,
  .offer-steps.is-wave .offer-step .offer-step__ctl { animation: none; }
}
.js-listing-cta-anchor.has-steps-sum { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.offer-steps-sum { display: block; font-size: 13px; font-weight: 600; opacity: .92; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Osta stays reachable: once the button scrolls above the screen a slim bar with the same button slides in at the top */
.offer-sticky-buy { display: none; }
@media (max-width: 767.98px) {
  .offer-sticky-buy {
    display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 1030;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
    background: var(--bs-body-bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transform: translateY(-110%); transition: transform .2s ease; pointer-events: none;
  }
  .offer-sticky-buy.is-on { transform: none; pointer-events: auto; }
  .offer-sticky-buy__btn {
    width: 100%; min-height: 48px; padding: 6px 12px; border: 0; border-radius: 14px;
    background: linear-gradient(135deg, #18ae00 0%, #4cd964 100%); color: #fff;
    font-size: 17px; font-weight: 700; line-height: 1.15;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .offer-sticky-buy__btn.is-empty { background: #c9d2c6; }
  .offer-sticky-buy__btn:disabled { opacity: .6; }
  .offer-sticky-buy__btn .offer-steps-sum { font-size: 12.5px; margin-top: 1px; }
  .offer-sticky-buy__choose { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* full screen reel player */
.offer-reel-ov { position: fixed; inset: 0; z-index: 2000; background: #000; display: flex; align-items: center; justify-content: center; }
.offer-reel-ov video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.offer-reel-ov__x {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 18px; display: grid; place-items: center;
}
html.offer-reel-open,
html.offer-reel-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .offer-step, .offer-sticky-buy { transition: none; }
}

/* ================= desktop from 992 px (spec ai/specs/2026-09-28-offer-desktop-design.md) =================
   full width collage rail under the transparent header, a lip that reads as the rounded sheet, then a grid:
   with option rows the rows sit left and a sticky buy card right (sidebar below as today); with one price
   the phone column sits left and the sidebar rises next to it. Tablets (768 to 991) keep the old page. */
.offer-sticky-buy__img, .offer-sticky-buy__tx { display: none; }
.offer-steps-summary__lbl { display: block; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--bs-secondary-color); font-weight: 500; margin-bottom: 6px; }
.offer-steps-summary__from { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.offer-steps-summary__now { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.offer-steps-summary__pct { background: #DC251E; color: #fff; font-weight: 800; border-radius: 10px; padding: 4px 10px; font-size: 16px; line-height: 1.15; white-space: nowrap; }
.offer-steps-summary__hint { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--bs-secondary-color); }
.offer-steps-summary__ln { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bs-border-color); font-size: 14.5px; line-height: 1.35; }
.offer-steps-summary__ln b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-steps-summary__q { font-weight: 800; color: #118300; font-variant-numeric: tabular-nums; }
[data-bs-theme="dark"] .offer-steps-summary__q { color: #4cd964; }
.offer-steps-summary__ln--tot { border-bottom: 0; padding-bottom: 0; font-weight: 800; font-size: 16px; }

@media (min-width: 992px) {
  body.offer-hero-page {
    --od-pad: 32px;
    --od-gap: 40px;
    --od-side: clamp(340px, 29vw, 420px);
    --od-vw: calc(100vw - var(--od-sb, 0px));
    --od-edge: max(var(--od-pad), calc((var(--od-vw) - 1240px) / 2));
    --od-rail-h: clamp(420px, 34vw, 560px);
  }

  /* header over the rail, same recipe as the homepage hero */
  body.offer-hero-page .app-header { position: absolute !important; left: 0; right: 0; top: 0 !important; margin-left: 0; margin-right: 0; z-index: 1120; }
  body.offer-hero-page .app-header.-pane { background-color: transparent !important; box-shadow: none !important; }
  body.offer-hero-page .nh-header {
    --nh-pill: rgba(255, 255, 255, .15);
    --nh-pill-hover: rgba(255, 255, 255, .27);
    --nh-pill-active-bg: rgba(255, 255, 255, .92);
    --nh-pill-active: #111;
    --nh-icon-hover: rgba(255, 255, 255, .16);
    color: #fff; background: transparent !important; border-bottom: 0;
  }
  body.offer-hero-page .view-content.-listing-details > .bgimage { display: none; }

  /* page grid */
  body.offer-hero-page .offer-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--od-side); grid-template-rows: auto auto auto 1fr;
    column-gap: var(--od-gap); max-width: calc(1240px + 2 * var(--od-pad)); margin: 0 auto; padding: 0 var(--od-pad);
  }
  body.offer-hero-page .offer-layout > .row { display: contents; }
  body.offer-hero-page .offer-layout > .row > * { width: auto; max-width: none; min-width: 0; padding-left: 0; padding-right: 0; margin-top: 0; }
  body.offer-hero-page .offer-hero-gallery-col { grid-column: 1 / -1; grid-row: 1; }
  /* no breadcrumbs in the open view (Marti 2026-09-28); the JSON-LD breadcrumb stays in the head */
  body.offer-hero-page .offer-layout > .offer-crumbs { display: none !important; }
  body.offer-hero-page .offer-hero-info-col { grid-column: 1; grid-row: 3; margin-bottom: 56px; padding-top: 6px; }
  body.offer-hero-page .offer-layout--steps .offer-hero-info-col { grid-column: 1 / -1; }
  body.offer-hero-page .offer-main-col { grid-column: 1; grid-row: 4; margin-bottom: 48px; }
  body.offer-hero-page .offer-side-col { grid-column: 2; grid-row: 3 / span 2; margin-bottom: 48px; }
  body.offer-hero-page .offer-layout--steps .offer-side-col { grid-row: 4; }
  body.offer-hero-page .offer-hero-embleem.d-md-block { display: none !important; }

  /* collage rail, edge to edge from the very top */
  body.offer-hero-page .offer-hero-gallery-col .listing-gallery {
    position: relative; width: var(--od-vw); margin-left: calc(50% - var(--od-vw) / 2); margin-right: 0;
    margin-top: calc(-1 * var(--offer-hero-top, 0px));
  }
  body.offer-hero-page .offer-hero-gallery-col .listing-gallery-desktop.d-md-block { display: none !important; }
  body.offer-hero-page .offer-rail-wrap.d-md-none { display: block !important; }
  /* the 2 px seams between tiles show the page background: light in light mode */
  .offer-rail-wrap { position: relative; height: var(--od-rail-h); background: var(--bs-body-bg); }
  .offer-rail-wrap::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 2; pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  }
  /* the lip: reads as the rounded sheet rising over the photos */
  .offer-rail-wrap::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 33px; z-index: 3; pointer-events: none;
    background: var(--bs-body-bg); border-radius: 32px 32px 0 0;
  }
  .offer-rail {
    /* ends under the lip: at fractional zoom the tiles' last pixel row would show below it */
    position: absolute; inset: 0 0 8px; display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth;
  }
  .offer-rail::-webkit-scrollbar { display: none; }
  .offer-rail__blk { flex: none; height: 100%; display: grid; gap: 2px; grid-template-rows: 1fr 1fr; }
  .offer-rail__blk--half { width: calc(var(--od-rail-h) * .75); grid-template-columns: 1fr; }
  .offer-rail__blk--full { width: calc(var(--od-rail-h) * 1.5); grid-template-columns: 1fr 1fr; }
  .offer-rail__blk:last-child { flex-grow: 1; }
  .offer-rail__tile {
    position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: 0;
    overflow: hidden; min-width: 0; min-height: 0; background: var(--bs-secondary-bg); cursor: zoom-in;
  }
  .offer-rail__tile--reel { cursor: pointer; }
  .offer-rail__tile img,
  .offer-rail__tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  .offer-rail__tile:hover img { transform: scale(1.035); }
  .offer-rail__tile.span-c { grid-column: 1 / 3; }
  .offer-rail__tile.span-r { grid-row: 1 / 3; }
  .offer-rail__tile.span-all { grid-column: 1 / 3; grid-row: 1 / 3; }
  .offer-rail__tag {
    position: absolute; left: 14px; bottom: 48px; z-index: 1;
    display: inline-flex; align-items: center; gap: 3px; padding: 5px 12px 5px 9px; border-radius: 999px;
    background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; font-weight: 700;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .offer-rail__count {
    position: absolute; right: var(--od-edge); bottom: 50px; z-index: 4;
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 12px;
    background: #fff; color: #111; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .22);
  }
  .offer-rail__arr {
    display: grid; place-items: center; position: absolute; top: 50%; z-index: 4;
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .94); color: #111; font-size: 20px; line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .28); transform: translateY(-50%); transition: opacity .2s, transform .15s;
  }
  .offer-rail__arr:hover { transform: translateY(-50%) scale(1.06); }
  .offer-rail__arr--prev { left: 24px; }
  .offer-rail__arr--next { right: 24px; }
  .offer-rail__arr.is-off { opacity: 0; pointer-events: none; }
  /* heart and photo count: one white pair at the bottom right of the rail, on the content edge */
  .offer-rail__acts { position: absolute; right: var(--od-edge); bottom: 50px; z-index: 4; display: flex; align-items: center; gap: 10px; }
  .offer-rail__acts .offer-rail__count { position: static; min-height: 40px; }
  body.offer-hero-page .offer-rail-wrap .favourite-heart--hero {
    position: static; width: 40px; height: 40px; border-radius: 50%; flex: none;
    background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .22);
  }
  body.offer-hero-page .offer-rail-wrap .favourite-heart--hero i { font-size: 1.15rem; color: #111; filter: none; }
  body.offer-hero-page .offer-rail-wrap .favourite-heart--hero i.bi-heart-fill { color: #FF385C; }
  body.offer-hero-page .offer-rail-wrap .kinkekas-badge {
    top: calc(var(--nh-header-h, 72px) + 18px) !important; bottom: auto !important; left: var(--od-edge) !important; right: auto !important; z-index: 4;
  }

  /* hero column: the phone sheet, left aligned (one price); with option rows the info half of the grid */
  body.offer-hero-page .offer-hero-row .listing-hero { display: flex; flex-direction: column; align-items: stretch; max-width: 680px; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info, .offer-buy) > * { order: 10; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .rating { order: 0; align-self: flex-start; margin-bottom: 12px; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > h1 {
    order: 1; margin-bottom: 14px !important; font-size: clamp(32px, 2.7vw, 46px) !important; line-height: 1.1; text-wrap: balance;
  }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-hero-qty-badge { order: 2; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-hero-short-desc {
    order: 3; font-size: 18.5px !important; line-height: 1.5; max-width: 60ch; margin-bottom: 20px !important;
  }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .plus-deal-detail-banner { order: 5; margin-bottom: 18px; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-stats-mobile { order: 6; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .progress { order: 7; margin-bottom: 18px; }
  body.offer-hero-page .offer-hero-row :is(.listing-hero, .offer-info) > .listing-hero-price-row { order: 8; justify-content: flex-start !important; align-items: center !important; gap: 14px; }
  body.offer-hero-page .listing-hero-meta-row { display: none !important; }

  /* stats in a bordered box: Aega jäänud, Kehtivus, Ostetud */
  body.offer-hero-page .listing-hero .listing-stats-mobile {
    display: flex !important; flex-wrap: nowrap; margin: 4px 0 20px !important; padding: 12px 0 !important;
    border: 1px solid var(--bs-border-color); border-radius: 18px;
  }
  body.offer-hero-page .listing-stats-mobile > .col-4 { flex: 1 1 0; width: auto; margin-top: 0; padding: 0 10px; }
  body.offer-hero-page .listing-stats-mobile > .col-4 + .col-4 { border-left: 1px solid var(--bs-border-color); }
  body.offer-hero-page .listing-stats-mobile .fs-xs { letter-spacing: .07em; margin-bottom: 4px; }
  body.offer-hero-page .listing-stats-mobile .fs-base { flex-wrap: nowrap !important; white-space: nowrap; font-size: 17px !important; font-weight: 700; }
  body.offer-hero-page .listing-stats-mobile .fs-base.time-urgent { display: inline-flex !important; padding: 2px 10px; gap: 4px !important; }
  body.offer-hero-page .listing-stats-mobile .time-urgent .time-left { min-width: 0 !important; font-variant-numeric: tabular-nums; }

  /* one price: red discount label next to the prices */
  body.offer-hero-page .offer-hero-row .listing-hero-price-row .discount {
    background: #DC251E; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.1;
    border-radius: 10px; padding: 5px 10px; width: auto; height: auto;
  }

  /* option rows: info left, sticky buy card right */
  body.offer-hero-page .offer-layout--steps .offer-hero-row .listing-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--od-side); column-gap: var(--od-gap); align-items: start; max-width: none;
  }
  body.offer-hero-page .offer-layout--steps .offer-info { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
  body.offer-hero-page .offer-layout--steps .offer-buy {
    display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px;
    padding: 20px; border: 1px solid var(--bs-border-color); border-radius: 26px; background: var(--bs-body-bg);
    box-shadow: 0 16px 48px rgba(16, 24, 18, .11), 0 2px 6px rgba(16, 24, 18, .05);
  }
  [data-bs-theme="dark"] body.offer-hero-page .offer-layout--steps .offer-buy { background: var(--bs-tertiary-bg); box-shadow: 0 16px 48px rgba(0, 0, 0, .45); }
  body.offer-hero-page .offer-layout--steps .offer-buy > * { margin-top: 0 !important; margin-bottom: 0 !important; }
  body.offer-hero-page .offer-layout--steps .offer-buy__desk { display: block; }
  body.offer-hero-page .offer-layout--steps .offer-buy .offer-trust { border-top: 1px solid var(--bs-border-color); padding-top: 16px; }
  body.offer-hero-page .offer-layout--steps .listing-hero-price-row { display: none !important; }
  body.offer-hero-page .offer-layout--steps select[id^="options-"] { display: none !important; }
  body.offer-hero-page .listing-hero .add-to-cart.offer-steps-empty {
    background: #c9d2c6 !important; border-color: #c9d2c6 !important; box-shadow: none !important;
  }
  [data-bs-theme="dark"] body.offer-hero-page .listing-hero .add-to-cart.offer-steps-empty { background: #4a524c !important; border-color: #4a524c !important; }

  /* option rows wide: name | prices | control */
  body.offer-hero-page .offer-steps { margin-top: 6px; border-radius: 20px; }
  body.offer-hero-page .offer-steps__title { font-size: 18px; }
  body.offer-hero-page .offer-step { grid-template-columns: minmax(0, 1fr) 132px; padding: 12px 14px 12px 20px; min-height: 68px; }
  body.offer-hero-page .offer-step:hover { border-color: #b7c6b3; }
  body.offer-hero-page .offer-step.is-on,
  body.offer-hero-page .offer-step.is-on:hover { border-color: #18ae00; }
  body.offer-hero-page .offer-step__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
  body.offer-hero-page .offer-step__price { margin-top: 0; justify-content: end; }
  body.offer-hero-page .offer-step__price b { text-align: right; }
  body.offer-hero-page .offer-step.is-on .offer-step__ctl { justify-content: space-between; }
  body.offer-hero-page .offer-step__ctl { justify-content: flex-end; }

  /* sticky Osta bar: photo, title and price with the button on the right */
  .offer-sticky-buy {
    display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 1030;
    background: var(--bs-body-bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .13); border-bottom: 1px solid var(--bs-border-color-translucent);
    transform: translateY(-110%); transition: transform .22s ease; pointer-events: none;
  }
  .offer-sticky-buy.is-on { transform: none; pointer-events: auto; }
  .offer-sticky-buy__in { display: flex; align-items: center; gap: 14px; max-width: calc(1240px + 2 * var(--od-pad)); margin: 0 auto; padding: 10px var(--od-pad); }
  .offer-sticky-buy__img { display: block; width: 64px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bs-secondary-bg); }
  .offer-sticky-buy__img[hidden] { display: none; }
  .offer-sticky-buy__tx { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
  .offer-sticky-buy__tx b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .offer-sticky-buy__sub { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .offer-sticky-buy__sub strong { color: var(--bs-body-color); font-size: 16px; }
  .offer-sticky-buy__sub s { font-size: 14px; }
  .offer-sticky-buy__pct { background: #DC251E; color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 8px; padding: 2px 7px; }
  .offer-sticky-buy__btn {
    flex: none; width: 260px; min-height: 50px; padding: 6px 12px; border: 0; border-radius: 14px;
    background: linear-gradient(135deg, #18ae00 0%, #4cd964 100%); color: #fff;
    font-size: 17px; font-weight: 700; line-height: 1.15;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .offer-sticky-buy__btn.is-empty { background: #c9d2c6; }
  .offer-sticky-buy__btn:disabled { opacity: .6; }
  .offer-sticky-buy__btn .offer-steps-sum { font-size: 12.5px; margin-top: 1px; }
  .offer-sticky-buy__choose { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1200px) {
  body.offer-hero-page { --od-pad: 40px; --od-gap: 56px; }
}
/* narrow desktop: the rows column is ~540 px, prices go under the name as on phones */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.offer-hero-page .offer-step__body { display: block; }
  body.offer-hero-page .offer-step__price { margin-top: 6px; justify-content: start; }
  body.offer-hero-page .offer-step__price b { text-align: left; }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .offer-rail, .offer-rail__tile img, .offer-sticky-buy, .offer-steps { transition: none; scroll-behavior: auto; }
}
