/* ═══════════════════════════════════════════════════════════════════════════
   Mindprint — New & Featured.

   The surface layer for design-system/screens/new-featured.html: the ticker
   ribbon, the featured-look stage (fitting-room language), the section heads,
   and the product mockup grid. Shared storefront chrome (.wrap, .hero,
   .chiprow, .seg, .tile, .dock) comes from storefront.css; tokens from
   tokens.css — never redefined here.
   ═══════════════════════════════════════════════════════════════════════════ */

.hero .dropline { color: var(--mp-mute); }
.hero .dropline b { color: var(--mp-peach); font-weight: 400; }
.hero .dropline:hover, .hero .dropline:hover b { color: var(--mp-pink-soft); }

/* ── Ticker ribbon ──────────────────────────────────────────────────────── */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker .track {
  display: flex;
  width: max-content;
  animation: nf-tick 28s linear infinite;
}

.ticker:hover .track { animation-play-state: paused; }

.ticker .tseg {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 13px 13px 13px 26px;
  white-space: nowrap;
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--mp-dim);
}

.ticker .tseg i { font-style: normal; color: var(--mp-pink); }
.ticker .tseg em { font-style: normal; color: var(--mp-peach); }

@keyframes nf-tick { to { transform: translateX(-50%); } }

/* ── Featured-look stage — fitting-room language ────────────────────────── */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  padding: clamp(30px, 5vh, 54px) 0 clamp(26px, 4vh, 44px);
  border-bottom: 1px solid var(--mp-line);
}

.stage .side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage .side.r { text-align: right; align-items: flex-end; }

.stage .eyeb {
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--mp-mute);
}

.stage .eyeb b { color: var(--mp-peach); font-weight: 400; }

.stage .big {
  font-family: var(--mp-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .98;
  font-size: clamp(30px, 3.6vw, 56px);
  text-wrap: balance;
  margin: 0;
}

.stage .smeta {
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  color: var(--mp-mute);
  line-height: 2;
}

.stage .sprice {
  font-family: var(--mp-mono);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(26px, 2.6vw, 38px);
  color: var(--mp-pink);
}

.stage .scta { margin-top: 2px; }

.stage .center {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

/* Mockups are transparent provider cut-outs (D9/chunk 25) — the well is a layout box only, with
   no fill of its own. The garment floats straight on the page's black canvas, and the pink bloom
   moves from a box-shadow (which drew a rectangle behind the invisible card) to a drop-shadow on
   the image itself, which follows the cut-out's actual silhouette. */
.stage .well {
  position: relative;
  display: block;
  width: clamp(240px, 26vw, 380px);
  aspect-ratio: 4 / 4.9;
  transition: filter .4s;
}

.stage .well img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 6%;
  filter: drop-shadow(0 34px 60px var(--glow, rgba(251, 94, 190, .5)));
  transition: opacity .35s, filter .4s;
}

.stage .well img.out { opacity: 0; }

.stage .sflag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--mp-r-pill);
  background: var(--mp-pink);
  color: var(--mp-ink-on-pink);
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 700;
}

.stage .sflag.soon { background: var(--mp-peach); }

.snav {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--mp-r-pill);
  border: 2px solid var(--mp-line-soft);
  cursor: pointer;
  flex: none;
  padding: 0;
  background-color: var(--mp-raise);
  background-size: cover;
  background-position: 50% 50%;
  transition: border-color .15s, transform .2s;
}

.snav:hover { border-color: var(--mp-pink); transform: scale(1.06); }

.snav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--mp-r-pill);
  background: rgba(0, 0, 0, .38);
  transition: background .15s;
}

.snav:hover::after { background: rgba(0, 0, 0, .15); }

.snav svg {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .8));
}

