/* s-promo.css — promo family home sections (sliders, banners, promotions). See docs/BUILD-GUIDE.md.
   Settings named right/left/top/bottom (text_place, compare positions) are physical on purpose: merchant images are
   not mirrored in LTR, so copy must stay on the same side of the picture. Everything else is logical. */

/* ---------- shared: hero carousels (arrows inside, dots on the media) ---------- */
.si, .ss, .ms, .cdb { --cr-arrow-top: 50%; }
.ms:has(> .cr__dots) { --cr-arrow-top: calc(50% - 11px); } /* centre on the slide, not slide + dots row */
.si .cr__arrow--prev, .ss .cr__arrow--prev, .ms-full .cr__arrow--prev, .cdb .cr__arrow--prev { inset-inline-start: clamp(8px, 2vw, 20px); }
.si .cr__arrow--next, .ss .cr__arrow--next, .ms-full .cr__arrow--next, .cdb .cr__arrow--next { inset-inline-end: clamp(8px, 2vw, 20px); }
.si .cr__dots, .ss .cr__dots { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: clamp(10px, 2vw, 18px); margin: 0; pointer-events: none; }
.si .cr__dot, .ss .cr__dot { pointer-events: auto; }
.si, .ss { --dots: #fff; }
.si__hit, .ss__hit, .ms__hit, .bgr__hit { position: absolute; inset: 0; z-index: 1; }

/* ---------- slider-imgs / slider_img ---------- */
.si .cr__track { border-radius: var(--radius); }
.si__slide { position: relative; }
.si__media { height: 100%; border-radius: 0; }
.si__media picture { display: block; height: 100%; }
.si__copy { z-index: 2; pointer-events: none; }
/* keep the copy clear of the arrows (42px at 8–20px from each edge) while they show */
.si-s:not(.hide-arrows) .si__copy { padding-inline: max(clamp(18px, 4vw, 48px), calc(clamp(8px, 2vw, 20px) + 50px)); }
@media (max-width: 767px) { .si-s.hide-arrows-m .si__copy { padding-inline: clamp(18px, 4vw, 48px); } }
.si__copy > * { max-width: min(38rem, 100%); }
.si__copy .btn { pointer-events: auto; }
.si__copy--right { text-align: right; background: linear-gradient(to left, rgb(0 0 0 / 45%), transparent 75%); }
.si__copy--right > * { margin-left: auto; }
.si__copy--left { text-align: left; background: linear-gradient(to right, rgb(0 0 0 / 45%), transparent 75%); }
.si__copy--left > * { margin-right: auto; }
.si__copy--center { text-align: center; background: rgb(0 0 0 / 25%); }
.si__copy--center > * { margin-inline: auto; }
.si__sub { font-size: clamp(.8125rem, .75rem + .4vw, 1.125rem); font-weight: 600; }
.si__title { font-size: clamp(1.25rem, .85rem + 2.6vw, 3.25rem); line-height: 1.15; white-space: pre-line; text-wrap: balance; }
.si__btn { margin-top: 4px; }
@media (max-width: 767px) { .si__copy { gap: 6px; } .si__btn { min-height: 38px; padding: .4em 1.1em; font-size: .875rem; } }

/* ---------- main-slider (dots stay under the slider: slide backgrounds vary per slide) ---------- */
.ms__slide { position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--ms-bg, var(--c-surface)); }
.ms-contained .ms .cr__track { border-radius: var(--radius); }
.ms__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.ms__inner { position: relative; z-index: 2; display: grid; gap: clamp(18px, 3vw, 48px); align-items: center; width: 100%; padding-block: clamp(28px, 5vw, 64px); pointer-events: none; }
.ms-contained .ms__inner { padding-inline: clamp(20px, 6vw, 80px); }
.ms__inner a { pointer-events: auto; }
.ms__copy { display: grid; gap: 12px; justify-items: center; text-align: center; }
.ms__eyebrow { color: var(--c-primary); font-size: .875rem; font-weight: 700; letter-spacing: .02em; }
.ms__title { font-size: clamp(1.5rem, 1.05rem + 2.2vw, 3rem); line-height: 1.2; text-wrap: balance; }
.ms__des { max-width: 34rem; color: var(--c-muted); white-space: pre-line; }
.ms__btn { margin-top: 6px; }
.ms__img { order: -1; }
.ms__img img { width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: var(--radius); }
@media (min-width: 768px) {
  .ms__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ms__copy { justify-items: start; text-align: start; }
  .ms__img { order: 0; }
}

