/* ============================================================
 * BIOTA · PRIMITIVE · Product card
 * White card: image on top, then label / title / description / price.
 * The card clips the image via overflow:hidden. Pair with .biota-card
 * for the hover lift. Used in the picker rail (and adaptable elsewhere).
 * ============================================================ */

.biota-product {
	display: flex;
	flex-direction: column;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	overflow: hidden;
}

.biota-product__media {
	margin: 0;
	background-color: var(--wp--preset--color--surface-subtle); /* #EEF1F5 placeholder */
}
/* Square. `height: auto` is load-bearing: WooCommerce's get_image() emits
   width="300" height="300" attributes, and those presentational hints set the
   used height, so without this the attribute wins and aspect-ratio is ignored
   (the card grew ~130px taller when the picker moved to live product images). */
.biota-product__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

/* flex:1 so the body fills whatever height the tallest card in the rail sets —
   that is what lets the price pin to the bottom instead of floating up under a
   short description. */
.biota-product__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 18px 18px 19px;
	flex: 1 1 auto;
}

/* Eyebrow label — navy, uppercase (Figma). */
.biota-product__label {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	letter-spacing: 0.66px;
	text-transform: uppercase;
}

/* Title — near-black ink, not navy (Figma). */
.biota-product__title {
	margin: 0;
	padding: 3px 0 1px;
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--title-sm);
	line-height: 1.3;
	letter-spacing: -0.34px;
}
.biota-product__title a {
	color: inherit;
	text-decoration: none;
}

/* Capped at two lines, overflow ellipsised. The copy comes from each product's
   "Paling pas…" field, so its length is not under the template's control. */
.biota-product__desc {
	margin: 0;
	padding-bottom: 8px; /* extra breathing room before the price (Figma) */
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

/* margin-top:auto pins the price to the bottom of the card, so it lands on the
   same line across the row whether the description ran to one line or two. */
.biota-product__price {
	margin: auto 0 0;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--body-lg);
}