.stage .dots {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.stage .dots i {
  width: 6px;
  height: 6px;
  border-radius: var(--mp-r-pill);
  background: var(--mp-raise);
  border: 1px solid var(--mp-line-soft);
  transition: background .2s;
}

.stage .dots i.on { background: var(--mp-pink); border-color: transparent; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .stage .side, .stage .side.r { align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  /* A 240px well + two 52px discs + gaps overruns a phone; the discs shrink instead of clipping. */
  .snav { width: 40px; height: 40px; }
  .snav svg { width: 16px; height: 16px; }
  .stage .well { width: min(64vw, 300px); }
}

/* ── Section heads ──────────────────────────────────────────────────────── */

.shead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(26px, 4vh, 44px) 0 18px;
}

.shead h3 {
  font-family: var(--mp-display);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0;
}

.shead .all {
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  white-space: nowrap;
}

.nf-toolbar { padding-top: 0; }

/* ── Product mockup cards ───────────────────────────────────────────────── */

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

@media (max-width: 560px) { .masonry { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.pcard.wide { grid-column: span 2; }
.pcard.wide .ph { aspect-ratio: auto; flex: 1; min-height: 0; }
.pcard.wide .nm { font-size: 20px; }

/* The tall tile crops from near the top because that is where a mockup's face and shoulders
   are, and losing the hem costs nothing. The wide tile is a letterbox of the same plate, so
   the same framing keeps the head and throws away the garment — which is the product. It
   crops from the middle instead. */
.pcard.wide .ph img { object-position: 50% 50%; }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-r-card);
  overflow: hidden;
  background: var(--mp-surface);
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: var(--mp-ink);
  transition: transform .3s cubic-bezier(.22, .9, .26, 1), border-color .2s, box-shadow .3s;
}

.pcard:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 22px 50px -20px var(--glow, rgba(251, 94, 190, .35));
  color: var(--mp-ink);
}

.pcard:focus-visible { outline: 2px solid var(--mp-pink); outline-offset: 3px; }
.pcard.hide { display: none; }

/* The pane itself is storefront.css's, shared with the garment shelves. */
.pcard .ph {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
}

/* Size and inset come from storefront.css's pane rule, which holds the garment off the mat. */
.pcard .ph img {
  position: absolute;
  object-fit: cover;
  object-position: 50% 8%;
  transition: transform .5s cubic-bezier(.22, .9, .26, 1);
}

.pcard:hover .ph img { transform: scale(1.05); }

.pcard .flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--mp-r-pill);
  background: rgba(10, 10, 15, .72);
  backdrop-filter: blur(4px);
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 700;
  color: var(--mp-dim);
}

.pcard .flag.hot { background: var(--mp-pink); color: var(--mp-ink-on-pink); }
.pcard .flag.soon { background: var(--mp-peach); color: var(--mp-ink-on-pink); }

.pcard .cm { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 15px; }

.pcard .nm {
  font-family: var(--mp-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.pcard .pt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9.5px;
  color: var(--mp-mute);
}

.pcard .pt .sw {
  width: 12px;
  height: 12px;
  border-radius: var(--mp-r-pill);
  background-size: cover;
  background-position: 50% 50%;
  flex: none;
}

.pcard .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.pcard .pr { font-family: var(--mp-mono); font-weight: 700; font-size: 14px; color: var(--mp-pink); }

.pcard .cta {
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9.5px;
  color: var(--mp-dim);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .25s;
}

.pcard:hover .cta,
.pcard:focus-visible .cta { opacity: 1; transform: none; }

@media (max-width: 560px) { .pcard .cta { display: none; } }

/* ── Patterns just landed — the wall's "New" pill ───────────────────────── */

.nf-wall { padding-bottom: clamp(20px, 3vh, 36px); }

.nf-wall .tile { display: block; }

.nf-wall .tile .newpill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 700;
  background: var(--mp-peach);
  color: var(--mp-ink-on-pink);
  padding: 5px 10px;
  border-radius: var(--mp-r-pill);
}

/* ── "Showing n of N" — the foot under a trimmed stratum (D82) ──────────── */

/* Same micro-label voice as .empty, but a rule above it: this one is a boundary the
   page drew on purpose, not a state it fell into, and it has to read as the end of
   the grid rather than as one more caption inside it. */
.nf-more {
  margin: 0;
  padding: 16px 2px 4px;
  border-top: 1px solid var(--mp-line-soft, var(--mp-line));
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: var(--mp-mute);
}

.nf-more a { color: var(--mp-pink); }
.nf-more a:hover { color: var(--mp-pink-soft); }

/* ── Empty states ───────────────────────────────────────────────────────── */

.empty {
  padding: 10px 2px 26px;
  font-family: var(--mp-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: var(--mp-mute);
  line-height: 2;
}

@media (prefers-reduced-motion: reduce) {
  .ticker .track { animation: none; }
  .pcard, .pcard .ph img, .stage .well img { transition: none; }
}

/* ── Drop page ──────────────────────────────────────────────────────────── */

.hero .drop-copy {
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--mp-dim);
  font-size: 15px;
  line-height: 1.6;
}
