/* =============================================================================
   PRODUCT CARD -- B5 "Spec-sheet Footer"
   Horizontal layout: [image 200px] [content flex-1]
   Body: brand → title → spec table → spacer → footer (price + CTA)
   The entire card is one <a> element.

   Token mapping (B5 reference → our global tokens):
     --card-font-sans      → var(--font-base)
     --card-font-mono      → system mono stack (no mono token in our system)
     --card-ink            → var(--color-text-primary)
     --card-ink-2          → var(--color-text-secondary)
     --card-muted          → var(--color-text-secondary)
     --card-line           → var(--color-border-subtle)
     --card-line-2         → var(--color-border-subtle)
     --card-surface        → var(--color-bg-primary)
     --card-radius         → 10px  (site signature radius; no CSS var exists)
     --card-button-radius  → 5px   (matches .button--solid in global.css)
     --card-shadow         → none  (our system uses borders, not shadows)
     --card-shadow-hover   → none  (hover is border-color change to accent)
   ============================================================================= */

.product-card {
	display:         flex;
	text-decoration: none;
	color:           var(--color-text-primary);
	background:      var(--color-bg-primary);
	border:          1px solid var(--color-border-subtle);
	border-radius:   10px;
	overflow:        hidden;
	transition:      border-color .18s ease;
}

.product-card:hover {
	text-decoration: none;
	border-color:    var(--color-border-hover);
}

.product-card:focus-visible {
	outline:        2px solid var(--color-accent);
	outline-offset: 2px;
}

/* -- Image column ----------------------------------------------------------- */

.product-card__media {
	width:       200px;
	flex-shrink: 0;
	align-self:  stretch;
	background:  var(--color-bg-primary);
	object-fit:  contain;
	display:     block;
}

/* -- Content column --------------------------------------------------------- */

.product-card__body {
	flex:           1;
	min-width:      0;
	display:        flex;
	flex-direction: column;
	padding:        20px 20px 18px 20px;
	border-left:    1px solid var(--color-border-subtle);
}

/* -- Brand eyebrow ---------------------------------------------------------- */

.product-card__brand {
	letter-spacing: 2px;
	font-size:      12px;
	margin-bottom: 0;
	color:          var(--color-text-secondary);
}

/* -- Title ------------------------------------------------------------------ */

.product-card__title {
	margin: 4px 0 14px 0;
	font-size:      18px;
	line-height:    1.2;
	color:          var(--color-text-primary);
}

/* -- Spec table: label/value rows with hairline separators ------------------ */

.product-card__specs {
	display:        flex;
	flex-direction: column;
}

.product-card__spec {
	display:         flex;
	justify-content: space-between;
	align-items:     baseline;
	padding:         6px 0;
	border-bottom:   1px solid var(--color-border-subtle);
}

.product-card__spec:first-of-type {
	border-top:   1px solid var(--color-border-subtle);
}

.product-card__spec dt {
	margin:    0;
	font-size: 14px;
	color:     var(--color-text-secondary);
}

.product-card__spec dd {
	margin:      0;
	font-size:   14px;
	font-weight: var(--weight-bold);
	color:       var(--color-text-secondary);
}

/* -- Spacer: pins footer to the bottom regardless of spec count ------------ */

.product-card__spacer { flex: 1; min-height: 18px; }

/* -- Footer: heavy rule, price left, CTA right ------------------------------ */

.product-card__footer {
	display:         flex;
	align-items:     flex-end;
	justify-content: space-between;
	gap:             12px;
}

.product-card__price-label {
	font-size:      9.5px;
	letter-spacing: .04em;
	color:          var(--color-text-secondary);
}

.product-card__price {
	font-size:      22px;
	font-weight:    var(--weight-bold);
	letter-spacing: -.02em;
	line-height:    1;
	margin-top:     2px;
	color:          var(--color-accent);
}

/* -- Outline CTA (mono, uppercase) ----------------------------------------- */

.product-card__cta {
	display:         inline-flex;
	align-items:     center;
	gap:             7px;
	height:          38px;
	padding:         0 16px;
	border:          1px solid var(--color-border-subtle);
	border-radius:   5px;
	background:      transparent;
	color:           var(--color-text-primary);
	font-size:       12px;
	font-weight:     var(--weight-bold);
	text-transform:  uppercase;
	letter-spacing:  .02em;
	white-space:     nowrap;
	flex-shrink:     0;
	transition:      border-color .15s, background .15s;
}

.product-card:hover .product-card__cta {
	border-color: var(--color-border-hover);
	background:   var(--color-bg-subtle);
}

.product-card__cta svg { transition: transform .18s ease; }
.product-card:hover .product-card__cta svg { transform: translateX(4px); }

/* =============================================================================
   RESPONSIVE -- 600px: stack image above content
   ============================================================================= */

@media ( max-width: 600px ) {

	.product-card {
		flex-direction: column;
	}

	.product-card__media {
		width:  100%;
		height: 160px;
	}

	.product-card__body {
		border-left: none;
		border-top:  1px solid var(--color-border-subtle);
	}

}
