/* ==================================================
   BLACK FRIDAY 2027 FULL PASS — timed home page card
   Visible Nov 27–29, 2026 (Montreal time). See js/black-friday.config.js.
   Palette pulled from the Black Friday / Vendredi fou posts:
   fire-orange sky over sky-to-ocean blue, white heavy type.
   ================================================== */

.black-friday-offer[hidden] {
  display: none !important;
}

.black-friday-offer {
  position: relative;
  z-index: 4;
  padding-top: clamp(14px, 3vw, 30px);
  padding-bottom: clamp(2px, 1vw, 8px);
}

.black-friday-card {
  position: relative;
  display: grid;
  gap: 26px;
  overflow: hidden;
  padding: clamp(24px, 6vw, 40px) clamp(20px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: clamp(24px, 5vw, 34px);
  color: #ffffff;
  background:
    radial-gradient(560px 290px at 0% 0%, rgba(255, 62, 22, 0.765) 0%, rgba(255, 98, 36, 0.39) 42%, transparent 74%),
    radial-gradient(440px 250px at 100% 0%, rgba(255, 82, 28, 0.53) 0%, transparent 72%),
    radial-gradient(120% 55% at 50% 112%, rgba(3, 38, 94, 0.92) 0%, transparent 72%),
    linear-gradient(180deg, #0b4c8c 0%, #0d68ad 40%, #0a5698 72%, #06356f 100%);
  box-shadow:
    0 28px 64px rgba(6, 29, 67, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
}

/* Fire-to-ice top stripe, shared with the other UNBOUND cards. */
.black-friday-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 5px;
  background: linear-gradient(90deg, #ff3b1f 0%, #ff8d2b 30%, #fff5d8 58%, #26e4ff 100%);
}

/* Thin light rays, echoing the lines in the poster sky. */
.black-friday-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(106deg, transparent 0 42px, rgba(255, 255, 255, 0.05) 42px 43px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  pointer-events: none;
}

.black-friday-watermark {
  position: absolute;
  right: -0.03em;
  bottom: -0.21em;
  z-index: -1;
  color: rgba(255, 255, 255, 0.06);
  font-size: clamp(112px, 34vw, 260px);
  font-weight: 1000;
  letter-spacing: -0.10em;
  line-height: 0.78;
  pointer-events: none;
  user-select: none;
}

.black-friday-copy,
.black-friday-purchase {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.black-friday-copy {
  container-type: inline-size;
}

/* Topline pills */
.black-friday-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-bottom: 20px;
}

.black-friday-badge,
.black-friday-window {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.black-friday-badge {
  color: #061d43;
  background: linear-gradient(100deg, #ff8d2b 0%, #fff5d8 52%, #7eeeff 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.black-friday-window {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(4, 28, 66, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Live dot */
.black-friday-window::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #ff6a2b;
  box-shadow: 0 0 0 0 rgba(255, 106, 43, 0.65);
  animation: black-friday-pulse 1.8s ease-out infinite;
}

@keyframes black-friday-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(255, 106, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0); }
}

/* BLACK / FRIDAY headline with the orange swipe from the poster */
.black-friday-title {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 13.6vw, 112px);
  font-weight: 1000;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0.035em 0.045em 0 rgba(4, 21, 52, 0.52);
  isolation: isolate;
}

/* Sized to the copy column. FR "VENDREDI" is the longest line; EN gets more room. */
@supports (font-size: 1cqi) {
  .black-friday-title {
    font-size: clamp(44px, 17.5cqi, 116px);
  }

  html[lang^="en"] .black-friday-title {
    font-size: clamp(48px, 20.5cqi, 124px);
  }
}

.black-friday-title-line {
  display: block;
}

.black-friday-title-line + .black-friday-title-line {
  padding-left: 0.62em;
}

.black-friday-title::before {
  content: "";
  position: absolute;
  top: 47%;
  right: -0.25em;
  left: -60px;
  z-index: -1;
  height: 0.30em;
  background: linear-gradient(90deg, rgba(255, 70, 26, 0) 0%, rgba(255, 70, 26, 0.75) 26%, rgba(255, 106, 43, 0.85) 68%, rgba(255, 138, 46, 0) 100%);
  pointer-events: none;
}

.black-friday-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 650;
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(3, 20, 50, 0.30);
}

.black-friday-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: #ffffff;
  font-size: clamp(13px, 3.4vw, 15px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.black-friday-tagline::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff3b1f, #ffb24a);
}

/* Purchase panel */
.black-friday-purchase {
  display: grid;
  grid-template-areas:
    "pass"
    "price"
    "label"
    "timer"
    "cta"
    "note";
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(3, 25, 62, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.black-friday-price-row {
  grid-area: pass;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
}

.black-friday-pass {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.black-friday-save {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #061d43;
  background: linear-gradient(100deg, #ff6c3e 0%, #ff9c44 100%);
  box-shadow: 0 8px 20px rgba(255, 85, 36, 0.24);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.black-friday-price {
  grid-area: price;
  margin: 0 0 4px;
  color: #ffffff;
  font-size: clamp(66px, 19vw, 92px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-shadow: 0 0 42px rgba(255, 106, 43, 0.32);
}

.black-friday-timer-label {
  grid-area: label;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.black-friday-timer {
  grid-area: timer;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.black-friday-time-unit {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 11px 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
}

.black-friday-time-unit strong {
  color: #ffffff;
  font-size: clamp(22px, 7vw, 30px);
  font-variant-numeric: tabular-nums;
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 1;
}

.black-friday-time-unit span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.black-friday-cta,
.black-friday-cta:visited {
  grid-area: cta;
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #061d43;
  background: linear-gradient(100deg, #ff6c3e 0%, #ffa752 46%, #fff1d2 100%);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.22);
  font-size: 10.5px;
  font-weight: 1000;
  letter-spacing: 0.10em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.black-friday-cta:hover,
.black-friday-cta:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.black-friday-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.black-friday-checkout-note {
  grid-area: note;
  color: rgba(255, 255, 255, 0.60);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
}

/* Tablet: card stays stacked, purchase panel splits into price | timer */
@media (min-width: 600px) and (max-width: 899px) {
  .black-friday-purchase {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas:
      "pass label"
      "price timer"
      "cta cta"
      "note note";
    align-items: center;
    column-gap: 24px;
    padding: 22px;
  }

  .black-friday-price {
    margin: 0;
  }
}

/* Desktop: headline left, purchase panel right */
@media (min-width: 900px) {
  .black-friday-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    align-items: center;
    gap: clamp(30px, 4vw, 60px);
    padding: clamp(34px, 4.5vw, 54px);
  }

  .black-friday-purchase {
    padding: 22px;
  }

  .black-friday-time-unit span {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .black-friday-cta {
    transition: none;
  }

  .black-friday-window::before {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .black-friday-window,
  .black-friday-purchase {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
