body.single-product {
	--motekhassesan-single-primary: var(--btn-accented-bgcolor, var(--wd-primary-color, #6f42c1));
	--motekhassesan-single-primary-hover: var(--btn-accented-bgcolor-hover, var(--wd-link-color-hover, var(--wd-primary-color, #5b32a3)));
	--motekhassesan-single-primary-text: var(--btn-accented-color, #ffffff);
	--motekhassesan-single-bg: var(--wd-content-bgcolor, var(--wd-main-bgcolor, #ffffff));
	--motekhassesan-single-surface: color-mix(in srgb, var(--motekhassesan-single-bg) 90%, var(--motekhassesan-single-primary) 10%);
	--motekhassesan-single-soft-bg: var(--wd-light-grey-color, #f7f7f7);
	--motekhassesan-single-border: var(--wd-border-color, #eeeeee);
	--motekhassesan-single-text: var(--wd-text-color, #666666);
	--motekhassesan-single-muted: color-mix(in srgb, var(--wd-text-color, #777777) 68%, transparent);
	--motekhassesan-single-title: var(--wd-title-color, #222222);
	--motekhassesan-single-radius-lg: 22px;
	--motekhassesan-single-radius-md: 16px;
	--motekhassesan-single-shadow: 0 18px 48px rgba(15, 23, 42, 0.088);
	/* حاشیهٔ افقی ناحیهٔ اصلی (قابل تنظیم یکجا) */
	--motekhassesan-page-gutter: clamp(32px, 8vw, 88px);
}

/* فاصلهٔ یکنواخت کل ناحیهٔ اصلی صفحه از لبهٔ نمایشگر (Woodmart: .main-page-wrapper) */
body.single-product .main-page-wrapper {
	padding-inline: var(--motekhassesan-page-gutter);
	box-sizing: border-box;
}

body.single-product .product-image-summary-wrap,
body.single-product .product-tabs-wrapper,
body.single-product .motekhassesan-single-author-box,
body.single-product .motekhassesan-single-explore {
	direction: inherit;
}

/* ناوبری قبلی/بعدی تم و اشتراک پیش‌فرض (در کنار فیلتر PHP برای حالت‌های خاص مثل المنتور) */
body.single-product .wd-products-nav {
	display: none !important;
}

body.single-product .social-share.product-share,
body.single-product .product-share.wd-layout-inline {
	display: none !important;
}

body.single-product .summary .wd-compare-btn.product-compare-button {
	display: none !important;
}

/* -------------------------------------------------------------------------
   گرید صفحه محصول: سایدبار (جزئیات + اشتراک) | ستون اصلی (گالری + خرید + برچسب)
   ------------------------------------------------------------------------- */
body.single-product .motekhassesan-product-shell {
	direction: ltr;
	display: grid;
	grid-template-columns: minmax(220px, 26%) minmax(0, 1fr);
	gap: clamp(11px, 1.8vw, 20px);
	align-items: start;
	margin-bottom: clamp(14px, 2.2vw, 26px);
}

body.single-product .motekhassesan-product-shell__sidebar {
	direction: rtl;
	display: flex;
	flex-direction: column;
	gap: 11px;
	position: sticky;
	top: 100px;
	align-self: start;
}

body.single-product .motekhassesan-product-shell__main {
	direction: rtl;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

body.single-product .motekhassesan-product-shell__sidebar .motekhassesan-single-facts {
	margin-top: 0;
}

body.single-product .motekhassesan-product-shell__sidebar .motekhassesan-single-facts-grid {
	grid-template-columns: 1fr;
}

body.single-product .motekhassesan-product-shell__sidebar .motekhassesan-share-card {
	margin-top: 0;
}

body.single-product .motekhassesan-product-shell__main .product-image-summary-wrap {
	margin-bottom: 0;
	width: 100%;
}

body.single-product .motekhassesan-product-tags-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	padding: 11px 14px;
	background: var(--motekhassesan-single-bg);
	border: 1px solid var(--motekhassesan-single-border);
	border-radius: 12px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

body.single-product .motekhassesan-product-tags-label {
	flex-shrink: 0;
	font-weight: 900;
	font-size: 13px;
	color: var(--motekhassesan-single-title);
}

body.single-product .motekhassesan-product-tags-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

body.single-product .motekhassesan-product-tag-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--motekhassesan-single-border);
	background: var(--motekhassesan-single-soft-bg);
	font-size: 12px;
	font-weight: 700;
	color: var(--motekhassesan-single-text);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

body.single-product .motekhassesan-product-tag-pill:hover {
	border-color: var(--motekhassesan-single-primary);
	color: var(--motekhassesan-single-primary);
	background: var(--motekhassesan-single-bg);
}

@media (max-width: 991px) {
	body.single-product .motekhassesan-product-shell {
		grid-template-columns: 1fr;
	}

	body.single-product .motekhassesan-product-shell__main {
		order: 1;
	}
}

/* دکمه جزئیات — فقط موبایل */
body.single-product .motekhassesan-mobile-details-btn {
	display: none;
}

body.single-product .motekhassesan-details-backdrop,
body.single-product .motekhassesan-details-sheet-head {
	display: none;
}

body.single-product .product-image-summary-wrap {
	position: relative;
}

body.single-product .product-image-summary-wrap::before {
	content: "";
	position: absolute;
	inset: -14px 0 auto;
	z-index: -1;
	height: 220px;
	border-radius: 0 0 28px 28px;
	background:
		radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--motekhassesan-single-primary) 22%, transparent) 0, transparent 34%),
		linear-gradient(135deg, color-mix(in srgb, var(--motekhassesan-single-primary) 10%, transparent), transparent 52%);
	pointer-events: none;
}

body.single-product .product-image-summary-inner {
	align-items: stretch;
	/*display: flex;*/
	flex-wrap: wrap;
	gap: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: clamp(11px, 2vw, 22px);
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--motekhassesan-single-bg) 96%, var(--motekhassesan-single-primary) 4%), var(--motekhassesan-single-bg)),
		var(--motekhassesan-single-bg);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 82%, transparent);
	border-radius: var(--motekhassesan-single-radius-lg);
	box-shadow: var(--motekhassesan-single-shadow);
	overflow: hidden;
}

body.single-product .product-image-summary-inner:has(.wd-gallery-images .motekhassesan-sale-ribbon) {

}

/* جلوگیری از کشیدن باکس به یک سمت: مارجین منفی .row وقتی padding ستون‌ها صفر است */
body.single-product .product-image-summary-inner.row {
	margin-left: 0;
	margin-right: 0;
	margin-inline: 0;
	--bs-gutter-x: 0;
	--bs-gutter-y: 0;
}

body.single-product .product-image-summary-inner > [class*="col-"] {
	padding-right: 0;
	padding-left: 0;
	min-width: 0;
	max-width: 100%;
}

body.single-product .product-image-summary-inner .product-images,
body.single-product .product-image-summary-inner .summary {
	margin-bottom: 0;
	min-width: 0;
}

/* یک باکس واحد: گالری بدون کارت جدا؛ فقط خط ظریف بین تصویر و اطلاعات */
body.single-product .product-image-summary-inner .product-images {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(200px, 26vw, 380px);
	padding: clamp(10px, 1.7vw, 22px) clamp(11px, 1.9vw, 22px);
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

@media (min-width: 768px) {
	body.single-product .product-image-summary-inner .product-images {
		border-inline-end: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 90%, transparent);
		align-self: stretch;
	}
}

@media (max-width: 767px) {
	body.single-product .product-image-summary-inner .product-images {
		border-bottom: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 90%, transparent);
		padding-bottom: clamp(14px, 3.2vw, 22px);
		margin-bottom: clamp(6px, 1.6vw, 11px);
	}
}

body.single-product .product-image-summary-inner .product-images::before,
body.single-product .product-image-summary-inner .product-images::after {
	display: none;
	content: none;
}

/* گالری sticky وودمارت را داخل همان باکس در جریان قرار بده */
body.single-product .product-image-summary-inner .woocommerce-product-gallery.images,
body.single-product .product-image-summary-inner .woocommerce-product-gallery.images.is_stuck {
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	inset: auto !important;
	width: 100% !important;
	max-width: min(360px, 100%);
	margin-inline: auto;
	opacity: 1 !important;
	float: none !important;
}

body.single-product .product-image-summary-inner .product-images > div:empty[style*="height"] {
	display: none !important;
}

body.single-product .product-image-summary-inner .woocommerce-product-gallery,
body.single-product .product-image-summary-inner .woocommerce-product-gallery__wrapper,
body.single-product .product-image-summary-inner .woocommerce-product-gallery__image {
	position: relative;
	z-index: 1;
}

body.single-product .product-image-summary-inner .woocommerce-product-gallery img {
	filter: drop-shadow(0 16px 22px rgba(15, 23, 42, 0.12));
	transition: transform 0.28s ease, filter 0.28s ease;
}

body.single-product .product-image-summary-inner .product-images:hover .woocommerce-product-gallery img {
	transform: translateY(-4px) scale(1.018);
	filter: drop-shadow(0 22px 28px rgba(15, 23, 42, 0.15));
}

/* گالری اصلی — ربان «پیشنهاد ویژه» (هم‌سبک فروشگاه) */
body.single-product .product-image-summary-inner .wd-gallery-images .wd-carousel-inner {
	container-type: inline-size;
	--motekhassesan-ribbon-size: clamp(58px, 22cqi, 78px);
	overflow: hidden !important;
}

body.single-product .product-image-summary-inner .wd-gallery-images,
body.single-product .product-image-summary-inner .woocommerce-product-gallery.images {
	overflow: visible !important;
}

body.single-product .product-image-summary-inner .wd-gallery-images .product-labels:has(.motekhassesan-sale-ribbon) {
	height: var(--motekhassesan-ribbon-size, 60px) !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	pointer-events: none;
	z-index: 4;
	flex-direction: row !important;
	align-items: flex-start !important;
	text-align: center;
	right: -2px !important;
	width: auto !important;
	overflow: visible !important;
}

body.single-product .product-image-summary-inner .wd-gallery-images .product-labels:not(:has(.motekhassesan-sale-ribbon)) {
	top: 7px !important;
	inset-inline-start: 7px !important;
	inset-inline-end: auto !important;
	right: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 50% !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 10px !important;
	overflow: visible !important;
	flex-direction: column !important;
	align-items: flex-start !important;
}

body.single-product .product-image-summary-inner .wd-gallery-images .product-labels:not(:has(.motekhassesan-sale-ribbon)) .product-label {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	width: auto !important;
	min-width: 50px;
	transform: none !important;
	box-shadow: none;
	border-radius: 6px;
	text-transform: none;
}

body.single-product .product-image-summary-inner .wd-gallery-images .product-label.motekhassesan-sale-ribbon,
body.single-product .product-image-summary-inner .wd-gallery-images .onsale.motekhassesan-sale-ribbon {
	position: absolute;
	top: calc(var(--motekhassesan-ribbon-size, 60px) * 0.14);
	right: calc(var(--motekhassesan-ribbon-size, 60px) * -0.48);
	left: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: calc(var(--motekhassesan-ribbon-size, 60px) * 2.05);
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0.42em 0 !important;
	border-radius: 0;
	background: #e22d2d !important;
	color: #fff;
	font-size: clamp(9px, 2.8cqi, 12px);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	transform: rotate(45deg);
	transform-origin: center center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

body.single-product .product-image-summary-inner .summary-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	max-width: 100%;
	gap: clamp(14px, 2vw, 22px);
	padding: clamp(6px, 1.2vw, 16px);
	box-sizing: border-box;
}

@media (min-width: 768px) {
	body.single-product .product-image-summary-inner .summary-inner {
		padding-inline-start: clamp(11px, 1.8vw, 20px);
	}
}

/* ترتیب خوانا: نان‌وا → عنوان → بقیه طبق DOM ووکامرس */
body.single-product .product-image-summary-inner .summary-inner > * {
	margin-block: 0;
}

body.single-product .summary-inner .single-breadcrumbs-wrapper {
	margin: 0;
	padding: 0 0 2px;
	border: none;
}

body.single-product .summary-inner .single-breadcrumbs {
	margin: 0;
}

body.single-product .summary-inner .wd-breadcrumbs {
	margin: 0;
}

body.single-product .summary-inner .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 2px;
	margin: 0;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--motekhassesan-single-muted);
	background: color-mix(in srgb, var(--motekhassesan-single-soft-bg) 85%, var(--motekhassesan-single-bg));
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 88%, transparent);
	border-radius: 10px;
}

body.single-product .summary-inner .woocommerce-breadcrumb .breadcrumb-link {
	color: var(--motekhassesan-single-text);
	text-decoration: none;
	padding: 2px 4px;
	border-radius: 6px;
	transition: color 0.18s ease, background 0.18s ease;
}

body.single-product .summary-inner .woocommerce-breadcrumb .breadcrumb-link:hover {
	color: var(--motekhassesan-single-primary);
	background: color-mix(in srgb, var(--motekhassesan-single-primary) 8%, transparent);
}

body.single-product .summary-inner .woocommerce-breadcrumb .breadcrumb-link:not(.breadcrumb-link-last)::after {
	content: "›";
	display: inline-block;
	margin-inline-start: 6px;
	color: var(--motekhassesan-single-muted);
	font-weight: 700;
	opacity: 0.55;
	pointer-events: none;
}

body.single-product .summary-inner .woocommerce-breadcrumb .breadcrumb-last {
	margin-inline-start: 4px;
	padding: 2px 6px;
	font-weight: 800;
	color: var(--motekhassesan-single-title);
	background: color-mix(in srgb, var(--motekhassesan-single-primary) 9%, var(--motekhassesan-single-bg));
	border-radius: 8px;
}

body.single-product .summary-inner .product_title,
body.single-product .summary-inner .entry-title {
	max-width: 42rem;
	margin: 0;
	color: var(--motekhassesan-single-title);
	font-size: clamp(18px, 2.4vw, 28px);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.35;
}

body.single-product .motekhassesan-single-primary-terms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	padding: 10px 12px;
	background: var(--motekhassesan-single-bg);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 92%, transparent);
	border-radius: 12px;
	box-shadow: 0 1px 0 color-mix(in srgb, #fff 70%, transparent);
}

body.single-product .motekhassesan-single-eyebrow-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	color: var(--motekhassesan-single-text);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

body.single-product .motekhassesan-single-eyebrow-item:not(:last-child) {
	padding-inline-end: 12px;
	border-inline-end: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 85%, transparent);
}

body.single-product .motekhassesan-single-eyebrow-item > span {
	color: var(--motekhassesan-single-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.single-product .motekhassesan-single-primary-terms a,
body.single-product .motekhassesan-single-facts a,
body.single-product .motekhassesan-single-author-box a {
	color: var(--motekhassesan-single-primary);
	text-decoration: none;
}

body.single-product .motekhassesan-single-primary-terms a:hover,
body.single-product .motekhassesan-single-facts a:hover,
body.single-product .motekhassesan-single-author-box a:hover {
	color: var(--motekhassesan-single-primary-hover);
}

body.single-product .summary-inner .woocommerce-product-rating {
	width: fit-content;
	margin: 0;
	padding: 8px 12px;
	background: var(--motekhassesan-single-bg);
	border: 1px solid var(--motekhassesan-single-border);
	border-radius: 10px;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

body.single-product .summary-inner .price {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	column-gap: 16px;
	row-gap: 8px;
	width: 100%;
	max-width: 26rem;
	margin: 0;
	padding: 14px 16px;
	background: linear-gradient(
		160deg,
		color-mix(in srgb, var(--motekhassesan-single-primary) 11%, var(--motekhassesan-single-bg)),
		var(--motekhassesan-single-bg)
	);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-primary) 14%, var(--motekhassesan-single-border));
	border-radius: 14px;
	color: var(--motekhassesan-single-title);
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 900;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--motekhassesan-single-primary) 7%, transparent);
}

