/**
 * Homepage blocks: category grid + USP strip.
 * Palette matches the header — #ff4242 accent, slate text.
 */

/* ---------- Category grid ---------- */
.mm-cats {
	--mm-cols: 4;
	margin: 0 0 28px;
}
.mm-cats__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 800;
	color: #1e293b;
}
.mm-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--mm-cols), minmax(0, 1fr));
	gap: 14px;
}
.mm-cats__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	padding: 22px 14px;
	text-align: center;
	text-decoration: none;
	color: #334155;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.mm-cats__link:hover,
.mm-cats__link:focus-visible {
	border-color: #ff4242;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
	transform: translateY(-2px);
	color: #ff4242;
}
.mm-cats__link:focus-visible {
	outline: 3px solid #ff4242;
	outline-offset: 2px;
}
.mm-cats__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #ff4242;
}
.mm-cats__icon svg {
	width: 34px;
	height: 34px;
}
.mm-cats__img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.mm-cats__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}
.mm-cats__count {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 600;
}

/* ---------- USP strip ---------- */
.mm-usp {
	list-style: none;
	margin: 0 0 28px;
	padding: 18px 20px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}
.mm-usp__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.mm-usp__icon {
	flex: 0 0 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: #ff4242;
}
.mm-usp__icon svg { width: 28px; height: 28px; }
.mm-usp__body { display: flex; flex-direction: column; min-width: 0; }
.mm-usp__title {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.25;
}
.mm-usp__text {
	font-size: 12px;
	color: #64748b;
}

/* ---------- Responsive ---------- */
/* The column count arrives as an inline custom property on .mm-cats, which
   would beat any stylesheet rule. Override grid-template-columns on the list
   itself instead — no inline style competes there. */
@media (max-width: 1024px) {
	.mm-cats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mm-usp        { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.mm-cats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm-cats__link { padding: 16px 10px; }
	.mm-cats__icon svg { width: 28px; height: 28px; }
	.mm-cats__name { font-size: 13px; }
	.mm-usp {
		grid-template-columns: 1fr;
		padding: 14px 16px;
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-cats__link { transition: none; }
	.mm-cats__link:hover { transform: none; }
}

/* ---------- Injected block wrapper ---------- */
.mm-home-blocks {
	max-width: 1320px;
	margin: 0 auto 8px;
	padding: 22px 20px 0;
}
@media (max-width: 640px) {
	.mm-home-blocks { padding: 16px 14px 0; }
}

/* ---------- Category spotlight row ---------- */
.mm-row { margin: 0 0 34px; }
.mm-row__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}
.mm-row__title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.mm-row__title a { color: #1e293b; text-decoration: none; }
.mm-row__title a:hover, .mm-row__title a:focus-visible { color: #ff4242; }
.mm-row__all {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: #ff4242;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .3px;
	white-space: nowrap;
}
.mm-row__all:hover, .mm-row__all:focus-visible { text-decoration: underline; }
@media (max-width: 640px) {
	.mm-row__title { font-size: 17px; }
	.mm-row__all { font-size: 12px; }
}
.mm-home-blocks--after { padding-top: 8px; padding-bottom: 10px; }
