/* =========================================================================
   Product detail page.
   ========================================================================= */

@layer components {

.pdp-crumbs { padding-top: var(--s-5); padding-bottom: var(--s-5); }

.pdp {
  display: grid;
  gap: var(--s-6);
  align-items: start;
  padding-bottom: var(--s-8);
}
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); }
}
@media (min-width: 1280px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 4.6fr); gap: var(--s-9); }
}

/* ------------------------------------------------------------------ media */

.pdp-media { position: relative; }
@media (min-width: 900px) {
  .pdp-media { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

.pdp-plate { margin: 0; cursor: zoom-in; }
.pdp-plate img { padding: 9%; transform-origin: center; }
/* The zoom is a working tool, not decoration: parts buyers read cast numbers
   and connector shapes off the photo. Driven by pointer position in JS. */
.pdp-plate[data-zooming="true"] img { transform: scale(2.2); transition: none; }

.pdp-flag { position: absolute; top: var(--s-4); inset-inline-start: var(--s-4); }

/* -------------------------------------------------------------- buy box */

.pdp-buy { display: flex; flex-direction: column; gap: var(--s-4); }

.pdp-brand {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pdp-title {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-family: var(--font-body);
  font-weight: 600;
  font-stretch: normal;
  line-height: 1.28;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.pdp-short { color: var(--text-dim); max-width: 52ch; }

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: var(--s-1);
}
.pdp-currency { font-size: var(--fs-micro); color: var(--text-faint); letter-spacing: 0.06em; }

.pdp-stock {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.pdp-add { display: flex; gap: var(--s-3); align-items: flex-end; }
.pdp-qty { flex: none; }
.pdp-qty > label { font-size: var(--fs-micro); color: var(--text-faint); }
.pdp-submit { flex: 1; }
.pdp-save { margin-top: calc(var(--s-2) * -1); }

.pdp-assurances {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.pdp-assurances li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.5;
}
.pdp-assurances svg { flex: none; margin-top: 2px; color: var(--accent-text); }

/* ----------------------------------------------------------------- detail */

.pdp-detail {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 900px) {
  .pdp-detail { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); }
}

.pdp-panel { display: flex; flex-direction: column; gap: var(--s-4); }
.pdp-panel h2 { font-size: var(--fs-h3); font-stretch: 108%; }

.prose { color: var(--text-dim); max-width: 66ch; display: flex; flex-direction: column; gap: var(--s-4); }
.prose p { line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: var(--s-2); }
.prose li {
  position: relative;
  padding-left: var(--s-5);
  line-height: 1.6;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* Identifiers: a single hairline above each row, never a box per row. */
.idlist { display: flex; flex-direction: column; }
.idrow {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.idrow:last-child { border-bottom: 1px solid var(--line); }
.idrow dt { color: var(--text-faint); }
.idrow dd { color: var(--text); word-break: break-word; }

.idgroup-title {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-top: var(--s-3);
}

.pdp-fitnote { font-size: var(--fs-micro); line-height: 1.55; max-width: 46ch; margin-top: var(--s-2); }

/* ---------------------------------------------------------------- reviews */

/* A product page is a working surface, not a marketing page. It gets the
   tighter of the two section rhythms declared in DESIGN.md section 5. */
[data-page="product"] .section-tight { padding-block: var(--s-7); }
@media (min-width: 1024px) {
  [data-page="product"] .section-tight { padding-block: var(--s-8); }
}

.reviews { display: grid; gap: var(--s-6); }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); } }

.review { display: flex; flex-direction: column; gap: var(--s-2); max-width: 52ch; }
.review-head { display: flex; align-items: center; gap: var(--s-3); }
.review-author { font-size: var(--fs-micro); color: var(--text-faint); }
.review-title { font-size: var(--fs-body); font-family: var(--font-body); font-stretch: normal; font-weight: 600; }
.review-body { color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.6; }

}
