/* =========================================================
   PR Product Carousel — استایل گلوبال
   فونت از قالب ارث‌بری می‌شود (inherit)
   کروسل: CSS Scroll-Snap (بدون دکمه ناوبری)
   ========================================================= */

.prpc-wrapper {
	position: relative;
	direction: rtl;
	font-family: inherit; /* پیروی از فونت قالب */
	margin: 20px 0;
	padding: 0;          /* پدینگ کناری حذف شد — هم‌عرض کانتینر */
	box-sizing: border-box;
}

/* --- ترک کروسل (اسکرول افقی + Snap) --- */
.prpc-track {
	display: grid;
	grid-auto-flow: column;
	/* دسکتاپ: ۳ ستون */
	grid-auto-columns: calc((100% - 32px) / 3);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* فایرفاکس */
}
.prpc-track::-webkit-scrollbar {
	display: none; /* کروم و سافاری */
}

/* --- کارت محصول --- */
.prpc-card {
	scroll-snap-align: start;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	box-sizing: border-box;
}
.prpc-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
	transform: translateY(-3px);
}

.prpc-card-link {
	display: block;
	text-decoration: none !important;
	color: inherit;
}

/* --- تصویر شاخص --- */
.prpc-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f7f7;
}
.prpc-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.prpc-card:hover .prpc-thumb img {
	transform: scale(1.05);
}

/* --- عنوان محصول: مشکی، قفل روی 14px --- */
.prpc-title {
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600;
	color: #000000;
	margin: 10px 12px 6px;
	line-height: 1.6;
	/* حداکثر دو خط، بقیه سه‌نقطه */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(14px * 1.6 * 2);
}

/* --- قیمت: نارنجی، حداکثر 14px --- */
.prpc-price {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #ff7a00;
	margin: 0 12px 12px;
}
.prpc-price .woocommerce-Price-amount,
.prpc-price .woocommerce-Price-currencySymbol {
	color: #ff7a00 !important;
	font-size: 14px !important;
}
/* قیمت قبلی خط‌خورده (در محصولات تخفیف‌دار) */
.prpc-price del,
.prpc-price del .woocommerce-Price-amount {
	color: #b5b5b5 !important;
	font-size: 12px !important;
	margin-left: 6px;
}
.prpc-price ins {
	text-decoration: none;
}

/* --- پیام خالی بودن --- */
.prpc-empty {
	font-size: 14px;
	color: #888;
	text-align: center;
	padding: 20px;
}

/* =========================================================
   موبایل: ۲ ستون
   ========================================================= */
@media (max-width: 768px) {
	.prpc-track {
		grid-auto-columns: calc((100% - 12px) / 2);
		gap: 12px;
	}
	.prpc-wrapper {
		padding: 0;
	}
}
