/* Matjari option: the `tag` card family (4.3). Every selector starts with .m-card--tag (O1),
   and the file is sent only to a page that draws it (docs/DESIGN-SYSTEM.md 5.4). */
/* The boxed families paint a page surface and carry the page context. */
.m-card--tag {
	padding: var(--m-card-pad);
	border: var(--m-card-bw) solid var(--m-card-edge);
	border-radius: var(--m-card-r);
	background-color: var(--m-card-bg);
	box-shadow: var(--m-card-shadow);
}
/* The price as a tag (`tag` family): it straddles the photo's lower edge at
   the start, so it reads as tied to the card, not laid over the product. */
.m-card--tag .m-card__link { padding-block-start: calc(var(--m-card-body-py) + var(--m-sp-4)); }
/* The add control stands clear of the tag's upper half. */
.m-card--tag .m-card__quick { inset-block-end: calc(var(--m-card-inset) + var(--m-sp-4)); }
/* Under 600 a photo carries two things at most. A crowded card (badge, heart
   and floating add control) draws the SAME button in the body, at the end of
   the name's row, bare; it returns to the photo from 600. 44px in both. */
.m-card--tag.m-card--crowded .m-wish--card { margin-block-start: calc(var(--m-card-body-py) + var(--m-sp-2)); }
/* Its body is short (the price is on the photo), so its 44px is laid from its
   foot upwards and stays in the card; centred again on the photo from 600. */
.m-card--tag.m-card--crowded .m-wish--card::after { inset-block-start: auto; inset-block-end: 0; margin-block-start: 0; }
@media (min-width: 600px) {
	.m-card--tag.m-card--crowded .m-wish--card::after { inset-block-start: 50%; inset-block-end: auto; margin-block-start: calc(var(--m-touch) / -2); }
}
/* ---- Hover, on devices that have it; then the press, for everyone. ---- */
@media (hover: hover) and (pointer: fine) {
	.m-card--tag:hover {
		box-shadow: var(--m-card-shadow-hover);
		transform: translate(calc(var(--m-dir) * var(--m-hover-x)), var(--m-hover-lift)) rotate(calc(var(--m-dir) * var(--m-hover-rot)));
	}
}
