.pcc-widget {
	position: relative;
	direction: rtl;
	font-family: inherit;
}

.pcc-heading {
	display: inline-block;
	background: #c9975b;
	color: #ffffff;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 18px;
}

.pcc-carousel-wrapper {
	position: relative;
}

/* ---------- تراک اصلی (بدون هیچ کتابخونه خارجی) ---------- */
.pcc-track {
	--pcc-spv: 4;
	--pcc-gap: 20px;

	display: flex;
	gap: var(--pcc-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px 4px 14px;
	margin: 0;
	list-style: none;
}

.pcc-track::-webkit-scrollbar {
	display: none;
}

.pcc-track {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pcc-slide {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: calc((100% - (var(--pcc-spv) - 1) * var(--pcc-gap)) / var(--pcc-spv));
}

.pcc-card {
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}

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

.pcc-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* پیش‌فرض: باکس تصویر کاملاً مربعی (۱:۱) */
.pcc-card__image {
	width: 100%;
}

.pcc-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
}

.pcc-card__title {
	margin-top: 12px;
	font-size: 15px;
	font-weight: 500;
	color: #222222;
	line-height: 1.5;
	padding: 0 6px;
}

.pcc-card__price {
	margin-top: 6px;
	font-size: 15px;
	font-weight: 700;
	color: #c9975b;
}

.pcc-card__price del {
	color: #999999;
	font-weight: 400;
	margin-inline-end: 6px;
}

.pcc-card__button {
	display: inline-block;
	margin: 12px auto 4px;
	padding: 8px 16px;
	background: #222222;
	color: #ffffff;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	transition: opacity .2s ease;
	width: fit-content;
}

.pcc-card__button:hover {
	opacity: .85;
	color: #ffffff;
}

/* ---------- پیکان‌های ناوبری ---------- */
.pcc-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	line-height: 34px;
	text-align: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	color: #222222;
	font-size: 22px;
	background: #ffffff;
	user-select: none;
}

.pcc-arrow-prev {
	right: -10px;
}

.pcc-arrow-next {
	left: -10px;
}

/* ---------- نقطه‌های ناوبری ---------- */
.pcc-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 8px;
}

.pcc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dddddd;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.pcc-dot.is-active {
	background: #c9975b;
	transform: scale(1.2);
}

.pcc-notice {
	padding: 14px;
	background: #f5f5f5;
	border-radius: 6px;
	color: #666666;
	text-align: center;
}

/* ---------- دکمه مشاهده همه ---------- */
.pcc-view-all-wrap {
	text-align: center;
	margin-top: 18px;
}

.pcc-view-all {
	display: inline-block;
	padding: 10px 28px;
	border: 1.5px solid #c9975b;
	border-radius: 30px;
	color: #c9975b;
	background: transparent;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pcc-view-all:hover {
	background: #c9975b;
	color: #ffffff;
	border-color: #c9975b;
}

/* ---------- ریسپانسیو ---------- */

@media (max-width: 1024px) {
	.pcc-carousel-wrapper {
		padding: 0 30px;
	}

	.pcc-arrow-prev {
		right: 0;
	}

	.pcc-arrow-next {
		left: 0;
	}
}

@media (max-width: 767px) {
	.pcc-card__title {
		font-size: 13px;
		margin-top: 8px;
	}

	.pcc-card__price {
		font-size: 13px;
	}

	.pcc-card__button {
		font-size: 12px;
		padding: 6px 12px;
		margin: 8px auto 2px;
	}

	.pcc-heading {
		font-size: 14px;
		padding: 6px 14px;
	}

	.pcc-carousel-wrapper {
		padding: 0 26px;
	}

	.pcc-arrow {
		width: 30px;
		height: 30px;
		line-height: 26px;
		font-size: 18px;
	}

	.pcc-arrow-prev {
		right: 0;
	}

	.pcc-arrow-next {
		left: 0;
	}

	.pcc-dot {
		width: 7px;
		height: 7px;
	}
}