body.single-product .summary-inner .price::before {
	content: "قیمت";
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--motekhassesan-single-muted);
	flex-shrink: 0;
}

body.single-product .summary-inner .price del {
	margin-inline-end: 8px;
	font-size: 0.88em;
	font-weight: 650;
	opacity: 0.72;
}

body.single-product .summary-inner .price ins {
	text-decoration: none;
	color: color-mix(in srgb, #c1121f 82%, var(--motekhassesan-single-title));
}

/* صفحهٔ تکی — بج درصد تخفیف و چیدمان قیمت حراج */
body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 14px;
	row-gap: 10px;
}

body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary)::before {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
}

body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) > .motekhassesan-discount-percent--summary {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 3.4rem;
	padding: 7px 11px;
	border-radius: 12px;
	background: linear-gradient(145deg, #ef4444 0%, #c1121f 58%, #9b111e 100%);
	color: #fff;
	font-weight: 800;
	line-height: 1.05;
	text-align: center;
	white-space: nowrap;
	box-shadow:
		0 4px 14px color-mix(in srgb, #c1121f 38%, transparent),
		inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
}

body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) .motekhassesan-price-original-wrap--summary {
	grid-column: 1;
	grid-row: 2;
	justify-self: start;
	display: inline-flex;
	align-items: baseline;
}

body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) > ins {
	grid-column: 2;
	grid-row: 2;
	justify-self: end;
	display: inline-flex;
	align-items: baseline;
	font-size: 1.08em;
	font-weight: 900;
	letter-spacing: -0.01em;
}

