.vio-pbsw-wrapper {
	margin: 24px 0;
	direction: rtl;
	position: relative;
}

.vio-pbsw-carousel {
	position: relative;
}

/* ---------- ویوپورت (برش‌دهنده) و مسیر اسلاید (بدون هیچ کتابخانه خارجی) ---------- */
.vio-pbsw-viewport {
	overflow: hidden;
	width: 100%;
}

.vio-pbsw-track {
	display: flex;
	gap: 16px;
	direction: ltr;
	will-change: transform;
	transition: transform .5s cubic-bezier(.25, .8, .25, 1);
}

.vio-pbsw-slide {
	direction: rtl;
	box-sizing: border-box;
	flex: 0 0 calc((100% - (16px * (var(--vio-cols-mobile) - 1))) / var(--vio-cols-mobile));
}

@media (min-width: 600px) {
	.vio-pbsw-slide {
		flex: 0 0 calc((100% - (16px * (var(--vio-cols-tablet) - 1))) / var(--vio-cols-tablet));
	}
}

@media (min-width: 1024px) {
	.vio-pbsw-slide {
		flex: 0 0 calc((100% - (16px * (var(--vio-cols-desktop) - 1))) / var(--vio-cols-desktop));
	}
}

/* ---------- کارت محصول ---------- */
.vio-pbsw-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 14px;
	text-align: center;
	transition: box-shadow .2s ease, transform .2s ease;
}

.vio-pbsw-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.vio-pbsw-card-thumb {
	display: block;
	margin-bottom: 10px;
	border-radius: 8px;
	overflow: hidden;
	background: #f7f7f7;
}

.vio-pbsw-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.vio-pbsw-card-title {
	font-size: 12.5px;
	line-height: 1.45;
	margin: 0 0 8px;
	min-height: 36px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vio-pbsw-card-title a {
	color: #222;
	text-decoration: none;
}

.vio-pbsw-card-title a:hover {
	color: #b32d2e;
}

.vio-pbsw-card-price {
	font-size: 14px;
	margin-bottom: 12px;
}

.vio-pbsw-card-price del {
	color: #999;
	font-size: 12px;
	margin-inline-end: 6px;
}

.vio-pbsw-card-price ins {
	text-decoration: none;
	color: #b32d2e;
	font-weight: 700;
}

.vio-pbsw-card-cart {
	margin-top: auto;
}

.vio-pbsw-card-cart a.button {
	display: inline-block;
	width: 100%;
	background: #b32d2e;
	color: #fff !important;
	border: none;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease;
	box-sizing: border-box;
}

.vio-pbsw-card-cart a.button:hover {
	background: #8f2323;
}

.vio-pbsw-card-cart a.added::after {
	content: " \2713";
}

/* ---------- دکمه‌های ناوبری ---------- */
.vio-pbsw-nav {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	z-index: 5;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #eee;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #b32d2e;
	font-size: 18px;
	line-height: 1;
	transition: opacity .2s ease, box-shadow .2s ease;
}

.vio-pbsw-nav:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.vio-pbsw-nav-prev {
	inset-inline-end: -6px;
}

.vio-pbsw-nav-next {
	inset-inline-start: -6px;
}

.vio-pbsw-nav.is-disabled {
	opacity: .3;
	pointer-events: none;
}

.vio-pbsw-wrapper.vio-pbsw-no-scroll .vio-pbsw-nav {
	display: none;
}

@media (max-width: 480px) {
	.vio-pbsw-nav {
		display: none;
	}
}
