/* ============================================================
   Ethical Clothing — Redesign PDP
   ============================================================ */

.pdp-crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: var(--space-6) 0 var(--space-4);
}
.pdp-crumbs a { color: var(--ink-3); }
.pdp-crumbs a:hover { color: var(--ink); }

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-4) 0 var(--space-8);
  align-items: start;
}

.pdp-gallery { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px); }
.pdp-img {
  aspect-ratio: 1 / 1;
  max-height: 560px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-alt) center/cover;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pdp-img img { object-fit: contain; }
.pdp-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.pdp-thumb {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pdp-thumb.active { border-color: var(--ink); }

.pdp-info { display: flex; flex-direction: column; }
.pdp-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.pdp-brand {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pdp-brand a { color: var(--sage-deep); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.pdp-brand a:hover { color: var(--sage); }

.pdp-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.pdp-price-row { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-6); }
.pdp-price {
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pdp-price s { color: var(--ink-3); font-weight: 400; margin-right: 6px; }
.pdp-save {
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pdp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}
.pdp-cta:hover { background: var(--sage-deep); border-color: var(--sage-deep); }

.pdp-handoff-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 12.5px;
  margin: var(--space-4) 0 var(--space-6);
  line-height: 1.5;
}
.pdp-handoff-note svg { flex-shrink: 0; margin-top: 2px; color: var(--sage); }

/* -------------------- Expandable sections -------------------- */
.pdp-section {
  border-top: 1px solid var(--line);
}
.pdp-section:last-child { border-bottom: 1px solid var(--line); }
.pdp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  cursor: pointer;
  user-select: none;
}
.pdp-section-head h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pdp-section-head .chev {
  width: 14px; height: 14px;
  transition: transform var(--transition-fast);
  color: var(--ink-3);
}
.pdp-section.open .pdp-section-head .chev { transform: rotate(180deg); }
.pdp-section-body {
  display: none;
  padding-bottom: var(--space-5);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.pdp-section.open .pdp-section-body { display: block; }

.pdp-attrs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  font-size: 13px;
  margin-top: var(--space-3);
}
.pdp-attrs dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}
.pdp-attrs dd { color: var(--ink); }

/* -------------------- Related -------------------- */
.pdp-related {
  padding: var(--space-8) 0 var(--space-10);
  border-top: 1px solid var(--line);
}
.pdp-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
}
.pdp-related-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .pdp-gallery { position: static; }
}

/* Site-written intro above the feed description (item 18). */
.pdp-intro { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: var(--space-5) 0; }
.pdp-intro a { color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pdp-desc p + p, .pdp-desc p + ul, .pdp-desc ul + p { margin-top: var(--space-3); }
.pdp-desc ul { padding-left: 1.2em; list-style: disc; }
.pdp-desc li + li { margin-top: 4px; }
.pdp-related + .pdp-related { margin-top: var(--space-9); }
