/*
 * Always clip sideways spill at the Elementor widget wrapper — not on
 * .swiper / .iddd-ps__stage (that kills 3D peek / swipe). Forcing
 * overflow:visible on the column/container let coverflow, creative,
 * scaleX-mirrored cards, and meta-detached slides expand document
 * scrollWidth; in the Elementor editor that reads as the page slowly
 * sliding out to the right while scrolling vertically.
 *
 * Do NOT set overflow:visible on .e-con / .elementor-column for this
 * widget — that undoes containment and reopens the editor drift.
 */
.elementor-widget-iddd-product-stack,
.elementor-widget-iddd-product-stack > .elementor-widget-container {
	overflow-x: hidden;
	overflow-y: visible;
	overflow-x: clip;
	max-width: 100%;
	box-sizing: border-box;
}

/*
 * Boxed section / boxed container: keep a tiny inset + GPU layer so
 * coverflow/perspective neighbors stay inside the boxed max-width.
 */
.elementor-section-boxed .elementor-widget-iddd-product-stack,
.elementor-section-boxed .elementor-widget-wrap > .elementor-widget-iddd-product-stack,
.e-con.e-con-boxed .elementor-widget-iddd-product-stack,
.e-con.e-con-boxed > .e-con-inner > .elementor-widget-iddd-product-stack {
	padding-inline: 8px;
	transform: translateZ(0);
}

.iddd-ps {
	--iddd-ps-w: 260px;
	--iddd-ps-h: 380px;
	--iddd-ps-radius: 18px;
	--iddd-ps-card-radius: var(--iddd-ps-radius);
	--iddd-ps-media-radius: 0px;
	--iddd-ps-media-fit: cover;
	--iddd-ps-media-pos: center center;
	--iddd-ps-ratio: auto;
	--iddd-ps-ratio-w: 3;
	--iddd-ps-ratio-h: 4;
	--iddd-ps-nav-size: 44px;
	--iddd-ps-nav-gap: 12px;
	--iddd-ps-dot-gap: 8px;
	--iddd-ps-dot-color: #111;
	--iddd-ps-pag-offset: 16px;
	--iddd-ps-pag-order: 2;
	--iddd-ps-pag-margin-before: var(--iddd-ps-pag-offset);
	--iddd-ps-pag-margin-after: 0px;
	--iddd-ps-pag-ms: auto;
	--iddd-ps-pag-me: auto;
	--iddd-ps-meta-overlay: rgba(12, 12, 12, 0.78);
	--iddd-ps-meta-bg: rgba(255, 255, 255, 0.45);
	--iddd-ps-meta-blur: 12px;
	--iddd-ps-teaser-bg: #eceae6;
	--iddd-ps-teaser-overlay: rgba(12, 12, 12, 0.75);
	--iddd-ps-badge-offset: 12px;
	--iddd-ps-card-pad-top: 0px;
	--iddd-ps-card-pad-end: 0px;
	--iddd-ps-card-pad-bottom: 0px;
	--iddd-ps-card-pad-start: 0px;
	--iddd-ps-meta-pad-bottom: 14px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	isolation: isolate;
	padding: 12px 40px 8px;
}

/* پیش‌فرض و کاور = پر کردن باکس رسانه (رفتار اصلی Skiper). prefix_class روی wrapper ویجت است. */
.iddd-ps--media-fit-default,
.iddd-ps--media-fit-cover,
.elementor-widget-iddd-product-stack.iddd-ps--media-fit-default .iddd-ps,
.elementor-widget-iddd-product-stack.iddd-ps--media-fit-cover .iddd-ps {
	--iddd-ps-media-fit: cover;
}

.iddd-ps--media-fit-contain,
.elementor-widget-iddd-product-stack.iddd-ps--media-fit-contain .iddd-ps {
	--iddd-ps-media-fit: contain;
}

.iddd-ps--media-fit-fill,
.elementor-widget-iddd-product-stack.iddd-ps--media-fit-fill .iddd-ps {
	--iddd-ps-media-fit: fill;
}

.iddd-ps--media-fit-none,
.elementor-widget-iddd-product-stack.iddd-ps--media-fit-none .iddd-ps {
	--iddd-ps-media-fit: none;
}

.iddd-ps--media-fit-scale-down,
.elementor-widget-iddd-product-stack.iddd-ps--media-fit-scale-down .iddd-ps {
	--iddd-ps-media-fit: scale-down;
}

.iddd-ps__stage {
	display: flex;
	justify-content: center;
	width: 100%;
}

/* ——— قالب cards (Skiper 48): موتور LTR + آینه بصری ——— */
.iddd-ps--cards .iddd-ps__stage {
	direction: ltr;
	unicode-bidi: isolate;
}

.iddd-ps--cards .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--cards .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--cards .iddd-ps__swiper.swiper {
	width: var(--iddd-ps-w);
	height: var(--iddd-ps-h);
	overflow: visible;
	margin-inline: auto;
	padding: 0;
	list-style: none;
	direction: ltr !important;
}

/*
 * آینه فقط وقتی موتور سوایپر LTR است (کلاس را JS برای قالب cards می‌گذارد).
 * اگر قالب فرانت direction:rtl روی .swiper بگذارد و آینه هم باشد، جهت سوایپ برعکس ادیتور می‌شود.
 */
.iddd-ps--cards.iddd-ps--mirror .iddd-ps__swiper {
	transform: scaleX(-1);
}

.iddd-ps--cards.iddd-ps--mirror .iddd-ps-card,
.iddd-ps--cards.iddd-ps--mirror .iddd-ps-unit {
	transform: scaleX(-1);
}

.iddd-ps--cards.iddd-ps--mirror .iddd-ps-unit .iddd-ps-card {
	transform: none;
}

