/* ==================================================================
   Seasonal looks (Grow your shop → Seasonal looks)
   ------------------------------------------------------------------
   Loaded only while a look is on. Each look swaps the theme's color
   tokens (html[data-campaign] wins over the theme's :root) and adds the
   bar above the header. The checkout keeps the shop's own look.
   Motion: transform and opacity only; gentler, not gone, for people who
   ask for less motion.
   ================================================================== */

/* Black Friday: black and gold, the colors shoppers expect that week. */
html[data-campaign="black-friday"] {
  --brand: #111111;
  --brand-hover: #2A2A2A;
  --brand-press: #000000;
  --brand-soft: #F7F1DE;
  --mint: #F2B705;
  --logo-glyph: #F2B705;
  --hero-from: #FFF8E3;
  --hero-to: #F9E7AE;
  --footer: #0E0E0E;
  --footer-accent: #F2B705;
  --brand-rgb: 17, 17, 17;
  --brand-press-rgb: 0, 0, 0;
  --accent-rgb: 242, 183, 5;
  --ring: 0 0 0 4px rgba(242, 183, 5, 0.38);
  --campaign-bar: #111111;
  --campaign-bar-text: #FFFFFF;
  --campaign-tag: #F2B705;
  --campaign-tag-text: #111111;
}

/* Christmas: cranberry red with pine and warm gold, on a warmer paper. */
html[data-campaign="christmas"] {
  --brand: #A3122A;
  --brand-hover: #8A0F23;
  --brand-press: #6E0C1C;
  --brand-soft: #FBEBEC;
  --mint: #2E7D52;
  --logo-glyph: #F6D27A;
  --mist: #FFF9F3;
  --hero-from: #FDF1EE;
  --hero-to: #F6DCD8;
  --footer: #3B0C14;
  --footer-accent: #F6D27A;
  --brand-rgb: 163, 18, 42;
  --brand-press-rgb: 110, 12, 28;
  --accent-rgb: 46, 125, 82;
  --ring: 0 0 0 4px rgba(163, 18, 42, 0.18);
  --campaign-bar: #8A0F23;
  --campaign-bar-text: #FFFFFF;
  --campaign-tag: #F6D27A;
  --campaign-tag-text: #3B0C14;
}

html[data-campaign] {
  --campaign-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Version 2 (the 2026 redesign): the dark header, the brass search button, the warm wells behind toy photos and the
   sale color follow the look too, so every page wears it. */
html[data-campaign="black-friday"] {
  --header: #080808;
  --header-2: #1C1A16;
  --header-text: #FFFFFF;
  --header-muted: #C9BFA6;
  --accent: #E2B04A;
  --accent-ink: #8C6516;
  --accent-rgb: 226, 176, 74;
  --well: #EEEAE1;
  --sale: #B8860B;
}
html[data-campaign="christmas"] {
  --header: #0F3326;
  --header-2: #1A4A37;
  --header-text: #FFFFFF;
  --header-muted: #C9DCCF;
  --accent: #E7C46B;
  --accent-ink: #8A2A1F;
  --accent-rgb: 231, 196, 107;
  --well: #F4EEE6;
  --sale: #A3122A;
}

/* The bar ---------------------------------------------------------- */

.campaign-bar {
  position: relative;
  overflow: hidden;
  background: var(--campaign-bar);
  color: var(--campaign-bar-text);
  font-size: 0.875rem;
  line-height: 1.35;
}
.campaign-bar.is-black-friday {
  /* Thin gold stripes, barely there. */
  background-image: repeating-linear-gradient(135deg, rgba(242, 183, 5, 0.07) 0 10px, transparent 10px 22px);
}
.campaign-bar.is-christmas {
  background-image: linear-gradient(90deg, #7A0D1F, #A3122A 50%, #7A0D1F);
}
.campaign-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  min-height: 44px;
  padding-block: 6px;
}
.campaign-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
}
.campaign-tag {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--campaign-tag);
  color: var(--campaign-tag-text);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.campaign-text { font-weight: 600; }
