/* Appily Seventysix — Flux Index catalog (unique page skin) */

.page-catalog.flux-index {
  --fx-ink: #101018;
  --fx-fog: #f0f2f7;
  --fx-hot: #ff3d57;
  --fx-hot-deep: #d92b43;
  --fx-ice: #7eb6ff;
  --fx-gold: #f5c84c;
  --fx-slate: #646b7a;
  --fx-line: rgba(16, 16, 24, 0.12);
  --fx-display: "Unbounded", system-ui, sans-serif;
  --fx-body: "Work Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(255, 61, 87, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 20%, rgba(126, 182, 255, 0.14), transparent 50%),
    linear-gradient(165deg, #f5f6fa 0%, #e9ecf3 100%);
  color: var(--fx-ink);
  font-family: var(--fx-body);
}

.page-catalog.flux-index .page-main {
  padding-top: 0.35rem;
}

.fx-desk {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.15rem 1.2rem 4rem;
  overflow: clip;
}

.fx-wash {
  position: absolute;
  inset: -8% 20% auto -15%;
  height: 260px;
  background: conic-gradient(from 180deg, rgba(245, 200, 76, 0.18), transparent 35%, rgba(255, 61, 87, 0.12), transparent 70%);
  filter: blur(46px);
  pointer-events: none;
  animation: fx-drift 15s ease-in-out infinite alternate;
}

.fx-bars {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 47px,
    rgba(16, 16, 24, 0.03) 47px,
    rgba(16, 16, 24, 0.03) 48px
  );
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}

@keyframes fx-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(3%, 6%); }
}

/* Mast */
.fx-mast {
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
}

.fx-crumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fx-slate);
}

.fx-crumb a {
  color: var(--fx-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--fx-hot);
}

.fx-mast-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.fx-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-hot);
}

.fx-mast h1 {
  margin: 0;
  font-family: var(--fx-display);
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.fx-lede {
  margin: 0.7rem 0 0;
  max-width: 44ch;
  color: var(--fx-slate);
  font-size: 1.02rem;
  line-height: 1.45;
}

.fx-totals {
  display: flex;
  gap: 0.65rem;
}

.fx-totals div {
  min-width: 5.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--fx-ink);
  color: #fff;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.fx-totals strong {
  display: block;
  font-family: var(--fx-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--fx-gold);
  line-height: 1;
}

.fx-totals span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* Control panel */
.fx-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--fx-ink);
  box-shadow: 6px 6px 0 rgba(126, 182, 255, 0.25);
}

.fx-seek {
  flex: 1 1 180px;
}

.fx-seek input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--fx-ink);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
}

.fx-seek input:focus {
  outline: 3px solid rgba(255, 61, 87, 0.3);
  outline-offset: 2px;
}

.fx-panel-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-slate);
}

.fx-sort,
.fx-view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.fx-chip {
  padding: 0.4rem 0.65rem;
  border: 1.5px solid var(--fx-ink);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--fx-slate);
}

.fx-chip.is-on,
.fx-chip:hover {
  background: var(--fx-ink);
  color: #fff;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fx-btn:hover {
  transform: translateY(-2px);
}

.fx-btn--ink {
  background: var(--fx-ink);
  color: #fff;
}

.fx-btn--hot {
  background: var(--fx-hot);
  color: #fff;
}

.fx-btn--hot:hover {
  background: var(--fx-hot-deep);
}

.fx-text-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fx-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--fx-ice);
}

.fx-text-link:hover {
  color: var(--fx-hot);
}

/* Jump rail */
.fx-jump {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.fx-jump-link {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--fx-slate);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--fx-line);
  transition: color 0.15s, border-color 0.15s;
}

.fx-jump-link:hover,
.fx-jump-link.is-hidden {
  color: var(--fx-ink);
  border-color: var(--fx-ink);
}

.fx-jump-link.is-hidden {
  display: none;
}

/* Stream / bands */
.fx-stream {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
}

.fx-band {
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid var(--fx-ink);
  overflow: hidden;
  opacity: 0;
  animation: fx-rise 0.5s ease forwards;
  animation-delay: calc(min(var(--fx-i, 0), 8) * 0.05s);
  transition: opacity 0.2s, transform 0.2s;
}

.fx-band.is-filtered-out {
  display: none;
}

@keyframes fx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fx-band-bar {
  height: 6px;
  background: rgba(16, 16, 24, 0.08);
}

.fx-band-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fx-hot), var(--fx-gold));
}

