/* Unify Aquatic — Product detail page styles */

/* ─── Hero ─────────────────────────────────────────────────────────── */
.pd-hero {
  padding: 140px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.28;
  filter: blur(50px);
  pointer-events: none;
}
.pd-hero > .container { position: relative; z-index: 1; }

.pd-hero .pp-crumbs { margin-bottom: 64px; }

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

/* Cover wrapper (JS-generated) */
.pd-cover {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 460px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 35%, rgba(240,129,36,0.12) 0%, transparent 55%), var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.pd-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.pd-cover-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.pd-cover-swatch {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.pd-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pd-photo {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 35%, rgba(240,129,36,0.12) 0%, transparent 55%),
    var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.pd-photo::before {
  content: '';
  position: absolute;
  bottom: 6%;
  left: 18%;
  right: 18%;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(14,31,68,0.18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.pd-photo img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(14,31,68,0.18));
}
.pd-swatch-big {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-swatch-big::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
}
.pd-swatch-big .ab {
  position: relative; z-index: 2;
  font-family: 'JetBrains Mono', 'Anuphan', monospace;
  font-size: 96px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.pd-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.pd-rings span {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}
.pd-rings span:nth-child(1) { width: 60%; height: 60%; }
.pd-rings span:nth-child(2) { width: 82%; height: 82%; border-style: dashed; }
.pd-rings span:nth-child(3) { width: 44%; height: 44%; }
.pd-corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent-light);
}
.pd-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pd-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.pd-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.pd-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.pd-image-note {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.pd-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-mute);
  text-transform: uppercase;
}
.pd-tag.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.pd-name {
  font-size: clamp(44px, 5.4vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}
.pd-alt {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  margin-top: 10px;
  text-transform: uppercase;
}
.pd-tagline {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 22px;
  line-height: 1.4;
  max-width: 560px;
}
.pd-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-top: 18px;
  max-width: 600px;
}

.pd-key-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.pd-key {
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.pd-key:last-child { border-right: none; padding-left: 24px; padding-right: 0; }
.pd-key .k { font-size: 10px; letter-spacing: 0.18em; color: var(--fg-mute); text-transform: uppercase; }
.pd-key .v { font-size: 22px; font-weight: 500; color: var(--navy); letter-spacing: -0.005em; }

.pd-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost-dark:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ─── Generic section ──────────────────────────────────────────────── */
.pd-section { padding: 96px 0; border-top: 1px solid var(--line); }
.pd-section-head { margin-bottom: 48px; max-width: 800px; }
.pd-h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  margin-top: 12px;
  color: var(--navy);
  line-height: 1.1;
}

/* ─── Lightbox ───────────────────────────────────────────────────── */
#pd-lightbox { display:none; position:fixed; inset:0; z-index:9998; align-items:center; justify-content:center; }
#pd-lightbox.open { display:flex; }
.pd-lb-backdrop { position:absolute; inset:0; background:rgba(8,19,48,0.85); backdrop-filter:blur(8px); }
.pd-lb-box { position:relative; max-width:90vw; max-height:90vh; border-radius:16px; overflow:hidden; }
.pd-lb-box img { display:block; max-width:90vw; max-height:88vh; object-fit:contain; border-radius:14px; }
.pd-lb-close { position:absolute; top:12px; right:12px; background:rgba(0,0,0,0.5); border:none; color:#fff; width:36px; height:36px; border-radius:50%; cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; z-index:1; transition:background 0.2s; }
.pd-lb-close:hover { background:rgba(0,0,0,0.8); }
#pd-lightbox { opacity:0; transition:opacity 0.25s; }
#pd-lightbox.open { opacity:1; }

/* ─── Benefits (numbered list style) ──────────────────────────────── */
.pd-benefits-section { background: var(--bg-alt); }
.pd-benefits-grid, .pd-benefits {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  counter-reset: benefit;
}
.pd-benefit {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  counter-increment: benefit;
  position: relative;
}
.pd-benefit:last-child { border-bottom: none; }
/* Benefits section wrapper */
.pd-benefits > .container > .eyebrow,
.pd-benefits > .container > h2 { margin-bottom: 0; }
  content: counter(benefit, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.pd-benefit-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
}
.pd-benefit-desc {
  font-size: 15px;
  line-height: 1.72;
  color: var(--fg-dim);
  margin: 0;
  max-width: 640px;
}

/* ─── Usage (dark band) ────────────────────────────────────────────── */
.pd-usage {
  background: var(--navy);
  color: var(--fg-on-navy);
  border-top: none;
}
.pd-usage .pd-h2 { color: var(--fg-on-navy); }
.pd-usage-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-navy);
}
.pd-ut-head, .pd-ut-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.8fr;
  gap: 32px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-navy);
}
.pd-ut-head {
  font-family: 'JetBrains Mono', 'Anuphan', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-on-navy-dim);
  text-transform: uppercase;
}
.pd-ut-k { font-size: 16px; font-weight: 500; color: var(--fg-on-navy); }
.pd-ut-v { font-size: 24px; font-weight: 500; color: var(--accent-light); letter-spacing: -0.005em; }
.pd-ut-d { font-size: 15px; color: var(--fg-on-navy-dim); line-height: 1.55; }

