/* Flux Gallery — independent shop visual system (blank-slate) */

:root {
  --fx-ink: #17141F;
  --fx-mute: #6E687A;
  --fx-fog: #F3F0F7;
  --fx-panel: #FFFFFF;
  --fx-line: rgba(23, 20, 31, 0.1);
  --fx-flare: #FF4D2E;
  --fx-volt: #00C2A8;
  --fx-night: #1A1528;
  --fx-lilac: #9B7EDE;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-clip: polygon(0 0, 100% 0, 100% calc(100% - 1.1rem), calc(100% - 1.1rem) 100%, 0 100%);
  --fx-clip-inv: polygon(0 0, calc(100% - 0.9rem) 0, 100% 0.9rem, 100% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.fx-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fx-ink);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(255, 77, 46, 0.1), transparent 55%),
    radial-gradient(700px 420px at 0% 30%, rgba(0, 194, 168, 0.08), transparent 50%),
    linear-gradient(165deg, #EAE6F0 0%, var(--fx-fog) 48%, #E4E0EB 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.fx-root { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
}

.fx-stage {
  position: relative;
  width: min(100% - 1.35rem, 1240px);
  margin: 0 auto;
  padding: 1.15rem 0 3rem;
  isolation: isolate;
}

.fx-noise {
  position: absolute;
  inset: 0 -5% auto;
  height: 22rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background:
    repeating-linear-gradient(
      105deg,
      transparent 0 22px,
      rgba(23, 20, 31, 0.03) 22px 23px
    );
  mask-image: linear-gradient(180deg, #000, transparent);
}

/* Top bar */
.fx-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.fx-sig {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.fx-sig em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--fx-night);
  clip-path: var(--fx-clip-inv);
  transition: transform 0.35s var(--fx-ease), background 0.25s ease;
}

.fx-sig:hover em {
  background: var(--fx-flare);
  transform: translateY(-2px) rotate(-4deg);
}

.fx-sig span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.fx-bar-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.fx-bar-links a {
  text-decoration: none;
  color: var(--fx-ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  clip-path: polygon(0.4rem 0, 100% 0, calc(100% - 0.4rem) 100%, 0 100%);
  transition: background 0.25s ease, color 0.25s ease;
}

.fx-bar-links a:hover {
  background: rgba(255, 77, 46, 0.12);
  color: var(--fx-flare);
}

.fx-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fx-cart em {
  font-style: normal;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 0.2rem;
  background: var(--fx-flare);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

/* Intro */
.fx-intro {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 800px) {
  .fx-intro {
    grid-template-columns: 1.5fr 0.8fr;
    align-items: end;
  }
}

.fx-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-flare);
}

.fx-fluid {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  background: linear-gradient(120deg, var(--fx-ink) 40%, var(--fx-lilac) 70%, var(--fx-flare) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-intro h1 { margin: 0 0 0.65rem; }

.fx-dek {
  margin: 0;
  color: var(--fx-mute);
  line-height: 1.55;
  max-width: 40ch;
  font-size: 1.02rem;
}

.fx-dek em {
  font-style: normal;
  color: var(--fx-ink);
  font-weight: 700;
}

.fx-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.fx-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--fx-line);
  clip-path: var(--fx-clip);
}

.fx-stats span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.fx-stats em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-mute);
}

/* Board: dial + cascade */
.fx-board {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .fx-board {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

/* Vertical spectrum dial filter */
.fx-dial {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fx-dial-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fx-mute);
}

.fx-dial-track {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

@media (min-width: 960px) {
  .fx-dial-track {
    flex-direction: column;
    overflow: visible;
    padding-left: 0.85rem;
  }

  .fx-dial-track::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: linear-gradient(180deg, var(--fx-flare), var(--fx-volt), var(--fx-lilac));
    border-radius: 999px;
    opacity: 0.45;
  }
}

.fx-dial-glow {
  display: none;
}

@media (min-width: 960px) {
  .fx-dial-glow {
    display: block;
    position: absolute;
    left: 0.15rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--fx-flare);
    box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.2);
    transition: top 0.4s var(--fx-ease), background 0.3s ease;
    z-index: 1;
    pointer-events: none;
  }
}

.fx-dial-stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--fx-mute);
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--fx-line);
  clip-path: polygon(0.5rem 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--fx-ease);
}

@media (min-width: 960px) {
  .fx-dial-stop {
    background: transparent;
    border: 0;
    clip-path: none;
    padding: 0.45rem 0.35rem;
  }
}

.fx-dial-stop i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  background: hsl(var(--fx-hue, 200) 75% 52%);
  flex-shrink: 0;
  transition: transform 0.3s var(--fx-ease);
}

.fx-dial-stop strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.fx-dial-stop:hover,
.fx-dial-stop.is-on {
  color: var(--fx-ink);
  transform: translateX(3px);
}

.fx-dial-stop.is-on strong { font-weight: 700; }
.fx-dial-stop.is-on i { transform: scale(1.25) rotate(12deg); }

.fx-seek {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  background: var(--fx-night);
  clip-path: var(--fx-clip);
}

.fx-seek input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  padding: 0.45rem 0;
}

.fx-seek input::placeholder { color: rgba(255, 255, 255, 0.4); }