.campaign-countdown {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.campaign-countdown-label { opacity: 0.8; }
.campaign-countdown time { font-weight: 800; letter-spacing: 0.02em; }
.campaign-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease-out, transform 160ms var(--campaign-ease);
}
.campaign-link .icon { width: 16px; height: 16px; transition: transform 200ms var(--campaign-ease); }
html[dir="rtl"] .campaign-link .icon { transform: scaleX(-1); }
.campaign-link:active { transform: scale(0.97); }
.campaign-link:focus-visible { outline: 2px solid var(--campaign-tag); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .campaign-link:hover { background: rgba(255, 255, 255, 0.24); }
  .campaign-link:hover .icon { transform: translateX(3px); }
  html[dir="rtl"] .campaign-link:hover .icon { transform: scaleX(-1) translateX(3px); }
}
.campaign-preview-note {
  margin: 0;
  padding: 4px 16px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.75rem;
  text-align: center;
}

/* Christmas snow: a few soft flakes drifting down, behind the words. */
.campaign-snow { position: absolute; inset: 0; pointer-events: none; }
.campaign-snow i {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: campaign-snow 7s linear infinite;
  will-change: transform;
}
.campaign-snow i:nth-child(odd) { width: 3px; height: 3px; opacity: 0.7; }
.campaign-snow i:nth-child(1)  { inset-inline-start: 3%;  animation-delay: -1s;   animation-duration: 6s; }
.campaign-snow i:nth-child(2)  { inset-inline-start: 9%;  animation-delay: -4s;   animation-duration: 8s; }
.campaign-snow i:nth-child(3)  { inset-inline-start: 16%; animation-delay: -2.5s; animation-duration: 7s; }
.campaign-snow i:nth-child(4)  { inset-inline-start: 23%; animation-delay: -6s;   animation-duration: 9s; }
.campaign-snow i:nth-child(5)  { inset-inline-start: 31%; animation-delay: -0.5s; animation-duration: 6.5s; }
.campaign-snow i:nth-child(6)  { inset-inline-start: 38%; animation-delay: -3s;   animation-duration: 8.5s; }
.campaign-snow i:nth-child(7)  { inset-inline-start: 46%; animation-delay: -5s;   animation-duration: 7.5s; }
.campaign-snow i:nth-child(8)  { inset-inline-start: 54%; animation-delay: -2s;   animation-duration: 6s; }
.campaign-snow i:nth-child(9)  { inset-inline-start: 61%; animation-delay: -7s;   animation-duration: 9s; }
.campaign-snow i:nth-child(10) { inset-inline-start: 69%; animation-delay: -1.5s; animation-duration: 7s; }
.campaign-snow i:nth-child(11) { inset-inline-start: 76%; animation-delay: -4.5s; animation-duration: 8s; }
.campaign-snow i:nth-child(12) { inset-inline-start: 84%; animation-delay: -3.5s; animation-duration: 6.5s; }
.campaign-snow i:nth-child(13) { inset-inline-start: 91%; animation-delay: -6.5s; animation-duration: 8.5s; }
.campaign-snow i:nth-child(14) { inset-inline-start: 97%; animation-delay: -0.8s; animation-duration: 7.5s; }
@keyframes campaign-snow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(12px, 64px, 0); }
}

/* The look elsewhere on the page ----------------------------------- */