.fx-band.tone-2 .fx-band-bar span { background: linear-gradient(90deg, var(--fx-ice), var(--fx-hot)); }
.fx-band.tone-3 .fx-band-bar span { background: linear-gradient(90deg, var(--fx-gold), #34d399); }
.fx-band.tone-4 .fx-band-bar span { background: linear-gradient(90deg, #a78bfa, var(--fx-ice)); }
.fx-band.tone-5 .fx-band-bar span { background: linear-gradient(90deg, #fb923c, var(--fx-hot)); }
.fx-band.tone-6 .fx-band-bar span { background: linear-gradient(90deg, #22d3ee, var(--fx-gold)); }

.fx-band-main {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 200px);
  grid-template-areas:
    "head specimen"
    "preview specimen"
    "foot foot";
  gap: 1rem 1.15rem;
  padding: 1.15rem 1.2rem 1.2rem;
}

.fx-band-head { grid-area: head; }
.fx-specimen { grid-area: specimen; }
.fx-preview { grid-area: preview; }
.fx-band-foot { grid-area: foot; }

.fx-band-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.fx-band-idx {
  font-family: var(--fx-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fx-hot);
  letter-spacing: 0.04em;
}

.fx-band-head h2 {
  margin: 0;
  font-family: var(--fx-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fx-band-head h2 a {
  color: inherit;
  text-decoration: none;
}

.fx-band-head h2 a:hover {
  color: var(--fx-hot);
}

.fx-band-meta {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--fx-slate);
}

.fx-band-meta strong {
  color: var(--fx-ink);
}

/* Specimen — not a classic product card */
.fx-specimen {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--fx-ink);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 10%);
  text-decoration: none;
}

.fx-specimen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fx-band:hover .fx-specimen img {
  transform: scale(1.06);
}

.fx-specimen-cap {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  padding: 0.25rem 0.45rem;
  background: var(--fx-gold);
  color: var(--fx-ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Preview products as strips */
.fx-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.fx-preview a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  text-decoration: none;
  color: inherit;
  background: var(--fx-fog);
  border-left: 3px solid var(--fx-hot);
  transition: background 0.15s, transform 0.15s;
}

.fx-band.tone-2 .fx-preview a { border-left-color: var(--fx-ice); }
.fx-band.tone-3 .fx-preview a { border-left-color: var(--fx-gold); }
.fx-band.tone-4 .fx-preview a { border-left-color: #a78bfa; }
.fx-band.tone-5 .fx-preview a { border-left-color: #fb923c; }
.fx-band.tone-6 .fx-preview a { border-left-color: #22d3ee; }

.fx-preview a:hover {
  background: #fff;
  transform: translateX(3px);
}

.fx-preview img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  background: var(--fx-ink);
}

.fx-preview span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-preview em {
  font-style: normal;
  font-family: var(--fx-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fx-slate);
}

.fx-band-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  padding-top: 0.25rem;
  border-top: 1px dashed var(--fx-line);
}

/* View modes */
.fx-stream[data-fx-view="stack"] .fx-band-main {
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "specimen"
    "preview"
    "foot";
}

.fx-stream[data-fx-view="stack"] .fx-specimen {
  max-width: 280px;
  aspect-ratio: 16 / 9;
  clip-path: none;
}

.fx-stream[data-fx-view="mosaic"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-stream[data-fx-view="mosaic"] .fx-band-main {
  grid-template-columns: 1fr;
  grid-template-areas:
    "specimen"
    "head"
    "preview"
    "foot";
  padding: 0.9rem;
}

.fx-stream[data-fx-view="mosaic"] .fx-specimen {
  aspect-ratio: 1;
  clip-path: none;
}

.fx-stream[data-fx-view="mosaic"] .fx-preview {
  grid-template-columns: 1fr;
}

.fx-stream[data-fx-view="mosaic"] .fx-preview li:nth-child(n + 4) {
  display: none;
}

.fx-empty {
  position: relative;
  z-index: 1;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 61, 87, 0.08);
  border: 1.5px dashed rgba(255, 61, 87, 0.4);
  font-weight: 600;
  color: var(--fx-slate);
}

.fx-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1.5px solid var(--fx-line);
}

.fx-foot strong {
  display: block;
  font-family: var(--fx-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.fx-foot p {
  margin: 0;
  color: var(--fx-slate);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 780px) {
  .fx-band-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "specimen"
      "preview"
      "foot";
  }

  .fx-specimen {
    max-width: 100%;
    aspect-ratio: 16 / 10;
    clip-path: none;
  }

  .fx-stream[data-fx-view="mosaic"] {
    grid-template-columns: 1fr;
  }

  .fx-panel {
    box-shadow: 4px 4px 0 rgba(126, 182, 255, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-wash,
  .fx-band {
    animation: none !important;
  }

  .fx-band {
    opacity: 1;
  }
}
