/**
 * گالری PDP — موبایل: فاصلهٔ دات‌ها + قالب گرید
 */

/* ——— دات‌های Rey (اسلایدر افقی) ——— */
@media (max-width: 1024px) {
	.woocommerce-product-gallery:not(.iddd-pdp-mobile-grid):not(.iddd-pdp-mobile-main-grid):not(.iddd-pdp-mobile-thumbs):not(.iddd-pdp-mobile-single-scroll) .__nav-wrapper.dotsNav {
		box-sizing: border-box;
		overflow: hidden;
	}

	.woocommerce-product-gallery:not(.iddd-pdp-mobile-grid):not(.iddd-pdp-mobile-main-grid):not(.iddd-pdp-mobile-thumbs):not(.iddd-pdp-mobile-single-scroll) .__nav-wrapper.dotsNav.--nav-circle {
		width: auto;
		left: var(--iddd-pdp-dots-nav-inset, 20px);
		right: var(--iddd-pdp-dots-nav-inset, 20px);
	}

	.woocommerce-product-gallery:not(.iddd-pdp-mobile-grid):not(.iddd-pdp-mobile-main-grid):not(.iddd-pdp-mobile-thumbs):not(.iddd-pdp-mobile-single-scroll) .__nav-wrapper.dotsNav:not(.--nav-circle) {
		padding-inline: var(--iddd-pdp-dots-nav-inset, 20px);
	}

	.woocommerce-product-gallery:not(.iddd-pdp-mobile-grid):not(.iddd-pdp-mobile-main-grid):not(.iddd-pdp-mobile-thumbs):not(.iddd-pdp-mobile-single-scroll) .__nav-wrapper.dotsNav .__nav {
		max-width: 100%;
	}
}

