.empc-wrapper {
	position: relative;
	width: 100%;
}

.empc-swiper {
	width: 100%;
	overflow: hidden;
	padding-bottom: 6px;
}

/* هم‌ارتفاع کردن تمام اسلایدها با هم، صرف‌نظر از میزان متن هر محصول */
.empc-swiper .swiper-wrapper {
	align-items: stretch;
}

.empc-swiper .swiper-slide {
	height: auto;
	display: flex;
}

.empc-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 12px;
	padding: 15px;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.empc-card:hover {
	transform: translateY(-4px);
}

/* تصویر همه محصولات دقیقاً هم‌اندازه، بدون کش‌آمدگی یا برش نامناسب */
.empc-card__image {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 12px;
	aspect-ratio: 1 / 1;
	background: #f7f7f8;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.empc-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.35s ease;
}

.empc-card__image:hover img {
	transform: scale(1.05);
}

.empc-badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	background: #e63946;
	color: #fff;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 20px;
	z-index: 2;
}

/* عنوان همیشه دقیقاً هم‌ارتفاع (حداکثر ۲ خط)؛ عناوین بلندتر با سه‌نقطه کوتاه می‌شوند */
.empc-card__title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.5;
	min-height: calc(1.5em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.empc-card__title a {
	color: inherit;
	text-decoration: none;
}

.empc-card__rating {
	margin-bottom: 8px;
	min-height: 20px;
	display: flex;
	justify-content: center;
}

.empc-card__price {
	font-size: 15px;
	margin-bottom: 12px;
	min-height: 24px;
}

.empc-card__price ins {
	text-decoration: none;
	font-weight: 700;
}

.empc-card__price del {
	opacity: 0.6;
	margin-inline-end: 6px;
}

.empc-card__btn {
	display: inline-block;
	margin-top: auto;
	padding: 9px 18px;
	background: #1f2937;
	color: #fff;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.empc-card__btn:hover {
	background: #e63946;
	color: #fff;
}

.empc-card__btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ناوبری */
.empc-swiper-btn {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: #1f2937;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	z-index: 5;
	transition: opacity 0.2s ease;
}

.empc-swiper-prev {
	inset-inline-start: -10px;
}

.empc-swiper-next {
	inset-inline-end: -10px;
}

.empc-swiper-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

/* نقاط */
.empc-swiper .swiper-pagination {
	position: static;
	margin-top: 14px;
}

.empc-swiper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #d1d5db;
	opacity: 1;
}

.empc-swiper .swiper-pagination-bullet-active {
	background: #1f2937;
}

.empc-editor-notice {
	padding: 20px;
	background: #fff8e1;
	border: 1px dashed #f0c14b;
	border-radius: 8px;
	text-align: center;
	color: #7a5b00;
	font-size: 14px;
}

@media (max-width: 767px) {
	.empc-swiper-btn {
		display: none;
	}
}
