/**
 * ATC — پایهٔ مشترک (فقط وقتی استایل غیر theme انتخاب شده)
 */

body[class*="iddd-atc--"] :is(
	.rey-productSummary,
	.rey-innerSummary,
	.rey-stickyAtc,
	.rey-quickviewPanel,
	.elementor-widget-reycore-woo-pdp-add-to-cart
) .single_add_to_cart_button,
body[class*="iddd-atc--"] .iddd-atc-btn {
	--btn-pos: relative;
	--btn-dsp: inline-flex;
	--btn-font-size: 14px;
	--btn-fw: 600;
	--btn-ttr: none;
	--btn-lts: 0.02em;
	--btn-lh: 1.2;
	--btn-padding: 0 22px;
	--btn-bd-w: 0px;
	--btn-bs-s: solid;
	--btn-bd-c: transparent;
	--btn-br: 8px;
	--pdp-btn-br: 8px;
	--btn-bg-color: #111;
	--btn-color: #fff;
	--btn-bg-color-hover: #2a2a2a;
	--accent-color: #111;
	--accent-text-color: #fff;
	--accent-hover-color: #2a2a2a;
	--accent-text-hover-color: #fff;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 48px !important;
	height: 48px !important;
	padding: 0 22px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	line-height: 1.2 !important;
	text-transform: none !important;
	background: #111 !important;
	background-color: #111 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	transition:
		background-color 180ms ease,
		color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

body[class*="iddd-atc--"] :is(
	.rey-productSummary,
	.rey-innerSummary,
	.rey-stickyAtc,
	.rey-quickviewPanel,
	.elementor-widget-reycore-woo-pdp-add-to-cart
) .single_add_to_cart_button::before,
body[class*="iddd-atc--"] :is(
	.rey-productSummary,
	.rey-innerSummary,
	.rey-stickyAtc,
	.rey-quickviewPanel,
	.elementor-widget-reycore-woo-pdp-add-to-cart
) .single_add_to_cart_button::after,
body[class*="iddd-atc--"] .iddd-atc-btn::before,
body[class*="iddd-atc--"] .iddd-atc-btn::after {
	content: none !important;
	display: none !important;
}

body[class*="iddd-atc--"] :is(
	.rey-productSummary,
	.rey-innerSummary,
	.rey-stickyAtc,
	.rey-quickviewPanel,
	.elementor-widget-reycore-woo-pdp-add-to-cart
) .single_add_to_cart_button :is(.single_add_to_cart_button-text, .__text),
body[class*="iddd-atc--"] .iddd-atc-btn :is(.single_add_to_cart_button-text, .__text) {
	color: inherit !important;
}

body[class*="iddd-atc--"] :is(
	.rey-productSummary,
	.rey-innerSummary,
	.rey-stickyAtc,
	.rey-quickviewPanel,
	.elementor-widget-reycore-woo-pdp-add-to-cart
) .single_add_to_cart_button:focus-visible,
body[class*="iddd-atc--"] .iddd-atc-btn:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

body[class*="iddd-atc--"] .iddd-atc-wrap.--style-default,
body[class*="iddd-atc--"] .rey-cartBtnQty.--style-default {
	column-gap: 10px;
}

body[class*="iddd-atc--"] .iddd-atc-wrap.--style-default .rey-qtyField,
body[class*="iddd-atc--"] .rey-cartBtnQty.--style-default .rey-qtyField {
	margin-inline-end: 0 !important;
}

body[class*="iddd-atc--"] .iddd-atc-wrap.--style-default .rey-qtyField .qty,
body[class*="iddd-atc--"] .rey-cartBtnQty.--style-default .rey-qtyField .qty {
	border-radius: 8px !important;
	border-width: 1px !important;
}

body[class*="iddd-atc--"] .iddd-atc-wrap.--style-default .button,
body[class*="iddd-atc--"] .rey-cartBtnQty.--style-default .button {
	border-radius: 8px !important;
	border-top-left-radius: 8px !important;
	border-bottom-left-radius: 8px !important;
}

body[class*="iddd-atc--"] :is(
	.rey-productSummary,
	.rey-innerSummary,
	.rey-stickyAtc,
	.elementor-widget-reycore-woo-pdp-add-to-cart
) .single_add_to_cart_button.disabled:hover,
body[class*="iddd-atc--"] .iddd-atc-btn.disabled:hover {
	transform: none;
}

/* پنل شیشه‌ای گالری نباید از این استایل‌ها اثر بگیرد */
body[class*="iddd-atc--"] .iddd-pdp-glass-actions .single_add_to_cart_button {
	--btn-br: 999px;
	--pdp-btn-br: 999px;
	--btn-padding: 0;
	width: 100%;
	max-width: 100%;
	min-height: var(--iddd-glass-btn-h) !important;
	height: var(--iddd-glass-btn-h) !important;
	padding: 0 clamp(14px, 4.5vw, 22px) !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #15151a !important;
	background-color: #15151a !important;
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
	transform: none;
	opacity: 1;
}

body[class*="iddd-atc--"] .iddd-pdp-glass-actions .single_add_to_cart_button :is(.single_add_to_cart_button-text, .__text) {
	color: #fff !important;
}

body[class*="iddd-atc--"] .iddd-pdp-glass-actions .single_add_to_cart_button:hover {
	background: #2a2a32 !important;
	background-color: #2a2a32 !important;
	color: #fff !important;
}
