/* Products / Catalog page — extends styles.css */

/* ─── Header / breadcrumbs ─────────────────────────────────────────── */
.pp-header {
  padding: 160px 0 80px;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.pp-header::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(40px);
  pointer-events: none;
}
.pp-header > .container { position: relative; z-index: 1; }

.pp-crumbs {
  display: flex; gap: 12px; align-items: center;
  font-family: 'JetBrains Mono', 'Anuphan', monospace;
  font-size: 11px; letter-spacing: 0.15em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 56px;
}
.pp-crumbs a {
  color: var(--fg-mute); text-decoration: none;
  transition: color 0.2s;
}
.pp-crumbs a:hover { color: var(--accent); }
.pp-crumbs a.cur { color: var(--fg); }
.pp-crumbs .sep { opacity: 0.4; }

.pp-header-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.pp-title {
  font-size: clamp(56px, 7vw, 104px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-top: 24px;
}
.pp-title .accent { color: var(--accent); }
.pp-header-aside { padding-bottom: 12px; }
.pp-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 460px;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.pp-header-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.pp-hs {
  padding: 28px 32px 28px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-hs:last-child { border-right: none; }
.pp-hs .v {
  font-size: 56px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 6px;
}
.pp-hs .v .u {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.pp-hs .k {
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}

/* ─── Filter bar ───────────────────────────────────────────────────── */
.pp-filterbar {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pp-filter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.pp-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pp-tab:hover { border-color: var(--accent); color: var(--accent); }
.pp-tab.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pp-tab .num {
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.6;
}
.pp-tab.on .num { color: var(--accent-light); opacity: 1; }

.pp-sort {
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap;
}
.pp-sort-select {
  font-family: inherit;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--fg);
  cursor: pointer;
}

/* ─── Category block ───────────────────────────────────────────────── */
.pp-cat { padding: 96px 0 32px; }

.pp-cat-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: start;
  padding-bottom: 32px;
  margin-bottom: 56px;
  position: relative;
}
.pp-cat-num {
  font-size: 96px;
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-weight: 300;
}
.pp-cat-meta { max-width: 760px; }
.pp-cat-title {
  font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  margin-top: 12px;
  line-height: 1.05;
}
.pp-cat-intro {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 600px;
}
.pp-cat-rule {
  align-self: stretch;
  height: 2px;
  background: var(--navy);
}

/* ─── Subgroup ────────────────────────────────────────────────────── */
.pp-group { margin-bottom: 72px; }
.pp-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.pp-group-bullet {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pp-group-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.pp-group-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.pp-group-count {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.pp-group-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ─── Product grid + cards ─────────────────────────────────────────── */
.pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pp-card-link { text-decoration: none; color: inherit; display: contents; }
.pp-card-img {
  width: 72px; height: 72px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  overflow: hidden;
}
.pp-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pp-card {
  position: relative;
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.pp-card:hover {
  background: var(--bg-card);
}
.pp-card:hover .pp-more {
  color: var(--accent);
  gap: 10px;
}

.pp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.pp-swatch {
  width: 56px; height: 56px;
  border-radius: 12px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'JetBrains Mono', 'Anuphan', monospace;
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.06em;
  overflow: hidden;
}
.pp-swatch::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.pp-swatch .ab { position: relative; z-index: 1; }
.pp-swatch .dots {
  position: absolute;
  bottom: 6px; right: 8px;
  display: flex; gap: 3px;
  z-index: 1;
}
.pp-swatch .dots span {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.pp-role {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  text-align: right;
  max-width: 130px;
  line-height: 1.4;
}

.pp-card-body { flex: 1; }
.pp-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.15;
}
.pp-alt {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  margin-top: 6px;
  text-transform: uppercase;
}
.pp-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-dim);
}

.pp-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.pp-form {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.pp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', 'Anuphan', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

/* ─── Featured product ─────────────────────────────────────────────── */
.pp-featured {
  background: var(--navy);
  color: var(--fg-on-navy);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.pp-featured::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 65%);
  opacity: 0.22;
  filter: blur(60px);
}
.pp-featured .container { position: relative; z-index: 1; }
.pp-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: center;
}
.pp-featured-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
}
.pp-featured-swatch {
  width: 100%; height: 100%;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pp-featured-swatch::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 60%);
}
.pp-featured-swatch .ab {
  position: relative; z-index: 2;
  font-family: 'JetBrains Mono', 'Anuphan', monospace;
  font-size: 144px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.pp-fv-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.pp-fv-rings span {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}
.pp-fv-rings span:nth-child(1) { width: 70%; height: 70%; }
.pp-fv-rings span:nth-child(2) { width: 90%; height: 90%; border-style: dashed; }
.pp-fv-rings span:nth-child(3) { width: 50%; height: 50%; }

.pp-fv-corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent-light);
}
.pp-fv-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pp-fv-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.pp-fv-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.pp-fv-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.pp-featured-tag {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.18em;
  z-index: 2;
}