body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) del {
	margin-inline-end: 0;
	font-size: 0.82em;
	opacity: 0.68;
}

body.single-product .summary-inner .motekhassesan-discount-percent__value {
	font-size: 1.05em;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

body.single-product .summary-inner .motekhassesan-discount-percent__label {
	font-size: 0.62em;
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: 0.94;
}

body.single-product .summary-inner .woocommerce-product-details__short-description {
	margin: 0;
	padding: 12px 14px;
	background: color-mix(in srgb, var(--motekhassesan-single-soft-bg) 76%, var(--motekhassesan-single-bg));
	border: 1px solid var(--motekhassesan-single-border);
	border-radius: 14px;
	color: var(--motekhassesan-single-text);
	line-height: 1.85;
}

body.single-product .summary-inner form.cart {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0;
	padding: 14px 14px 14px 16px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: var(--motekhassesan-single-bg);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 90%, transparent);
	border-radius: 14px;
	box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

body.single-product .summary-inner form.cart .quantity {
	display: inline-flex;
	align-items: stretch;
	margin: 0;
	border-radius: 11px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 95%, var(--motekhassesan-single-text));
	background: var(--motekhassesan-single-soft-bg);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.single-product .summary-inner form.cart .quantity .minus,
body.single-product .summary-inner form.cart .quantity .plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: color-mix(in srgb, var(--motekhassesan-single-bg) 55%, var(--motekhassesan-single-soft-bg));
	color: var(--motekhassesan-single-title);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

body.single-product .summary-inner form.cart .quantity .minus:hover,
body.single-product .summary-inner form.cart .quantity .plus:hover {
	background: color-mix(in srgb, var(--motekhassesan-single-primary) 12%, var(--motekhassesan-single-bg));
	color: var(--motekhassesan-single-primary);
}

body.single-product .summary-inner form.cart .quantity .minus:focus-visible,
body.single-product .summary-inner form.cart .quantity .plus:focus-visible {
	outline: 2px solid var(--motekhassesan-single-primary);
	outline-offset: 1px;
}

body.single-product .summary-inner form.cart .quantity .qty {
	width: 3.25rem;
	min-height: 44px;
	margin: 0;
	padding: 0 6px;
	border: none;
	border-inline: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 88%, transparent);
	border-radius: 0;
	background: var(--motekhassesan-single-bg);
	color: var(--motekhassesan-single-title);
	font-size: 15px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	text-align: center;
	line-height: 1;
	box-shadow: none;
	appearance: textfield;
	-moz-appearance: textfield;
}

body.single-product .summary-inner form.cart .quantity .qty::-webkit-outer-spin-button,
body.single-product .summary-inner form.cart .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.single-product .summary-inner .single_add_to_cart_button {
	flex: 1 1 180px;
	min-height: 46px;
	padding: 0 22px;
	border: none;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--motekhassesan-single-primary), var(--motekhassesan-single-primary-hover));
	color: var(--motekhassesan-single-primary-text);
	font-size: 14px;
	font-weight: 850;
	letter-spacing: 0.02em;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--motekhassesan-single-primary) 24%, transparent);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.single-product .summary-inner .single_add_to_cart_button:hover {
	transform: translateY(-1px);
	background: var(--motekhassesan-single-primary-hover);
	color: var(--motekhassesan-single-primary-text);
	box-shadow: 0 14px 30px color-mix(in srgb, var(--motekhassesan-single-primary) 28%, transparent);
}

/* فقط حین درخواست AJAX افزودن به سبد (جلوگیری از کلیک‌های پیاپی) */
body.single-product .summary-inner .single_add_to_cart_button:disabled,
body.single-product .wd-sticky-btn-cart .single_add_to_cart_button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	pointer-events: none;
	box-shadow: none;
}

body.single-product .motekhassesan-single-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 11px;
}

body.single-product .motekhassesan-single-section-head span,
body.single-product .motekhassesan-single-explore-head span,
body.single-product .motekhassesan-single-author-card-label {
	color: var(--motekhassesan-single-primary);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.single-product .motekhassesan-single-facts {
	margin-top: 2px;
	padding: 13px 14px;
	background: var(--motekhassesan-single-bg);
	border: 1px solid var(--motekhassesan-single-border);
	border-radius: var(--motekhassesan-single-radius-md);
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.042);
}

body.single-product .motekhassesan-single-facts h3 {
	margin: 0;
	color: var(--motekhassesan-single-title);
	font-size: 15px;
	font-weight: 900;
}

body.single-product .motekhassesan-single-facts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

body.single-product .motekhassesan-single-fact-row {
	position: relative;
	display: grid;
	grid-template-columns: 10px minmax(72px, 0.34fr) minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	min-height: 50px;
	padding: 9px 10px;
	background: color-mix(in srgb, var(--motekhassesan-single-soft-bg) 68%, var(--motekhassesan-single-bg));
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 82%, transparent);
	border-radius: 13px;
	transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

body.single-product .motekhassesan-single-fact-row:hover {
	transform: translateY(-2px);
	background: var(--motekhassesan-single-bg);
	border-color: color-mix(in srgb, var(--motekhassesan-single-primary) 26%, var(--motekhassesan-single-border));
}

body.single-product .motekhassesan-single-fact-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--motekhassesan-single-primary);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--motekhassesan-single-primary) 12%, transparent);
}

body.single-product .motekhassesan-single-fact-row dt,
body.single-product .motekhassesan-single-fact-row dd {
	margin: 0;
	font-size: 13px;
	line-height: 1.75;
}

body.single-product .motekhassesan-single-fact-row dt {
	color: var(--motekhassesan-single-muted);
	font-weight: 800;
}

body.single-product .motekhassesan-single-fact-row dd {
	color: var(--motekhassesan-single-text);
	font-weight: 700;
}

body.single-product .motekhassesan-single-author-box,
body.single-product .motekhassesan-single-explore {
	position: relative;
	padding: clamp(14px, 2vw, 24px);
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--motekhassesan-single-primary) 7%, var(--motekhassesan-single-bg)), var(--motekhassesan-single-bg));
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-primary) 14%, var(--motekhassesan-single-border));
	border-radius: var(--motekhassesan-single-radius-lg);
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.062);
	overflow: hidden;
}

/* باکس نویسنده: تمام‌عرض کانتینر زیر گرید */
body.single-product .motekhassesan-single-author-box {
	width: calc(100% - 22px);
	max-width: var(--wd-container-width, 1222px);
	margin: 18px auto 0;
}

/* کشف بعدی: کمی باریک‌تر از باکس تصویر+خرید تا هم‌تراز بصری (فقط دسکتاپ) */
body.single-product .motekhassesan-product-shell__main .motekhassesan-single-explore {
	box-sizing: border-box;
}

@media (min-width: 769px) {
	body.single-product .motekhassesan-product-shell__main .motekhassesan-single-explore {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		margin-inline: auto;
		align-self: center;
	}
}

body.single-product .motekhassesan-single-author-box::before,
body.single-product .motekhassesan-single-explore::before {
	content: "";
	position: absolute;
	top: -90px;
	left: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--motekhassesan-single-primary) 14%, transparent);
	pointer-events: none;
}

body.single-product .motekhassesan-single-author-box {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px 16px;
	align-items: start;
}