/* ---------- spicial-slider (hero) ---------- */
.ss { --ss-h: clamp(380px, 76svh, 720px); }
@media (min-width: 768px) { .ss { --ss-h: clamp(440px, 82svh, 880px); } }
.ss__slide { position: relative; height: var(--ss-h); overflow: hidden; background: #111; color: #fff; }
.ss__media, .ss__shade { position: absolute; inset: 0; }
.ss__img { display: block; height: 100%; }
.ss__media img, .ss__video { width: 100%; height: 100%; object-fit: cover; }
.ss__video { position: absolute; inset: 0; }
.ss__shade { background: rgb(0 0 0 / 30%); }
@media (max-width: 767px) { .ss__video--d { display: none; } }
@media (min-width: 768px) { .ss__video--m { display: none; } }
/* natural media height (slider_auto / slider_auto_mobile): the image (or a lone video) sizes the slide;
   a carousel row is as tall as its tallest slide, the others cover it */
@media (max-width: 767px) {
  .ss--auto-m .ss__slide { height: auto; }
  .ss--auto-m .ss__media { position: relative; height: 100%; }
  .ss--auto-m .ss__media > .ss__video:only-child { position: static; }
}
@media (min-width: 768px) {
  .ss--auto-d .ss__slide { height: auto; }
  .ss--auto-d .ss__media { position: relative; height: 100%; }
  .ss--auto-d .ss__media > .ss__video:only-child { position: static; }
}
/* subtle Ken Burns zoom; in fade mode it restarts on each newly active slide */
.ss__img img { animation: ss-zoom 14s ease-in-out infinite alternate; }
.cr--fade .ss__slide:not(.is-active) .ss__img img, .ss--still .ss__img img { animation: none; }
@keyframes ss-zoom { to { transform: scale(1.08); } }
.ss__copy { position: absolute; inset: 0; z-index: 2; display: grid; padding: clamp(20px, 5vw, 72px); padding-block-end: max(clamp(20px, 5vw, 72px), 48px); pointer-events: none; }
/* keep the copy clear of the arrows (42px at 8–20px from each edge) while they show, as in slider-imgs */
.s--spicial-slider:not(.hide-arrows) .ss__copy { padding-inline: max(clamp(20px, 5vw, 72px), calc(clamp(8px, 2vw, 20px) + 50px)); }
@media (max-width: 767px) { .s--spicial-slider.hide-arrows-m .ss__copy { padding-inline: clamp(20px, 5vw, 72px); } }
.ss__copy.v-top { align-content: start; }
.ss__copy.v-middle { align-content: center; }
.ss__copy.v-bottom { align-content: end; }
.ss__copy.h-right { justify-items: right; text-align: right; }
.ss__copy.h-center { justify-items: center; text-align: center; }
.ss__copy.h-left { justify-items: left; text-align: left; }
@media (max-width: 767px) {
  .ss__copy.vm-top { align-content: start; }
  .ss__copy.vm-middle { align-content: center; }
  .ss__copy.vm-bottom { align-content: end; }
  .ss__copy.hm-right { justify-items: right; text-align: right; }
  .ss__copy.hm-center { justify-items: center; text-align: center; }
  .ss__copy.hm-left { justify-items: left; text-align: left; }
}
.ss__box { display: grid; gap: 12px; justify-items: inherit; max-width: min(42rem, 100%); }
.ss__box--background, .ss__box--border, .ss__box--both { padding: clamp(16px, 3vw, 34px); border-radius: var(--ss-box-r, 12px); }
.ss__box--background, .ss__box--both { background: var(--ss-box-bg, rgb(0 0 0 / 45%)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ss__box--border, .ss__box--both { border: var(--ss-box-bw, 1px) solid var(--ss-box-bd, rgb(255 255 255 / 70%)); }
.ss__title { font-size: clamp(1.625rem, 1rem + 3vw, 3.75rem); line-height: 1.12; text-wrap: balance; }
.ss__sub { font-size: clamp(.9375rem, .85rem + .45vw, 1.25rem); white-space: pre-line; opacity: .92; }
.ss__btn { margin-top: 6px; pointer-events: auto; }
.ss__btn--filled { --btn-bg: var(--b-bg, var(--c-primary)); --btn-fg: var(--b-fg, var(--c-on-primary)); --btn-border: var(--b-bd, var(--b-bg, var(--c-primary))); }
.ss__btn--outline { --btn-bg: transparent; --btn-fg: var(--b-fg, #fff); --btn-border: var(--b-bd, currentColor); }
.ss__btn--outline:hover { --btn-bg: var(--b-bg, rgb(255 255 255 / 14%)); filter: none; }
.ss__btn--ghost { --btn-bg: transparent; --btn-fg: var(--b-fg, #fff); --btn-border: transparent; padding-inline: .25em; text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s, background .2s; }
.ss__btn--ghost:hover { --btn-bg: var(--b-bg, transparent); text-decoration-color: var(--b-bd, currentColor); filter: none; }
.ss .cr__arrow { background: rgb(0 0 0 / 22%); color: var(--ss-arrows, #fff); border: 1px solid color-mix(in srgb, var(--ss-arrows, #fff) 50%, transparent); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ss .cr__arrow:hover { background: rgb(0 0 0 / 45%); color: var(--ss-arrows, #fff); }

/* ---------- banner (single) / banners (grid) ---------- */
.bn, .bns__item { display: block; }
.bn img, .bns__item img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.bns__item img { height: 100%; }
.bns { --gap: clamp(10px, 1.6vw, 20px); }
a.bn:hover img, a.bns__item:hover img { transform: scale(1.035); }

/* ---------- banner-grid ---------- */
.bgr__card { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 1132 / 792; padding: clamp(18px, 3vw, 36px); isolation: isolate; }
.bgr__img { position: absolute; inset: 0; z-index: -1; transition: transform .6s var(--ease); }
.bgr__card:hover .bgr__img { transform: scale(1.05); }
.bgr__copy { position: relative; z-index: 2; display: grid; gap: 6px; max-width: 68%; pointer-events: none; }
.bgr__copy .btn { pointer-events: auto; }
.bgr--right .bgr__copy { margin-left: auto; justify-items: right; text-align: right; }
.bgr--left .bgr__copy { margin-right: auto; justify-items: left; text-align: left; }
.bgr--center .bgr__copy { margin-inline: auto; justify-items: center; text-align: center; max-width: 86%; }
.bgr__sub { font-size: .8125rem; font-weight: 600; opacity: .85; }
.bgr__title { font-size: clamp(1.125rem, .9rem + 1vw, 1.625rem); line-height: 1.25; }
.bgr__btn { margin-top: 8px; }

/* ---------- advertisement-bar ---------- */
.s--advertisement-bar.s--bg { padding-block: 0; }
.ab { display: flex; align-items: center; min-height: var(--ab-h-m, 40px); border-block: 1px solid var(--ab-bd, var(--c-border)); font-size: var(--ab-fs-m, 15px); font-weight: 600; }
.ab__item { display: inline-flex; flex: none; align-items: center; gap: 10px; padding-inline: 18px; white-space: nowrap; }
.ab__item::before { content: ""; flex: none; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: currentColor; opacity: .35; }
.ab__item img { width: auto; max-width: none; height: var(--ab-img-m, 24px); }
a.ab__item:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) {
  .ab { min-height: var(--ab-h, 40px); font-size: var(--ab-fs, 15px); }
  .ab__item img { height: var(--ab-img, 26px); }
}

/* ---------- offers (discounts style 2) ---------- */
.of { display: grid; gap: clamp(18px, 3vw, 44px); align-items: center; }
.s--offers.of-contained.s--bg { padding-block: 0; background: none; }
.of-contained .of { padding: clamp(18px, 4vw, 52px); border-radius: var(--radius); background: var(--s-bg, var(--c-surface)) var(--s-bg-img, none) center / cover no-repeat; }
.of__body { display: grid; gap: 14px; justify-items: center; text-align: center; }
.of__title { font-size: clamp(1.5rem, 1.05rem + 2vw, 2.75rem); line-height: 1.2; text-wrap: balance; }
.of__sub { color: var(--c-muted); font-size: clamp(.9375rem, .85rem + .3vw, 1.125rem); }
.of__btn { margin-top: 4px; }
.of__media { display: block; order: -1; overflow: hidden; aspect-ratio: 550 / 400; border-radius: var(--radius); }
.of__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.of__media--contain img { object-fit: contain; }
a.of__media:hover img { transform: scale(1.04); }
@media (min-width: 768px) {
  .of { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .of__body { justify-items: start; text-align: start; }
  .of__media { order: 0; }
}

/* ---------- deal-days ---------- */
.dd { position: relative; display: grid; place-items: center; min-height: var(--dd-h-m, 200px); padding: clamp(18px, 4vw, 44px); overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--c-surface); text-align: center; }
.dd__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.dd--img { color: #fff; }
.dd--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / 50%), rgb(0 0 0 / 20%)); }
.dd__copy { display: grid; gap: 10px; justify-items: center; }
.dd__title { font-size: clamp(1.375rem, 1rem + 1.8vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
.dd__sub { font-size: clamp(.9375rem, .85rem + .3vw, 1.125rem); opacity: .9; }
.dd__cd { margin-top: 6px; }
@media (min-width: 768px) {
  .dd { min-height: var(--dd-h, 280px); }
  .dd__cd .cd__unit { min-width: 72px; padding: 10px 8px; }
  .dd__cd .cd__unit b { font-size: 1.75rem; }
}

/* ---------- countdown-banner ---------- */
.cdb .cr__track { border-radius: var(--radius); }
.cdb__slide { border-radius: 0; }
.cdb__slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto 2 / 1; } /* placeholder ratio until the image loads (no size in the schema) */
.cdb__cd { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: clamp(10px, 3vw, 28px); justify-content: center; pointer-events: none; }
@media (max-width: 767px) { .cdb__cd { gap: 5px; } .cdb__cd .cd__unit { min-width: 44px; padding: 5px 4px; } .cdb__cd .cd__unit b { font-size: 1rem; } }

/* ---------- compare-content ---------- */
.cc { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; }
.cc--full { gap: clamp(18px, 3vw, 32px); }
.cc--m-bottom .cc__media { order: 2; }
@media (min-width: 768px) {
  .cc:not(.cc--full) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .cc--m-bottom .cc__media { order: 0; }
  .cc--media-last .cc__media { order: 2; }
  .cc--media-last:not(.cc--full) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } /* the media keeps the wider column */
}
.cc__cmp { --pos: 50%; --cc-ctl: #fff; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-surface); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.cc__cmp.is-v { cursor: ns-resize; touch-action: pan-x; }
.cc__cmp img { pointer-events: none; -webkit-user-drag: none; }
.cc__img { display: block; width: 100%; height: auto; max-height: min(78svh, 720px); object-fit: cover; aspect-ratio: auto 4 / 3; }
.cc__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cc__cmp.is-v .cc__top { clip-path: inset(0 0 calc(100% - var(--pos)) 0); }
.cc__top .cc__img { height: 100%; max-height: none; }
.cc__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; direction: ltr; }
.cc__cmp.is-v .cc__range { writing-mode: vertical-lr; }
/* physical: --pos is measured from the left (top when vertical) */
.cc__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cc-ctl); box-shadow: 0 0 6px rgb(0 0 0 / 25%); pointer-events: none; }
.cc__cmp.is-v .cc__handle { top: var(--pos); bottom: auto; left: 0; right: 0; width: auto; height: 2px; margin: -1px 0 0; }
.cc__knob, .cc__logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cc__knob { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--cc-ctl); border-radius: 50%; background: rgb(0 0 0 / 25%); color: var(--cc-ctl); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cc__cmp.is-v .cc__knob { flex-direction: column; }
.cc__knob .ic { width: 16px; height: 16px; stroke-width: 2.5; }
.cc__logo { width: var(--cc-logo-m, 120px); max-width: none; height: auto; }
.cc__range:focus-visible ~ .cc__handle .cc__knob, .cc__range:focus-visible ~ .cc__handle .cc__logo { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.cc__lbl { position: absolute; z-index: 2; top: 14px; padding: 4px 12px; border-radius: var(--pill); background: rgb(0 0 0 / 55%); color: #fff; font-size: .8125rem; font-weight: 600; pointer-events: none; }
.cc__lbl--a { left: 14px; }
.cc__lbl--b { right: 14px; }
.cc__cmp.is-v .cc__lbl { left: 50%; right: auto; transform: translateX(-50%); }
.cc__cmp.is-v .cc__lbl--b { top: auto; bottom: 14px; }
.cc--full .cc__img { max-height: min(82svh, 860px); }
.cc__body { --al: var(--cc-al-m, center); display: grid; gap: 14px; justify-items: var(--al); text-align: var(--al); }
.cc__eyebrow { color: var(--c-primary); font-size: .875rem; font-weight: 700; }
.cc__title { font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); line-height: 1.25; text-wrap: balance; }
.cc__text { color: var(--c-muted); white-space: pre-line; }
.cc__list { display: grid; gap: 12px; justify-items: var(--al); margin-block: 4px; }
.cc__li { display: flex; gap: 10px; align-items: flex-start; text-align: start; }
.cc__tick { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); stroke-width: 3; }
.cc__li > span { display: grid; gap: 2px; }
.cc__li-title { font-weight: 700; }
.cc__li-sub { color: var(--c-muted); font-size: .875rem; }
.cc__btn { margin-top: 6px; }
@media (min-width: 768px) {
  .cc__body { --al: var(--cc-al, center); }
  .cc__logo { width: var(--cc-logo, 200px); }
}
