/* ---------- Super Bazaar page ---------- */

/* 1. Hero with the physics tag pile */
.sb-hero { height: 170vh; background: radial-gradient(120% 90% at 50% 0%, #fbe9ea 0%, #f6d2d6 55%, #efbac2 100%); }
.sb-hero__sticky {
  position: sticky; top: 0; z-index: 2;
  height: 100vh; height: 100svh;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.sb-hero__copy {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 6vh);
  display: grid; justify-items: center; gap: 22px; text-align: center;
  padding: 0 var(--gutter);
  opacity: calc(1.6 - var(--p, 0) * 2);
  transform: translateY(calc(var(--p, 0) * -14vh));
  pointer-events: none;
}
.sb-hero__copy a { pointer-events: auto; }
.sb-title {
  display: grid;
  font: 400 clamp(76px, 15.5vw, 260px)/.8 var(--serif);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.sb-title span:first-child { font-style: italic; text-transform: none; font-size: .62em; letter-spacing: -.02em; }
.sb-hero__lead { font: 400 clamp(18px, 1.8vw, 26px)/1.3 var(--sans); }
.sb-hero__lead strong { color: var(--sale); font-weight: 800; }
.sb-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sb-hero__hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(0, 0, 0, .55); white-space: nowrap;
  pointer-events: none;
}
html:not(.gl-on) .sb-hero { height: auto; }
html:not(.gl-on) .sb-hero__sticky { position: relative; height: auto; padding-bottom: 120px; cursor: auto; }
html:not(.gl-on) .sb-hero__copy { position: relative; top: 0; padding-top: 90px; opacity: 1; transform: none; }
html:not(.gl-on) .sb-hero__hint { display: none; }

/* 2. Countdown + crossing marquees */
.sb-count {
  position: relative; z-index: 2;
  background: #141414; color: #fff;
  padding: 70px 0 120px;
  overflow: hidden;
}
.marquee {
  position: relative;
  white-space: nowrap;
  font: 800 clamp(22px, 3.2vw, 46px)/1 var(--sans);
  text-transform: uppercase; letter-spacing: -.01em;
  padding: 18px 0;
  width: 110%; margin-left: -5%;
}
.marquee__track { display: inline-block; will-change: transform; }
.marquee--a { background: var(--blush); color: #000; transform: rotate(-2.5deg) translateY(26px); z-index: 2; }
.marquee--b { background: #fff; color: var(--sale); transform: rotate(2deg) translateY(-14px); }
.countdown { display: grid; justify-items: center; gap: 30px; padding: 90px var(--gutter) 0; text-align: center; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(14px, 4vw, 64px); }
.countdown__grid div { display: grid; gap: 10px; }
.countdown__grid span {
  font: 400 clamp(64px, 11vw, 180px)/.85 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.countdown__grid span.is-flip { animation: flip .5s var(--ease); }
@keyframes flip { from { opacity: .2; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.countdown__grid small { font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.depts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.depts a {
  padding: 12px 22px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  font-size: 14px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.depts a:hover { background: var(--blush); color: #000; border-color: var(--blush); }

/* 3. Hover list with a floating image */
.hoverlist { position: relative; z-index: 2; padding: 140px var(--gutter) 120px; background: var(--paper); }
.hoverlist__list { border-top: 1px solid var(--ink); counter-reset: hl; }
.hoverlist__list a {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 340px) 40px; align-items: center; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), color .3s;
}
.hoverlist__list a::after { content: "→"; font-size: 24px; justify-self: end; transition: transform .5s var(--ease); }
.hoverlist__list a:hover { padding-left: 18px; }
.hoverlist__list a:hover::after { transform: translateX(6px); }
.hl__num { font-size: 12px; letter-spacing: .1em; color: var(--ink-soft); }
.hl__title { font: 400 clamp(34px, 5.2vw, 84px)/1 var(--serif); letter-spacing: -.02em; transition: font-style .3s; }
.hoverlist__list a:hover .hl__title { font-style: italic; color: var(--sale); }
.hl__text { color: var(--ink-soft); font-size: 14px; }
.hl__thumb { display: none; }
.hoverlist__float {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(200px, 18vw, 300px); aspect-ratio: 3 / 4.4;
  pointer-events: none; opacity: 0;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.hoverlist__float img { width: 100%; height: 100%; object-fit: cover; }

/* 4. Horizontal rail */
.rail { position: relative; background: #fbeef0; }
.rail__sticky {
  position: sticky; top: 0; z-index: 2;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto 1fr; align-content: center; gap: 40px;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.rail__head { padding: 0 var(--gutter); display: grid; gap: 14px; justify-items: start; max-width: 900px; }
.rail__track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.rail__track li { width: clamp(220px, 21vw, 300px); transform: skewX(var(--skew, 0deg)); }
.rail__track .product__img { background: #fff; }

/* 5. Scratch cards */
.scratch { position: relative; z-index: 2; padding: 140px var(--gutter) 40px; background: var(--paper); }
.scratch__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 110px; }
.scard { position: relative; display: block; }
.scard figure { position: relative; aspect-ratio: 1; overflow: hidden; background: #f1ece6; }
.scard figure img { width: 100%; height: 100%; object-fit: cover; }
.scard figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  color: #fff; font-size: 14px;
}
.scard figcaption strong { display: block; font: 400 clamp(34px, 3.6vw, 56px)/1 var(--serif); }
.scard__foil {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1;
  touch-action: none; cursor: crosshair;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.scard.is-revealed .scard__foil { opacity: 0; transform: scale(1.06); pointer-events: none; }
.scard.is-revealed figcaption strong { animation: pop .7s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.scard .brand__name { margin-top: 14px; }
html:not(.js) .scard__foil { display: none; }

/* 6. Filter */
.filter { display: flex; gap: 8px; }
.filter button {
  font: 500 13px/1 var(--sans); letter-spacing: .04em;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--ink); background: none; color: var(--ink);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease);
}
.filter button.is-active, .filter button:hover { background: var(--ink); color: #fff; }
.page-sb .products { padding-top: 60px; }

@media (max-width: 900px) {
  .hoverlist__list a { grid-template-columns: 34px minmax(0, 1fr) 72px; gap: 14px; }
  .hoverlist__list a::after { display: none; }
  .hl__text { display: none; }
  .hl__thumb { display: block; width: 72px; aspect-ratio: 3 / 4; object-fit: cover; }
  .hoverlist__float { display: none; }
  .scratch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .countdown__grid { grid-template-columns: repeat(4, auto); }
  .rail__track li { width: 62vw; }
}

/* Packshots: show the whole product and let the white studio background melt into the tile */
.page-sb .product__img { background: #f4f0ec; }
.page-sb .product__img img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
