/* ==========================================================
   صفحه دسته‌بندی محصولات - گرید عکس‌دار
   ========================================================== */

.wsr-cat-wrapper {
	max-width: 1200px;
	margin: 50px auto;
	padding: 0 16px;
}

.wsr-cat-page-title {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 32px;
	text-align: center;
}

.wsr-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 26px;
}

.wsr-cat-card {
	display: block;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wsr-cat-card:hover {
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.wsr-cat-image {
	width: 100%;
	height: 190px;
	overflow: hidden;
	background: #f6f6f6;
}

.wsr-cat-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.wsr-cat-card:hover .wsr-cat-image img {
	transform: scale(1.08);
}

.wsr-cat-info {
	padding: 16px 18px;
	text-align: center;
}

.wsr-cat-name {
	font-size: 16.5px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1a1a1a;
}

.wsr-cat-count {
	font-size: 13px;
	color: #999;
}

.wsr-cat-empty {
	text-align: center;
	color: #888;
	font-size: 15px;
}

/* --- موبایل --- */
@media (max-width: 600px) {
	.wsr-cat-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.wsr-cat-image {
		height: 140px;
	}

	.wsr-cat-name {
		font-size: 14.5px;
	}
}
