.page-products {
  --cat-gap: clamp(18px, 2.6vw, 30px);
  --cat-pad: clamp(38px, 6vw, 84px);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  padding-top: 84px;
  overflow-x: clip;
}

@media (min-width: 900px) {
  .page-products { padding-top: 106px; }
}

.page-products .cat-hero {
  position: relative;
  padding: clamp(26px, 4.5vw, 52px) 0 clamp(34px, 5vw, 68px);
  background:
    radial-gradient(115% 85% at 88% 0%, rgba(240, 163, 43, 0.16), transparent 58%),
    radial-gradient(90% 80% at 0% 8%, rgba(27, 34, 51, 0.95), transparent 72%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-products .cat-hero-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
  margin-top: clamp(16px, 2.4vw, 28px);
}

@media (min-width: 900px) {
  .page-products .cat-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: clamp(28px, 4vw, 64px);
  }
}

.page-products .cat-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 6.4vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15em;
}

.page-products .cat-lead {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(237, 239, 242, 0.86);
}

@media (min-width: 900px) {
  .page-products .cat-lead { font-size: 17px; }
}

.page-products .cat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .cat-hero-aside {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 22, 28, 0.62);
  backdrop-filter: blur(14px);
}

.page-products .cat-hero-aside::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 56px;
  background: var(--gold);
}

.page-products .cat-aside-title {
  margin: 0 0 6px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.page-products .cat-aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .cat-aside-list li {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(237, 239, 242, 0.82);
}

.page-products .cat-aside-list li:first-child { border-top: none; }

.page-products .cat-aside-key {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-products .cat-overview,
.page-products .cat-replays,
.page-products .cat-batches,
.page-products .cat-scenes {
  padding-block: var(--cat-pad);
}

.page-products .cat-replays,
.page-products .cat-batches {
  border-top: 1px solid var(--line);
}

.page-products .cat-head {
  max-width: 46em;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.page-products .cat-head h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-products .cat-ribbon {
  display: grid;
  gap: 10px;
  margin-top: clamp(18px, 2.6vw, 28px);
}

@media (min-width: 840px) {
  .page-products .cat-ribbon {
    grid-template-columns: 1.35fr 1.15fr 1fr 0.92fr 0.85fr;
  }
}

.page-products .cat-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products .cat-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.page-products .cat-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 163, 43, 0.55);
}

.page-products .cat-cell:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-products .cat-cell.is-current {
  border-color: rgba(240, 163, 43, 0.6);
  background: linear-gradient(160deg, rgba(240, 163, 43, 0.13), rgba(18, 22, 28, 0.92));
  backdrop-filter: blur(12px);
}

.page-products .cat-cell-idx {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-products .cat-cell h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.page-products .cat-cell p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .cat-cell .tag {
  align-self: flex-start;
  margin-top: auto;
}

.page-products .cat-overview-foot {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(20px, 3vw, 34px);
}

@media (min-width: 900px) {
  .page-products .cat-overview-foot {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
  }
}

.page-products .cat-shot,
.page-products .cat-scene-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.page-products .cat-shot img,
.page-products .cat-scene-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .cat-cap {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 2px solid rgba(63, 224, 208, 0.5);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .cat-scores {
  position: relative;
  padding-block: var(--cat-pad);
  background: linear-gradient(180deg, var(--indigo), #131a28);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-products .cat-split {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

@media (min-width: 900px) {
  .page-products .cat-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

.page-products .cat-body {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(237, 239, 242, 0.85);
}

.page-products .cat-body--wide {
  max-width: 62em;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.page-products .cat-fields {
  margin: 22px 0 0;
}

.page-products .cat-fields > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.page-products .cat-fields dt {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-products .cat-fields dd {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(237, 239, 242, 0.82);
}

.page-products .cat-export {
  position: relative;
  overflow: hidden;
  padding-block: var(--cat-pad);
  background: linear-gradient(180deg, var(--teal), #0c2121);
  border-top: 1px solid rgba(63, 224, 208, 0.18);
  border-bottom: 1px solid rgba(63, 224, 208, 0.18);
}

.page-products .cat-export::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 68px;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-products .cat-export-grid {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
}

@media (min-width: 900px) {
  .page-products .cat-export-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.page-products .fmt {
  position: relative;
  margin-top: 24px;
}

.page-products .fmt-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .fmt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-products .fmt-tab {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 12, 15, 0.4);
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-products .fmt-tab:hover { color: var(--text); }

.page-products #fmt-csv:checked ~ .fmt-tabs label[for="fmt-csv"],
.page-products #fmt-json:checked ~ .fmt-tabs label[for="fmt-json"] {
  color: var(--gold-soft);
  border-color: rgba(240, 163, 43, 0.7);
  background: rgba(240, 163, 43, 0.14);
}

.page-products #fmt-csv:focus-visible ~ .fmt-tabs label[for="fmt-csv"],
.page-products #fmt-json:focus-visible ~ .fmt-tabs label[for="fmt-json"] {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-products .fmt-panel { display: none; }

.page-products #fmt-csv:checked ~ .fmt-panels .fmt-panel--csv,
.page-products #fmt-json:checked ~ .fmt-panels .fmt-panel--json {
  display: block;
}

.page-products .fmt-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .fmt-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(10, 12, 15, 0.45);
  border-left: 2px solid rgba(63, 224, 208, 0.45);
}

.page-products .fmt-list strong {
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .fmt-list span {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(237, 239, 242, 0.82);
}

.page-products .fmt-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .fmt-note--base {
  padding-top: 14px;
  border-top: 1px solid rgba(63, 224, 208, 0.22);
}

.page-products .cat-caps {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  padding: 0;
  list-style: none;
}

.page-products .cat-caps li {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}

.page-products .cat-caps li + li { border-left: none; }

.page-products .cat-caps li::before {
  content: "//";
  margin-right: 8px;
  color: var(--gold);
}

.page-products .cat-batch-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .page-products .cat-batch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.page-products .cat-batch {
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s var(--ease);
}

.page-products .cat-batch:hover { border-color: rgba(240, 163, 43, 0.45); }

.page-products .cat-batch-idx {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-products .cat-batch h3 {
  margin: 8px 0 8px;
  font-size: 15.5px;
  font-weight: 600;
}

.page-products .cat-batch p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(237, 239, 242, 0.8);
}

.page-products .cat-scenes {
  border-top: 1px solid var(--line);
}

.page-products .cat-scenes-grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

@media (min-width: 900px) {
  .page-products .cat-scenes-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.page-products .cat-scene {
  position: relative;
  padding: 18px 18px 18px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products .cat-scene + .cat-scene { margin-top: 12px; }

.page-products .cat-scene::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: skewX(-8deg);
}

.page-products .cat-scene:hover {
  transform: translateX(4px);
  border-color: rgba(240, 163, 43, 0.5);
}

.page-products .cat-scene-idx {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-products .cat-scene h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.page-products .cat-scene p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(237, 239, 242, 0.8);
}

.page-products .cat-scene-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.page-products .cat-scene-links a {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(63, 224, 208, 0.4);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-products .cat-scene-links a:hover {
  color: var(--gold-soft);
  border-color: rgba(255, 210, 122, 0.6);
}

.page-products .cat-scene-links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-products .cat-tail {
  padding-block: clamp(34px, 5.5vw, 72px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 10% 100%, rgba(74, 20, 32, 0.55), transparent 70%),
    var(--ink);
}

.page-products .cat-tail h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-products .cat-tail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .page-products .cat-cell:hover,
  .page-products .cat-scene:hover {
    transform: none;
  }
}
