/* LUMIVALE — Facet Exchange (shop)
   Parallelogram filter blades · clip-path product cells · named grid areas
   Forbidden: folio spine/spreads, mason wall, classic sidebar+grid */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

.page-facet {
  --fx-bg: #090b10;
  --fx-panel: #12161f;
  --fx-line: rgba(232, 238, 252, 0.1);
  --fx-text: #e8eefc;
  --fx-mute: #c2cad8;
  --fx-volt: #d6ff3f;
  --fx-volt-ink: #151a00;
  --fx-plasma: #ff3d71;
  --fx-ice: #5fd4ff;
  --fx-font: 'DM Sans', system-ui, sans-serif;
  --fx-display: 'Big Shoulders Display', Impact, sans-serif;
  --fx-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  background: var(--fx-bg) !important;
  color: var(--fx-text);
  font-family: var(--fx-font);
}

.page-facet .page-main {
  overflow-x: clip;
}

.fx {
  position: relative;
  padding: 1.4rem var(--space-container, 1.25rem) 4rem;
  max-width: 1240px;
  margin: 0 auto;
}

.fx::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: min(70vw, 520px);
  height: min(50vw, 360px);
  background:
    radial-gradient(circle at 30% 40%, rgba(214, 255, 63, 0.12), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255, 61, 113, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

.fx > * {
  position: relative;
  z-index: 1;
}

/* Mast */
.fx-mast {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.fx-brand {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fx-ice);
  font-weight: 700;
}

.fx-mast h1 {
  margin: 0 0 0.5rem;
  font-family: var(--fx-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--fx-text) 20%, var(--fx-volt) 55%, var(--fx-plasma) 95%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fxShine 7s ease-in-out infinite;
}

@keyframes fxShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.fx-lede {
  margin: 0;
  color: var(--fx-mute);
  font-size: 0.98rem;
  max-width: 42ch;
}

.fx-lede strong {
  color: var(--fx-volt);
}

/* Skewed seek */
.fx-seek {
  display: flex;
  align-items: stretch;
  gap: 0;
  transform: skewX(-8deg);
  border: 1px solid var(--fx-line);
  background: var(--fx-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.fx-seek input,
.fx-seek button {
  transform: skewX(8deg);
  border: 0;
  font-family: inherit;
}

.fx-seek input {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--fx-text);
  padding: 0.95rem 1.1rem;
  outline: none;
  font-size: 0.95rem;
}

.fx-seek input::placeholder {
  color: var(--fx-mute);
}

.fx-seek button {
  padding: 0 1.25rem;
  background: var(--fx-volt);
  color: var(--fx-volt-ink);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.25s, background 0.25s;
}

.fx-seek button:hover {
  filter: brightness(1.08);
}

.fx-seek:focus-within {
  border-color: rgba(95, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(95, 212, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Facet blades (filter) */
.fx-facets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin-bottom: 1.75rem;
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--fx-line);
}

.fx-facet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  color: var(--fx-mute);
  font-weight: 700;
  font-size: 0.86rem;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition:
    color 0.3s,
    background 0.3s,
    border-color 0.3s,
    transform 0.35s var(--fx-ease),
    box-shadow 0.35s;
}

.fx-facet em {
  font-style: normal;
  font-family: var(--fx-display);
  font-size: 0.95rem;
  color: var(--fx-ice);
}

.fx-facet:hover {
  color: var(--fx-text);
  border-color: rgba(95, 212, 255, 0.4);
  transform: translateY(-3px) skewX(-2deg);
}

.fx-facet.is-on {
  color: var(--fx-volt-ink);
  background: var(--fx-volt);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(214, 255, 63, 0.28);
}

.fx-facet.is-on em {
  color: var(--fx-volt-ink);
}

/* Mosaic with named areas */
.fx-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(140px, auto);
  gap: 0.85rem;
  grid-auto-flow: dense;
}

.fx-cell {
  grid-column: span 3;
  min-height: 280px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: fxIn 0.55s var(--fx-ease) forwards;
  animation-delay: calc(min(var(--i, 0), 16) * 40ms);
}

@keyframes fxIn {
  to { opacity: 1; transform: none; }
}

.fx-cell--hero {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 420px;
}

.fx-cell--tall {
  grid-column: span 3;
  grid-row: span 2;
}

.fx-cell--wide {
  grid-column: span 6;
}

.fx-cell-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--fx-ease), border-color 0.3s, box-shadow 0.4s;
}

