/* Cart detail page */
.pd { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(24px, 4vw, 56px) 0; align-items: start; }
.pd-gallery { display: grid; gap: 10px; position: sticky; top: 96px; }
.pd-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pd-stage.is-cutout::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 36%; background: url(/img/grass.webp) center 0 / 180% auto no-repeat; }
.pd-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-stage.is-cutout img { z-index: 1; inset: auto 8% 6% 8%; width: 84%; height: 86%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 14px rgba(20, 40, 20, .25)); } /* taste-skill-ignore: ground contact shadow / floating overlay */
.pd-nav { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }
.pd-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; }
.pd-nav.prev { inset-inline-start: 14px; } .pd-nav.next { inset-inline-end: 14px; }
[dir="rtl"] .pd-nav svg { transform: scaleX(-1); }
.pd-count { position: absolute; z-index: 2; bottom: 14px; inset-inline-end: 14px; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex: none; width: 88px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--surface); cursor: pointer; opacity: .55; transition: opacity .2s; }
.pd-thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--fairway); outline-offset: -3px; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs .is-cutout img { object-fit: contain; }

.pd-info { display: grid; gap: 24px; }
.pd-back { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.pd-back::before { content: "← "; }
[dir="rtl"] .pd-back::before { content: "→ "; }
.pd-back:hover { color: var(--fairway); }
.pd-title { font-size: clamp(34px, 3.8vw, 58px); line-height: 1.02; }
.pd-price { font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; color: var(--fairway); letter-spacing: -0.02em; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pd-status { font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; letter-spacing: 0; }
.pd-status.reserved { background: var(--surface-2); color: var(--ink); }
.pd-actions { display: grid; gap: 10px; }
.pd-actions .btn { --h: 60px; font-size: 17px; }
.pd-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-copy { justify-self: start; font-size: 15px; padding-block: 6px; }
.pd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-specs div { background: var(--surface); border-radius: 14px; padding: 14px 18px; }
.pd-specs dt { color: var(--muted); font-size: var(--t-small); }
.pd-specs dd { font-size: 19px; font-weight: 600; }
.pd-specs .wide { grid-column: 1 / -1; }
.pd-desc { font-size: 18px; line-height: 1.6; white-space: pre-line; max-width: 60ch; }
.pd-pay { color: var(--muted); font-size: 15px; }
.pd-tech { display: grid; gap: 12px; padding-block-start: 8px; }
.pd-tech-title { font-size: 26px; line-height: 1.2; }
.pd-tech-sub { font-size: var(--t-small); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-block-start: 8px; }
.pd-parts { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 14px; }
.pd-parts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; font-size: 17px; }
.pd-parts li + li { border-block-start: 1px solid var(--surface-2); }
.pd-state { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; background: #fff; color: var(--ink); }
.pd-state.new { background: #1e4d2b; color: #fff; }
.pd-state.fair { background: #fbefd5; color: #6b4a00; }
.pd-missing { padding-block: 120px; display: grid; gap: 32px; justify-items: start; }
.pd-missing h1 { font-size: var(--t-h2); }
.pd-more h2 { margin-block-end: 40px; }

@media (max-width: 860px) {
  .pd { grid-template-columns: minmax(0, 1fr); padding-inline: 0; gap: 20px; }
  .pd-gallery { position: static; }
  .pd-stage { border-radius: 0; }
  .pd-thumbs { padding-inline: var(--gutter); }
  .pd-info { padding-inline: var(--gutter); }
  .pd-nav { width: 44px; height: 44px; }
}