.pd-usage-note {
  display: flex; gap: 16px;
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--bg-navy-deep);
  border-radius: 12px;
  align-items: flex-start;
}
.pd-usage-note span {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 4px;
}
.pd-usage-note p { font-size: 14px; line-height: 1.6; color: var(--fg-on-navy-dim); }

/* ─── When to use ──────────────────────────────────────────────────── */
.pd-when-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.pd-when-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-top: 22px;
  max-width: 460px;
}
.pd-when-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.pd-when-row {
  display: grid;
  grid-template-columns: auto 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.pd-when-ic {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.pd-when-ic.off {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-mute);
}
.pd-when-row.off { opacity: 0.55; }
.pd-when-row.off .pd-when-k { color: var(--fg-mute); }
.pd-when-k { font-size: 17px; font-weight: 600; color: var(--navy); }
.pd-when-d { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }

/* ─── Specs ────────────────────────────────────────────────────────── */
.pd-specs { padding: var(--section-pad) 0; }
.pd-specs-title { margin-top: 16px; margin-bottom: 40px; }
.pd-spec-table {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.pd-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pd-spec-row:last-child { border-bottom: none; }
/* support both old (.k/.v) and new (.pd-spec-k/.pd-spec-v) class names */
.pd-spec-row .k, .pd-spec-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
  padding-top: 3px;
}
.pd-spec-row .v, .pd-spec-v {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

/* ─── FAQ (redesigned) ───────────────────────────────────────────── */
.pd-faq-section { padding: var(--section-pad) 0; background: var(--bg-alt); }
.pd-faq-title { margin-top: 16px; margin-bottom: 40px; }
.pd-faq-list { display: flex; flex-direction: column; gap: 8px; }
.pd-faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.pd-faq-item:hover { box-shadow: 0 2px 16px rgba(14,31,68,0.07); }
.pd-faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.pd-faq-q::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}
.pd-faq-item.open .pd-faq-q::after { transform: rotate(45deg); }
.pd-faq-a {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-dim);
  padding: 0 24px 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.pd-faq-item.open .pd-faq-a { max-height: 600px; padding: 0 24px 22px; }

/* ─── Pair / recommended (redesigned) ───────────────────────────────── */
.pd-pair { padding: var(--section-pad) 0; }
.pd-pair-title { margin-top: 16px; margin-bottom: 40px; }
.pd-pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pd-pair-card {
  background: var(--bg-alt);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.pd-pair-card:hover {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(216,101,16,0.10);
}
.pd-pair-swatch {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.pd-pair-body { flex: 1; min-width: 0; }
.pd-pair-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-pair-role {
  font-size: 12px;
  color: var(--accent);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-pair-arr {
  color: var(--fg-mute);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.pd-pair-card:hover .pd-pair-arr { color: var(--accent); transform: translateX(3px); }

/* ─── Related (same group) ─────────────────────────────────────────── */
.pd-related { border-top: 1px solid var(--line-strong); }
.pd-rel-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding 0.2s;
}
.pd-rel-card:hover { padding-left: 20px; }
.pd-rel-card:hover .pd-rel-name { color: var(--accent); }
.pd-rel-sw {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'JetBrains Mono', 'Anuphan', monospace;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
}
.pd-rel-name { font-size: 20px; font-weight: 500; color: var(--navy); letter-spacing: -0.005em; }
.pd-rel-alt { font-size: 10px; letter-spacing: 0.18em; color: var(--fg-mute); margin-left: 12px; text-transform: uppercase; }
.pd-rel-form { font-size: 11px; color: var(--fg-mute); letter-spacing: 0.04em; }
.pd-rel-card > svg { color: var(--fg-mute); }
.pd-rel-card:hover > svg { color: var(--accent); }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pd-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-when-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-benefits-grid { flex-direction: column; }
  .pd-detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .pd-specs { grid-template-columns: 1fr; }
  .pd-spec-row:nth-child(odd), .pd-spec-row:nth-child(even) {
    border-right: none; padding: 18px 0;
  }
  .pd-ut-head, .pd-ut-row { grid-template-columns: 1fr; gap: 4px; }
  .pd-ut-head { display: none; }
  .pd-rel-card { grid-template-columns: auto 1fr auto; }
  .pd-rel-alt { display: none; }
}

/* ─── Hero Info (redesigned) ───────────────────────────────────────── */
.pd-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-color, #0E1F44) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip-color, #0E1F44) 20%, transparent);
  font-size: 12px;
  font-weight: 500;
  color: var(--chip-color, #0E1F44);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.pd-cat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pd-pkg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 28px;
  color: var(--fg-mute);
}
.pd-pkg-row svg { flex-shrink: 0; stroke: var(--accent); }
.pd-pkg-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.pd-pkg-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.pd-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.pd-phone-btn:hover { background: var(--navy); color: #fff; }

/* ─── Detail section — 2 color cards ───────────────────────────────── */
.pd-detail-section {
  padding: var(--section-pad) 0;
  background: transparent;
}
.pd-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
/* Left card — navy (specs) */
.pd-detail-left {
  background: var(--navy);
  border-radius: 20px;
  border: none;
  padding: 48px 44px;
  color: var(--fg-on-navy);
}
.pd-detail-left .eyebrow { color: var(--accent-light); }
.pd-detail-left .pd-detail-h { color: #fff; }
/* Right card — orange (benefits) */
.pd-detail-right {
  background: var(--accent);
  border-radius: 20px;
  padding: 48px 44px;
  color: #fff;
}
.pd-detail-right .eyebrow { color: rgba(255,255,255,0.7); }
.pd-detail-right .pd-detail-h { color: #fff; }
.pd-detail-h {
  margin-top: 12px;
  margin-bottom: 36px;
  font-size: 30px;
}
/* Benefits — orange dot list */
.pd-detail-left .pd-benefits-grid {
  margin-top: 0;
  counter-reset: none;
}
.pd-detail-left .pd-benefit {
  grid-template-columns: 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 20px;
}
.pd-detail-left .pd-benefit::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.pd-detail-right .pd-benefit-title { font-size: 16px; font-weight: 600; color: #fff; }
.pd-detail-right .pd-benefit-desc { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.pd-detail-right .pd-benefit { border-bottom: 1px solid rgba(255,255,255,0.2); }
.pd-detail-right .pd-benefit::before { background: #fff; }
.pd-detail-left .pd-spec-row { border-bottom: 1px solid rgba(255,255,255,0.1); grid-template-columns: 140px 1fr; }
.pd-detail-left .pd-spec-row:last-child { border-bottom: none; }
.pd-detail-left .pd-spec-table { border-top: 1px solid rgba(255,255,255,0.12); }
.pd-detail-left .pd-spec-k, .pd-detail-left .k { color: rgba(255,255,255,0.45); }
.pd-detail-left .pd-spec-v, .pd-detail-left .v { color: #fff; }

@media (max-width: 900px) {
  .pd-detail-grid { grid-template-columns: 1fr; gap: 20px; }
}
