.mnw-products-wrapper {
	width: 100%;
	direction: rtl;
}

.mnw-section-title {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
	text-align: right;
}

/* وقتی کاربر استایل تم را انتخاب کند، هیچ رنگ/فونتی از این پلاگین تحمیل نمی‌شود
   و h2 با همان CSS قالب سایت رندر می‌شود */
.mnw-section-title.mnw-section-title--theme {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	margin: revert;
	text-align: inherit;
}

.mnw-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
}

.mnw-card {
	background: #ffffff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: box-shadow .25s ease, transform .25s ease;
	display: flex;
	flex-direction: column;
}

.mnw-card:hover {
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.mnw-card.mnw-hidden-row {
	display: none;
}

.mnw-card-img-link {
	display: block;
	position: relative;
}

.mnw-card-img-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
}

.mnw-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

/* افکت زوم با هاور (دسکتاپ) و با کلیک/تاچ (موبایل از طریق کلاس mnw-active) */
.mnw-grid.mnw-zoom .mnw-card-img-wrap:hover img,
.mnw-grid.mnw-zoom .mnw-card-img-wrap.mnw-active img {
	transform: scale(1.12);
}

.mnw-badge-sale {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #e11d48;
	color: #fff;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 20px;
	z-index: 2;
}

.mnw-card-body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.mnw-card-title-link {
	text-decoration: none;
}

.mnw-card-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #222222;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mnw-card-price {
	font-size: 14px;
	font-weight: 700;
	color: #16a34a;
	margin-top: auto;
}

.mnw-card-price del {
	color: #9ca3af;
	font-weight: 400;
	margin-left: 6px;
}

.mnw-card-price ins {
	text-decoration: none;
}

.mnw-card-action {
	margin-top: 4px;
}

.mnw-add-to-cart {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 8px 10px;
	border-radius: 8px;
	background: #1034A6;
	color: #ffffff !important;
	font-size: 13px;
	text-decoration: none;
	transition: background .2s ease, opacity .2s ease;
}

.mnw-add-to-cart:hover {
	background: #2563eb;
	color: #ffffff !important;
}

.mnw-add-to-cart.loading {
	opacity: .6;
}

.mnw-show-more-wrap {
	text-align: center;
	margin-top: 22px;
}

.mnw-show-more {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #1034A6;
	padding: 10px 26px;
	border-radius: 30px;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s ease;
}

.mnw-show-more:hover {
	background: #e5e7eb;
}

.mnw-empty {
	text-align: center;
	color: #6b7280;
}

/* واکنش‌گرا بودن پیش‌فرض، حتی بدون تنظیم دستی کاربر */
@media (max-width: 1024px) {
	.mnw-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.mnw-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.mnw-card-title {
		font-size: 13px;
	}

	.mnw-card-body {
		padding: 10px 12px 14px;
	}
}
