/**
 * اسلایدر سفارشی گالری کارت فروشگاه — سبک، سوایپ‌محور، فقط موبایل/تبلت.
 */

body.single-product .iddd-shop-card-slide {
	display: none !important;
}

.iddd-shop-card-slide {
	display: none;
}

@media (max-width: 1024px) {
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) li.product .rey-productThumbnail:has(.iddd-shop-card-slide) > a.woocommerce-LoopProduct-link:not(.iddd-shop-card-slide__item),
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) li.product .rey-productThumbnail:has(.iddd-shop-card-slide) > a.woocommerce-loop-product__link:not(.iddd-shop-card-slide__item),
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) li.product .rey-productThumbnail:has(.iddd-shop-card-slide) .rey-productThumbnail__second,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) li.product .rey-productThumbnail:has(.iddd-shop-card-slide) .splide {
		display: none !important;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide {
		display: block;
		position: relative;
		width: 100%;
		overflow: hidden;
		direction: ltr;
		unicode-bidi: isolate;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__ghost-link {
		display: none !important;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__track {
		display: flex;
		flex-direction: row;
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: none;
		scroll-behavior: auto;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		cursor: grab;
		touch-action: pan-y;
		user-select: none;
		-webkit-user-select: none;
		direction: ltr;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide.is-dragging .iddd-shop-card-slide__track {
		cursor: grabbing;
		touch-action: none;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__track::-webkit-scrollbar {
		display: none;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__item {
		flex: 0 0 100%;
		width: 100%;
		display: block;
		color: inherit;
		text-decoration: none;
		box-shadow: none;
		direction: ltr;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__img,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide img {
		display: block;
		width: 100%;
		height: auto;
		margin: 0;
		pointer-events: none;
		user-select: none;
		-webkit-user-drag: none;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerRatio .iddd-shop-card-slide,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerHeight .iddd-shop-card-slide,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerRatio .iddd-shop-card-slide__track,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerHeight .iddd-shop-card-slide__track,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerRatio .iddd-shop-card-slide__item,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerHeight .iddd-shop-card-slide__item {
		height: 100%;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerRatio .iddd-shop-card-slide__img,
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .--customImageContainerHeight .iddd-shop-card-slide__img {
		height: 100%;
		object-fit: contain;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__dots {
		display: flex;
		flex-direction: row;
		align-items: center;
		pointer-events: auto;
		z-index: 2;
		direction: ltr;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__dot {
		display: block;
		padding: 0;
		border: 0;
		appearance: none;
		-webkit-appearance: none;
		cursor: pointer;
		background: transparent;
	}

	/* غیرفعال = نویگیشن پیش‌فرض Rey؛ اسلایدر سوایپ جدا می‌ماند */
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none.--color-invert .iddd-shop-card-slide__dots {
		mix-blend-mode: difference;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots {
		font-size: 20px;
		line-height: 1;
		position: absolute;
		margin: 0;
		padding: 0;
		gap: 0;
		background: none;
		box-shadow: none;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		z-index: 2;
		color: var(--woocommerce-loop-nav-color, #fff);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="top-left"] {
		top: var(--woocomerce-thpos-distance, 10px);
		left: var(--woocomerce-thpos-distance, 10px);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="top-right"] {
		top: var(--woocomerce-thpos-distance, 10px);
		right: var(--woocomerce-thpos-distance, 10px);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="bottom-left"] {
		bottom: var(--woocomerce-thpos-distance, 10px);
		left: var(--woocomerce-thpos-distance, 10px);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="bottom-right"] {
		bottom: var(--woocomerce-thpos-distance, 10px);
		right: var(--woocomerce-thpos-distance, 10px);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="bottom-center"],
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="top-center"] {
		left: var(--woocomerce-thpos-distance, 10px);
		width: calc(100% - 2 * var(--woocomerce-thpos-distance, 10px));
		justify-content: center;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="top-center"] {
		top: var(--woocomerce-thpos-distance, 10px);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots[data-position="bottom-center"] {
		bottom: var(--woocomerce-thpos-distance, 10px);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dot {
		width: auto;
		height: auto;
		color: inherit;
		background: none;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dot span {
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0.6;
		cursor: pointer;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dot.is-active span {
		opacity: 1;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dot span::before {
		content: "";
		display: block;
		background-color: currentColor;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots.--bullets-style-bars span {
		width: 0.6em;
		height: 0.4em;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots.--bullets-style-bars span::before {
		width: 85%;
		height: 2px;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots.--bullets-style-dots span {
		font-size: 6px;
		width: 1em;
		height: 1em;
		box-sizing: content-box;
		padding: 2px;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-none .iddd-shop-card-slide__dots.--bullets-style-dots span::before {
		width: 100%;
		height: 100%;
		border-radius: 50%;
	}

	/* کپسولی — نوار شیشه‌ای روی عکس */
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-capsule .iddd-shop-card-slide__dots {
		position: absolute;
		left: 50%;
		bottom: 8px;
		transform: translateX(-50%);
		gap: 5px;
		padding: 6px 8px;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.78);
		-webkit-backdrop-filter: blur(10px) saturate(1.1);
		backdrop-filter: blur(10px) saturate(1.1);
		box-shadow: 0 1px 4px rgba(17, 17, 17, 0.08);
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-capsule .iddd-shop-card-slide__dot {
		width: 11px;
		height: 2px;
		border-radius: 999px;
		background: rgba(17, 17, 17, 0.22);
		transition:
			width 200ms cubic-bezier(0.22, 1, 0.36, 1),
			background-color 200ms ease;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-capsule .iddd-shop-card-slide__dot.is-active {
		width: 18px;
		background: #111;
	}

	/* خط زیر قاب عکس — داخل پایین خود کادر تصویر */
	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-underline .iddd-shop-card-slide__dots {
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 8px;
		width: auto;
		gap: 3px;
		margin: 0;
		padding: 0;
		background: none;
		box-shadow: none;
		transform: none;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-underline .iddd-shop-card-slide__dot {
		flex: 1 1 0;
		width: auto;
		height: 2px;
		border-radius: 1px;
		background: rgba(255, 255, 255, 0.42);
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
		transition: background-color 160ms ease;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide--nav-underline .iddd-shop-card-slide__dot.is-active {
		width: auto;
		background: #fff;
	}

	body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__item {
		position: relative;
	}

	@media (prefers-reduced-motion: reduce) {
		body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__track {
			scroll-behavior: auto;
		}

		body.iddd-shop-card-gallery--slide:not(.single-product):not(.iddd-shop-gallery--active) .iddd-shop-card-slide__dot {
			transition: none;
		}
	}
}