.iddd-ps--cards .iddd-ps__swiper .swiper-slide {
	width: 100%;
	height: 100%;
}

/* ——— قالب creative (Skiper 50): چرخش سه‌بعدی prev/next ——— */
.iddd-ps--creative {
	--iddd-ps-creative-perspective: 1200px;
	padding-inline: 80px;
	overflow: visible;
	perspective: var(--iddd-ps-creative-perspective);
	-webkit-perspective: var(--iddd-ps-creative-perspective);
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.iddd-ps--creative .iddd-ps__stage {
	overflow: visible;
	perspective: var(--iddd-ps-creative-perspective);
	-webkit-perspective: var(--iddd-ps-creative-perspective);
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.iddd-ps--creative .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--creative .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--creative .iddd-ps__swiper.swiper {
	width: var(--iddd-ps-w);
	height: var(--iddd-ps-h);
	overflow: visible !important;
	margin-inline: auto;
	padding: 0;
	list-style: none;
	perspective: var(--iddd-ps-creative-perspective);
	-webkit-perspective: var(--iddd-ps-creative-perspective);
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.iddd-ps--creative[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--creative[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--creative[dir="ltr"] .iddd-ps__swiper.swiper {
	direction: ltr !important;
}

.iddd-ps--creative[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--creative[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--creative[dir="rtl"] .iddd-ps__swiper.swiper {
	direction: rtl !important;
}

.iddd-ps--creative .swiper-wrapper,
.iddd-ps--creative .iddd-ps__swiper .swiper-slide {
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.iddd-ps--creative .iddd-ps__swiper .swiper-slide {
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* ——— قالب creative2 (Skiper 51): کارت عمقی — prev در Z، next از محور X ——— */
.iddd-ps--creative2 {
	padding-inline: 80px;
	overflow: visible;
	perspective: 1200px;
}

.iddd-ps--creative2 .iddd-ps__stage {
	overflow: visible;
	perspective: 1200px;
}

.iddd-ps--creative2 .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--creative2 .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--creative2 .iddd-ps__swiper.swiper {
	width: var(--iddd-ps-w);
	height: var(--iddd-ps-h);
	overflow: visible;
	margin-inline: auto;
	padding: 0;
	list-style: none;
	perspective: 1200px;
}

.iddd-ps--creative2[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--creative2[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--creative2[dir="ltr"] .iddd-ps__swiper.swiper {
	direction: ltr !important;
}

.iddd-ps--creative2[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--creative2[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--creative2[dir="rtl"] .iddd-ps__swiper.swiper {
	direction: rtl !important;
}

.iddd-ps--creative2 .swiper-wrapper {
	transform-style: preserve-3d;
}

.iddd-ps--creative2 .iddd-ps__swiper .swiper-slide {
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
}

/* ——— قالب coverflow (Skiper 49): پرسپکتیو معکوس، همسایه‌ها دیده می‌شوند ——— */
.iddd-ps--coverflow {
	--iddd-ps-coverflow-gap: 0px;
	--iddd-ps-coverflow-pad-top: 28px;
	padding-block: var(--iddd-ps-coverflow-pad-top) 16px;
	padding-inline: 24px;
	overflow: visible;
}

.iddd-ps--coverflow .iddd-ps__stage {
	width: 100%;
	overflow: visible;
	isolation: isolate;
}

.iddd-ps--coverflow.iddd-ps--pag {
	padding-bottom: 28px;
}

.iddd-ps--coverflow .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--coverflow .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--coverflow .iddd-ps__swiper.swiper {
	width: 100%;
	height: var(--iddd-ps-h);
	overflow: visible;
	margin-inline: auto;
	padding: 0;
	list-style: none;
}

.iddd-ps--coverflow[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--coverflow[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--coverflow[dir="ltr"] .iddd-ps__swiper.swiper {
	direction: ltr !important;
}

.iddd-ps--coverflow[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--coverflow[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--coverflow[dir="rtl"] .iddd-ps__swiper.swiper {
	direction: rtl !important;
}

.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide {
	width: var(--iddd-ps-w);
	height: var(--iddd-ps-h);
	/* گپ فقط از Swiper spaceBetween؛ margin اسلاید مرکز را به‌هم می‌زند */
	margin-inline: 0;
}

.iddd-ps[dir="rtl"] .iddd-ps__nav svg {
	transform: scaleX(-1);
}

.iddd-ps--pag .iddd-ps__swiper {
	margin-bottom: 0;
}

.iddd-ps__swiper .swiper-slide {
	border-radius: var(--iddd-ps-card-radius);
	overflow: hidden;
	background: transparent;
}

/*
 * Coverflow: clip the slide to the card radius. Swiper coverflow
 * slideShadows inject rectangular .swiper-slide-shadow-* overlays that
 * do not inherit border-radius; overflow:visible let them (and the
 * slide’s gray fill) show as a sharp plane while swiping.
 */
.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide {
	overflow: hidden;
	border-radius: var(--iddd-ps-card-radius);
	background: transparent;
	background-clip: padding-box;
	isolation: isolate;
}

.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide .swiper-slide-shadow,
.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide .swiper-slide-shadow-left,
.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide .swiper-slide-shadow-right,
.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide [class*="swiper-slide-shadow"] {
	border-radius: inherit;
	overflow: hidden;
	background-clip: padding-box;
	pointer-events: none;
}

.iddd-ps--coverflow .iddd-ps-card {
	overflow: hidden;
	border-radius: inherit;
}

/* ——— قالب perspective (Skiper 47): coverflow بدون چرخش، عمق بیشتر ——— */
.iddd-ps--perspective {
	padding-inline: 24px;
	overflow: visible;
	perspective: 1400px;
}

.iddd-ps--perspective .iddd-ps__stage {
	width: 100%;
	overflow: visible;
	perspective: 1400px;
}

.iddd-ps--perspective.iddd-ps--pag {
	padding-bottom: 28px;
}

.iddd-ps--perspective .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--perspective .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--perspective .iddd-ps__swiper.swiper {
	width: 100%;
	height: var(--iddd-ps-h);
	overflow: visible;
	margin-inline: auto;
	padding: 0;
	list-style: none;
	perspective: 1400px;
}

.iddd-ps--perspective[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--perspective[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--perspective[dir="ltr"] .iddd-ps__swiper.swiper {
	direction: ltr !important;
}

.iddd-ps--perspective[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--perspective[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--perspective[dir="rtl"] .iddd-ps__swiper.swiper {
	direction: rtl !important;
}

.iddd-ps--perspective .swiper-wrapper {
	transform-style: preserve-3d;
}

.iddd-ps--perspective .iddd-ps__swiper .swiper-slide {
	width: var(--iddd-ps-w);
	height: var(--iddd-ps-h);
	margin-inline: 0;
	overflow: hidden;
	border-radius: var(--iddd-ps-card-radius);
	background: transparent;
}

/* ——— قالب simple: کاروسل معمولی، افکت slide، بدون پرسپکتیو سه‌بعدی ——— */
.iddd-ps--simple {
	overflow: hidden;
	width: 100%;
	/* پشتهٔ عمومی ۴۰px پدینگ افقی دارد؛ افست صفر نباید روی فرانت فاصله بسازد. */
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.elementor-widget-iddd-product-stack .iddd-ps.iddd-ps--simple {
	padding-left: 0;
	padding-right: 0;
}

.iddd-ps--simple .iddd-ps__stage {
	width: 100%;
	overflow: hidden;
}

.iddd-ps--simple .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--simple .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--simple .iddd-ps__swiper.swiper {
	width: 100%;
	height: var(--iddd-ps-h);
	overflow: hidden;
	margin-inline: auto;
	box-sizing: border-box;
	/* افست فیزیکی: راست/چپ صفحه، مستقل از جهت سوایپ */
	padding-top: 0;
	padding-bottom: 0;
	padding-left: var(--iddd-ps-simple-off-left, 0px);
	padding-right: var(--iddd-ps-simple-off-right, 0px);
	list-style: none;
}

.iddd-ps--simple[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--simple[dir="ltr"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--simple[dir="ltr"] .iddd-ps__swiper.swiper {
	direction: ltr !important;
}

.iddd-ps--simple[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--simple[dir="rtl"] .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--simple[dir="rtl"] .iddd-ps__swiper.swiper {
	direction: rtl !important;
}

.iddd-ps--simple .iddd-ps__swiper .swiper-slide {
	width: var(--iddd-ps-w);
	max-width: none;
	height: var(--iddd-ps-h);
	box-sizing: border-box;
	/*
	 * عرض اسلاید = عرض کارت ذخیره‌شده (--iddd-ps-w)، همان ادیتور.
	 * گپ فقط spaceBetween است؛ از عرض کارت کم نمی‌شود.
	 * تعداد زوج (۲، ۳، …) را JS به پهنای ردیف تقسیم می‌کند، یک‌بار.
	 */
	margin-inline: 0;
}

.elementor-section-boxed .elementor-widget-iddd-product-stack:has(.iddd-ps--simple),
.elementor-section-boxed .elementor-widget-wrap > .elementor-widget-iddd-product-stack:has(.iddd-ps--simple),
.e-con.e-con-boxed .elementor-widget-iddd-product-stack:has(.iddd-ps--simple),
.e-con.e-con-boxed > .e-con-inner > .elementor-widget-iddd-product-stack:has(.iddd-ps--simple) {
	padding-inline: 0;
}

.iddd-ps-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: var(--iddd-ps-card-pad-top, 0px) var(--iddd-ps-card-pad-end, 0px) 0 var(--iddd-ps-card-pad-start, 0px);
	overflow: hidden;
	border-radius: var(--iddd-ps-card-radius);
	background-color: #eceae6;
	color: inherit;
	text-decoration: none;
	outline: none;
	unicode-bidi: isolate;
}

.iddd-ps-card:focus-visible {
	box-shadow: 0 0 0 3px #111 inset;
}

/*
 * Media fills the card CONTENT box only. height:100% resolved against the
 * card’s specified height and painted into padding; overflow:hidden on the
 * card/slide then clipped that frame — especially padding-bottom.
 * flex: 1 1 0% + stretch keeps object-fit cover inside the inset.
 */
.iddd-ps-card__media {
	position: relative;
	display: block;
	flex: 1 1 0%;
	align-self: stretch;
	width: 100%;
	height: auto;
	min-height: 0;
	overflow: hidden;
	border-radius: var(--iddd-ps-media-radius);
	box-sizing: border-box;
	isolation: isolate;
	background: transparent;
}

/*
 * باکس رسانه پنجرهٔ برش است (ارتفاع کارت یا aspect-ratio).
 * اگر img فقط height:auto باشد، object-fit:cover با contain یکی دیده می‌شود.
 * specificity بالاتر از .woocommerce img { height: auto }.
 */
.iddd-ps-card__media > img,
.iddd-ps-card__media > video,
.iddd-ps-card__media .iddd-ps-card__img,
.iddd-ps-card__media .iddd-ps-card__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: var(--iddd-ps-media-fit, cover);
	-o-object-fit: var(--iddd-ps-media-fit, cover);
	object-position: var(--iddd-ps-media-pos, center center);
	pointer-events: none;
}

.iddd-ps-card__img--empty {
	background: rgba(0, 0, 0, 0.06);
}

.iddd-ps-card__media-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	border-radius: inherit;
	pointer-events: none;
	background: none;
	transition: opacity 0.25s ease, background-color 0.25s ease;
}

.iddd-ps-card__video,
.iddd-ps-card__embed {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	pointer-events: none;
}

.iddd-ps-card__embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

.iddd-ps-card__embed--youtube iframe,
.iddd-ps-card__embed--vimeo iframe {
	transform: scale(1.12);
	transform-origin: center center;
}

/*
 * نسبت آماده روی باکس تصویر (رسانه)؛ پدینگ کارت بیرون از نسبت است.
 * کلاس prefix المنتور روی wrapper ویجت است؛ iddd-ps--ratio از رندر PHP می‌آید.
 */
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps,
.iddd-ps--ratio {
	--iddd-ps-h: calc(var(--iddd-ps-w) * var(--iddd-ps-ratio-h) / var(--iddd-ps-ratio-w));
}

.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps-card,
.iddd-ps--ratio .iddd-ps-card {
	height: auto;
}

.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps-card__media,
.iddd-ps--ratio .iddd-ps-card__media {
	flex: 0 0 auto;
	height: auto;
	aspect-ratio: var(--iddd-ps-ratio);
}

.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--cards .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--cards .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--cards .iddd-ps__swiper.swiper,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--creative .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--creative .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--creative .iddd-ps__swiper.swiper,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--creative2 .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--creative2 .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--creative2 .iddd-ps__swiper.swiper {
	height: auto;
	aspect-ratio: unset;
}

.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--coverflow .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--coverflow .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--coverflow .iddd-ps__swiper.swiper,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--perspective .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--perspective .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--perspective .iddd-ps__swiper.swiper,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--simple .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--simple .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--simple .iddd-ps__swiper.swiper {
	/* Ratio is on the media; top/side card padding sits outside and must stay visible.
	 * Overlay bottom padding lives inside title/price, so do not grow a hollow strip. */
	height: auto;
	min-height: calc(var(--iddd-ps-h) + var(--iddd-ps-card-pad-top, 0px));
	aspect-ratio: unset;
}

.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--coverflow .iddd-ps__swiper .swiper-slide,
.iddd-ps--ratio.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--perspective .iddd-ps__swiper .swiper-slide,
.iddd-ps--ratio.iddd-ps--perspective .iddd-ps__swiper .swiper-slide,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--simple .iddd-ps__swiper .swiper-slide,
.iddd-ps--ratio.iddd-ps--simple .iddd-ps__swiper .swiper-slide {
	height: auto;
	aspect-ratio: unset;
}

.iddd-ps-card__badge {
	position: absolute;
	top: var(--iddd-ps-badge-offset, 12px);
	inset-inline-start: var(--iddd-ps-badge-offset, 12px);
	inset-inline-end: auto;
	bottom: auto;
	z-index: 3;
	box-sizing: border-box;
	padding: 4px 10px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
	pointer-events: none;
}

/* چهار گوشهٔ تصویر — logical (RTL: start = راست) */
.iddd-ps-badge-pos--top-start .iddd-ps-card__badge {
	top: var(--iddd-ps-badge-offset, 12px);
	inset-inline-start: var(--iddd-ps-badge-offset, 12px);
	inset-inline-end: auto;
	bottom: auto;
}

.iddd-ps-badge-pos--top-end .iddd-ps-card__badge {
	top: var(--iddd-ps-badge-offset, 12px);
	inset-inline-end: var(--iddd-ps-badge-offset, 12px);
	inset-inline-start: auto;
	bottom: auto;
}

.iddd-ps-badge-pos--bottom-start .iddd-ps-card__badge {
	top: auto;
	bottom: var(--iddd-ps-badge-offset, 12px);
	inset-inline-start: var(--iddd-ps-badge-offset, 12px);
	inset-inline-end: auto;
}

.iddd-ps-badge-pos--bottom-end .iddd-ps-card__badge {
	top: auto;
	bottom: var(--iddd-ps-badge-offset, 12px);
	inset-inline-end: var(--iddd-ps-badge-offset, 12px);
	inset-inline-start: auto;
}

/*
 * نشان‌های Rey روی تصویر کارت (همان .rey-thPos حلقه فروشگاه).
 * pointer-events: none تا سوایپ EffectCards نشکند؛ z-index بالای تصویر.
 */
.iddd-ps .iddd-ps-card__rey-badges {
	--woocomerce-thpos-distance: 10px;
	--thpos-distance: var(--woocomerce-thpos-distance);
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.iddd-ps .iddd-ps-card:has(.iddd-ps-card__meta) .iddd-ps-card__rey-badges {
	bottom: 4.75em;
}

.iddd-ps .iddd-ps-card__rey-badges .rey-thPos {
	position: absolute;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: calc(var(--woocomerce-thpos-distance) / 3);
	max-width: var(--thpos-max-width, 70%);
	z-index: 3;
	pointer-events: none;
}

.iddd-ps .iddd-ps-card__rey-badges .rey-thPos:is(.rey-thPos--top-left, .rey-thPos--top-right) {
	top: var(--thpos-distance);
}

.iddd-ps .iddd-ps-card__rey-badges .rey-thPos:is(.rey-thPos--bottom-left, .rey-thPos--bottom-right, .rey-thPos--bottom-center) {
	bottom: var(--thpos-distance);
}

.iddd-ps .iddd-ps-card__rey-badges .rey-thPos:is(.rey-thPos--top-left, .rey-thPos--bottom-left) {
	left: var(--thpos-distance);
}

.iddd-ps .iddd-ps-card__rey-badges .rey-thPos:is(.rey-thPos--top-right, .rey-thPos--bottom-right) {
	right: var(--thpos-distance);
	justify-content: flex-end;
}

.iddd-ps .iddd-ps-card__rey-badges .rey-thPos.rey-thPos--bottom-center {
	--thpos-max-width: 100%;
	left: var(--thpos-distance);
	right: var(--thpos-distance);
	justify-content: center;
}

.iddd-ps .iddd-ps-card__rey-badges .rey-itemBadge {
	line-height: 1;
	color: var(--item-badge-color, #101010);
	background: var(--item-badge-bg, HSL(var(--neutral-1, 0 0% 96%)));
	font-size: 0.625rem;
	padding: 0.45em 0.6em;
	font-weight: 700;
	z-index: 3;
	display: var(--item-badge-d, inline-block);
	border-style: solid;
	border-width: 0;
}

.iddd-ps .iddd-ps-card__rey-badges .rey-discount,
.iddd-ps .iddd-ps-card__rey-badges span.onsale {
	display: inline-block;
	padding: 0.45em 0.6em;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--woocommerce-discount-color, #111);
}

.iddd-ps .iddd-ps-card__rey-badges .rey-stock-badge[data-variation-id]:not(.--active) {
	display: none;
}

.iddd-ps-card__meta {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 4px;
	box-sizing: border-box;
	padding: 28px 14px 14px;
	background-color: transparent;
	background-image: linear-gradient(180deg, transparent 0%, var(--iddd-ps-meta-overlay, rgba(12, 12, 12, 0.78)) 72%);
	color: #fff;
	text-align: start;
	pointer-events: none;
	unicode-bidi: isolate;
}

.iddd-ps-card__title,
.iddd-ps-card__price {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}

/* گرادیان سفارشی Group_Control روی ::before؛ بدون آن همان گرادیان ساده دیده می‌شود. */
.iddd-ps--meta-overlay-gradient .iddd-ps-card__meta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.iddd-ps--meta-overlay-glass .iddd-ps-card__meta,
.iddd-ps--meta-overlay-solid .iddd-ps-card__meta {
	padding: 12px 14px 14px;
}

.iddd-ps--meta-overlay-glass .iddd-ps-card__meta,
.iddd-ps--meta-below-glass .iddd-ps-card__meta {
	background-color: var(--iddd-ps-meta-bg, rgba(255, 255, 255, 0.45));
	background-image: none;
	-webkit-backdrop-filter: blur(var(--iddd-ps-meta-blur, 12px)) saturate(1.2);
	backdrop-filter: blur(var(--iddd-ps-meta-blur, 12px)) saturate(1.2);
}

.iddd-ps--meta-overlay-solid .iddd-ps-card__meta,
.iddd-ps--meta-below-solid .iddd-ps-card__meta {
	background-color: var(--iddd-ps-meta-bg, #ffffff);
	background-image: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/*
 * جدا از تصویر: عنوان/قیمت زیر رسانه (نه overlay).
 * نسبت/ارتفاع فقط روی media می‌ماند تا تصویر له نشود؛ ارتفاع کارت رشد می‌کند.
 */
.iddd-ps--meta-below .iddd-ps-card {
	height: auto;
}

.iddd-ps--meta-below .iddd-ps-card__media {
	flex: 0 0 auto;
	height: var(--iddd-ps-h);
	min-height: 0;
}

.iddd-ps--meta-below.iddd-ps--ratio .iddd-ps-card__media,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below .iddd-ps-card__media {
	height: auto;
	aspect-ratio: var(--iddd-ps-ratio);
}

.iddd-ps--meta-below .iddd-ps-card__meta {
	position: relative;
	inset: auto;
	flex: 0 0 auto;
	width: 100%;
	padding: 12px 14px;
}

/*
 * In-card title/price (overlay or below-media): bottom card padding lives
 * inside the meta stack so text sits on it — not a hollow card-bg band under it.
 */
.iddd-ps:not(.iddd-ps--meta-detached) .iddd-ps-card__meta {
	padding-bottom: calc(var(--iddd-ps-meta-pad-bottom, 14px) + var(--iddd-ps-card-pad-bottom, 0px));
}

.iddd-ps--meta-below .iddd-ps-card:has(.iddd-ps-card__meta) .iddd-ps-card__rey-badges {
	bottom: 0;
}

.iddd-ps--meta-below.iddd-ps--cards .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--meta-below.iddd-ps--cards .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--meta-below.iddd-ps--cards .iddd-ps__swiper.swiper,
.iddd-ps--meta-below.iddd-ps--creative .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--meta-below.iddd-ps--creative .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--meta-below.iddd-ps--creative .iddd-ps__swiper.swiper,
.iddd-ps--meta-below.iddd-ps--creative2 .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--meta-below.iddd-ps--creative2 .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--meta-below.iddd-ps--creative2 .iddd-ps__swiper.swiper,
.iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper.swiper,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper.swiper,
.iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper.swiper,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper.swiper,
.iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper.swiper,
html[dir="rtl"] .iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper.swiper,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper.swiper,
html[dir="rtl"] .elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper.swiper,
.iddd-ps--ratio.iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper.swiper {
	height: auto;
	aspect-ratio: unset;
}

.iddd-ps--meta-below.iddd-ps--cards .iddd-ps__swiper .swiper-slide,
.iddd-ps--meta-below.iddd-ps--creative .iddd-ps__swiper .swiper-slide,
.iddd-ps--meta-below.iddd-ps--creative2 .iddd-ps__swiper .swiper-slide,
.iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide,
.iddd-ps--ratio.iddd-ps--meta-below.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide,
.iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper .swiper-slide,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper .swiper-slide,
.iddd-ps--ratio.iddd-ps--meta-below.iddd-ps--perspective .iddd-ps__swiper .swiper-slide,
.iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper .swiper-slide,
.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper .swiper-slide,
.iddd-ps--ratio.iddd-ps--meta-below.iddd-ps--simple .iddd-ps__swiper .swiper-slide {
	height: auto;
	aspect-ratio: unset;
}

/*
 * جدا از کارت: عنوان/قیمت sibling بیرون از کروم کارت
 * (شعاع، overflow، پس‌زمینه). لینک روی .iddd-ps-unit است.
 */
.iddd-ps--meta-detached .iddd-ps-unit {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 0;
	color: inherit;
	text-decoration: none;
	outline: none;
	unicode-bidi: isolate;
}

.iddd-ps--meta-detached .iddd-ps-unit:focus-visible {
	box-shadow: 0 0 0 3px #111 inset;
}

.iddd-ps--meta-detached .iddd-ps-card {
	overflow: hidden;
	flex: 0 0 auto;
	width: 100%;
	height: auto;
	padding: var(--iddd-ps-card-pad-top, 0px) var(--iddd-ps-card-pad-end, 0px) var(--iddd-ps-card-pad-bottom, 0px) var(--iddd-ps-card-pad-start, 0px);
	border-radius: var(--iddd-ps-card-radius);
}

.iddd-ps--meta-detached.iddd-ps--coverflow .iddd-ps-card,
.iddd-ps--meta-detached.iddd-ps--perspective .iddd-ps-card {
	overflow: hidden;
	border-radius: var(--iddd-ps-card-radius);
}

.iddd-ps--meta-detached .iddd-ps-card__media {
	overflow: hidden;
}

.iddd-ps--meta-detached .iddd-ps__swiper .swiper-slide,
.iddd-ps--meta-detached.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide,
.iddd-ps--meta-detached.iddd-ps--perspective .iddd-ps__swiper .swiper-slide {
	overflow: visible;
	border-radius: 0;
	background: transparent;
}

.iddd-ps--meta-detached.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide .swiper-slide-shadow,
.iddd-ps--meta-detached.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide .swiper-slide-shadow-left,
.iddd-ps--meta-detached.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide .swiper-slide-shadow-right,
.iddd-ps--meta-detached.iddd-ps--coverflow .iddd-ps__swiper .swiper-slide [class*="swiper-slide-shadow"] {
	border-radius: var(--iddd-ps-card-radius);
	inset-block-end: auto;
	height: calc(var(--iddd-ps-h) + var(--iddd-ps-card-pad-top, 0px) + var(--iddd-ps-card-pad-bottom, 0px));
}

.iddd-ps--meta-detached .iddd-ps-card__meta {
	position: relative;
	inset: auto;
	z-index: 2;
	flex: 0 0 auto;
	align-self: stretch;
	width: 100%;
	margin-top: 10px;
	padding: 12px 14px;
	background-color: #ffffff;
	background-image: none;
	border-radius: 12px;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color: #111111;
	pointer-events: none;
}

.iddd-ps-card__title {
	display: -webkit-box;
	width: 100%;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}

.iddd-ps-card__price,
.iddd-ps-card__price * {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.88);
}

.iddd-ps-card__price {
	display: block;
	width: 100%;
	unicode-bidi: isolate;
}

.iddd-ps-card__price del,
.iddd-ps-card__price ins {
	display: inline;
	background: none;
}

.iddd-ps-card__price ins {
	text-decoration: none;
}

.iddd-ps-card__price del {
	opacity: 0.7;
	margin-inline-end: 6px;
	text-decoration: line-through;
}

/*
 * Dots live outside .swiper (sibling of stage) for every template —
 * coverflow/perspective 3D must not paint over or stack bullets on Z.
 * Placement/gap/offset come from --iddd-ps-pag-* on .iddd-ps.
 */
.iddd-ps__pag.swiper-pagination {
	position: relative;
	bottom: auto !important;
	left: auto;
	right: auto;
	top: auto;
	order: var(--iddd-ps-pag-order);
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: var(--iddd-ps-dot-gap);
	width: max-content;
	max-width: 100%;
	z-index: 20;
	margin-block-start: var(--iddd-ps-pag-margin-before);
	margin-block-end: var(--iddd-ps-pag-margin-after);
	margin-inline-start: var(--iddd-ps-pag-ms);
	margin-inline-end: var(--iddd-ps-pag-me);
	padding: 0;
	transform: none;
	transform-style: flat;
	perspective: none;
	writing-mode: horizontal-tb;
	isolation: isolate;
	pointer-events: auto;
}

.iddd-ps__pag .swiper-pagination-bullet {
	display: inline-block;
	flex: 0 0 auto;
	float: none;
	width: 8px;
	height: 8px;
	margin: 0 !important;
	opacity: 0.28;
	background: #111;
	writing-mode: horizontal-tb;
	pointer-events: auto;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.iddd-ps__pag .swiper-pagination-bullet-active {
	opacity: 1;
	transform: scale(1.15);
}

.iddd-ps--coverflow.iddd-ps--pag .iddd-ps__swiper,
.iddd-ps--perspective.iddd-ps--pag .iddd-ps__swiper {
	margin-bottom: 0;
}

/*
 * سبک دات کپسول — همان توکن‌های PDP (.iddd-pdp-dots--capsule / --capsule-sm).
 * nike → .iddd-ps--pag-capsule ؛ capsule_sm → + .iddd-ps--pag-capsule-sm
 */
.iddd-ps--pag-capsule {
	--iddd-cap-dot: 6px;
	--iddd-cap-dot-active-w: 18px;
	--iddd-ps-dot-gap: 6px;
	--iddd-cap-pad-x: 8px;
	--iddd-cap-pad-y: 6px;
	--iddd-cap-pad: var(--iddd-cap-pad-y) var(--iddd-cap-pad-x);
}

.iddd-ps--pag-capsule-sm {
	--iddd-cap-dot: 4px;
	--iddd-cap-dot-active-w: 12px;
	--iddd-ps-dot-gap: 4px;
	--iddd-cap-pad-x: 6px;
	--iddd-cap-pad-y: 4px;
	--iddd-cap-pad: var(--iddd-cap-pad-y) var(--iddd-cap-pad-x);
}

.iddd-ps--pag-capsule .iddd-ps__pag.swiper-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: var(--iddd-ps-dot-gap);
	width: max-content;
	max-width: calc(100% - 16px);
	padding: var(--iddd-cap-pad);
	overflow: hidden;
	font-size: 0;
	border-radius: 999px;
	background: #e8e8e8;
	box-shadow: none;
	transform: none;
}

.iddd-ps--pag-capsule .iddd-ps__pag .swiper-pagination-bullet {
	flex: 0 0 auto;
	width: var(--iddd-cap-dot);
	height: var(--iddd-cap-dot);
	margin: 0 !important;
	border-radius: 50%;
	opacity: 0.35;
	transform: none;
	transition:
		width 0.32s cubic-bezier(0.32, 0.72, 0, 1),
		height 0.32s cubic-bezier(0.32, 0.72, 0, 1),
		border-radius 0.32s cubic-bezier(0.32, 0.72, 0, 1),
		opacity 0.2s ease,
		background-color 0.2s ease;
}

.iddd-ps--pag-capsule .iddd-ps__pag .swiper-pagination-bullet-active,
.iddd-ps--coverflow.iddd-ps--pag-capsule .iddd-ps__pag .swiper-pagination-bullet-active,
.iddd-ps--perspective.iddd-ps--pag-capsule .iddd-ps__pag .swiper-pagination-bullet-active {
	width: var(--iddd-cap-dot-active-w);
	height: var(--iddd-cap-dot);
	border-radius: 999px;
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.iddd-ps--pag-capsule .iddd-ps__pag .swiper-pagination-bullet {
		transition: none;
	}
}

/*
 * نقطه و دایره — Rey slider-components dots_style=circles-ext.
 * نقطهٔ ۶px؛ فقط اسلاید فعال حلقهٔ ۱px دورش را نشان می‌دهد.
 */
.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet {
	position: relative;
	width: 24px;
	height: 24px;
	margin: 0 !important;
	border-radius: 0;
	opacity: 1;
	background: transparent !important;
	color: var(--iddd-ps-dot-color, #111);
	transform: none;
	overflow: visible;
}

.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet::before {
	content: "";
	position: absolute;
	left: calc(50% - 3px);
	top: calc(50% - 3px);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet::after {
	content: "";
	position: absolute;
	left: calc(50% - 12px);
	top: calc(50% - 12px);
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	opacity: 0;
	transform: scale(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet-active,
.iddd-ps--coverflow.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet-active,
.iddd-ps--perspective.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet-active {
	opacity: 1;
	background: transparent !important;
	transform: none;
}

.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet-active::after {
	opacity: 1;
	transform: scale(1);
}

/*
 * خط — Rey slider-components dots_style=bars بدون انیمیشن پرشدن اتوپلی.
 * خط ۲×۴۵؛ غیرفعال ۳۵٪، فعال پررنگ.
 */
.iddd-ps--pag-line .iddd-ps__pag .swiper-pagination-bullet {
	position: relative;
	width: 45px;
	height: 18px;
	margin: 0 !important;
	border-radius: 0;
	opacity: 1;
	background: transparent !important;
	transform: none;
}

.iddd-ps--pag-line .iddd-ps__pag .swiper-pagination-bullet::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% - 1px);
	height: 2px;
	background: var(--iddd-ps-dot-color, #111);
	opacity: 0.35;
	transition: opacity 0.3s ease;
}

.iddd-ps--pag-line .iddd-ps__pag .swiper-pagination-bullet-active,
.iddd-ps--coverflow.iddd-ps--pag-line .iddd-ps__pag .swiper-pagination-bullet-active,
.iddd-ps--perspective.iddd-ps--pag-line .iddd-ps__pag .swiper-pagination-bullet-active {
	opacity: 1;
	background: transparent !important;
	transform: none;
}

.iddd-ps--pag-line .iddd-ps__pag .swiper-pagination-bullet-active::before {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.iddd-ps--pag-ring .iddd-ps__pag .swiper-pagination-bullet::after,
	.iddd-ps--pag-line .iddd-ps__pag .swiper-pagination-bullet::before {
		transition: none;
	}
}

.iddd-ps__nav {
	position: absolute;
	top: calc(var(--iddd-ps-h) / 2);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--iddd-ps-nav-size);
	height: var(--iddd-ps-nav-size);
	margin-top: calc(var(--iddd-ps-nav-size) / -2);
	padding: 0;
	border-style: solid;
	border-width: 0;
	border-color: transparent;
	border-radius: 50%;
	background: #111;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.iddd-ps__nav:hover,
.iddd-ps__nav:focus-visible {
	background: #2a2a2a;
}

.iddd-ps__nav svg {
	display: block;
	width: 18px;
	height: 18px;
}

.iddd-ps__nav--prev {
	inset-inline-start: max(0px, calc(50% - (var(--iddd-ps-w) / 2) - var(--iddd-ps-nav-size) - var(--iddd-ps-nav-gap)));
}

.iddd-ps__nav--next {
	inset-inline-end: max(0px, calc(50% - (var(--iddd-ps-w) / 2) - var(--iddd-ps-nav-size) - var(--iddd-ps-nav-gap)));
}

/*
 * Coverflow stage is full-width; the shared formula parks both arrows
 * beside the center card (middle of the page). Pin them to the viewport sides.
 */
.iddd-ps--coverflow .iddd-ps__nav {
	top: calc(var(--iddd-ps-coverflow-pad-top, 28px) + (var(--iddd-ps-h) / 2));
	z-index: 10;
	pointer-events: auto;
}

.iddd-ps--coverflow .iddd-ps__nav--prev {
	inset-inline-start: var(--iddd-ps-nav-gap, 12px);
	inset-inline-end: auto;
}

.iddd-ps--coverflow .iddd-ps__nav--next {
	inset-inline-end: var(--iddd-ps-nav-gap, 12px);
	inset-inline-start: auto;
}

.iddd-ps--perspective .iddd-ps__nav {
	top: calc(var(--iddd-ps-h) / 2);
	z-index: 10;
	pointer-events: auto;
}

.iddd-ps--perspective .iddd-ps__nav--prev {
	inset-inline-start: var(--iddd-ps-nav-gap, 12px);
	inset-inline-end: auto;
}

.iddd-ps--perspective .iddd-ps__nav--next {
	inset-inline-end: var(--iddd-ps-nav-gap, 12px);
	inset-inline-start: auto;
}

.iddd-ps--simple .iddd-ps__nav--prev {
	inset-inline-start: var(--iddd-ps-nav-gap, 12px);
	inset-inline-end: auto;
}

.iddd-ps--simple .iddd-ps__nav--next {
	inset-inline-end: var(--iddd-ps-nav-gap, 12px);
	inset-inline-start: auto;
}

.iddd-ps--smooth .iddd-ps__swiper .swiper-wrapper {
	transition-timing-function: linear !important;
}

/* While the user hovers or drags, snap with the normal ease instead of the ticker. */
.iddd-ps--smooth.iddd-ps--interacting .iddd-ps__swiper .swiper-wrapper,
.iddd-ps--smooth.iddd-ps--interacting .iddd-ps__swiper .swiper-slide {
	transition-timing-function: ease !important;
}

.iddd-ps-slide--teaser {
	overflow: hidden;
}

.iddd-ps-teaser {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	border-radius: inherit;
	background-color: var(--iddd-ps-teaser-bg, #eceae6);
	color: #111;
	text-decoration: none;
	outline: none;
	unicode-bidi: isolate;
}

.iddd-ps-teaser:focus-visible {
	box-shadow: 0 0 0 3px #111 inset;
}

.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps:not(.iddd-ps--meta-below) .iddd-ps-teaser,
.iddd-ps--ratio:not(.iddd-ps--meta-below) .iddd-ps-teaser {
	height: auto;
	aspect-ratio: var(--iddd-ps-ratio);
}

.iddd-ps--meta-below .iddd-ps-teaser {
	min-height: var(--iddd-ps-h);
}

.iddd-ps-teaser .iddd-ps-card__img,
.iddd-ps-teaser .iddd-ps-card__video,
.iddd-ps-teaser .iddd-ps-card__embed {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	-o-object-fit: cover;
	object-position: center center;
}

.iddd-ps-teaser--text,
.iddd-ps-teaser--button {
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 16px;
	text-align: center;
}

.iddd-ps-teaser__heading {
	display: block;
	width: 100%;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: #111;
}

.iddd-ps-teaser__text {
	display: block;
	width: 100%;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
}

.iddd-ps-teaser__text p {
	margin: 0 0 0.4em;
}

.iddd-ps-teaser__text p:last-child {
	margin-bottom: 0;
}

.iddd-ps-teaser__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 8px 16px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: auto;
}

.iddd-ps-teaser--category .iddd-ps-teaser__title {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 2;
	padding: 28px 14px 14px;
	background-image: linear-gradient(180deg, transparent 0%, var(--iddd-ps-teaser-overlay, rgba(12, 12, 12, 0.75)) 72%);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: start;
}

.iddd-ps-teaser--global {
	background: #fff;
}

.iddd-ps-teaser__gs {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
}

.iddd-ps-teaser__hit {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: block;
	background: transparent;
	text-decoration: none;
	pointer-events: auto;
}

.iddd-ps-teaser--linked.iddd-ps-teaser--text .iddd-ps-teaser__btn,
.iddd-ps-teaser--linked.iddd-ps-teaser--button .iddd-ps-teaser__btn {
	pointer-events: none;
}

.iddd-ps-empty {
	margin: 0;
	padding: 24px 12px;
	text-align: center;
	color: #6b6b6b;
	font-size: 14px;
}

@media (max-width: 767px) {
	.iddd-ps {
		--iddd-ps-w: 220px;
		--iddd-ps-h: 320px;
	}

	.elementor-widget-iddd-product-stack[class*="iddd-ps-ratio--"]:not(.iddd-ps-ratio--auto) .iddd-ps,
	.iddd-ps--ratio {
		--iddd-ps-h: calc(var(--iddd-ps-w) * var(--iddd-ps-ratio-h) / var(--iddd-ps-ratio-w));
	}

	.iddd-ps--creative,
	.iddd-ps--creative2 {
		padding-inline: 36px;
	}

	.iddd-ps--creative {
		--iddd-ps-creative-perspective: 800px;
	}

	.iddd-ps--creative .iddd-ps__stage,
	.iddd-ps--creative .iddd-ps__swiper.swiper,
	html[dir="rtl"] .iddd-ps--creative .iddd-ps__swiper.swiper,
	html[dir="rtl"] .elementor-widget-iddd-product-stack .iddd-ps--creative .iddd-ps__swiper.swiper {
		overflow: visible !important;
		perspective: var(--iddd-ps-creative-perspective);
		-webkit-perspective: var(--iddd-ps-creative-perspective);
		transform-style: preserve-3d;
		-webkit-transform-style: preserve-3d;
	}

	.iddd-ps__nav--prev {
		inset-inline-start: 4px;
		inset-inline-end: auto;
	}

	.iddd-ps__nav--next {
		inset-inline-end: 4px;
		inset-inline-start: auto;
	}
}