html[data-campaign="black-friday"] .badge-sale { background: #111111; color: #F2B705; }
html[data-campaign="christmas"] .badge-sale { background: #2E7D52; color: #FFFFFF; }
html[data-campaign="black-friday"] .site-header::after { background: linear-gradient(90deg, transparent, #F2B705, transparent); opacity: 0.55; }

/* The 3D banner at the top of the home page ---------------------- */
/* One stage: the look's backdrop photo, two cut-out photos floating in front of it at different depths, sparkles or
   snow between them (a canvas), and the words. js/campaign.js leans the scene back and moves the layers apart while
   shoppers scroll (transform only). The words sit on the side the language starts from. */

.cs-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 76vh, 760px);
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 0%;
  background: #0A0A0A;
  color: #FFFFFF;
}
.cs-stage.is-christmas { background: #1F070C; }
.cs-scene {
  position: absolute;
  inset: -3% -2% -1%;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
}
.cs-backdrop, .cs-backdrop img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.cs-backdrop img { object-fit: cover; object-position: 70% 50%; }
/* Right to left: the photo's quiet side is turned to where the words are. */
html[dir="rtl"] .cs-backdrop img { transform: scaleX(-1); }
/* The pine branch hangs from the screen's edge on the side away from the words. */
html[dir="rtl"] .is-christmas .cs-float-far img { scale: -1 1; }
.cs-stage.is-plain.is-black-friday .cs-scene { background: radial-gradient(90% 120% at 78% 70%, #3A2A05 0%, #0A0A0A 62%); }
.cs-stage.is-plain.is-christmas .cs-scene { background: radial-gradient(90% 120% at 78% 70%, #5A1420 0%, #1F070C 62%); }

.cs-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(42% 60% at 76% 72%, rgba(242, 183, 5, 0.22), rgba(242, 183, 5, 0) 70%);
}
.is-christmas .cs-glow { background: radial-gradient(42% 60% at 76% 68%, rgba(255, 196, 120, 0.22), rgba(255, 196, 120, 0) 70%); }
html[dir="rtl"] .cs-glow { transform: scaleX(-1); }
.cs-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* The words stay readable over any photo: a soft shade on their side. */
.cs-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.42) 38%, rgba(0, 0, 0, 0) 66%),
              linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 32%);
}
.is-christmas .cs-shade {
  background: linear-gradient(90deg, rgba(31, 7, 12, 0.78) 0%, rgba(31, 7, 12, 0.44) 40%, rgba(31, 7, 12, 0) 68%),
              linear-gradient(0deg, rgba(31, 7, 12, 0.4) 0%, rgba(31, 7, 12, 0) 32%);
}
html[dir="rtl"] .cs-shade { transform: scaleX(-1); }

.cs-float {
  position: absolute;
  display: block;
  pointer-events: none;
}
.cs-float img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.55));
  animation: cs-rise 1.1s var(--ease) 0.15s both, cs-bob 7s ease-in-out 1.25s infinite alternate;
}
.cs-float-far img { animation-delay: 0.3s, 1.4s; animation-duration: 1.1s, 8.5s; }
.is-black-friday .cs-float-near { width: min(36vw, 470px); inset-inline-end: 5%; bottom: 2%; }
.is-black-friday .cs-float-far { width: min(26vw, 340px); inset-inline-end: 31%; bottom: 9%; }
.is-christmas .cs-float-near { width: min(32vw, 440px); inset-inline-end: 6%; bottom: 2%; }
.is-christmas .cs-float-far { width: min(28vw, 380px); inset-inline-end: 0%; top: -4%; }
@keyframes cs-rise {
  from { opacity: 0; transform: translate3d(0, 48px, 0) scale(0.96); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes cs-bob {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(0, -12px, 0) rotate(-1.2deg); }
}

.cs-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(56px, 9vw, 120px);
}
.cs-copy > * { animation: cs-in 0.8s var(--ease) both; }
.cs-copy > :nth-child(2) { animation-delay: 0.08s; }
.cs-copy > :nth-child(3) { animation-delay: 0.16s; }
@keyframes cs-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
.cs-title {
  margin: 0;
  max-width: 9ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.4vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* Gold foil: the light runs across the letters once, as the page opens. */
.cs-title span {
  display: inline-block;
  padding-block: 0.06em;
  background: linear-gradient(100deg, #8A6A12 0%, #F7D774 20%, #FFF3C4 30%, #E7B923 44%, #9A7413 60%, #F2CF5B 78%, #FFF1B8 100%);
  background-size: 220% 100%;
  background-position: 6% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cs-foil 2.6s var(--ease) 0.35s both;
}
.is-christmas .cs-title span {
  background-image: linear-gradient(100deg, #FFF6E6 0%, #FFFFFF 24%, #F6D27A 40%, #FFF6E6 58%, #F1C566 80%, #FFFFFF 100%);
}
@keyframes cs-foil { from { background-position: 100% 0; } to { background-position: 6% 0; } }
.cs-text {
  max-width: 34ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
}
.cs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.cs-cta {
  background: #F2B705;
  color: #111111;
  box-shadow: 0 10px 30px -12px rgba(242, 183, 5, 0.7);
  transition: transform var(--dur-press) var(--ease), box-shadow var(--dur-ui) var(--ease), background-color var(--dur-ui) ease;
}
.is-christmas .cs-cta { background: #A3122A; color: #FFFFFF; box-shadow: 0 0 0 1px rgba(246, 210, 122, 0.7), 0 10px 30px -12px rgba(163, 18, 42, 0.8); }
.cs-cta .icon { width: 18px; height: 18px; transition: transform var(--dur-ui) var(--ease); }
html[dir="rtl"] .cs-cta .icon { transform: scaleX(-1); }
.cs-cta:active { transform: scale(0.97); }
.cs-cta:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .cs-cta:hover { background: #FFD23F; color: #111111; }
  .is-christmas .cs-cta:hover { background: #BD1631; color: #FFFFFF; }
  .cs-cta:hover .icon { transform: translateX(4px); }
  html[dir="rtl"] .cs-cta:hover .icon { transform: scaleX(-1) translateX(4px); }
}
.cs-ends {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}
.cs-ends .icon { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .cs-stage { align-items: flex-start; min-height: clamp(520px, 70svh, 600px); }
  .cs-backdrop img { object-position: 50% 50%; }
  .cs-shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 74%); }
  .is-christmas .cs-shade { background: linear-gradient(180deg, rgba(31, 7, 12, 0.78) 0%, rgba(31, 7, 12, 0.56) 50%, rgba(31, 7, 12, 0) 74%); }
  html[dir="rtl"] .cs-shade { transform: none; }
  .cs-copy { padding-block: 40px 0; }
  .cs-text { max-width: none; }
  .is-black-friday .cs-float-near { width: 66vw; inset-inline-end: -4%; bottom: 0; }
  .is-black-friday .cs-float-far { width: 44vw; inset-inline-end: 50%; bottom: 6%; }
  .is-christmas .cs-float-near { width: 62vw; inset-inline-end: 0; bottom: 0; }
  .is-christmas .cs-float-far { display: none; }
}

/* List pages: the heading band wears the look's photo ------------- */
html[data-campaign="black-friday"][data-campaign-fx] .catalog-hero-inner,
html[data-campaign="christmas"][data-campaign-fx] .catalog-hero-inner {
  background: #0A0A0A url("../img/seasonal/black-friday/backdrop-wide-1280.webp") 70% 50% / cover no-repeat;
  color: #FFFFFF;
}
html[data-campaign="christmas"][data-campaign-fx] .catalog-hero-inner {
  background: #1F070C url("../img/seasonal/christmas/backdrop-wide-1280.webp") 70% 50% / cover no-repeat;
}
html[data-campaign-fx] .catalog-hero-inner::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.1) 100%);
}
html[data-campaign="christmas"][data-campaign-fx] .catalog-hero-inner::before {
  background: linear-gradient(90deg, rgba(31, 7, 12, 0.78) 0%, rgba(31, 7, 12, 0.4) 55%, rgba(31, 7, 12, 0.12) 100%);
}
html[dir="rtl"][data-campaign-fx] .catalog-hero-inner::before { transform: scaleX(-1); }
html[data-campaign-fx] .catalog-hero h1 {
  background: linear-gradient(100deg, #F7D774 0%, #FFF3C4 35%, #E7B923 70%, #FFF1B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-campaign="christmas"][data-campaign-fx] .catalog-hero h1 {
  background-image: linear-gradient(100deg, #FFFFFF 0%, #FFF6E6 45%, #F6D27A 100%);
}
html[data-campaign-fx] .catalog-hero-intro { color: rgba(255, 255, 255, 0.86); }
html[data-campaign-fx] .catalog-hero-count { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }

/* Themed toy frames ------------------------------------------------ */
/* Black Friday: a black frame with gold fillets around each toy's photo; Christmas: pine green with gold, and a
   breath of frost along the top. A band of light crosses the frame when the pointer arrives. */

html[data-campaign="black-friday"][data-campaign-fx] .pc-media,
html[data-campaign="black-friday"][data-campaign-fx] .gallery-stage {
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.8), 0 0 0 6px #121212, 0 0 0 7px rgba(242, 183, 5, 0.5), 0 16px 30px -18px rgba(0, 0, 0, 0.55);
}
html[data-campaign="christmas"][data-campaign-fx] .pc-media,
html[data-campaign="christmas"][data-campaign-fx] .gallery-stage {
  box-shadow: inset 0 14px 18px -14px rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(246, 210, 122, 0.95), 0 0 0 6px #1E5A3E, 0 0 0 7px rgba(246, 210, 122, 0.55), 0 16px 30px -18px rgba(31, 7, 12, 0.5);
}
html[data-campaign-fx] .pc-media {
  transform-origin: 50% 50%;
  transition: box-shadow 0.35s var(--ease), transform 0.6s var(--ease);
}
html[data-campaign-fx] .pc-media.is-tilting { transition: box-shadow 0.35s var(--ease), transform 90ms linear; }
html[data-campaign-fx] .pc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 36%, rgba(255, 233, 160, 0.28) 46%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 233, 160, 0.28) 54%, rgba(255, 255, 255, 0) 64%);
  transform: translate3d(-130%, 0, 0);
}
html[data-campaign="christmas"][data-campaign-fx] .pc-media::after {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 36%, rgba(255, 244, 228, 0.3) 46%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 244, 228, 0.3) 54%, rgba(255, 255, 255, 0) 64%);
}
.cs-glare {
  position: absolute;
  z-index: 3;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 38%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pc-media.is-tilting .cs-glare { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  html[data-campaign="black-friday"][data-campaign-fx] .product-card:hover .pc-media {
    box-shadow: 0 0 0 1px rgba(242, 183, 5, 1), 0 0 0 6px #121212, 0 0 0 7px rgba(242, 183, 5, 0.75), 0 26px 44px -20px rgba(0, 0, 0, 0.6);
  }
  html[data-campaign="christmas"][data-campaign-fx] .product-card:hover .pc-media {
    box-shadow: inset 0 14px 18px -14px rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(246, 210, 122, 1), 0 0 0 6px #1E5A3E, 0 0 0 7px rgba(246, 210, 122, 0.8), 0 26px 44px -20px rgba(31, 7, 12, 0.55);
  }
  html[data-campaign-fx] .product-card:hover .pc-media::after {
    transform: translate3d(130%, 0, 0);
    transition: transform 0.9s var(--ease);
  }
}

/* The garland and the chain (version 2) ------------------------------ */
/* A pine garland with red bows (Christmas) or a gold chain with a black tag (Black Friday) hangs across the top of
   each toy's photo, from one corner to the other. It sits under the badges and buttons, so they stay readable and
   pressable, and it sways a little when the pointer arrives. Pictures: assets/img/seasonal/<look>/frame-*.webp. */
html[data-campaign-fx] .pc-media::before,
html[data-campaign-fx] .gallery-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -2px;
  left: -3%;
  width: 106%;
  pointer-events: none;
  background: no-repeat center top / 100% auto;
  transform-origin: 50% 0;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.18));
}
html[data-campaign="christmas"][data-campaign-fx] .pc-media::before,
html[data-campaign="christmas"][data-campaign-fx] .gallery-stage::before {
  aspect-ratio: 900 / 326;
  background-image: url("../img/seasonal/christmas/frame-480.webp");
  background-image: image-set(url("../img/seasonal/christmas/frame-480.webp") 1x, url("../img/seasonal/christmas/frame-900.webp") 2x);
}
html[data-campaign="black-friday"][data-campaign-fx] .pc-media::before,
html[data-campaign="black-friday"][data-campaign-fx] .gallery-stage::before {
  aspect-ratio: 900 / 361;
  /* The chain hangs a little higher, so its tag stays above most toys. */
  top: -8%;
  background-image: url("../img/seasonal/black-friday/frame-480.webp");
  background-image: image-set(url("../img/seasonal/black-friday/frame-480.webp") 1x, url("../img/seasonal/black-friday/frame-900.webp") 2x);
}
/* On a toy's own page the photo is bigger: the decoration takes the top edge only. */
html[data-campaign-fx] .gallery-stage::before { left: 6%; width: 88%; }
@media (hover: hover) and (pointer: fine) {
  html[data-campaign-fx] .product-card:hover .pc-media::before { animation: cs-sway 1.6s var(--campaign-ease) both; }
}
@keyframes cs-sway {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(1.4deg); }
  60% { transform: rotate(-0.9deg); }
  100% { transform: rotate(0deg); }
}
/* The event price's badge, in the look's colors. */
html[data-campaign="black-friday"] .badge-event { background: #0B0B0B; color: #F2C75C; box-shadow: inset 0 0 0 1px rgba(242, 199, 92, 0.6); }
html[data-campaign="christmas"] .badge-event { background: #A3122A; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(246, 210, 122, 0.7); }

/* Cards rise into place while scrolling ---------------------------- */
/* Browsers that tie animations to scrolling do it on their own, without script; the others get the same from
   js/campaign.js (cs-pending, then cs-in). Rows that slide sideways keep still. */
@keyframes cs-card-rise {
  from { opacity: 0.001; transform: perspective(1000px) translate3d(0, 56px, -90px) rotateX(16deg); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html[data-campaign-fx] .product-grid > .product-card {
      transform-origin: 50% 100%;
      animation: cs-card-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
  html[data-campaign-fx] .product-grid > .product-card.cs-pending {
    opacity: 0.001;
    transform: perspective(1000px) translate3d(0, 48px, -80px) rotateX(14deg);
    transform-origin: 50% 100%;
  }
  html[data-campaign-fx] .product-grid > .product-card.cs-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.9s var(--ease);
  }
}

/* Sparks and snow where shoppers click ----------------------------- */
.cs-bursts {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  pointer-events: none;
}
.cs-bit {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
}
.cs-spark { width: 13px; height: 3px; margin: -1.5px 0 0 -6.5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 233, 163, 0), #FFE9A3 35%, #D9A100); filter: drop-shadow(0 0 3px rgba(217, 161, 0, 0.7)); }
.cs-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3C4, #D9A100 70%); box-shadow: 0 0 6px rgba(217, 161, 0, 0.75); }
.cs-ring { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid rgba(217, 161, 0, 0.85); }
.is-christmas-burst .cs-ring { border-color: rgba(163, 18, 42, 0.7); }
/* Snowflakes in the look's colors, so they show on light pages as well as on the banner. */
.cs-flake { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; color: #A3122A; filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)); }
.cs-flake:nth-child(3n) { color: #1E5A3E; }
.cs-flake:nth-child(4n) { color: #C9A240; }
.cs-flake svg { display: block; width: 100%; height: 100%; }

@media (max-width: 640px) {
  .campaign-inner { gap: 4px 12px; padding-block: 8px; }
  .campaign-countdown-label { display: none; }
  .campaign-text { font-size: 0.8125rem; }
}

/* Less motion: the snow stays still, scattered through the bar; the banner's photos and words simply appear, and
   toy cards keep still (their frames stay). */
@media (prefers-reduced-motion: reduce) {
  .cs-float img { animation: none; }
  .cs-copy > * { animation: cs-fade 0.4s ease-out both; }
  .cs-title span { animation: none; background-position: 30% 0; }
  html[data-campaign-fx] .pc-media::after { display: none; }
  html[data-campaign-fx] .product-card:hover .pc-media::before { animation: none; }
  .campaign-snow i { animation: none; }
  .campaign-snow i:nth-child(3n)   { top: 22%; }
  .campaign-snow i:nth-child(3n+1) { top: 55%; }
  .campaign-snow i:nth-child(3n+2) { top: 78%; }
  .campaign-link, .campaign-link .icon { transition: none; }
}
@keyframes cs-fade { from { opacity: 0; } }

/* Bundles (event page and home page) -------------------------------- */
/* Each bundle: its toys' photos side by side on the look's dark stage, the toys with their prices, the price
   together with the total crossed out, and "Add the bundle". */
.bundle-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
}
.bundle-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}
.bundle-photos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 28px 20px;
  background: radial-gradient(120% 90% at 50% 100%, #2A2416, #0B0B0B 70%);
}
.event-bundles.is-christmas .bundle-photos { background: radial-gradient(120% 90% at 50% 100%, #2F5B45, #0F3326 70%); }
.bundle-photo {
  width: clamp(84px, 30%, 132px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #FFFFFF;
  border-radius: 14px;
  background: var(--well);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.6);
}
.bundle-photo + .bundle-photo { margin-inline-start: -18px; }
.bundle-photo:nth-child(odd) { transform: rotate(-4deg); }
.bundle-photo:nth-child(even) { transform: rotate(3deg) translateY(10px); }
.bundle-photos[data-count="5"] .bundle-photo, .bundle-photos[data-count="6"] .bundle-photo { width: clamp(64px, 22%, 100px); }
.bundle-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bundle-percent {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent, #E2B04A);
  color: #111111;
  font-size: 0.8125rem;
  font-weight: 700;
}
.bundle-body { display: grid; align-content: start; gap: 10px; padding: clamp(18px, 2.4vw, 26px); }
.bundle-name { font-size: 1.25rem; letter-spacing: -0.02em; }
html[lang="ar"] .bundle-name { letter-spacing: 0; }
.bundle-text { color: var(--ink-2); font-size: 0.9375rem; }
.bundle-items { display: grid; gap: 6px; margin: 0; padding: 10px 0; border-block: 1px solid var(--line); list-style: none; font-size: 0.9375rem; }
.bundle-items li { display: flex; justify-content: space-between; gap: 12px; }
.bundle-items a { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.bundle-items a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bundle-item-price { flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bundle-foot { display: grid; gap: 12px; margin-top: 4px; }
.bundle-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bundle-price strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.bundle-price s { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bundle-saving { padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--sale); font-size: 0.8125rem; font-weight: 700; }
.bundle-add { justify-self: start; }
.bundle-add[aria-busy="true"] { opacity: 0.7; }
@media (max-width: 760px) {
  .bundle-card { grid-template-columns: minmax(0, 1fr); }
  .bundle-photos { min-height: 180px; }
  .bundle-add { justify-self: stretch; }
}

/* The event page: the banner holds the title and leads down to the deals. */
.cs-stage.is-event-page { margin-top: 0; }
.cs-stage.is-event-page h1.cs-title { margin: 0; }
.catalog-hero.is-event { padding-bottom: 10px; }
.page-catalog-event .catalog-layout { padding-top: clamp(28px, 3vw, 40px); }