body.single-product .motekhassesan-single-author-card-label {
	position: relative;
	z-index: 1;
	grid-column: 1 / -1;
}

body.single-product .motekhassesan-single-author-avatar {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-primary) 28%, transparent);
	border-radius: 22px;
	background:
		linear-gradient(135deg, var(--motekhassesan-single-primary), var(--motekhassesan-single-primary-hover));
	color: var(--motekhassesan-single-primary-text);
	font-size: 30px;
	font-weight: 950;
	box-shadow: 0 12px 26px color-mix(in srgb, var(--motekhassesan-single-primary) 16%, transparent);
}

body.single-product .motekhassesan-single-author-content {
	position: relative;
	z-index: 1;
}

body.single-product .motekhassesan-single-author-content h2,
body.single-product .motekhassesan-single-explore-head h2 {
	margin: 0 0 8px;
	color: var(--motekhassesan-single-title);
	font-size: clamp(17px, 2vw, 23px);
	font-weight: 950;
	line-height: 1.45;
}

body.single-product .motekhassesan-single-author-description,
body.single-product .motekhassesan-single-explore-head p {
	max-width: 860px;
	color: var(--motekhassesan-single-text);
	font-size: 14px;
	line-height: 2;
}

body.single-product .motekhassesan-single-author-description p,
body.single-product .motekhassesan-single-explore-head p {
	margin: 0;
}

body.single-product .motekhassesan-single-author-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 11px;
	padding: 8px 12px;
	background: var(--motekhassesan-single-bg);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-primary) 24%, transparent);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
}

body.single-product .motekhassesan-single-explore {
	display: grid;
	grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

body.single-product .motekhassesan-single-explore-head,
body.single-product .motekhassesan-single-explore-chips {
	position: relative;
	z-index: 1;
}

body.single-product .motekhassesan-single-explore-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.single-product .motekhassesan-single-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 7px 13px;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-primary) 26%, var(--motekhassesan-single-border));
	border-radius: 999px;
	color: var(--motekhassesan-single-primary);
	backdrop-filter: blur(10px);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.5;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
	transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

body.single-product .motekhassesan-single-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 2px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--motekhassesan-single-primary) 10%, transparent);
	color: var(--motekhassesan-single-muted);
	font-size: 10px;
	font-weight: 900;
}

body.single-product .motekhassesan-single-chip:hover {
	transform: translateY(-2px);
	background: var(--motekhassesan-single-primary);
	color: var(--motekhassesan-single-primary-text);
	box-shadow: 0 12px 24px color-mix(in srgb, var(--motekhassesan-single-primary) 20%, transparent);
}

body.single-product .motekhassesan-single-chip:hover span {
	background: rgba(255, 255, 255, 0.18);
	color: inherit;
}

/* -------------------------------------------------------------------------
   Share card (اشتراک‌گذاری)
   ------------------------------------------------------------------------- */
body.single-product .motekhassesan-share-card {
	margin-top: 10px;
	padding: clamp(12px, 1.6vw, 17px);
	border: 1px solid var(--motekhassesan-single-border);
	border-radius: 12px;
	background: var(--motekhassesan-single-bg);
	box-shadow: 0 9px 24px rgba(15, 23, 42, 0.045);
}

body.single-product .motekhassesan-share-card-title {
	margin: 0 0 10px;
	color: var(--motekhassesan-single-title);
	font-size: 13px;
	font-weight: 900;
}

body.single-product .motekhassesan-share-icons {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	gap: clamp(5px, 1.2vw, 8px);
	margin: 0 0 10px;
}

body.single-product .motekhassesan-share-icon {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 42px;
	padding: 8px 5px;
	border-radius: 9px;
	color: #ffffff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body.single-product .motekhassesan-share-icon:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
	opacity: 0.96;
	color: #ffffff;
}

body.single-product .motekhassesan-share-icon-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

body.single-product .motekhassesan-share-icon-inner svg,
body.single-product .motekhassesan-share-icon-inner img {
	flex-shrink: 0;
}

body.single-product .motekhassesan-share-icon-img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

body.single-product .motekhassesan-share-icon--telegram,
body.single-product .motekhassesan-share-icon--aparat,
body.single-product .motekhassesan-share-icon--youtube,
body.single-product .motekhassesan-share-icon--bale,
body.single-product .motekhassesan-share-icon--eitaa {
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 88%, transparent);
}

body.single-product .motekhassesan-share-icon--telegram:hover,
body.single-product .motekhassesan-share-icon--aparat:hover,
body.single-product .motekhassesan-share-icon--youtube:hover,
body.single-product .motekhassesan-share-icon--bale:hover,
body.single-product .motekhassesan-share-icon--eitaa:hover {
	color: inherit;
}

body.single-product .motekhassesan-share-copy {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 10px 14px;
	border: none;
	border-radius: 11px;
	background: var(--motekhassesan-single-soft-bg);
	color: var(--motekhassesan-single-title);
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.5;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

body.single-product .motekhassesan-share-copy:hover {
	background: color-mix(in srgb, var(--motekhassesan-single-soft-bg) 72%, var(--motekhassesan-single-border));
}

body.single-product .motekhassesan-share-copy:focus-visible {
	outline: 2px solid var(--motekhassesan-single-primary);
	outline-offset: 2px;
}

body.single-product .motekhassesan-share-copy.is-copied {
	background: color-mix(in srgb, var(--motekhassesan-single-primary) 14%, var(--motekhassesan-single-soft-bg));
	color: var(--motekhassesan-single-primary);
}

body.single-product .motekhassesan-share-copy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--motekhassesan-single-muted);
}

body.single-product .motekhassesan-share-copy:hover .motekhassesan-share-copy-icon {
	color: var(--motekhassesan-single-title);
}

body.single-product .motekhassesan-share-copy.is-copied .motekhassesan-share-copy-icon {
	color: inherit;
}

@media (max-width: 520px) {
	body.single-product .motekhassesan-share-icons {
		flex-wrap: wrap;
	}

	body.single-product .motekhassesan-share-icon {
		flex: 1 1 calc(33.333% - 8px);
		min-height: 42px;
	}
}

/* -------------------------------------------------------------------------
   تب‌های محصول: خط تب مینیمال + پنل مسطح (بدون سگمنت/گرادیان سنگین)
   ------------------------------------------------------------------------- */
body.single-product .product-tabs-wrapper {
	background: transparent;
	border: none;
	padding-block: clamp(22px, 3.5vw, 44px);
}

