/* ─── THE PRODUCT CARD (inc/product-card.php) ─────────────────────────────
   One bag in one colour: the studio frame at its natural aspect, then NAME · PRICE on one line, the HOUSE name under it (and SOLD OUT when the
   store says so). Tokens only: no hex, mono for every word and number, tabular numerals, radius 0, nothing under the 12px floor.
   Used by the ORIGINALS page; the home page will reuse it as is (docs/cao/product-card.md). */

.pc { margin: 0; background: var(--cao-paper); }

.pc-link {
  display: block;
  min-height: var(--cao-hit);
  color: var(--cao-ink);
  text-decoration: none;
}

/* the photograph's own box: it clips the hover scale, so the words under it never move */
.pc-media { display: block; overflow: hidden; background: var(--cao-studio); }

.pc-img {
  display: block;
  width: 100%;
  height: auto;
}

/* no photograph in the library yet: a quiet box of the photograph's own aspect (set inline), never a broken image */
.pc-none { background: var(--cao-studio); }

.pc-text {
  display: block;
  padding: var(--cao-space-3) 0 var(--cao-space-5);
  font-family: var(--cao-font-mono);
  text-transform: uppercase;
}

.pc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--cao-space-3);
}

.pc-name {
  min-width: 0;
  font-size: var(--type-body);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.pc-price {
  flex: none;
  font-size: var(--type-body);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.pc-row--sub { margin-top: var(--cao-space-1); justify-content: flex-start; }

.pc-house,
.pc-sold {
  font-size: var(--type-meta);
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.pc-house { color: var(--cao-mute); }

.pc-sold { color: var(--cao-ink); }

.pc-house + .pc-sold::before { content: "· "; color: var(--cao-mute); }

/* Hover on a mouse only: the name underlines; the photograph eases to 1.03 when motion is allowed. */
.pc-name { text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .pc-link:hover .pc-name { text-decoration: underline; text-decoration-thickness: 1px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pc-img { transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
  .pc-link:hover .pc-img { transform: scale(1.03); }
}

.pc-link:focus-visible {
  outline: 2px solid var(--cao-ink);
  outline-offset: 2px;
}
