/**
 * Home-page category strip (ADR-032 §6). RTL first.
 * Replaces WooCommerce's `[product_categories]` grid, whose placeholder image made every card grey.
 */

.kf-cat-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 8px 0 4px;
}

.kf-cat-strip__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 12px 14px;
	border: 1px solid var(--kf-strip-border, #e6e6ea);
	border-radius: 14px;
	background: var(--kf-strip-bg, #fff);
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.kf-cat-strip__card:hover,
.kf-cat-strip__card:focus-visible {
	border-color: var(--kf-strip-accent, #123a6b);
	box-shadow: 0 6px 18px rgb(18 58 107 / 12%);
	transform: translateY(-2px);
	text-decoration: none;
}

.kf-cat-strip__art {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--kf-strip-art-bg, #eef2f9);
	color: var(--kf-strip-accent, #123a6b);
}

.kf-cat-strip__art img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.kf-cat-strip__icon {
	width: 28px;
	height: 28px;
}

.kf-cat-strip__name {
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal; /* Persian script must not be tracked out by inherited theme styles. */
}

.kf-cat-strip__count {
	font-size: 0.82em;
	color: var(--kf-strip-muted, #8b8b96);
}

@media (max-width: 999px) {
	.kf-cat-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.kf-cat-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.kf-cat-strip__art {
		width: 46px;
		height: 46px;
	}

	.kf-cat-strip__art img {
		width: 46px;
		height: 46px;
	}
}
