/**
 * Seasonal landing pages — Black Friday and Christmas.
 *
 * Both pages have to carry a campaign with no photography behind them: there is
 * no Black Friday artwork, and the Christmas range has 311 products with no
 * image at all. So the weight is carried by type, colour and space rather than
 * by pictures, and every surface is built from gradients and rules that cost
 * nothing to load.
 *
 * The Christmas page in particular has to look finished while completely empty,
 * because the client signs it off before loading any stock. "Nothing here yet"
 * is a designed state on this page, not a fallback.
 *
 * Tokens come from main.css (--cfc-accent, --cfc-font-display and friends); the
 * fallbacks are there so a token rename degrades rather than breaks.
 */

/* ───────────────────────────── shared shell ───────────────────────────── */

.cfc-seasonal {
  --s-gold: var(--cfc-accent, #c9a962);
  --s-gold-soft: rgba(201, 169, 98, .22);
  --s-ink: var(--cfc-gray-900, #1d1d1f);
  --s-muted: var(--cfc-gray-600, #6e6e73);
  --s-line: var(--cfc-gray-200, #e5e5e7);
  --s-cream: var(--cfc-cream, #faf8f5);
}

.cfc-seasonal__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 11vw, 8rem) 0 clamp(2.75rem, 7vw, 5rem);
  isolation: isolate;
}

/* A soft off-centre glow stops a flat colour field reading as a dead block. */
.cfc-seasonal__hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: min(760px, 85vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow, rgba(201, 169, 98, .20)) 0%, transparent 68%);
  z-index: -1;
  pointer-events: none;
}

.cfc-seasonal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .7rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
}

.cfc-seasonal__eyebrow::after {
  content: "";
  width: clamp(28px, 6vw, 60px);
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.cfc-seasonal__title {
  font-family: var(--cfc-font-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.015em;
  margin: 0;
}

.cfc-seasonal__lede {
  margin: 1.25rem 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.cfc-seasonal__crumb {
  font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: 1.4rem;
}

.cfc-seasonal__crumb a { text-decoration: none; }
.cfc-seasonal__crumb a:hover { text-decoration: underline; }

/* ── section scaffolding ── */

.cfc-seasonal__band { padding: clamp(2.25rem, 5.5vw, 4rem) 0; }
.cfc-seasonal__band--tint { background: var(--s-cream); }

.cfc-seasonal__bandhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--s-line);
}

.cfc-seasonal__bandtitle {
  font-family: var(--cfc-font-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.1;
  margin: 0;
  color: var(--s-ink);
}

.cfc-seasonal__bandmeta {
  margin: 0;
  font-size: .88rem;
  color: var(--s-muted);
  white-space: nowrap;
}

.cfc-seasonal__more {
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.cfc-seasonal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

/* ── empty states, designed rather than apologetic ── */

.cfc-seasonal__empty {
  border: 1px dashed var(--s-line);
  border-radius: 14px;
  background: #fff;
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
  text-align: center;
}

.cfc-seasonal__empty h3 {
  font-family: var(--cfc-font-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 .5rem;
  color: var(--s-ink);
}

.cfc-seasonal__empty p {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--s-muted);
  line-height: 1.7;
}

.cfc-seasonal__empty .cfc-btn { margin-top: 1.5rem; }

/* ── reassurance strip ── */

.cfc-seasonal__trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: var(--s-line);
  border-block: 1px solid var(--s-line);
}

.cfc-seasonal__trustitem {
  background: #fff;
  padding: 1.15rem 1.35rem;
}

.cfc-seasonal__trustitem strong {
  display: block;
  font-size: .9rem;
  color: var(--s-ink);
  margin-bottom: .18rem;
}

.cfc-seasonal__trustitem span {
  font-size: .82rem;
  color: var(--s-muted);
  line-height: 1.5;
}

/* ───────────────────────── sticky section nav ───────────────────────── */

.cfc-seasonal__nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--s-line);
}