body.single-product .product-tabs-wrapper .poduct-tabs-inner {
	position: relative;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	gap: 0;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs > .wd-nav-tabs-wrapper {
	display: flex;
	justify-content: flex-start !important;
	width: 100%;
	margin: 0 0 0 !important;
	padding: 0;
	border: none;
	border-bottom: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 92%, transparent);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: start !important;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav.wd-nav-tabs {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 4px 28px;
	margin: 0;
	padding: 0 0 1px;
	list-style: none;
	border: none;
	box-shadow: none;
	width: 100%;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li {
	float: none;
	margin: 0 !important;
	padding: 0;
	border: none;
	flex: 0 0 auto;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li > a.wd-nav-link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 48px;
	padding: 10px 4px 14px;
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--motekhassesan-single-muted);
	font-weight: 650;
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: color 0.2s ease;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li > a.wd-nav-link::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	bottom: -2px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--motekhassesan-single-primary);
	opacity: 0;
	transform: scaleX(0.65);
	transform-origin: center;
	transition: opacity 0.2s ease, transform 0.22s ease;
	pointer-events: none;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li.active > a.wd-nav-link {
	color: var(--motekhassesan-single-title);
	font-weight: 850;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li.active > a.wd-nav-link::after {
	opacity: 1;
	transform: scaleX(1);
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li:not(.active) > a.wd-nav-link:hover {
	color: var(--motekhassesan-single-title);
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li > a.wd-nav-link:focus-visible {
	outline: 2px solid var(--motekhassesan-single-primary);
	outline-offset: 4px;
	border-radius: 4px;
}

body.single-product .product-tabs-wrapper .wd-nav-tabs.wd-style-underline-reverse > li > a {
	padding-top: 10px !important;
}

body.single-product .product-tabs-wrapper .wd-nav-tabs .nav-link-text::after,
body.single-product .product-tabs-wrapper .wd-nav-tabs.wd-style-underline-reverse > li > a > .nav-link-text::after {
	display: none !important;
	content: none !important;
	border: none !important;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .woocommerce-Tabs-panel {
	position: relative;
	z-index: 1;
	margin-top: clamp(18px, 2.5vw, 26px);
	padding: clamp(22px, 3.2vw, 34px) clamp(18px, 2.5vw, 28px);
	padding-inline-start: clamp(22px, 3vw, 32px);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 90%, transparent);
	border-radius: var(--motekhassesan-single-radius-md);
	background: color-mix(in srgb, var(--motekhassesan-single-soft-bg) 32%, var(--motekhassesan-single-bg));
	box-shadow: none;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .woocommerce-Tabs-panel::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: clamp(16px, 2.2vw, 24px);
	bottom: clamp(16px, 2.2vw, 24px);
	width: 3px;
	border-radius: 3px;
	background: var(--motekhassesan-single-primary);
	opacity: 0.75;
	pointer-events: none;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wc-tab-inner {
	color: var(--motekhassesan-single-text);
	font-size: 15px;
	line-height: 1.95;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wc-tab-inner > *:first-child {
	margin-top: 0;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wc-tab-inner > *:last-child {
	margin-bottom: 0;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wc-tab-inner p {
	margin: 0 0 1em;
}

body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wc-tab-inner ul,
body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wc-tab-inner ol {
	margin: 0 0 1em;
	padding-inline-start: 1.35em;
}

/* آکاردئون: لیست ساده با جداکننده (هم‌خوان با تب خطی) */
body.single-product .product-tabs-wrapper .wd-accordion-item {
	margin: 0;
	border: none;
	border-bottom: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 92%, transparent);
	border-radius: 0;
	overflow: visible;
	background: transparent;
	box-shadow: none;
}

body.single-product .product-tabs-wrapper .wd-accordion-item:last-child {
	border-bottom: none;
}

body.single-product .product-tabs-wrapper .wd-accordion-title {
	margin: 0;
	padding: 16px 6px 16px 0;
	background: transparent;
	border: none;
	font-weight: 800;
	font-size: 15px;
	color: var(--motekhassesan-single-title);
	letter-spacing: -0.01em;
	transition: color 0.18s ease;
}

body.single-product .product-tabs-wrapper .wd-accordion-title:hover {
	color: var(--motekhassesan-single-primary);
}

body.single-product .product-tabs-wrapper .wd-accordion-title.wd-active {
	color: var(--motekhassesan-single-primary);
}

body.single-product .product-tabs-wrapper .wd-accordion-title .wd-accordion-opener {
	opacity: 0.5;
}

body.single-product .product-tabs-wrapper .wd-accordion-item .woocommerce-Tabs-panel {
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	margin: 0 0 8px;
	padding: 0 0 20px;
}

body.single-product .product-tabs-wrapper .wd-accordion-item .woocommerce-Tabs-panel::before {
	display: none;
}

/* بلوک نظرات */
body.single-product .product-tabs-wrapper .wd-reviews-heading {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 85%, transparent);
}

body.single-product .product-tabs-wrapper .woocommerce-Reviews-title {
	margin: 0;
	font-size: clamp(17px, 2vw, 21px);
	font-weight: 900;
	color: var(--motekhassesan-single-title);
	letter-spacing: -0.02em;
}

body.single-product .product-tabs-wrapper .woocommerce-noreviews {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--motekhassesan-single-soft-bg) 80%, var(--motekhassesan-single-bg));
	border: 1px dashed color-mix(in srgb, var(--motekhassesan-single-border) 92%, transparent);
	color: var(--motekhassesan-single-muted);
	font-size: 14px;
	line-height: 1.7;
}

body.single-product .product-tabs-wrapper #review_form_wrapper {
	margin-top: 8px;
}

body.single-product .product-tabs-wrapper .comment-reply-title {
	display: block;
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 800;
	color: var(--motekhassesan-single-title);
	line-height: 1.55;
}

body.single-product .product-tabs-wrapper #commentform .comment-form-rating label,
body.single-product .product-tabs-wrapper #commentform .comment-form-comment label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 800;
	color: var(--motekhassesan-single-title);
}

body.single-product .product-tabs-wrapper #commentform .stars {
	margin: 0 0 16px;
}

body.single-product .product-tabs-wrapper #commentform .stars a {
	color: var(--motekhassesan-single-primary);
	opacity: 0.45;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

body.single-product .product-tabs-wrapper #commentform .stars a:hover,
body.single-product .product-tabs-wrapper #commentform .stars a.active {
	opacity: 1;
}

body.single-product .product-tabs-wrapper #commentform textarea,
body.single-product .product-tabs-wrapper #commentform input[type="text"] {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 92%, transparent);
	border-radius: 12px;
	background: var(--motekhassesan-single-bg);
	color: var(--motekhassesan-single-text);
	font: inherit;
	line-height: 1.6;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.single-product .product-tabs-wrapper #commentform textarea {
	min-height: 140px;
	resize: vertical;
}

body.single-product .product-tabs-wrapper #commentform textarea:focus,
body.single-product .product-tabs-wrapper #commentform input[type="text"]:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--motekhassesan-single-primary) 45%, var(--motekhassesan-single-border));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--motekhassesan-single-primary) 18%, transparent);
}

body.single-product .product-tabs-wrapper #commentform .form-submit {
	margin: 18px 0 0;
	padding: 0;
}

body.single-product .product-tabs-wrapper #commentform input#submit.submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 28px;
	border: none;
	border-radius: 10px;
	background: var(--motekhassesan-single-primary);
	color: var(--motekhassesan-single-primary-text);
	font-size: 14px;
	font-weight: 850;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.2s ease, transform 0.18s ease;
}

body.single-product .product-tabs-wrapper #commentform input#submit.submit:hover {
	transform: translateY(-1px);
	background: var(--motekhassesan-single-primary-hover);
}

/* در حالت تب دسکتاپ پنل‌های مخفی ووکامرس را دست نمی‌زنیم (display با JS) */

/* —— محصولات مرتبط / آپسل: همان ظاهر کارت فروشگاه (با JS: سبد در پایین کارت) —— */
/* کانتینر یکپارچه: همهٔ ردیف‌ها داخل یک باکس نرم */
body.single-product .related-and-upsells {
	margin-top: clamp(28px, 5vw, 48px);
	margin-bottom: clamp(8px, 2vw, 20px);
	/* فضای کلی باکس؛ جزئیات داخل هر بلوک وودمارت در .wd-products-element */
	padding: clamp(18px, 3.2vw, 28px) clamp(16px, 3vw, 32px);
	box-sizing: border-box;
	background: var(--motekhassesan-single-surface);
	border: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 88%, transparent);
	border-radius: var(--motekhassesan-single-radius-md);
	box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

/* معادل پدینگ ~۴۰px ولی واکنش‌گرا؛ !important جلوی padding اینلاین ادیتور را می‌گیرد */
body.single-product .related-and-upsells .wd-products-element {
	margin-bottom: clamp(22px, 3.2vw, 32px);
	padding: clamp(16px, 3.6vw, 40px) !important;
	box-sizing: border-box;
}

body.single-product .related-and-upsells .wd-products-element:last-child {
	margin-bottom: 0;
}

