/* =========================================================
   اسلایدر اختصاصی دسکتاپ - استایل پایه
   نکته: رنگ‌ها، تایپوگرافی، پدینگ و ... همگی از پنل المنتور
   به صورت داینامیک از طریق selectors تزریق می‌شوند.
   این فایل فقط اسکلت و رفتار پایه (Layout/Transition) را می‌سازد.
========================================================= */

.des-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	direction: rtl;
}

.des-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ---------- حالت افکت اسلاید ---------- */
.des-effect-slide .des-slide-track,
.des-effect-slide .des-slider-track {
	display: flex;
	height: 100%;
	will-change: transform;
}

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

/* ---------- حالت افکت فید ---------- */
.des-effect-fade .des-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 1;
	transition: opacity ease;
}

.des-effect-fade .des-slide.is-active {
	opacity: 1;
	z-index: 2;
}

/* ---------- بک‌گراند اسلاید ---------- */
.des-slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	z-index: 0;
}

.des-slide-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

/* ---------- محتوا ---------- */
.des-slide-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.des-content-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.des-title {
	margin: 0 0 8px 0;
	display: inline-block;
	width: fit-content;
}

.des-title:empty {
	display: none;
}

/* ---------- دکمه‌ها ---------- */
.des-buttons {
	box-sizing: border-box;
	display: flex;
	z-index: 10;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 12px;
	width: 100%;
}

.des-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
	box-sizing: border-box;
}

.des-btn.des-btn-full {
	width: 100%;
	flex: 1 1 100%;
}

.des-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.des-btn-icon svg {
	fill: currentColor;
}

/* ---------- فلش‌های ناوبری ---------- */
.des-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	z-index: 5;
	padding: 0;
	line-height: 1;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.des-arrow svg {
	fill: currentColor;
}

.des-arrow-prev {
	inset-inline-start: 16px;
}

.des-arrow-next {
	inset-inline-end: 16px;
}

.des-slider.des-hide-arrows .des-arrow {
	display: none;
}

/* اگر فقط یک اسلاید وجود داشته باشد فلش‌ها مخفی شوند (در JS هم کنترل می‌شود) */
.des-slider[data-single-slide="1"] .des-arrow {
	display: none;
}

@media (max-width: 767px) {
	.des-content-inner {
		max-width: 100% !important;
	}
}

/* پیش‌فرض‌های ظاهری؛ تنظیمات اختصاصی هر اسلاید روی این مقادیر اولویت دارند. */
.des-title {
	color: #ffffff;
}

.des-buttons {
	justify-content: flex-end;
	gap: 16px;
}

.des-btn-1 {
	color: #ffffff;
	background-color: #111111;
	padding: 14px 28px;
	border-radius: 50px;
}

.des-btn-2 {
	color: #111111;
	background-color: #ffffff;
	padding: 14px 28px;
	border-radius: 50px;
}

.des-btn-1:hover {
	color: #111111;
	background-color: #ffffff;
}

.des-btn-2:hover {
	color: #ffffff;
	background-color: #111111;
}
/* ---------- سوایپ لمسی روان ---------- */
.des-slider.des-swipe-enabled {
	touch-action: pan-y pinch-zoom;
	overscroll-behavior-x: contain;
	cursor: grab;
}

.des-slider.des-swipe-enabled.is-swiping {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}

.des-slider.des-swipe-enabled.is-swiping a,
.des-slider.des-swipe-enabled.is-swiping button {
	pointer-events: none;
}

.des-slider-track {
	will-change: transform;
}
/* این ویجت اختصاصاً برای دسکتاپ است. */
@media (max-width: 767px) {
	.elementor-widget-des-exclusive-slider {
		display: none !important;
	}
}