.cfc-seasonal__navinner {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .7rem 0;
}

.cfc-seasonal__navinner::-webkit-scrollbar { display: none; }

.cfc-seasonal__tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 500;
  color: var(--s-ink);
  text-decoration: none;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.cfc-seasonal__tab:hover { border-color: var(--s-ink); color: var(--s-ink); }
.cfc-seasonal__tab b { font-weight: 400; opacity: .5; font-size: .8em; }

.cfc-seasonal__tab.is-active {
  background: var(--nav-active, #111);
  border-color: var(--nav-active, #111);
  color: #fff;
}

.cfc-seasonal__tab.is-active b { opacity: .65; }
.cfc-seasonal__tab.is-empty { opacity: .42; }

/* ───────────────────────────── Black Friday ───────────────────────────── */

.cfc-bf { --nav-active: #111; }

.cfc-bf .cfc-seasonal__hero {
  background: #0a0a0a;
  color: #fff;
  --hero-glow: rgba(201, 169, 98, .26);
}

/* A very fine diagonal sheen — stops the black reading as a solid slab. */
.cfc-bf .cfc-seasonal__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 1px, transparent 1px 7px);
  z-index: -1;
  pointer-events: none;
}

.cfc-bf .cfc-seasonal__eyebrow { color: var(--s-gold); }
.cfc-bf .cfc-seasonal__title { color: #fff; }
.cfc-bf .cfc-seasonal__lede { color: rgba(255,255,255,.72); }
.cfc-bf .cfc-seasonal__crumb { color: rgba(255,255,255,.5); }
.cfc-bf .cfc-seasonal__crumb a { color: rgba(255,255,255,.85); }
.cfc-bf .cfc-seasonal__more { color: #111; }

.cfc-bf__headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
}

.cfc-bf__upto {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  border: 1px solid var(--s-gold-soft);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--s-gold);
  white-space: nowrap;
}

.cfc-bf__upto b {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

/* ── countdown ── */

.cfc-bf__countdown {
  display: flex;
  gap: .55rem;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  flex-wrap: wrap;
}

.cfc-bf__unit {
  min-width: 74px;
  padding: .7rem .5rem .6rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  text-align: center;
}

.cfc-bf__num {
  display: block;
  font-family: var(--cfc-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1;
  font-weight: 400;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cfc-bf__lbl {
  display: block;
  margin-top: .3rem;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.cfc-bf__ends {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ───────────────────────────── Christmas ───────────────────────────── */

.cfc-xmas { --nav-active: #9e2a2b; }

.cfc-xmas .cfc-seasonal__hero {
  background:
    radial-gradient(120% 140% at 15% 0%, #b4383a 0%, transparent 55%),
    linear-gradient(165deg, #9e2a2b 0%, #7d1f20 58%, #5f1718 100%);
  color: #fff;
  --hero-glow: rgba(255, 221, 170, .16);
}

.cfc-xmas .cfc-seasonal__eyebrow { color: rgba(255, 228, 186, .95); }
.cfc-xmas .cfc-seasonal__title { color: #fff; }
.cfc-xmas .cfc-seasonal__lede { color: rgba(255,255,255,.82); }
.cfc-xmas .cfc-seasonal__crumb { color: rgba(255,255,255,.6); }
.cfc-xmas .cfc-seasonal__crumb a { color: #fff; }
.cfc-xmas .cfc-seasonal__more { color: #9e2a2b; }

/* Three drifting layers of light. Pure CSS, no images, and it stops dead for
   anyone who has asked for reduced motion. */
.cfc-xmas__snow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 34% 62%, rgba(255,255,255,.85), transparent),
    radial-gradient(2.2px 2.2px at 58% 28%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 77% 71%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.8px 1.8px at 90% 36%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 23% 85%, rgba(255,255,255,.7), transparent);
  background-size: 420px 420px;
  animation: cfc-drift 26s linear infinite;
}

@keyframes cfc-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 420px, 0 420px, 0 420px, 0 420px, 0 420px, 0 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .cfc-xmas__snow { animation: none; }
}

/* ── category / theme tiles ── */

.cfc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 208px), 1fr));
  gap: clamp(.75rem, 1.6vw, 1.1rem);
}

.cfc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  background: #fff;
  color: var(--s-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cfc-tile::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tile-glow, rgba(201,169,98,.16)) 0%, transparent 70%);
  transition: transform .3s ease;
}

.cfc-tile:hover {
  transform: translateY(-3px);
  border-color: var(--tile-edge, var(--s-gold));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  color: var(--s-ink);
}

.cfc-tile:hover::after { transform: scale(1.25); }

.cfc-tile__name {
  position: relative;
  font-family: var(--cfc-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.28rem;
  line-height: 1.15;
  font-weight: 400;
}

.cfc-tile__meta {
  position: relative;
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--s-muted);
  letter-spacing: .02em;
}

.cfc-tile.is-waiting {
  background: var(--s-cream);
  border-style: dashed;
  cursor: default;
}

.cfc-tile.is-waiting:hover { transform: none; box-shadow: none; border-color: var(--s-line); }
.cfc-tile.is-waiting .cfc-tile__name { color: #a4a099; }
.cfc-tile.is-waiting::after { display: none; }

.cfc-tile__soon {
  display: inline-block;
  margin-top: .45rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--s-line);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9a958d;
}

/* Theme tiles carry a palette instead of a photograph, so the six themes read
   as six distinct things before a single image exists. */
.cfc-tile--theme { min-height: 148px; }

.cfc-tile__swatches {
  position: relative;
  display: flex;
  gap: 5px;
  margin-bottom: auto;
}

.cfc-tile__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}

/* ───────────────────────────── branch nav ─────────────────────────────
   Moving sideways between the categories of one department — the thing the
   archive could not do, because it only ever listed children and the Christmas
   children have no children of their own. */

.cfc-branchnav {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1.25rem;
}

.cfc-branchnav__up {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cfc-primary, #1a1a2e);
  padding: .45rem .5rem .45rem 0;
  margin-right: .3rem;
  border-right: 1px solid var(--cfc-gray-200, #e5e5e7);
}

.cfc-branchnav__link {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .45rem .95rem;
  border: 1px solid var(--cfc-gray-200, #e5e5e7);
  border-radius: 999px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--cfc-gray-800, #3a3a3c);
  background: #fff;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.cfc-branchnav__link:hover {
  border-color: var(--cfc-primary, #1a1a2e);
  color: var(--cfc-primary, #1a1a2e);
}

.cfc-branchnav__link b { font-weight: 400; opacity: .45; font-size: .82em; }

.cfc-branchnav__link.is-current {
  background: var(--cfc-primary, #1a1a2e);
  border-color: var(--cfc-primary, #1a1a2e);
  color: #fff;
}

.cfc-branchnav__link.is-current b { opacity: .6; }

/* Dimmed, but still a link. These go dark precisely when a whole branch is
   waiting on stock — Christmas, right now — and that is exactly when someone
   needs to be able to move between them. */
.cfc-branchnav__link.is-empty {
  color: #9a958d;
  border-style: dashed;
}

.cfc-branchnav__link.is-empty:hover {
  color: var(--cfc-primary, #1a1a2e);
  border-color: var(--cfc-primary, #1a1a2e);
  border-style: solid;
}

/* ───────────────────────────── small screens ───────────────────────────── */

@media (max-width: 640px) {
  .cfc-seasonal__bandhead { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .cfc-bf__unit { min-width: 64px; flex: 1 1 64px; }
  .cfc-seasonal__nav { top: 0; }
}

.cfc-branchnav-wrap {
  padding: 1.1rem 0 0;
  background: #fff;
}

.cfc-branchnav-wrap + .cfc-archive-tiles { padding-top: .75rem; }