/* ——— گرید موبایل (۲ یا ۳ ستون، اسکرول عمودی صفحه) ——— */
@media (max-width: 1024px) {
	.woocommerce-product-gallery.iddd-pdp-mobile-grid {
		height: auto !important;
		margin-bottom: 0;
		padding-bottom: 30px;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-grid .__topWrapper {
		position: relative;
		width: 100%;
		height: auto !important;
		overflow: visible;
		flex: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-grid .woocommerce-product-gallery__wrapper {
		display: grid !important;
		grid-template-columns: repeat(var(--iddd-pdp-mobile-grid-cols, 2), minmax(0, 1fr));
		gap: var(--iddd-pdp-mobile-grid-gap, 8px);
		width: 100%;
		height: auto !important;
		overflow: visible !important;
		scroll-snap-type: none !important;
		flex-wrap: wrap !important;
		margin: 0;
		padding: 0;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-grid .woocommerce-product-gallery__image {
		--item-image-peek: 0px;
		width: 100% !important;
		flex: none !important;
		max-width: none;
		scroll-snap-align: none !important;
		margin-bottom: 0;
		overflow: hidden;
		border-radius: var(--woocommerce-product-img-radius, 0);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-grid .woocommerce-product-gallery__image a {
		display: block;
		height: auto;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-grid .woocommerce-product-gallery__image img,
	.woocommerce-product-gallery.iddd-pdp-mobile-grid .woocommerce-product-gallery__image picture {
		width: 100%;
		height: auto;
		display: block;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-grid .__nav-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-grid .__counter-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-grid .__arr-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-grid .__thumbs-wrapper {
		display: none !important;
	}

	/* اسکرول داخل بخش گرید (نه کل صفحه) */
	.woocommerce-product-gallery.iddd-pdp-mobile-grid.iddd-pdp-grid-scroll--container .woocommerce-product-gallery__wrapper {
		max-height: var(--iddd-pdp-grid-max-height, 360px);
		overflow-y: auto !important;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-grid.iddd-pdp-grid-scroll--container {
		padding-bottom: 12px;
	}
}

/* ——— تصویر اصلی + گرید زیرین ——— */
@media (max-width: 1024px) {
	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid {
		height: auto !important;
		margin-bottom: 0;
		padding-bottom: 30px;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .__topWrapper {
		position: relative;
		width: 100%;
		height: auto !important;
		overflow: visible;
		flex: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .woocommerce-product-gallery__wrapper {
		display: flex !important;
		flex-direction: column !important;
		width: 100%;
		height: auto !important;
		overflow: visible !important;
		scroll-snap-type: none !important;
		flex-wrap: nowrap !important;
		margin: 0;
		padding: 0;
		gap: var(--iddd-pdp-mobile-grid-gap, 8px);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .woocommerce-product-gallery__image.iddd-pdp-main-hero {
		width: 100% !important;
		flex: none !important;
		max-width: none;
		order: 0;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .iddd-pdp-main-grid-rest {
		display: grid !important;
		grid-template-columns: repeat(var(--iddd-pdp-mobile-grid-cols, 2), minmax(0, 1fr));
		gap: var(--iddd-pdp-mobile-grid-gap, 8px);
		width: 100%;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid.iddd-pdp-grid-scroll--container .iddd-pdp-main-grid-rest {
		max-height: var(--iddd-pdp-grid-max-height, 360px);
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .woocommerce-product-gallery__image {
		overflow: hidden;
		border-radius: var(--woocommerce-product-img-radius, 0);
		cursor: pointer;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .woocommerce-product-gallery__image.iddd-pdp-main-active {
		outline: 2px solid var(--accent-color, #2271b1);
		outline-offset: -2px;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .woocommerce-product-gallery__image a,
	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .woocommerce-product-gallery__image img,
	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .woocommerce-product-gallery__image picture {
		width: 100%;
		height: auto;
		display: block;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .__nav-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .__counter-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .__arr-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-main-grid .__thumbs-wrapper {
		display: none !important;
	}
}

/* ——— اسکرول تک‌تک — یک تصویر در هر اسکرول ——— */
@media (max-width: 1024px) {
	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll {
		height: auto !important;
		margin-bottom: 0;
		padding-bottom: 30px;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .__topWrapper {
		position: relative;
		width: 100%;
		height: auto !important;
		overflow: hidden;
		flex: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .woocommerce-product-gallery__wrapper {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
		height: var(--iddd-pdp-single-scroll-height, 420px) !important;
		max-height: var(--iddd-pdp-single-scroll-height, 420px) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		scroll-snap-type: y mandatory;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		margin: 0;
		padding: 0;
		gap: 0;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .woocommerce-product-gallery__image {
		--item-image-peek: 0px;
		flex: 0 0 100%;
		width: 100% !important;
		min-height: 100%;
		max-width: none;
		scroll-snap-align: start;
		scroll-snap-stop: always;
		margin: 0;
		overflow: hidden;
		border-radius: var(--woocommerce-product-img-radius, 0);
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .woocommerce-product-gallery__image a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .woocommerce-product-gallery__image img,
	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .woocommerce-product-gallery__image picture {
		width: 100%;
		height: auto;
		max-height: 100%;
		display: block;
		object-fit: contain;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .__nav-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .__counter-wrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll .__arr-wrapper {
		display: none !important;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll:not(.iddd-pdp-mobile-thumbs) .__thumbs-wrapper {
		display: none !important;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll.iddd-pdp-slide-fx--smooth .woocommerce-product-gallery__wrapper {
		scroll-behavior: smooth;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-single-scroll.iddd-pdp-slide-fx--fade .woocommerce-product-gallery__image {
		transition: opacity 0.35s ease;
	}
}

/* ——— اسلایدر افقی + بندانگشتی پایین ——— */
@media (max-width: 1024px) {
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs {
		padding-bottom: 30px;
		--woocommerce-gallery-thumbs-size: var(--iddd-pdp-mobile-thumb-size, 64px);
		--thumbs-fit: cover;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs .__nav-wrapper.dotsNav {
		display: none !important;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs .__thumbs-wrapper.--mobile-thumbs {
		display: flex !important;
		width: 100%;
		margin-top: var(--iddd-pdp-mobile-thumb-top-gap, 10px);
		padding-inline: var(--iddd-pdp-mobile-thumb-inset, 0px);
		box-sizing: border-box;
		--thumbs-cols: var(--iddd-pdp-mobile-thumb-visible, 4);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs .__thumbs-wrapper.--mobile-thumbs .__thumbs-track {
		gap: var(--iddd-pdp-mobile-thumb-gap, 8px);
		width: 100%;
	}

	/* اندازه سلول — cover / natural */
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs:not(.iddd-pdp-thumb-fit--custom) .__thumbs-wrapper.--mobile-thumbs .__thumbItem {
		flex-basis: calc(
			(100% - (var(--iddd-pdp-mobile-thumb-visible, 4) - 1) * var(--iddd-pdp-mobile-thumb-gap, 8px))
			/ var(--iddd-pdp-mobile-thumb-visible, 4)
		) !important;
		width: auto;
		max-width: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fit--custom .__thumbs-wrapper.--mobile-thumbs .__thumbItem {
		flex-basis: var(--iddd-pdp-mobile-thumb-size, 64px) !important;
		width: var(--iddd-pdp-mobile-thumb-size, 64px);
		max-width: var(--iddd-pdp-mobile-thumb-size, 64px);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fit--natural {
		--thumbs-fit: contain;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fit--natural .__thumbs-wrapper .__thumbItem:before {
		display: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fit--natural .__thumbs-wrapper .__thumbItem {
		height: auto;
		aspect-ratio: auto;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fit--natural .__thumbs-wrapper .__thumbItem .woocommerce-product-gallery__mobile-img {
		position: relative;
		min-height: 0;
		height: auto;
		object-fit: contain;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fit--cover .__thumbs-wrapper .__thumbItem .woocommerce-product-gallery__mobile-img {
		object-fit: cover;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs .__thumbs-wrapper .__thumbItem .woocommerce-product-gallery__mobile-img {
		transition: opacity 0.25s ease, transform 0.25s ease;
	}

	/* افکت بندانگشتی */
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fx--scale .__thumbs-wrapper .__thumbItem {
		opacity: 0.55;
		transform: scale(0.94);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fx--scale .__thumbs-wrapper .__thumbItem.--active {
		opacity: 1;
		transform: scale(1);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fx--fade .__thumbs-wrapper .__thumbItem {
		opacity: 0.45;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fx--fade .__thumbs-wrapper .__thumbItem.--active {
		opacity: 1;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fx--lift .__thumbs-wrapper .__thumbItem.--active {
		transform: translateY(-3px);
		box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fx--ring .__thumbs-wrapper .__thumbItem.--active:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-fx--ring .__thumbs-wrapper .__thumbItem.--img-loaded.--active:before {
		--nav-item-bs: 2px;
		opacity: 0.45;
	}

	/* افکت اسلاید اصلی */
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-slide-fx--smooth .woocommerce-product-gallery__wrapper {
		scroll-behavior: smooth;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-slide-fx--fade .woocommerce-product-gallery__image {
		transition: opacity 0.35s ease;
	}

	/* ——— موقعیت overlay روی تصویر اصلی ——— */
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_bottom,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right {
		display: grid !important;
		grid-template-areas: 'stack';
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: 30px;
		flex-wrap: nowrap !important;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_bottom .__topWrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__topWrapper,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__topWrapper {
		grid-area: stack;
		width: 100%;
		min-width: 0;
		align-self: stretch;
	}
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_bottom .__thumbs-wrapper.--mobile-thumbs,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper.--mobile-thumbs,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper.--mobile-thumbs {
		grid-area: stack;
		pointer-events: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_bottom .__thumbs-wrapper.--mobile-thumbs .__thumbItem,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper.--mobile-thumbs .__thumbItem,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper.--mobile-thumbs .__thumbItem,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_bottom .__thumbs-wrapper.--mobile-thumbs .__thumbs-arr,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper.--mobile-thumbs .__thumbs-arr,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper.--mobile-thumbs .__thumbs-arr {
		pointer-events: auto;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_bottom .__thumbs-wrapper.--mobile-thumbs {
		align-self: end;
		z-index: 5;
		margin-top: 0 !important;
		padding: 12px var(--iddd-pdp-mobile-thumb-inset, 0px) 10px;
		box-sizing: border-box;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right {
		--iddd-pdp-overlay-side-thumb-size: min(44px, calc(var(--iddd-pdp-mobile-thumb-size, 64px) * 0.68));
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper.--mobile-thumbs,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper.--mobile-thumbs {
		align-self: center;
		z-index: 5;
		margin-top: 0 !important;
		width: auto;
		max-width: var(--iddd-pdp-overlay-side-thumb-size, 44px);
		padding: 0;
		box-sizing: border-box;
		background: none;
		border: none;
		border-radius: 0;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper.--mobile-thumbs {
		justify-self: start;
		margin-inline-start: var(--iddd-pdp-mobile-thumb-inset, 0px);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper.--mobile-thumbs {
		justify-self: end;
		margin-inline-end: var(--iddd-pdp-mobile-thumb-inset, 0px);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper.--mobile-thumbs .__thumbs-track,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper.--mobile-thumbs .__thumbs-track {
		flex-direction: column;
		max-height: min(48vh, 240px);
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		width: 100%;
		gap: 6px;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper.--mobile-thumbs .__thumbs-track::-webkit-scrollbar,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper.--mobile-thumbs .__thumbs-track::-webkit-scrollbar {
		display: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left:not(.iddd-pdp-thumb-fit--custom) .__thumbs-wrapper .__thumbItem,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right:not(.iddd-pdp-thumb-fit--custom) .__thumbs-wrapper .__thumbItem,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left.iddd-pdp-thumb-fit--custom .__thumbs-wrapper .__thumbItem,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right.iddd-pdp-thumb-fit--custom .__thumbs-wrapper .__thumbItem {
		flex-basis: var(--iddd-pdp-overlay-side-thumb-size, 44px) !important;
		width: var(--iddd-pdp-overlay-side-thumb-size, 44px);
		max-width: var(--iddd-pdp-overlay-side-thumb-size, 44px);
		min-width: var(--iddd-pdp-overlay-side-thumb-size, 44px);
		box-shadow: none;
		border: none;
		outline: none;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper .__thumbItem:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper .__thumbItem:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper .__thumbItem.--img-loaded:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper .__thumbItem.--img-loaded:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper .__thumbItem.--active:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper .__thumbItem.--active:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper .__thumbItem.--img-loaded.--active:before,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper .__thumbItem.--img-loaded.--active:before {
		display: none !important;
		opacity: 0 !important;
		box-shadow: none !important;
		border: none !important;
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_left .__thumbs-wrapper .__thumbItem .woocommerce-product-gallery__mobile-img,
	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_right .__thumbs-wrapper .__thumbItem .woocommerce-product-gallery__mobile-img {
		border: none;
		box-shadow: none;
		border-radius: var(--thumbs-radius, 2px);
	}

	.woocommerce-product-gallery.iddd-pdp-mobile-thumbs.iddd-pdp-thumb-pos--overlay_bottom .__thumbs-wrapper .__thumbItem {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	}
}

/* ——— تصویر تمام‌صفحه + پنل شیشه‌ای ——— */
@media (max-width: 1024px) {
	/* مخفی‌سازی هدر در این قالب (موبایل) */
	body.iddd-pdp-gallery--mobile-glass-hero .rey-siteHeader,
	body.iddd-pdp-gallery--mobile-glass-hero #rey-siteHeader-helper,
	body.iddd-pdp-gallery--mobile-glass-hero .header--separator-bar {
		display: none !important;
	}

	body.iddd-pdp-gallery--mobile-glass-hero {
		--header-default--height: 0px;
	}

	body.iddd-pdp-gallery--mobile-glass-hero .rey-siteContent,
	body.iddd-pdp-gallery--mobile-glass-hero .rey-siteContainer,
	body.iddd-pdp-gallery--mobile-glass-hero .rey-siteContent .rey-siteContainer {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}

	body.iddd-pdp-gallery--mobile-glass-hero .product .woocommerce-product-gallery {
		margin-top: 0;
	}

	/* wishlist — فقط نسخهٔ منتقل‌شده به toolbar نمایش داده شود */
	body.iddd-pdp-gallery--mobile-glass-hero .product .rey-wishlistBtn-wrapper:not(.iddd-pdp-glass-wishlist),
	body.iddd-pdp-gallery--mobile-glass-hero .product .rey-wishlistBtn-link:not(.iddd-pdp-glass-wishlist) {
		display: none !important;
	}

	/* استیج تمام‌عرض/تمام‌ارتفاع viewport */
	.iddd-pdp-glass-stage {
		position: relative;
		width: 100vw;
		max-width: 100vw;
		height: var(--iddd-glass-vh, 100dvh);
		min-height: var(--iddd-glass-vh, 100dvh);
		max-height: var(--iddd-glass-vh, 100dvh);
		margin: 0 calc(50% - 50vw) 50px;
		overflow: hidden;
		background: #ece8e1;
		isolation: isolate;
	}

	body.iddd-pdp-glass-theme--dark .iddd-pdp-glass-stage {
		background: #0b0b0d;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .__topWrapper {
		position: relative;
		width: 100%;
		height: 100% !important;
		overflow: hidden;
		flex: none;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__wrapper {
		display: flex !important;
		flex-flow: row nowrap !important;
		align-items: stretch;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		height: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0;
		padding: 0;
		touch-action: pan-x pan-y;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
		display: none;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__image {
		height: 100% !important;
		width: 100% !important;
		min-width: 100% !important;
		flex: 0 0 100% !important;
		margin: 0;
		border-radius: 0;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__image a {
		touch-action: pan-x;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__image a,
	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__image picture {
		display: block;
		width: 100%;
		height: 100%;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__image img,
	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .woocommerce-product-gallery__image .__img {
		width: 100% !important;
		height: 100% !important;
		max-width: none;
		max-height: none;
		object-fit: cover;
		object-position: center;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-glass-fit--contain .woocommerce-product-gallery__image img,
	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-glass-fit--contain .woocommerce-product-gallery__image .__img {
		object-fit: contain;
	}

	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .__counter-wrapper,
	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .__arr-wrapper,
	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .__thumbs-wrapper,
	.iddd-pdp-glass-stage .woocommerce-product-gallery.iddd-pdp-mobile-glass-hero .__nav-wrapper {
		display: none !important;
	}

	/* لایهٔ شیشه‌ای + نوار پایین (قیمت چپ / دکمه راست) */
	.iddd-pdp-glass-panel {
		--gfg: #15151a;
		--gmuted: rgba(20, 20, 26, 0.65);
		--gbase: 255, 255, 255;
		--iddd-glass-pad-x: clamp(14px, 4.8vw, 24px);
		--iddd-glass-pad-b: clamp(12px, 2.8vh, 24px);
		--iddd-glass-price: clamp(15px, 4.6vw, 22px);
		--iddd-glass-price-old: clamp(11px, 3.2vw, 15px);
		--iddd-glass-price-currency: clamp(10px, 3.1vw, 14px);
		--iddd-glass-price-currency-old: clamp(8px, 2.4vw, 11px);
		--iddd-glass-price-sale: #ff3366;
		--iddd-glass-price-sale-glow: rgba(255, 51, 102, 0.42);
		--iddd-glass-btn-h: clamp(42px, 11.5vw, 56px);
		--iddd-glass-btn-px: clamp(16px, 5.5vw, 28px);
		--iddd-glass-btn-fs: clamp(13px, 3.8vw, 16px);
		--iddd-glass-title: clamp(18px, 5.4vw, 26px);
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 5;
		height: clamp(120px, calc(var(--iddd-glass-vh, 100dvh) * 0.36), 280px);
		pointer-events: none;
	}

	body.iddd-pdp-glass-theme--dark .iddd-pdp-glass-panel {
		--gfg: #ffffff;
		--gmuted: rgba(255, 255, 255, 0.72);
		--gbase: 10, 10, 12;
		--iddd-glass-price-sale: #ff6b9d;
		--iddd-glass-price-sale-glow: rgba(255, 107, 157, 0.48);
	}

	.iddd-pdp-glass-panel::before {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(
			to top,
			rgba(var(--gbase), var(--iddd-pdp-glass-tint, 0.55)) 0%,
			rgba(var(--gbase), calc(var(--iddd-pdp-glass-tint, 0.55) * 0.45)) 50%,
			rgba(var(--gbase), 0) 100%
		);
		-webkit-backdrop-filter: blur(var(--iddd-pdp-glass-blur, 18px));
		backdrop-filter: blur(var(--iddd-pdp-glass-blur, 18px));
		-webkit-mask-image: linear-gradient(to top, #000 0%, #000 55%, rgba(0, 0, 0, 0) 100%);
		mask-image: linear-gradient(to top, #000 0%, #000 55%, rgba(0, 0, 0, 0) 100%);
	}

	.iddd-pdp-glass-panel__inner {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
		width: 100%;
		box-sizing: border-box;
		overflow: hidden;
		padding: 0 var(--iddd-glass-pad-x) calc(var(--iddd-glass-pad-b) + env(safe-area-inset-bottom, 0px));
		pointer-events: auto;
	}

	.iddd-pdp-glass-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, min(58%, 280px));
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: clamp(10px, 3vw, 16px);
		row-gap: clamp(12px, 2.8vh, 20px);
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		direction: ltr;
	}

	.iddd-pdp-glass-actions.iddd-pdp-glass-has-title-toolbar,
	.iddd-pdp-glass-actions.iddd-pdp-glass-has-waitlist {
		grid-template-rows: auto auto auto;
	}

	/* نوار بالای عنوان: ویشلیست + خبرم کن */
	.iddd-pdp-glass-title-toolbar {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		flex-direction: row;
		direction: rtl;
		align-items: center;
		justify-content: flex-start;
		gap: clamp(6px, 2vw, 10px);
		justify-self: end;
		align-self: end;
		margin: 0 0 clamp(4px, 1vh, 8px);
		max-width: 100%;
		min-width: 0;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist {
		display: inline-flex !important;
		margin: 0 !important;
		padding: 0;
		vertical-align: middle;
		position: relative;
		flex: 0 0 auto;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-link,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: var(--iddd-glass-action-icon-size, clamp(36px, 10vw, 44px));
		height: var(--iddd-glass-action-icon-size, clamp(36px, 10vw, 44px));
		min-width: var(--iddd-glass-action-icon-size, clamp(36px, 10vw, 44px));
		min-height: var(--iddd-glass-action-icon-size, clamp(36px, 10vw, 44px));
		padding: 0 !important;
		margin: 0 !important;
		border-radius: 50% !important;
		gap: 0;
		line-height: 1;
		box-sizing: border-box;
		-webkit-backdrop-filter: blur(14px) saturate(1.25);
		backdrop-filter: blur(14px) saturate(1.25);
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
		transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
	}

	/* ویشلیست — شیشه‌ای تیره، آیکون سفید */
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-link {
		background: rgba(12, 12, 16, 0.55) !important;
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		color: #ffffff !important;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn:hover,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-link:hover {
		background: rgba(12, 12, 16, 0.68) !important;
		border-color: rgba(255, 255, 255, 0.32) !important;
		transform: translateY(-1px);
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn.--in-wishlist,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-link.--in-wishlist {
		background: rgba(12, 12, 16, 0.72) !important;
		border-color: rgba(255, 255, 255, 0.38) !important;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-icon,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-icon svg,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-icon .rey-icon {
		color: #ffffff !important;
		fill: #ffffff !important;
		--icon-fill: #ffffff;
		--icon-color: #ffffff;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn.--in-wishlist .rey-wishlistBtn-icon,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn.--in-wishlist .rey-wishlistBtn-icon svg {
		fill: #ffffff !important;
		--icon-fill: #ffffff;
	}

	/* خبرم کن — شیشه‌ای قرمز */
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn {
		background: rgba(158, 59, 59, 0.42) !important;
		border: 1px solid rgba(220, 100, 100, 0.58) !important;
		color: #ffffff !important;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn:hover {
		background: rgba(158, 59, 59, 0.55) !important;
		border-color: rgba(235, 120, 120, 0.72) !important;
		transform: translateY(-1px);
		box-shadow: 0 8px 22px rgba(158, 59, 59, 0.28);
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn svg,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn .ids-waitlist-btn-icon-img {
		color: #ffffff !important;
		fill: #ffffff !important;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-text,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn > span {
		display: none !important;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-icon,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-wishlist .rey-wishlistBtn-icon svg,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn svg,
	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-waitlist-btn .ids-waitlist-btn-icon-img {
		width: clamp(16px, 4.8vw, 20px) !important;
		height: clamp(16px, 4.8vw, 20px) !important;
		flex-shrink: 0;
	}

	.iddd-pdp-glass-title-toolbar .iddd-pdp-glass-waitlist .ids-wl-toast {
		inset-inline-end: 0;
		inset-inline-start: auto;
		left: auto;
		right: 0;
	}

	.iddd-pdp-glass-actions.iddd-pdp-glass-has-title-toolbar .product_title,
	.iddd-pdp-glass-actions.iddd-pdp-glass-has-title-toolbar .entry-title,
	.iddd-pdp-glass-actions.iddd-pdp-glass-has-waitlist .product_title,
	.iddd-pdp-glass-actions.iddd-pdp-glass-has-waitlist .entry-title {
		grid-row: 2;
	}

	/* wrapper شفاف: عنوان و فرم مستقیم در grid قرار می‌گیرند */
	.iddd-pdp-glass-cart-col {
		display: contents;
	}

	.iddd-pdp-glass-cart-col .product_title,
	.iddd-pdp-glass-cart-col .entry-title {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		margin: 0 0 clamp(2px, 0.6vh, 6px) !important;
		padding: 0;
		color: var(--gfg);
		font-size: var(--iddd-glass-title);
		font-weight: 800;
		line-height: 1.25;
		letter-spacing: -0.2px;
		text-align: right;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.iddd-pdp-glass-actions.iddd-pdp-glass-has-title-toolbar .iddd-pdp-glass-cart-col > form.cart,
	.iddd-pdp-glass-actions.iddd-pdp-glass-has-waitlist .iddd-pdp-glass-cart-col > form.cart {
		grid-row: 3;
	}

	.iddd-pdp-glass-actions.iddd-pdp-glass-has-title-toolbar > .price,
	.iddd-pdp-glass-actions.iddd-pdp-glass-has-waitlist > .price {
		grid-row: 3;
	}

	body.iddd-pdp-gallery--mobile-glass-hero #ids-waitlist-float,
	body.iddd-pdp-gallery--mobile-glass-hero .ids-waitlist-wrap.ids-waitlist-wrap--hidden-mobile {
		display: none !important;
	}

	/* قیمت — ردیف دوم، هم‌تراز با دکمه */
	.iddd-pdp-glass-actions > .price {
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
		align-self: center;
		flex: none !important;
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		display: flex !important;
		flex-direction: column;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		text-align: left !important;
		line-height: 1.25;
	}

	.iddd-pdp-glass-actions > .price,
	.iddd-pdp-glass-actions > .price ins,
	.iddd-pdp-glass-actions > .price ins * {
		color: var(--gfg) !important;
		font-size: var(--iddd-glass-price);
		font-weight: 800;
		text-decoration: none;
	}

	.iddd-pdp-glass-actions > .price del,
	.iddd-pdp-glass-actions > .price del * {
		color: var(--gmuted) !important;
		font-size: var(--iddd-glass-price-old);
		font-weight: 500;
	}

	/* تخفیف: قیمت قبلی خط‌خورده بالا + قیمت فروش درشت پایین */
	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--sale {
		flex-direction: column;
		align-items: flex-start !important;
		gap: clamp(1px, 0.4vh, 4px);
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--sale del {
		display: block !important;
		order: 1;
		margin: 0 !important;
		padding: 0;
		opacity: 0.78;
		text-decoration: line-through;
		text-decoration-thickness: 1px;
		line-height: 1.15;
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--sale del .woocommerce-Price-amount,
	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--sale del .woocommerce-Price-currencySymbol {
		text-decoration: line-through;
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--sale ins {
		display: block !important;
		order: 2;
		margin: 0 !important;
		padding: 0;
		text-decoration: none !important;
		color: var(--iddd-glass-price-sale) !important;
		line-height: 1.2;
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--sale ins,
	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--sale ins * {
		color: var(--iddd-glass-price-sale) !important;
		font-size: var(--iddd-glass-price);
		font-weight: 800;
		text-shadow: 0 0 10px var(--iddd-glass-price-sale-glow, rgba(255, 51, 102, 0.4));
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--range-min {
		font-size: 0;
		line-height: 0;
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--range-min .iddd-pdp-glass-price__keep {
		font-size: var(--iddd-glass-price);
		line-height: 1.25;
		display: inline-block;
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--range-min .iddd-pdp-glass-price__keep * {
		font-size: inherit;
		line-height: inherit;
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--range-min .woocommerce-Price-amount:not(.iddd-pdp-glass-price__keep) {
		display: none !important;
	}

	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--range-min .from,
	.iddd-pdp-glass-actions > .price.iddd-pdp-glass-price--range-min .price-from {
		display: none !important;
	}

	.iddd-pdp-glass-actions > .price ins {
		margin-inline-start: 0 !important;
		margin-inline-end: 0 !important;
	}

	.iddd-pdp-glass-actions > .price .woocommerce-Price-currencySymbol,
	.iddd-pdp-glass-actions > .price ins .woocommerce-Price-currencySymbol {
		font-size: var(--iddd-glass-price-currency) !important;
		font-weight: 600;
		line-height: 1;
		vertical-align: baseline;
	}

	.iddd-pdp-glass-actions > .price del .woocommerce-Price-currencySymbol {
		font-size: var(--iddd-glass-price-currency-old) !important;
		font-weight: 500;
		line-height: 1;
		vertical-align: baseline;
	}

	/* فرم — ردیف دوم، هم‌تراز با قیمت */
	.iddd-pdp-glass-cart-col > form.cart {
		grid-column: 2;
		grid-row: 2;
		align-self: center;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		display: block !important;
	}

	/* کپسول رنگ (Trendyol) — ردیف اول، جلوی عنوان / بالای قیمت */
	.iddd-pdp-glass-actions > .iddd-loop-swatch-on-image {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
		justify-self: start;
		width: auto;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0;
	}

	.iddd-pdp-glass-actions.iddd-pdp-glass-has-title-toolbar > .iddd-loop-swatch-on-image,
	.iddd-pdp-glass-actions.iddd-pdp-glass-has-waitlist > .iddd-loop-swatch-on-image {
		grid-row: 2;
	}

	.iddd-pdp-glass-actions > .iddd-loop-swatch-on-image.iddd-loop-swatch-on-image--style-count_badge {
		width: auto;
	}

	.iddd-pdp-glass-actions form.cart .variations,
	.iddd-pdp-glass-actions form.cart table.variations,
	.iddd-pdp-glass-actions form.cart .quantity,
	.iddd-pdp-glass-actions form.cart .reset_variations,
	.iddd-pdp-glass-actions form.cart .woocommerce-variation-description,
	.iddd-pdp-glass-actions form.cart .woocommerce-variation-price,
	.iddd-pdp-glass-actions form.cart .woocommerce-variation-availability,
	.iddd-pdp-glass-actions form.cart .woocommerce-variation.single_variation {
		display: none !important;
	}

	/* wishlist داخل فرم — مخفی (نسخهٔ toolbar نمایش داده می‌شود) */
	.iddd-pdp-glass-actions form.cart .rey-wishlistBtn-wrapper:not(.iddd-pdp-glass-wishlist),
	.iddd-pdp-glass-actions form.cart .rey-wishlistBtn:not(.iddd-pdp-glass-wishlist),
	.iddd-pdp-glass-actions form.cart .rey-wishlistBtn-link:not(.iddd-pdp-glass-wishlist) {
		display: none !important;
	}

	.iddd-pdp-glass-actions form.cart .woocommerce-variation-add-to-cart,
	.iddd-pdp-glass-actions form.cart .woocommerce-variation-add-to-cart-disabled {
		display: block !important;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button {
		display: inline-flex !important;
		flex-direction: row;
		direction: ltr;
		align-items: center;
		justify-content: center;
		gap: clamp(7px, 2.2vw, 10px);
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 0;
		min-height: var(--iddd-glass-btn-h);
		height: var(--iddd-glass-btn-h);
		padding: 0 clamp(14px, 4.5vw, 22px) !important;
		border-radius: 999px;
		border: 0 !important;
		background-color: #15151a !important;
		color: #ffffff !important;
		font-size: var(--iddd-glass-btn-fs);
		font-weight: 700;
		line-height: 1;
		white-space: nowrap;
		text-align: center;
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
		--btn-padding: 0;
	}

	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button *,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button * {
		color: #ffffff !important;
	}

	.iddd-pdp-glass-actions form.cart .iddd-glass-cart-icon {
		display: inline-flex;
		flex: 0 0 18px;
		width: 18px;
		height: 18px;
		align-items: center;
		justify-content: center;
		background-color: #ffffff;
		-webkit-mask: var(--iddd-glass-bag) center / 18px 18px no-repeat;
		mask: var(--iddd-glass-bag) center / 18px 18px no-repeat;
		pointer-events: none;
	}

	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button::before,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button::before,
	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button::after,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button::after {
		content: none !important;
		display: none !important;
	}

	/* آیکون‌های اضافی Rey */
	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button svg,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button svg,
	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button .rey-icon,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button .rey-icon {
		display: none !important;
	}

	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button:hover,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button:hover {
		background-color: #2a2a32 !important;
		color: #ffffff !important;
	}

	.iddd-pdp-glass-actions form.cart .single_add_to_cart_button:hover *,
	.iddd-pdp-glass-actions form.cart button.single_add_to_cart_button:hover * {
		color: #ffffff !important;
	}

	body.iddd-pdp-gallery--mobile-glass-hero {
		--iddd-glass-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12z'/%3E%3C/svg%3E");
	}

	/* نوار شیشه‌ای انتخاب رنگ — از راست */
	.iddd-pdp-glass-color-rail {
		--iddd-glass-rail-gbase: 255, 255, 255;
		position: absolute;
		inset: 0;
		z-index: 12;
		pointer-events: none;
	}

	body.iddd-pdp-glass-theme--dark .iddd-pdp-glass-color-rail {
		--iddd-glass-rail-gbase: 10, 10, 12;
	}

	.iddd-pdp-glass-color-rail.is-open {
		pointer-events: auto;
	}

	.iddd-pdp-glass-color-rail__backdrop {
		position: absolute;
		inset: 0;
		border: 0;
		margin: 0;
		padding: 0;
		background: rgba(0, 0, 0, 0.06);
		opacity: 0;
		transition: opacity 0.28s ease;
		cursor: pointer;
	}

	.iddd-pdp-glass-color-rail.is-open .iddd-pdp-glass-color-rail__backdrop {
		opacity: 1;
	}

	.iddd-pdp-glass-color-rail__stack {
		position: absolute;
		top: max(env(safe-area-inset-top, 0px), clamp(12px, 3vh, 24px));
		right: 0;
		bottom: max(env(safe-area-inset-bottom, 0px), clamp(12px, 3vh, 24px));
		width: clamp(108px, 26vw, 132px);
		pointer-events: none;
	}

	.iddd-pdp-glass-color-rail__panel {
		position: absolute;
		inset: 0;
		width: 100%;
		box-sizing: border-box;
		padding: 0;
		border: 0;
		border-radius: 999px 0 0 999px;
		background: transparent;
		transform: translateX(110%);
		transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
		overflow: hidden;
		isolation: isolate;
		pointer-events: none;
		opacity: 1;
	}

	.iddd-pdp-glass-color-rail__panel--label,
	.iddd-pdp-glass-color-rail__panel:not(.iddd-pdp-glass-color-rail__panel--label) {
		width: 100%;
	}

	.iddd-pdp-glass-color-rail__panel.is-open {
		transform: translateX(0);
	}

	.iddd-pdp-glass-color-rail__panel.is-front {
		pointer-events: auto;
	}

	.iddd-pdp-glass-color-rail__panel.is-behind {
		transform: translateX(0);
		pointer-events: none;
	}

	.iddd-pdp-glass-color-rail__panel::before {
		content: '';
		position: absolute;
		inset: 0;
		border-radius: inherit;
		background: linear-gradient(
			to left,
			rgba(var(--iddd-glass-rail-gbase), var(--iddd-pdp-glass-tint, 0.55)) 0%,
			rgba(var(--iddd-glass-rail-gbase), calc(var(--iddd-pdp-glass-tint, 0.55) * 0.68)) 100%
		);
		-webkit-backdrop-filter: blur(var(--iddd-pdp-glass-blur, 18px)) saturate(1.2);
		backdrop-filter: blur(var(--iddd-pdp-glass-blur, 18px)) saturate(1.2);
		border: 1px solid rgba(255, 255, 255, 0.38);
		border-right: 0;
		box-shadow:
			inset 1px 0 0 rgba(255, 255, 255, 0.28),
			-12px 0 36px rgba(0, 0, 0, 0.12);
	}

	body.iddd-pdp-glass-theme--dark .iddd-pdp-glass-color-rail__panel::before {
		border-color: rgba(255, 255, 255, 0.12);
		box-shadow:
			inset 1px 0 0 rgba(255, 255, 255, 0.08),
			-12px 0 40px rgba(0,  0, 0, 0.35);
	}

	.iddd-pdp-glass-color-rail__item--label {
		width: 100%;
		height: auto;
		min-height: clamp(34px, 9vw, 40px);
		border-radius: 999px;
	}

	.iddd-pdp-glass-color-rail__pill {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: clamp(34px, 9vw, 40px);
		min-height: clamp(30px, 8vw, 36px);
		padding: 0 clamp(10px, 3vw, 14px);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.92);
		color: #15151a;
		font-size: clamp(11px, 3.2vw, 13px);
		font-weight: 600;
		line-height: 1;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
		box-sizing: border-box;
	}

	body.iddd-pdp-glass-theme--dark .iddd-pdp-glass-color-rail__pill {
		background: rgba(255, 255, 255, 0.14);
		color: #ffffff;
	}

	.iddd-pdp-glass-color-rail__item--label.is-selected .iddd-pdp-glass-color-rail__pill {
		box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(21, 21, 26, 0.85);
	}

	body.iddd-pdp-glass-theme--dark .iddd-pdp-glass-color-rail__item--label.is-selected .iddd-pdp-glass-color-rail__pill {
		box-shadow: 0 0 0 2px rgba(21, 21, 26, 0.95), 0 0 0 4px rgba(255, 255, 255, 0.88);
	}

	.iddd-pdp-glass-color-rail__list-wrap {
		position: relative;
		z-index: 1;
		box-sizing: border-box;
		width: 100%;
		height: 100%;
		padding: 20px;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		display: flex;
		flex-direction: column;
	}

	.iddd-pdp-glass-color-rail__list-wrap.is-centered {
		justify-content: center;
	}

	.iddd-pdp-glass-color-rail__list-wrap.is-scrollable {
		justify-content: flex-start;
	}

	.iddd-pdp-glass-color-rail__list-wrap::-webkit-scrollbar {
		display: none;
	}

	.iddd-pdp-glass-color-rail__list {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: clamp(8px, 2vh, 12px);
		width: 100%;
		flex-shrink: 0;
	}

	.iddd-pdp-glass-color-rail__list::-webkit-scrollbar {
		display: none;
	}

	.iddd-pdp-glass-color-rail__item {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: clamp(34px, 9vw, 40px);
		height: clamp(34px, 9vw, 40px);
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		cursor: pointer;
		flex-shrink: 0;
		transition: transform 0.18s ease, box-shadow 0.18s ease;
	}

	.iddd-pdp-glass-color-rail__item:active {
		transform: scale(0.94);
	}

	.iddd-pdp-glass-color-rail__item.is-selected {
		box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(21, 21, 26, 0.85);
	}

	body.iddd-pdp-glass-theme--dark .iddd-pdp-glass-color-rail__item.is-selected {
		box-shadow: 0 0 0 2px rgba(21, 21, 26, 0.95), 0 0 0 4px rgba(255, 255, 255, 0.88);
	}

	.iddd-pdp-glass-color-rail__dot {
		display: block;
		width: clamp(26px, 7vw, 32px);
		height: clamp(26px, 7vw, 32px);
		border-radius: 50%;
		border: 2px solid #fff;
		box-sizing: border-box;
		background-color: #d9d9d9;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	}
}
