/* ==========================================================================
   استایلیش - اسلایدر هیرو
   استایل‌های scoped با پیشوند shs- و راست‌چین کامل.
   ========================================================================== */

.shs-root {
	position: relative;
	width: 100%;
	direction: rtl;
}

.shs-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 16 / 9; /* فال‌بک؛ از کنترل المنتور بازنویسی می‌شود. */
	background: #f2f2f3;
}

/* track عمداً LTR است تا محاسبه‌ی transform قطعی و بدون باگ RTL باشد؛
   ترتیب بصری راست‌چین را جاوااسکریپت مدیریت می‌کند. */
.shs-track {
	display: flex;
	flex-direction: row;
	height: 100%;
	direction: ltr;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.shs-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.shs-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.shs-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
	user-select: none;
}

/* قابلیت کشیدن */
.shs-root.shs-can-drag .shs-track {
	cursor: grab;
}

.shs-root.shs-dragging,
.shs-root.shs-dragging .shs-track {
	cursor: grabbing;
	user-select: none;
}

.shs-root.shs-dragging .shs-img {
	pointer-events: none;
}

/* ---------- فلش‌ها ---------- */
.shs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.4);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.shs-arrow:hover {
	background-color: rgba(0, 0, 0, 0.65);
}

.shs-arrow svg {
	width: 55%;
	height: 55%;
}

/* راست‌چین: «قبلی» سمت راست، «بعدی» سمت چپ */
.shs-prev {
	right: 12px;
}

.shs-next {
	left: 12px;
}

.shs-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* ---------- نقطه‌ها ---------- */
.shs-dots {
	display: flex;
	direction: rtl; /* نقطه‌ی اول سمت راست */
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.shs-dots--inside {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 14px;
	z-index: 3;
}

.shs-dots--below {
	margin-top: 10px;
}

.shs-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
}

.shs-dots--below .shs-dot {
	background-color: rgba(0, 0, 0, 0.25);
}

.shs-dot.is-active {
	background-color: #fff;
	transform: scale(1.25);
}

.shs-dots--below .shs-dot.is-active {
	background-color: #111;
}

/* دسترس‌پذیری: حلقه‌ی فوکوس */
.shs-dot:focus-visible,
.shs-arrow:focus-visible,
.shs-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.shs-dots--below .shs-dot:focus-visible {
	outline-color: #111;
}

/* احترام به ترجیح کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
	.shs-track {
		transition: none !important;
	}
}
