/* /products and /products/{slug} (2026-10-28). Reads only the semantic tokens; cards reuse site.css. */
.product-card .card__media { aspect-ratio: 1 / 1; display: block; }
.product-card .card__title a { color: inherit; text-decoration: none; }
.product-card .card__title a:hover { color: var(--accent); }
.product-card .card__title a::after { content: none; }
.product-card__price { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--accent); line-height: 1; }
.product-card__cta { margin-top: auto; align-self: flex-start; }
.product-card .card__body { gap: 0.6rem; }

/* No photo yet: the logo, quiet, on the panel colour. Never a stock image. */
.product-card__blank { display: grid; place-items: center; width: 100%; height: 100%; background: var(--bg-panel); }
.product-card__blank img { width: 46%; height: auto; object-fit: contain; opacity: 0.18; }

.product { padding-top: var(--space-l); }
.product__grid { display: grid; gap: var(--space-l); margin-top: var(--space-s); align-items: start; }
.product__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); }
.product__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__title { font-size: var(--step-3); margin: 0 0 var(--space-s); text-wrap: balance; overflow-wrap: anywhere; }
.product__price { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--accent); line-height: 1; margin: 0 0 var(--space-m); }
.product__blurb { margin-bottom: var(--space-m); }
.product__blurb > :first-child { margin-top: 0; }
.product__cta { display: inline-block; }
@media (min-width: 860px) {
  .product__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-2xl); }
}
@media (max-width: 600px) {
  .product__cta { display: block; text-align: center; }
}

/* 2026-11-27: Buy (Stripe checkout) with a quantity, the request link under it. */
.product__buy { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; margin-top: 1rem; }
.product__qty { display: grid; gap: 0.25rem; font-size: 0.85rem; }
.product__qty input { width: 5rem; min-height: 44px; padding: 0 0.6rem; font: inherit; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 4px; }
.product__buy .product__cta { margin-top: 0; }
.product__alt { display: inline-block; margin-top: 0.8rem; font-size: 0.9rem; }

.product-card form { margin: 0; }

/* TW's own checkout page (2026-11-27): the order beside Stripe's embedded form. */
.checkout__title { margin: 0.5rem 0 1.5rem; }
.checkout__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; }
.checkout__order { position: sticky; top: 6rem; padding: 1.25rem; border: 1px solid var(--line, #2a2f37); border-radius: 8px; }
.checkout__item { display: flex; gap: 1rem; align-items: center; }
.checkout__item img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.checkout__item strong { display: block; font-size: 1.05rem; }
.checkout__item span { opacity: 0.8; }
.checkout__sum { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem 1rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line, #2a2f37); }
.checkout__sum dt { opacity: 0.8; } .checkout__sum dd { margin: 0; text-align: right; }
.checkout__note { margin: 1.25rem 0 0; font-size: 0.85rem; opacity: 0.75; }
.checkout__pay { min-height: 32rem; border-radius: 8px; background: #fff; padding: 0.5rem; }
.checkout__loading { padding: 2rem; color: #333; text-align: center; }
@media (max-width: 860px) { .checkout__grid { grid-template-columns: 1fr; } .checkout__order { position: static; } }