body.single-product .related-and-upsells .wd-el-title.title.element-title,
body.single-product .related-and-upsells .wd-el-title.title {
	margin: 0 0 clamp(20px, 2.4vw, 28px);
	padding: 0;
	color: var(--motekhassesan-single-title);
	font-size: clamp(17px, 1.35vw, 20px);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.02em;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards {
	--motekhassesan-primary: var(--btn-accented-bgcolor, var(--wd-primary-color, #f6ad00));
	--motekhassesan-primary-hover: var(--btn-accented-bgcolor-hover, var(--wd-link-color-hover, var(--wd-primary-color, #e09c00)));
	--motekhassesan-primary-text: var(--btn-accented-color, #ffffff);
	--motekhassesan-bg: var(--wd-content-bgcolor, var(--wd-main-bgcolor, #ffffff));
	--motekhassesan-soft-bg: var(--wd-light-grey-color, #f7f7f7);
	--motekhassesan-border: var(--wd-border-color, #eeeeee);
	--motekhassesan-text: var(--wd-text-color, #666666);
	--motekhassesan-muted-text: var(--wd-text-color, #999999);
	--motekhassesan-title: var(--wd-title-color, #222222);
	/* اگر تم هنوز ۴ ستون در استایل inline گذاشت، با !important هم‌راستا با ۵ ستون نگه می‌داریم */
	--wd-col-lg: 5 !important;
	--wd-gap-lg: clamp(14px, 2vw, 22px) !important;
	--wd-gap-sm: 10px !important;
	column-gap: clamp(14px, 2vw, 22px) !important;
	row-gap: clamp(14px, 2vw, 22px) !important;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-grid-item {
	grid-column: auto;
	width: auto !important;
	max-width: none !important;
	flex: initial !important;
	margin: 0 !important;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product .product-wrapper,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-grid-item .product-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--motekhassesan-bg);
	border: 1px solid var(--motekhassesan-border);
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product .product-wrapper:hover,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-grid-item .product-wrapper:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--motekhassesan-primary) 35%, transparent);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product .product-element-top,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-grid-item .product-element-top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 18px 16px;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product-img-hover {
	background-color: transparent;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-top .wrapp-buttons:empty {
	display: none !important;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-image-link {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-image-link > .product-labels.motekhassesan-sold-out-overlay {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	inset-inline-start: 0 !important;
	inset-inline-end: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	background: #0000006e;
	pointer-events: none;
	z-index: 2;
	flex-direction: row !important;
	align-items: stretch !important;
	overflow: hidden !important;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-image-link:has(.out-of-stock) > .product-labels:not(.motekhassesan-sold-out-overlay) {
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	inset-inline-start: 0 !important;
	inset-inline-end: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center;
	pointer-events: none;
	z-index: 3;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-image-link:has(.out-of-stock) > .product-labels:not(.motekhassesan-sold-out-overlay) .product-label.out-of-stock {
	text-align: center;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-top:has(.out-of-stock) img {
	filter: grayscale(100%);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-image-link img,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-top img {
	width: auto;
	max-width: 100%;
	max-height: 168px;
	object-fit: contain;
	margin: 0 auto;
	transition: transform 0.25s ease, filter 0.25s ease;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-wrapper:hover .product-image-link img,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-wrapper:hover .product-element-top img {
	transform: scale(1.03);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-top {
	container-type: inline-size;
	--motekhassesan-ribbon-size: clamp(50px, 18cqi, 64px);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-labels:has(.motekhassesan-sale-ribbon) {
	height: var(--motekhassesan-ribbon-size, 58px) !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	pointer-events: none;
	z-index: 3;
	flex-direction: row !important;
	align-items: flex-start !important;
	text-align: center;
	right: -2px !important;
	width: auto !important;
	overflow: visible !important;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-labels:not(:has(.motekhassesan-sale-ribbon)):not(.motekhassesan-sold-out-overlay) {
	top: 7px !important;
	inset-inline-start: 7px !important;
	inset-inline-end: auto !important;
	right: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 50% !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 10px !important;
	overflow: visible !important;
	flex-direction: column !important;
	align-items: flex-start !important;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-labels:not(:has(.motekhassesan-sale-ribbon)):not(.motekhassesan-sold-out-overlay) .product-label {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	width: auto !important;
	min-width: 50px;
	transform: none !important;
	box-shadow: none;
	border-radius: 6px;
	text-transform: none;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-label.motekhassesan-sale-ribbon,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .onsale.motekhassesan-sale-ribbon {
	position: absolute;
	top: calc(var(--motekhassesan-ribbon-size, 58px) * 0.14);
	right: calc(var(--motekhassesan-ribbon-size, 58px) * -0.48);
	left: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: calc(var(--motekhassesan-ribbon-size, 58px) * 2.05);
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0.42em 0 !important;
	border-radius: 0;
	background: #e22d2d !important;
	color: #fff;
	font-size: clamp(9px, 2.7cqi, 11px);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	transform: rotate(45deg);
	transform-origin: center center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .motekhassesan-price-original-wrap {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: nowrap;
	justify-content: flex-end;
	gap: 4px;
	max-width: 100%;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .motekhassesan-discount-percent {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 2px 6px;
	border-radius: 12px;
	background: #e22d2d;
	color: #fff;
	font-size: clamp(8px, 2.3cqi, 9px);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

@container (max-width: 120px) {
	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-top {
		--motekhassesan-ribbon-size: 46px;
	}
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-information,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product-info {
	display: grid !important;
	flex: 1 1 auto;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-auto-flow: row dense;
	grid-auto-rows: auto;
	align-items: center;
	gap: 6px 11px;
	padding: 14px 14px 16px;
	text-align: right;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-entities-title,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .woocommerce-loop-product__title {
	grid-column: 1 / -1;
	order: 1;
	min-height: 1.55em;
	margin: 0 !important;
	color: var(--motekhassesan-title);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
}

/* حداکثر یک خط + … — متن کامل در title روی لینک (اسکریپت) برای تولتیپ مرورگر */
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-entities-title a,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .woocommerce-loop-product__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	overflow-wrap: anywhere;
	word-break: break-word;
	text-decoration: inherit;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .motekhassesan-book-author {
	grid-column: 1 / -1;
	order: 2;
	display: block;
	min-width: 0;
	max-width: 100%;
	min-height: 1.5em;
	margin: -3px 0 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--motekhassesan-text);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .motekhassesan-book-author.is-empty {
	visibility: hidden;
	pointer-events: none;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .motekhassesan-book-author span {
	color: var(--motekhassesan-muted-text);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .motekhassesan-book-author a {
	color: inherit;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .motekhassesan-book-author a:hover {
	color: var(--motekhassesan-primary);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-entities-title a,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .woocommerce-loop-product__title a {
	color: inherit;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .price {
	grid-column: 2;
	order: 4;
	display: flex;
	align-self: center;
	align-items: center;
	justify-self: end;
	min-width: 0;
	max-width: 100%;
	min-height: 36px;
	margin: 0;
	color: var(--motekhassesan-title);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	text-align: left;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .price:has(del) {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 2px;
	min-height: auto;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .price del {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--motekhassesan-muted-text);
	font-size: clamp(9px, 2.6cqi, 10px);
	font-weight: 500;
	line-height: 1.3;
	opacity: 1;
	text-decoration: line-through;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .price ins {
	text-decoration: none;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wrapp-product-price,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-rating-price,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-add-btn,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-bottom-actions,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-buttons {
	margin-top: 0;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wrapp-product-price,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-rating-price {
	grid-column: 2;
	order: 4;
	display: flex;
	align-self: center;
	align-items: center;
	justify-self: end;
	min-height: 36px;
	margin: 0;
	line-height: 1.35;
	text-align: left;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-add-btn,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-bottom-actions,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-buttons {
	grid-column: 1;
	order: 4;
	display: flex !important;
	width: auto !important;
	height: 36px;
	min-height: 36px;
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
	top: auto !important;
	inset-inline-end: auto !important;
	bottom: auto !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	align-self: center;
	align-items: center !important;
	align-content: center;
	justify-self: start;
	flex-shrink: 0;
	z-index: 2;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-buttons .wd-action-btn:not(.wd-add-btn) {
	display: none;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .wd-add-btn > a.added_to_cart,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom .added_to_cart.wc-forward {
	display: none !important;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-bottom::before,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-information::before,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product-info::before {
	content: "";
	grid-column: 1 / -1;
	order: 3;
	width: 100%;
	border-top: 1px solid var(--motekhassesan-border);
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-add-btn > a,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .add_to_cart_button,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product_type_simple {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	min-width: 36px;
	height: 36px;
	min-height: 36px;
	padding: 0 !important;
	border-radius: 8px !important;
	background: var(--motekhassesan-primary) !important;
	color: var(--motekhassesan-primary-text) !important;
	font-size: 0;
	font-weight: 700;
	line-height: 1.4;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-add-btn > a span,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .add_to_cart_button span,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product_type_simple span {
	display: none;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-add-btn > a::before,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .add_to_cart_button::before,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product_type_simple::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 6h15.1l-1.7 8.4a2 2 0 0 1-2 1.6H9.1a2 2 0 0 1-2-1.6L5.2 3H2.8' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='20' r='1.4' fill='black'/%3E%3Ccircle cx='17.5' cy='20' r='1.4' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 6h15.1l-1.7 8.4a2 2 0 0 1-2 1.6H9.1a2 2 0 0 1-2-1.6L5.2 3H2.8' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='20' r='1.4' fill='black'/%3E%3Ccircle cx='17.5' cy='20' r='1.4' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-add-btn > a:hover,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .add_to_cart_button:hover,
body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product_type_simple:hover {
	background: var(--motekhassesan-primary-hover) !important;
	color: var(--motekhassesan-primary-text) !important;
}

@media (max-width: 1024px) {
	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards {
		/* پیش‌فرض وودمارت برای ۵ ستون: تبلت ۴ — کمی فشرده‌تر با ۳ */
		--wd-col-md: 3 !important;
	}
}

@media (max-width: 768px) {
	body.single-product .related-and-upsells {
		padding: clamp(14px, 4vw, 24px) clamp(12px, 3.5vw, 20px);
		padding-bottom: calc(clamp(14px, 4vw, 24px) + env(safe-area-inset-bottom, 0px));
		border-radius: var(--motekhassesan-single-radius-md);
	}

	body.single-product .related-and-upsells .wd-products-element {
		padding: unset !important;
	}

	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards {
		--wd-col-sm: 2 !important;
		--wd-gap-lg: clamp(12px, 3.5vw, 20px) !important;
		column-gap: clamp(12px, 3.5vw, 20px) !important;
		row-gap: clamp(12px, 3.5vw, 20px) !important;
	}

	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .wd-product .product-element-top,
	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-grid-item .product-element-top {
		min-height: 176px;
		padding: 14px 12px;
	}

	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-image-link img,
	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-element-top img {
		max-height: 148px;
	}

	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .price {
		font-size: 11px;
	}

	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .price .woocommerce-Price-currencySymbol {
		font-size: 9px;
	}
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
	body.single-product {
		--motekhassesan-single-surface: var(--motekhassesan-single-soft-bg);
		--motekhassesan-single-muted: var(--wd-text-color, #777777);
	}
}

@media (max-width: 1024px) {
	body.single-product .motekhassesan-single-facts-grid,
	body.single-product .motekhassesan-single-explore {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	/* مقیاس و فاصلهٔ یکنواخت موبایل + safe area (ناچ آیفون و …) */
	body.single-product {
		--motekhassesan-page-gutter: max(14px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
		--motekhassesan-single-radius-lg: 18px;
		-webkit-tap-highlight-color: color-mix(in srgb, var(--motekhassesan-single-primary) 18%, transparent);
	}

	body.single-product .main-page-wrapper {
		padding-inline: max(clamp(14px, 4.2vw, 22px), env(safe-area-inset-left, 0px)) max(clamp(14px, 4.2vw, 22px), env(safe-area-inset-right, 0px));
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	}

	body.single-product .product-image-summary-wrap {
		width: 100%;
		max-width: 100%;
		margin-inline: auto;
		box-sizing: border-box;
	}

	body.single-product .product-image-summary-wrap::before {
		height: min(42vw, 200px);
		border-radius: 0 0 22px 22px;
		left: 0;
		right: 0;
	}

	body.single-product .product-image-summary-inner {
		padding: clamp(12px, 3.5vw, 16px);
		border-radius: var(--motekhassesan-single-radius-md);
	}

	body.single-product .product-image-summary-inner > [class*="col-"] {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	body.single-product .product-image-summary-inner .summary.entry-summary {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	body.single-product .product-image-summary-inner .summary-inner {
		height: auto;
		min-height: 0;
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow-x: hidden;
		gap: clamp(12px, 3.2vw, 18px);
		padding: clamp(8px, 2vw, 12px) clamp(4px, 1.5vw, 8px);
		padding-bottom: clamp(10px, 2.5vw, 14px);
		margin-bottom: 0 !important;
	}

	/* فاصلهٔ عمودی Woodmart بین بچه‌ها؛ روی موبایل کمتر تا جمع‌شدن داخل کارت */
	body.single-product .product-image-summary-inner .summary-inner.set-mb-l {
		--margin-bottom: 12px;
	}

	body.single-product .product-image-summary-inner .summary-inner.set-mb-l > * {
		max-width: 100%;
		box-sizing: border-box;
	}

	body.single-product .product-image-summary-inner .summary-inner.set-mb-l > *:last-child {
		margin-bottom: 0 !important;
	}

	body.single-product .product-image-summary-inner .product-images {
		min-height: min(52vw, 280px);
		border-radius: 0;
		padding-inline: clamp(8px, 2vw, 14px);
		overflow: hidden;
	}

	body.single-product .product-image-summary-inner .product-images:has(.motekhassesan-sale-ribbon) {
	
	}

	/* عرض اینلاین JS کاروسل وودمارت (مثلاً 355px) باعث skew و overflow در RTL موبایل می‌شود */
	body.single-product .product-image-summary-inner .wd-carousel-item {
		width: 100% !important;
		max-width: 100% !important;
	}

	body.single-product .product-image-summary-inner .wd-gallery-images .wd-carousel-inner,
	body.single-product .product-image-summary-inner .wd-gallery-images .wd-carousel-wrap,
	body.single-product .product-image-summary-inner figure.woocommerce-product-gallery__wrapper.wd-carousel {
		max-width: 100% !important;
	}

	body.single-product .product-image-summary-inner .woocommerce-product-gallery.images,
	body.single-product .product-image-summary-inner .woocommerce-product-gallery.images.is_stuck {
		max-width: 100%;
		width: 100% !important;
	}

	body.single-product .summary-inner .woocommerce-breadcrumb {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		gap: 4px 6px;
		padding: 10px 12px;
		font-size: 11px;
	}

	body.single-product .summary-inner .woocommerce-breadcrumb::-webkit-scrollbar {
		display: none;
	}

	body.single-product .summary-inner .product_title,
	body.single-product .summary-inner .entry-title {
		font-size: clamp(1.05rem, 5.4vw, 1.45rem);
		line-height: 1.32;
		letter-spacing: -0.03em;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	body.single-product .summary-inner .motekhassesan-single-primary-terms {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px 14px;
	}

	body.single-product .summary-inner .motekhassesan-single-eyebrow-item:not(:last-child) {
		padding-inline-end: 0;
		padding-bottom: 10px;
		border-inline-end: none;
		border-bottom: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 88%, transparent);
	}

	body.single-product .summary-inner .price {
		max-width: none;
		width: 100%;
		padding: 16px 18px;
		font-size: clamp(1.05rem, 4.8vw, 1.35rem);
	}

	body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) {
		column-gap: 10px;
		row-gap: 8px;
	}

	body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) > .motekhassesan-discount-percent--summary {
		min-width: 3rem;
		padding: 6px 9px;
		border-radius: 10px;
	}

	body.single-product .summary-inner .price:has(.motekhassesan-discount-percent--summary) > ins {
		font-size: 1.02em;
	}

	body.single-product .summary-inner .woocommerce-product-details__short-description {
		padding: 14px 16px;
		font-size: 14px;
		line-height: 1.8;
	}

	body.single-product .summary-inner form.cart {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
		justify-content: center;
		gap: 10px;
		padding: 16px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		flex: 0 1 auto;
		margin-bottom: 0 !important;
		box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	}

	body.single-product .summary-inner form.cart .quantity {
		width: 100%;
		max-width: 100%;
		justify-content: center;
		align-items: center;
		gap: 10px;
		margin-inline: auto;
		border-radius: 12px;
		box-sizing: border-box;
		flex: 1 1 100%;
		min-width: 0;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		overflow: visible;
	}

	body.single-product .summary-inner form.cart .quantity .minus,
	body.single-product .summary-inner form.cart .quantity .plus {
		min-width: 48px;
		min-height: 48px;
		flex: 0 0 auto;
	}

	body.single-product .summary-inner form.cart .quantity .qty {
		flex: 1;
		max-width: 6rem;
		min-height: 48px;
	}

	body.single-product .motekhassesan-mobile-details-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		order: 2;
		width: auto;
		min-width: 7.75rem;
		max-width: 30%;
		min-height: 50px;
		padding: 0 10px;
		margin: 0;
		border: 1px solid #73702b;
		border-radius: 12px;
		background: transparent;
		color: #73702b;
		font-size: 13px;
		font-weight: 800;
		white-space: nowrap;
		cursor: pointer;
		box-sizing: border-box;
		transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	}

	body.single-product .motekhassesan-mobile-details-btn:hover,
	body.single-product .motekhassesan-mobile-details-btn:focus-visible {
		background: color-mix(in srgb, #73702b 10%, transparent);
		color: #73702b;
		outline: none;
	}

	body.single-product .motekhassesan-mobile-details-btn[aria-expanded="true"] {
		background: color-mix(in srgb, #73702b 14%, transparent);
	}

	body.single-product .summary-inner form.cart .quantity .minus,
	body.single-product .summary-inner form.cart .quantity .plus {
		min-width: 48px;
		min-height: 48px;
	}

	body.single-product .summary-inner form.cart .quantity .qty {
		min-height: 48px;
		flex: 1;
		max-width: 6rem;
		font-size: 16px;
	}

	body.single-product .summary-inner .single_add_to_cart_button {
		flex: 1 1 0;
		order: 3;
		width: auto;
		min-width: 0;
		max-width: none;
		min-height: 50px;
		padding: 0 12px;
		font-size: 14px;
		border-radius: 12px;
		box-sizing: border-box;
		white-space: nowrap;
		line-height: 1.25;
		margin-bottom: 0 !important;
		box-shadow: 0 8px 20px color-mix(in srgb, var(--motekhassesan-single-primary) 20%, transparent);
	}

	/* سایدبار موبایل: bottom sheet از پایین */
	body.single-product .motekhassesan-product-shell__sidebar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 10050;
		order: unset;
		width: 100%;
		max-width: 100%;
		max-height: min(88vh, 720px);
		margin: 0;
		padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
		gap: 0;
		border-radius: 18px 18px 0 0;
		background: var(--motekhassesan-single-bg);
		box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		transform: translateY(100%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s;
	}

	body.single-product.motekhassesan-details-open .motekhassesan-product-shell__sidebar {
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
	}

	body.single-product .motekhassesan-details-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 10040;
		background: rgba(15, 23, 42, 0.45);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	body.single-product.motekhassesan-details-open .motekhassesan-details-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	body.single-product .motekhassesan-details-sheet-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: sticky;
		top: 0;
		z-index: 2;
		padding: 10px 16px 12px;
		background: var(--motekhassesan-single-bg);
		border-bottom: 1px solid var(--motekhassesan-single-border);
	}

	body.single-product .motekhassesan-details-sheet-handle {
		position: absolute;
		top: 8px;
		left: 50%;
		transform: translateX(-50%);
		width: 40px;
		height: 4px;
		border-radius: 999px;
		background: color-mix(in srgb, var(--motekhassesan-single-text) 35%, transparent);
	}

	body.single-product .motekhassesan-details-sheet-title {
		flex: 1;
		margin-top: 8px;
		font-size: 15px;
		font-weight: 900;
		color: var(--motekhassesan-single-title);
		text-align: center;
	}

	body.single-product .motekhassesan-details-sheet-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 40px;
		height: 40px;
		margin-top: 4px;
		padding: 0;
		border: none;
		border-radius: 10px;
		background: var(--motekhassesan-single-soft-bg);
		color: var(--motekhassesan-single-title);
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
	}

	body.single-product .motekhassesan-product-shell__sidebar .motekhassesan-single-facts,
	body.single-product .motekhassesan-product-shell__sidebar .motekhassesan-share-card {
		margin-inline: 12px;
	}

	body.single-product .motekhassesan-product-shell__sidebar .motekhassesan-single-facts .motekhassesan-single-section-head {
		display: none;
	}

	body.single-product .motekhassesan-product-tags-row {
		padding: 12px 14px;
		gap: 8px 10px;
	}

	body.single-product .motekhassesan-product-tag-pill {
		min-height: 36px;
		padding: 7px 14px;
		font-size: 13px;
	}

	body.single-product .motekhassesan-single-section-head {
		align-items: start;
		flex-direction: column;
		gap: 8px;
	}

	body.single-product .motekhassesan-single-facts {
		padding: 14px 16px;
	}

	body.single-product .motekhassesan-single-facts-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	body.single-product .motekhassesan-single-fact-row {
		grid-template-columns: 10px minmax(0, 1fr);
		min-height: 52px;
		padding: 12px 12px;
	}

	body.single-product .motekhassesan-single-fact-row dd {
		grid-column: 2;
	}

	body.single-product .motekhassesan-single-author-box {
		grid-template-columns: 1fr;
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		margin-top: clamp(12px, 3vw, 18px);
		padding: 16px 18px;
		border-radius: var(--motekhassesan-single-radius-md);
	}

	body.single-product .motekhassesan-single-author-avatar {
		width: 72px;
		height: 72px;
		border-radius: 20px;
		font-size: 28px;
	}

	body.single-product .motekhassesan-single-author-link {
		min-height: 44px;
		padding: 10px 16px;
		font-size: 13px;
	}

	body.single-product .motekhassesan-single-explore {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 16px 18px;
	}

	body.single-product .motekhassesan-single-explore-chips {
        display: contents !important;
	}

	body.single-product .motekhassesan-single-explore-chips::-webkit-scrollbar {
		display: none;
	}

	body.single-product .motekhassesan-single-chip {
		flex: 0 0 auto;
		min-height: 44px;
		padding: 9px 15px;
		scroll-snap-align: start;
	}

	body.single-product .motekhassesan-share-card {
		padding: 14px 16px;
	}

	body.single-product .motekhassesan-share-icons {
		gap: 8px;
	}

	body.single-product .motekhassesan-share-icon {
		min-height: 48px;
		border-radius: 11px;
	}

	body.single-product .motekhassesan-share-copy {
		min-height: 48px;
		font-size: 15px;
	}

	body.single-product .product-tabs-wrapper {
		padding-block: clamp(18px, 4vw, 28px);
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs > .wd-nav-tabs-wrapper {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		border-bottom: 1px solid color-mix(in srgb, var(--motekhassesan-single-border) 92%, transparent);
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs > .wd-nav-tabs-wrapper::-webkit-scrollbar {
		display: none;
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav.wd-nav-tabs {
		flex-wrap: nowrap;
		gap: 0 20px;
		padding-inline-end: 8px;
		width: max-content;
		min-width: 100%;
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li {
		scroll-snap-align: start;
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wd-nav-tabs > li > a.wd-nav-link {
		min-height: 52px;
		padding: 12px 2px 14px;
		font-size: 14px;
		white-space: nowrap;
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .woocommerce-Tabs-panel {
		margin-top: 16px;
		padding: 18px 16px;
		padding-inline-start: 18px;
		border-radius: 14px;
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .woocommerce-Tabs-panel::before {
		top: 14px;
		bottom: 14px;
	}

	body.single-product .product-tabs-wrapper .woocommerce-tabs.tabs-layout-tabs .wc-tab-inner {
		font-size: 15px;
		line-height: 1.88;
	}

	body.single-product .motekhassesan-product-shell__main .motekhassesan-single-explore {
		width: 100%;
		margin-top: 0;
		border-radius: var(--motekhassesan-single-radius-md);
	}
}

/* تاچ: بدون «هاور» جعلی؛ فیدبک با :active */
@media (hover: none) and (pointer: coarse) {
	body.single-product .product-image-summary-inner .product-images:hover .woocommerce-product-gallery img {
		transform: none;
		filter: drop-shadow(0 16px 22px rgba(15, 23, 42, 0.12));
	}

	body.single-product .motekhassesan-single-fact-row:hover {
		transform: none;
	}

	body.single-product .motekhassesan-single-chip:hover {
		transform: none;
		background: rgba(255, 255, 255, 0.58);
		color: var(--motekhassesan-single-primary);
		box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
	}

	body.single-product .motekhassesan-single-chip:hover span {
		background: color-mix(in srgb, var(--motekhassesan-single-primary) 10%, transparent);
		color: var(--motekhassesan-single-muted);
	}

	body.single-product .motekhassesan-share-icon:hover {
		transform: none;
	}

	body.single-product .summary-inner .single_add_to_cart_button:hover {
		transform: none;
	}

	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-wrapper:hover {
		transform: none;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	}

	body.single-product .related-and-upsells .products.wd-products.motekhassesan-single-loop-cards .product-wrapper:active {
		transform: scale(0.98);
		transition-duration: 0.1s;
	}
}