.fx-seek button {
  appearance: none;
  border: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--fx-flare);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background 0.25s ease, transform 0.3s var(--fx-ease);
}

.fx-seek.is-focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 46, 0.35);
}

.fx-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 77, 46, 0.1);
  border: 1px solid rgba(255, 77, 46, 0.25);
  font-size: 0.85rem;
  font-weight: 650;
}

.fx-chip a {
  color: var(--fx-flare);
  font-weight: 800;
  text-decoration: none;
}

/* Dense mosaic cascade — fluid spans, no recycled named-area collisions */
.fx-cascade {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fx-cascade {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(10.5rem, auto);
    grid-auto-flow: dense;
  }

  .fx-slot-alpha   { grid-column: span 7; grid-row: span 2; min-height: 18rem; }
  .fx-slot-beta    { grid-column: span 5; grid-row: span 1; }
  .fx-slot-gamma   { grid-column: span 5; grid-row: span 2; min-height: 16rem; }
  .fx-slot-delta   { grid-column: span 4; grid-row: span 1; }
  .fx-slot-epsilon { grid-column: span 4; grid-row: span 1; }
  .fx-slot-zeta    { grid-column: span 8; grid-row: span 2; min-height: 15rem; }
}

@media (min-width: 1100px) {
  .fx-slot-alpha   { grid-column: span 6; grid-row: span 2; }
  .fx-slot-beta    { grid-column: span 3; grid-row: span 1; }
  .fx-slot-gamma   { grid-column: span 3; grid-row: span 2; }
  .fx-slot-delta   { grid-column: span 3; grid-row: span 1; }
  .fx-slot-epsilon { grid-column: span 6; grid-row: span 1; }
  .fx-slot-zeta    { grid-column: span 6; grid-row: span 2; }
}

/* Product facet — clip-path card */
.fx-facet {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  clip-path: var(--fx-clip);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: fx-in 0.55s var(--fx-ease) forwards;
  animation-delay: calc(var(--fx-i, 0) * 0.04s);
  transition: transform 0.4s var(--fx-ease), box-shadow 0.4s var(--fx-ease), border-color 0.25s ease;
}

.fx-facet:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 77, 46, 0.35);
  box-shadow: 0 22px 48px rgba(23, 20, 31, 0.12);
  z-index: 2;
}

@keyframes fx-in {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-facet { opacity: 1; transform: none; animation: none; }
}

.fx-facet-media {
  position: relative;
  display: block;
  flex: 1;
  min-height: 9rem;
  overflow: hidden;
  background: linear-gradient(145deg, #ebe6f2, #d8d2e0);
}

.fx-facet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--fx-ease);
}

.fx-facet:hover .fx-facet-media img {
  transform: scale(1.08) rotate(-0.5deg);
}

.fx-facet-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--fx-ease);
  pointer-events: none;
}

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

.fx-flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.55rem;
  background: var(--fx-flare);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.35rem) 100%, 0 100%);
}

.fx-facet-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem 1rem;
  background: #fff;
}

.fx-aisle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-mute);
}

.fx-facet-meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.fx-facet-meta h2 a {
  color: inherit;
  text-decoration: none;
}

.fx-facet-meta h2 a:hover { color: var(--fx-flare); }

.fx-facet-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.fx-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fx-volt);
  font-variant-numeric: tabular-nums;
}

.fx-sku {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--fx-mute);
  margin-right: auto;
}

.fx-open {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  background: var(--fx-night);
  padding: 0.4rem 0.75rem;
  clip-path: polygon(0.35rem 0, 100% 0, calc(100% - 0.35rem) 100%, 0 100%);
  transition: background 0.25s ease, transform 0.3s var(--fx-ease);
}

.fx-open:hover {
  background: var(--fx-flare);
  transform: translateX(2px);
}

/* Empty */
.fx-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px dashed var(--fx-line);
  clip-path: var(--fx-clip);
}

.fx-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.fx-empty p { color: var(--fx-mute); }

.fx-btn {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.7rem 1.25rem;
  background: var(--fx-flare);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0.5rem 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
  transition: transform 0.3s var(--fx-ease), background 0.25s ease;
}

.fx-btn:hover {
  background: var(--fx-night);
  transform: translateY(-2px);
}

/* Pagination restyle */
.fx-pages {
  margin-top: 1.75rem;
}

.fx-pages .catalog-pagination,
.fx-pages .pagination-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.fx-pages .pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fx-pages .pagination-btn,
.fx-pages .pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--fx-ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--fx-line);
  clip-path: polygon(0.35rem 0, 100% 0, calc(100% - 0.35rem) 100%, 0 100%);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.fx-pages .pagination-num.is-active,
.fx-pages .pagination-btn:hover,
.fx-pages .pagination-num:hover {
  background: var(--fx-night);
  color: #fff;
  border-color: var(--fx-night);
}

.fx-pages .pagination-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.fx-pages .pagination-ellipsis {
  color: var(--fx-mute);
  padding: 0 0.25rem;
}

.fx-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  font-size: 0.82rem;
  color: var(--fx-mute);
  border-top: 1px solid var(--fx-line);
}

.fx-foot a {
  color: var(--fx-ink);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.75rem;
}

.fx-foot a:hover { color: var(--fx-flare); }