.pp-featured-name {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--fg-on-navy);
  letter-spacing: -0.02em;
  margin-top: 20px;
  line-height: 1.1;
}
.pp-featured-alt {
  font-size: 18px;
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-left: 6px;
}
.pp-featured-tagline {
  font-size: 22px;
  font-weight: 500;
  color: var(--accent-light);
  margin-top: 18px;
  line-height: 1.4;
  max-width: 520px;
}
.pp-featured-desc {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-on-navy-dim);
  line-height: 1.7;
  max-width: 520px;
}
.pp-featured-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 36px 0 32px;
  border-top: 1px solid var(--line-navy);
  border-left: 1px solid var(--line-navy);
}
.pp-spec {
  padding: 20px 24px;
  border-right: 1px solid var(--line-navy);
  border-bottom: 1px solid var(--line-navy);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-spec .k {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-on-navy-dim);
  text-transform: uppercase;
}
.pp-spec .v {
  font-size: 36px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 6px;
}
.pp-spec .v .u {
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-on-navy-dim);
  letter-spacing: 0.04em;
}
.pp-featured-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
}
.pp-featured-actions .btn-ghost {
  color: var(--fg-on-navy);
  border: 1px solid var(--line-navy);
  background: transparent;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.pp-featured-actions .btn-ghost:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

/* btn-orange reuse for filled buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-orange {
  background: var(--accent);
  color: #fff;
}
.btn-orange:hover { background: var(--accent-deep); }

/* ─── Support / CTA section ────────────────────────────────────────── */
.pp-support {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
}
.pp-support-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.pp-support-title {
  font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  margin-top: 20px;
  line-height: 1.05;
}
.pp-support-title .accent { color: var(--accent); }
.pp-support-lead {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 480px;
}
.pp-support-cta { margin-top: 36px; }

.pp-support-channels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.pp-channel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.2s ease;
  position: relative;
}
.pp-channel:hover {
  padding-left: 16px;
}
.pp-channel:hover .pp-channel-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.pp-channel .k {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  grid-column: 1 / 2;
}
.pp-channel .v {
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  grid-column: 2 / 3;
}
.pp-channel-arrow {
  color: var(--fg-mute);
  transition: all 0.2s ease;
}

/* ─── Footer overrides ─────────────────────────────────────────────── */
.pp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 80px 0 40px;
}

/* Active nav link */
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pp-header { padding: 120px 0 60px; }
  .pp-header-grid { grid-template-columns: 1fr; gap: 32px; }
  .pp-lead { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid var(--line); }
  .pp-header-stats { grid-template-columns: repeat(2, 1fr); }
  .pp-hs:nth-child(2) { border-right: none; }
  .pp-hs:nth-child(1), .pp-hs:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pp-cat-head { grid-template-columns: 1fr; }
  .pp-cat-num { font-size: 64px; }
  .pp-featured-grid { grid-template-columns: 1fr; gap: 48px; }
  .pp-support-grid { grid-template-columns: 1fr; gap: 48px; }
  .pp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pp-filter-inner { flex-direction: column; align-items: stretch; }
  .pp-sort { justify-content: flex-end; }
}
