/* FOS homepage holiday seasons.
   1. .fos-season = the holiday band at the top of the page (inc/fos-home/season.php).
   2. body.fos-season-{slug} = the whole homepage re-dressed while that season is live:
      dark fields, price stickers, buttons and the rack rail. Only tokens and a few details change,
      so the layout stays identical and every season can be removed by deleting its block. */

/* ---------- 1. Holiday band ---------- */
.fos-season { padding: clamp(40px, 6vw, 88px) 0 calc(var(--fos-section) * 0.5); position: relative; overflow: clip; }
.fos-season .fos-season-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; margin-bottom: 40px; position: relative; z-index: 1; }
.fos-season .fos-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 13px/1 var(--fos-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fos-season-hi); }
.fos-season .fos-eyebrow .fos-ico { width: 22px; height: 22px; }
.fos-season .fos-season-title {
  font-family: var(--fos-display-narrow); font-weight: 840; font-variation-settings: "wdth" 62;
  font-size: clamp(42px, 13.5vw, 64px); line-height: 0.86; text-transform: uppercase; margin-bottom: 20px;
}
.fos-season .fos-season-title span { display: block; }
.fos-season .fos-season-title span + span { color: var(--fos-season-hi); }
.fos-season .fos-lede { opacity: 0.88; max-width: 44ch; text-wrap: pretty; }

/* The deal card: offer, code, deadline and the button in one place, so the right side carries
   as much weight as the headline and everything a shopper acts on sits together. */
.fos-season .fos-deal {
  display: grid; gap: 16px; align-content: start; padding: 22px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; background: rgba(255, 255, 255, 0.06);
}
.fos-season .fos-deal > .fos-missing { border-radius: 6px; }
.fos-season .fos-deal-offer {
  font-family: var(--fos-display-narrow); font-weight: 820; font-variation-settings: "wdth" 70;
  font-size: clamp(30px, 3.2vw, 44px); line-height: 0.95; text-transform: uppercase; color: var(--fos-season-hi);
}
.fos-season .fos-code {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 5px 5px 5px 14px;
  border: 1.5px dashed var(--fos-season-hi); border-radius: 8px; font: 600 14px/1 var(--fos-body);
}
.fos-season .fos-code-label { opacity: 0.75; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; white-space: nowrap; }
.fos-season .fos-code-value { margin-right: auto; font: 800 22px/1 var(--fos-display); font-variation-settings: "wdth" 90; letter-spacing: 0.08em; color: var(--fos-season-hi); user-select: all; }
.fos-season .fos-code-btn {
  min-height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: 6px;
  font: 700 14px/1 var(--fos-body); text-transform: none; letter-spacing: 0; color: inherit; background: rgba(255, 255, 255, 0.12); cursor: pointer;
  transition: background-color 0.2s var(--fos-ease);
}
.fos-season .fos-code-btn:hover { background: rgba(255, 255, 255, 0.22); }
.fos-season .fos-code-btn:focus-visible { outline: 3px solid var(--fos-season-hi); outline-offset: 2px; }
.fos-season .fos-deal-cutoff { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.fos-season .fos-deal-cutoff b { font-weight: 700; }
.fos-season .fos-deal-ico { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--fos-season-hi); }
.fos-season .fos-countdown {
  display: block; width: fit-content; margin-top: 8px; padding: 2px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; color: var(--fos-black); background: var(--fos-season-hi);
}
.fos-season .fos-deal .fos-btn { width: 100%; }
.fos-season .fos-deal { position: relative; }
@media (max-width: 359px) {
  .fos-season .fos-deal { padding: 18px 14px 16px; }
  .fos-season .fos-deal .fos-btn { font-size: 17px; padding-inline: 14px; }
  .fos-season .fos-code { gap: 8px; padding-left: 12px; }
  .fos-season .fos-code-label { display: none; } /* the dashed chip already reads as a code */
}
@media (min-width: 720px) {
  .fos-season .fos-season-title { font-size: clamp(52px, 7.4vw, 112px); }
  .fos-season .fos-deal { max-width: 520px; }
}
@media (min-width: 900px) {
  .fos-season .fos-season-head { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); align-items: center; }
}
@media (min-width: 1024px) {
  .fos-season .fos-season-head { grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); column-gap: clamp(48px, 6vw, 96px); }
  .fos-season .fos-deal { padding: 28px; gap: 18px; max-width: 480px; justify-self: end; width: 100%; }
}

