.mm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid var(--wp--preset--color--neutral-light, #dadee1);
	border-radius: var(--wp--custom--radius--card, 12px);
	box-shadow: var(--wp--preset--shadow--soft, 0 10px 30px -10px rgba(68, 127, 152, 0.12));
	transition: transform var(--wp--custom--motion--standard, 250ms) var(--wp--custom--motion--easing, cubic-bezier(0.2, 0, 0, 1)),
		box-shadow var(--wp--custom--motion--standard, 250ms) var(--wp--custom--motion--easing, cubic-bezier(0.2, 0, 0, 1));
}

.mm-card:hover,
.mm-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lifted, 0 20px 40px -12px rgba(68, 127, 152, 0.22));
}

.mm-card__media {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 8px 8px 0;
	border-radius: var(--wp--custom--radius--card-image, 10px);
	background: var(--wp--preset--color--surface-mist, #f4f8fa);
}

.mm-card__image-link {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
}

.mm-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mm-card__img--secondary {
	opacity: 0;
	transition: opacity var(--wp--custom--motion--image, 400ms) var(--wp--custom--motion--easing, cubic-bezier(0.2, 0, 0, 1));
}

@media (hover: hover) {
	.mm-card:hover .mm-card__img--secondary {
		opacity: 1;
	}
}

.mm-card__media .mm-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
}

.mm-heart {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--neutral-light, #dadee1);
	border-radius: var(--wp--custom--radius--pill, 9999px);
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--text-main, #1e293b);
	cursor: pointer;
	transition: color var(--wp--custom--motion--micro, 150ms), border-color var(--wp--custom--motion--micro, 150ms);
}

.mm-heart:hover,
.mm-heart[aria-pressed="true"] {
	border-color: var(--wp--preset--color--primary-deep, #376b81);
	color: var(--wp--preset--color--primary-deep, #376b81);
}

.mm-heart[aria-pressed="true"] .mm-icon {
	fill: currentColor;
}

.mm-heart.is-popping .mm-icon {
	animation: mm-heart-pop 300ms var(--wp--custom--motion--pop, cubic-bezier(0.34, 1.56, 0.64, 1));
}

@keyframes mm-heart-pop {
	0% { transform: scale(1); }
	50% { transform: scale(1.25); }
	100% { transform: scale(1); }
}

.mm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 12px 12px 16px;
}

.mm-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.mm-card__title a {
	color: var(--wp--preset--color--text-main, #1e293b);
	text-decoration: none;
}

.mm-card__title a:hover {
	color: var(--wp--preset--color--primary-deep, #376b81);
}

.mm-card__subtitle {
	margin: 0;
	overflow: hidden;
	color: var(--wp--preset--color--text-muted, #5d6d83);
	font-size: 13px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mm-card__trust {
	margin: 0;
	overflow: hidden;
	color: var(--wp--preset--color--text-muted, #5d6d83);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mm-card__subtitle + .mm-card__trust {
	margin-top: -2px;
}

.mm-card__price {
	margin-top: 4px;
	font-size: 18px;
	font-weight: 600;
}

.mm-card__price del {
	margin-right: 6px;
	color: var(--wp--preset--color--text-muted, #5d6d83);
	font-size: 14px;
	font-weight: 400;
	text-decoration: line-through;
}

.mm-card__price ins {
	color: var(--wp--preset--color--sale, #b91c1c);
	text-decoration: none;
}

.mm-card__actions {
	margin-top: auto;
	padding-top: 12px;
}

.mm-card__actions .mm-btn {
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.mm-card:hover,
	.mm-card:focus-within {
		transform: none;
	}

	.mm-card,
	.mm-card__img--secondary,
	.mm-heart {
		transition-duration: var(--wp--custom--motion--reduced, 100ms);
	}

	.mm-heart.is-popping .mm-icon {
		animation: none;
	}
}

.mm-product-grid {
	padding-block: var(--wp--custom--layout--section-padding, 80px);
}

.mm-product-grid__inner {
	box-sizing: border-box;
	max-width: var(--wp--style--global--content-size, 1200px);
	margin-inline: auto;
	padding-inline: var(--wp--custom--layout--gutter, 16px);
}

.mm-product-grid__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.mm-product-grid__heading {
	margin: 0;
}

.mm-product-grid__subheading {
	margin: 4px 0 0;
	color: var(--wp--preset--color--text-muted, #5d6d83);
}

.mm-product-grid__view-all {
	font-size: var(--wp--preset--font-size--small, 0.8125rem);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.mm-product-grid__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--custom--layout--grid-gap, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-product-grid__item {
	display: block;
	min-width: 0;
	margin: 0;
}

.mm-product-grid__empty {
	padding: 24px;
	border: 1px dashed var(--wp--preset--color--neutral-light, #dadee1);
	text-align: center;
}

@media (min-width: 768px) {
	.mm-product-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.mm-product-grid__list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.mm-card__quick-view {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	z-index: 3;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--wp--custom--radius--button, 8px);
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--primary-deep, #376b81);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	box-shadow: var(--wp--preset--shadow--soft, 0 10px 30px -10px rgba(68, 127, 152, 0.12));
	transition: opacity var(--wp--custom--motion--micro, 150ms) var(--wp--custom--motion--easing, cubic-bezier(0.2, 0, 0, 1)), background-color var(--wp--custom--motion--micro, 150ms) var(--wp--custom--motion--easing, cubic-bezier(0.2, 0, 0, 1));
}

.mm-card:hover .mm-card__quick-view,
.mm-card:focus-within .mm-card__quick-view,
.mm-card__quick-view:focus-visible {
	opacity: 1;
}

.mm-card__quick-view:hover {
	background: var(--wp--preset--color--surface-mist, #f4f8fa);
}

.mm-card__quick-view:focus-visible {
	outline: 2px solid transparent;
	box-shadow: var(--wp--custom--focus-ring, 0 0 0 1px #376b81, 0 0 0 4px #b9d8e1);
}

@media (hover: none) {
	.mm-card__quick-view {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-card__quick-view {
		transition-duration: var(--wp--custom--motion--reduced, 100ms);
	}
}
