/* ==========================================================================
   Product pages (products/*.html) — gallery on the left, details on the right,
   other colours below. Product cards reuse .product-* from scenes.css.
   ========================================================================== */
.pd { padding-top: calc(var(--nav-h) + 8px); }
.pd-crumbs { padding: 18px var(--gutter) 0; font-family: var(--f-body); font-size: 13px; color: var(--ink-soft); }
.pd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-faint); }
.pd-crumbs a { text-decoration: none; }
.pd-crumbs a:hover { color: var(--magenta-ink); }

.pd-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start;
  max-width: calc(1300px + 2 * var(--gutter)); margin: 0 auto; padding: 28px var(--gutter) clamp(64px, 8vw, 120px); }

/* gallery */
.pd-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.pd-main { grid-column: 2; grid-row: 1; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #f5f2f1; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-thumb { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #f5f2f1; cursor: pointer; opacity: .55; transition: opacity var(--t-quick) linear; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover, .pd-thumb[aria-pressed="true"] { opacity: 1; }
.pd-thumb[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 2px; }

/* details */
.pd-info { position: sticky; top: calc(var(--nav-h) + 24px); font-family: var(--f-body); }
.pd-title { margin: 10px 0 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.3; }
.pd-title:lang(en) { font-family: var(--f-edit); font-weight: 400; }
.pd-lede { margin: 16px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.pd-option { margin-top: 26px; }
.pd-label { margin: 0 0 10px; font-size: 14px; }
.pd-swatches { list-style: none; margin: 0 -7px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.pd-swatches a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.pd-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgb(0 0 0 / .12); transition: transform var(--t-quick) var(--ease-out); }
.pd-swatches a:hover .pd-dot { transform: scale(1.12); }
.pd-swatches a[aria-current="page"] { box-shadow: 0 0 0 1px var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--magenta-ink); }
.pd-msg { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-top: 26px; padding: 14px 16px; background: var(--paper-2); }
.pd-msg .pd-label { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 13px; }
.pd-msg-text { margin: 0; font-size: 15px; line-height: 1.6; user-select: all; }
.pd-copy { min-width: 64px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ink); background: transparent; font-family: var(--f-body); font-size: 13px; cursor: pointer; }
.pd-copy:hover { background: var(--ink); color: #fff; }
.pd-cta { display: flex; width: 100%; margin-top: 14px; }
.pd-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.pd-specs { margin-top: 36px; border-top: 1px solid var(--rule-faint); }
.pd-specs h2 { margin: 18px 0 8px; font-family: var(--f-head); font-size: 17px; font-weight: 600; }
.pd-specs h2:lang(en) { font-family: var(--f-edit); font-weight: 400; font-size: 20px; }
.pd-specs dl { margin: 0; }
.pd-specs dl > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-faint); font-size: 14px; }
.pd-specs dt { color: var(--ink-soft); }
.pd-specs dd { margin: 0; }
.pd-src { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }

/* other colours: a simple 4-column grid with the same hover lift as the homepage */
.pd-more { background: #fff; }
.pd-more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.pd-more-grid h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .pd-more-grid .product-card { transform-origin: 50% 40%; }
  .pd-more-grid:has(.product-card:hover) .product-card { opacity: .55; }
  .pd-more-grid:has(.product-card) .product-card:is(:hover, :focus-within) { opacity: 1; transform: scale(1.06); }
}
.pd-back { max-width: 1400px; margin: 40px auto 0; font-family: var(--f-body); font-size: 14px; }
.pd-back a { text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 1099px) {
  .pd-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pd-top { grid-template-columns: 1fr; padding-top: 16px; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-main { grid-column: 1; }
  .pd-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
  .pd-thumbs li { flex: 0 0 64px; }
  .pd-info { position: static; }
  .pd-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
}