/* ---------- 2a. Christmas ---------- */
body.fos-season-christmas .fos-home {
  --fos-black: #0f2e24;
  --fos-black-2: #173d31;
  --fos-sticker-bg: #c8102e;
  --fos-sticker-ink: #fff8ec;
  --fos-cta-bg: #c8102e;
  --fos-cta-ink: #fff8ec;
  --fos-cta-hi: #de2a40;
  --fos-cta-lo: #a50d26;
  --fos-season-hi: #f2c14e;
}
/* Still snow pattern, painted once with the background (no animation) */
.fos-season--christmas {
  color: #fff8ec; isolation: isolate; background-color: var(--fos-black);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 0.16) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 38% 78%, rgba(255, 255, 255, 0.22) 0 1.4px, transparent 2px),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.6px);
  background-size: 140px 120px, 190px 240px, 230px 240px, 110px 80px;
}
.fos-season .fos-flakes { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: var(--fos-season-hi); }
.fos-season .fos-flakes .fos-ico { position: absolute; opacity: 0.16; stroke-width: 1.2; }
.fos-season .fos-flakes .fos-ico:nth-child(1) { width: 52px; height: 52px; top: 22px; right: 31%; transform: rotate(12deg); }
.fos-season .fos-flakes .fos-ico:nth-child(2) { width: 34px; height: 34px; top: 34%; left: 47%; transform: rotate(-20deg); }
.fos-season .fos-flakes .fos-ico:nth-child(3) { width: 46px; height: 46px; top: 12px; left: 38%; transform: rotate(30deg); }
.fos-season .fos-flakes .fos-ico:nth-child(4) { width: 26px; height: 26px; top: 52%; left: 2%; }
.fos-season .fos-flakes .fos-ico:nth-child(5) { width: 40px; height: 40px; top: 58%; right: 2%; transform: rotate(-8deg); }
@media (max-width: 899px) { .fos-season .fos-flakes .fos-ico:nth-child(2) { display: none; } } /* would sit behind the deal card */
@media (max-width: 719px) {
  .fos-season .fos-flakes .fos-ico:nth-child(4) { display: none; }
  .fos-season .fos-flakes .fos-ico:nth-child(1) { width: 48px; height: 48px; top: 16px; }
  .fos-season .fos-flakes .fos-ico:nth-child(3) { left: 62%; top: 120px; width: 32px; height: 32px; }
}
/* Santa hat on the last word of the headline; the line gets a little headroom for it */
.fos-season .fos-season-title .has-hat { padding-top: 0.12em; }
.fos-season .fos-season-title .fos-hat-word { position: relative; display: inline-block; }
.fos-season .fos-hat {
  position: absolute; left: -0.17em; top: -0.33em; width: 0.62em; height: auto; pointer-events: none;
  transform: rotate(-16deg); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
/* A gift bow on the deal card */
.fos-season .fos-bow { position: absolute; top: -24px; right: 20px; width: 64px; height: 40px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); }
/* Price stickers become glass baubles: a shine, a gold cap and a hanging loop, so they read as ornaments */
body.fos-season-christmas .fos-home .fos-sticker {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55) 0 6%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 50% 42%, #e3283f 0 40%, #a50d26 78%, #7d0a1d 100%);
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, 0.5), inset 0 -4px 8px rgba(0, 0, 0, 0.18);
}
body.fos-season-christmas .fos-home .fos-sticker::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 20px; height: 11px; margin-left: -10px;
  border-radius: 3px 3px 1px 1px; background: repeating-linear-gradient(90deg, #f8dc85 0 3px, #c9992f 3px 5px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
body.fos-season-christmas .fos-home .fos-sticker::after {
  content: ""; position: absolute; top: -18px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  border: 2px solid #d9b45a; border-radius: 50%;
}
/* The rack rail becomes a lit garland */
body.fos-season-christmas .fos-rack .fos-rail {
  height: 12px;
  background:
    radial-gradient(circle, #ffd76a 0 3px, transparent 3.6px) 0 50% / 36px 12px repeat-x,
    radial-gradient(circle, #ff5a6a 0 3px, transparent 3.6px) 18px 50% / 36px 12px repeat-x,
    linear-gradient(180deg, #2c6b47, #164a31);
}
body.fos-season-christmas .fos-rack .fos-hook { stroke: #d9b45a; }

/* ---------- 2b. Black Friday ---------- */
body.fos-season-black-friday .fos-home {
  --fos-black: #0a0a0a;
  --fos-black-2: #1a1a1a;
  --fos-sticker-bg: #ffe600;
  --fos-sticker-ink: #0a0a0a;
  --fos-cta-bg: #ffe600;
  --fos-cta-ink: #0a0a0a;
  --fos-cta-hi: #fff04d;
  --fos-cta-lo: #e6cf00;
  --fos-season-hi: #ffe600;
}
.fos-season--black-friday { background: var(--fos-black); color: #f6f6f4; }
/* Hazard tape across the top of the band and along the rack rail */
.fos-season--black-friday::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, #ffe600 0 14px, #0a0a0a 14px 28px);
}
.fos-season--black-friday .fos-season-title span:first-child { -webkit-text-stroke: 2px #f6f6f4; color: transparent; }
body.fos-season-black-friday .fos-rack .fos-rail { height: 8px; background: repeating-linear-gradient(-45deg, #ffe600 0 12px, #0a0a0a 12px 24px); }
body.fos-season-black-friday .fos-home .fos-sticker { border-radius: 10px; transform: rotate(-6deg); }