/* Unique clip-paths per shape */
.fx-cell--slash .fx-cell-link {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}

.fx-cell--trap .fx-cell-link {
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.fx-cell--blade .fx-cell-link {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.fx-cell--cut .fx-cell-link {
  clip-path: polygon(0 0, 94% 0, 100% 12%, 100% 100%, 0 100%);
}

.fx-cell-link:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 255, 63, 0.45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  color: inherit;
}

.fx-cell-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 160px;
  background: #0a0d14;
  overflow: hidden;
}

.fx-cell-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--fx-ease), filter 0.5s;
}

.fx-cell-link:hover .fx-cell-media img {
  transform: scale(1.07);
  filter: saturate(1.1) contrast(1.05);
}

.fx-cell-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(214, 255, 63, 0.12) 48%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--fx-ease);
  pointer-events: none;
  mix-blend-mode: screen;
}

.fx-cell-link:hover .fx-cell-sheen {
  transform: translateX(120%);
}

.fx-cell-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  background: var(--fx-plasma);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.fx-cell-meta {
  flex: 0 0 auto;
  padding: 0.9rem 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.2), rgba(9, 11, 16, 0.95));
}

.fx-cell-aisle {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-ice);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fx-cell-meta h2 {
  margin: 0 0 0.45rem;
  font-family: var(--fx-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fx-cell--hero .fx-cell-meta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  -webkit-line-clamp: 3;
}

.fx-cell-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.fx-cell-row strong {
  color: var(--fx-volt);
  font-weight: 800;
  font-size: 1rem;
}

.fx-cell-row em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--fx-mute);
}

.fx-cell--wide .fx-cell-link,
.fx-cell--hero .fx-cell-link {
  flex-direction: row;
}

.fx-cell--wide .fx-cell-media,
.fx-cell--hero .fx-cell-media {
  flex: 1 1 55%;
}

.fx-cell--wide .fx-cell-meta,
.fx-cell--hero .fx-cell-meta {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Empty */
.fx-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--fx-line);
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
  background: var(--fx-panel);
}

.fx-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--fx-display);
  text-transform: uppercase;
  font-size: 2rem;
}

.fx-empty p {
  margin: 0 0 1.25rem;
  color: var(--fx-mute);
}

.fx-reset {
  display: inline-flex;
  padding: 0.8rem 1.2rem;
  background: var(--fx-volt);
  color: var(--fx-volt-ink);
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform 0.3s var(--fx-ease);
}

.fx-reset:hover {
  transform: translateY(-3px);
  color: var(--fx-volt-ink);
}

/* Pager */
.fx-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fx-line);
}

.fx-pager-step {
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--fx-text);
  font-weight: 700;
  border: 1px solid var(--fx-line);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: var(--fx-panel);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.fx-pager-step:hover {
  border-color: rgba(214, 255, 63, 0.45);
  color: var(--fx-volt);
}

.fx-pager-step.is-off {
  opacity: 0.35;
  pointer-events: none;
}

.fx-pager-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.fx-pager-num {
  min-width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--fx-mute);
  font-weight: 700;
  border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.fx-pager-num:hover {
  color: var(--fx-text);
  border-color: var(--fx-line);
}

.fx-pager-num.is-on {
  color: var(--fx-volt-ink);
  background: var(--fx-volt);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.fx-pager-gap {
  color: var(--fx-mute);
  padding: 0 0.25rem;
  align-self: center;
}

@media (prefers-reduced-motion: reduce) {
  .fx-mast h1,
  .fx-cell {
    animation: none !important;
  }

  .fx-cell {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .fx-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .fx-cell {
    grid-column: span 3;
  }

  .fx-cell--hero,
  .fx-cell--wide {
    grid-column: span 6;
  }

  .fx-cell--tall {
    grid-column: span 3;
    grid-row: span 1;
  }

  .fx-cell--wide .fx-cell-link,
  .fx-cell--hero .fx-cell-link {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .fx-mast {
    grid-template-columns: 1fr;
  }

  .fx-seek {
    transform: none;
  }

  .fx-seek input,
  .fx-seek button {
    transform: none;
  }

  .fx-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .fx-cell,
  .fx-cell--hero,
  .fx-cell--tall,
  .fx-cell--wide {
    grid-column: span 1;
    grid-row: auto;
    min-height: 240px;
  }

  .fx-cell--hero {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .fx-mosaic {
    grid-template-columns: 1fr;
  }

  .fx-cell,
  .fx-cell--hero {
    grid-column: 1;
  }
}
