/* Artwork single product redesign */

body.single-product {
	background: var(--aw-white);
	color: var(--aw-ink);
}

body.single-product .main-page-wrapper,
body.single-product .site-content,
body.single-product .single-product-content {
	background: var(--aw-white) !important;
}

body.single-product .single-product-page > .container,
body.single-product .product-tabs-wrapper > .container {
	width: min(1240px, calc(100% - 44px)) !important;
	max-width: none !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.single-product .single-breadcrumbs-wrapper {
	display: none !important;
}

body.single-product .product-image-summary-wrap {
	position: relative;
	overflow: hidden;
	margin: 0 !important;
	padding: clamp(38px, 5vw, 70px) 0 clamp(42px, 5.2vw, 72px) !important;
	background: var(--aw-white) !important;
	border-bottom: 1px solid var(--aw-line);
}

body.single-product .product-image-summary-wrap::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: min(760px, 56vw);
	height: min(360px, 42vw);
	background: var(--aw-pattern) left top / 620px auto repeat;
	opacity: .2;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,.68) 34%, rgba(0,0,0,.14) 68%, transparent 100%);
	mask-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,.68) 34%, rgba(0,0,0,.14) 68%, transparent 100%);
}

body.single-product .product-image-summary {
	position: relative;
	z-index: 1;
}

body.single-product .product-image-summary,
body.single-product .product-image-summary-inner {
	margin: 0 !important;
}

body.single-product .product-image-summary-inner {
	display: grid !important;
	grid-template-columns: minmax(0, .98fr) minmax(380px, .72fr) !important;
	gap: clamp(28px, 4.8vw, 68px) !important;
	align-items: start !important;
	direction: ltr;
}

body.single-product .product-images,
body.single-product .summary {
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	direction: rtl;
}

body.single-product .product-images {
	grid-column: 1 / 2 !important;
}

body.single-product .summary {
	grid-column: 2 / 3 !important;
}

body.single-product .woocommerce-product-gallery {
	position: relative;
	border: 1px solid var(--aw-line);
	background: var(--aw-white);
	opacity: 1 !important;
}

body.single-product .woocommerce-product-gallery::before {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 4;
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	padding: 0 12px;
	background: var(--aw-black);
	color: var(--aw-white);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

body.single-product.aw-single-product-gallery-count-1 .woocommerce-product-gallery::before {
	content: "۱ تصویر";
}

body.single-product.aw-single-product-gallery-count-2 .woocommerce-product-gallery::before {
	content: "۲ تصویر";
}

body.single-product.aw-single-product-gallery-count-3 .woocommerce-product-gallery::before {
	content: "۳ تصویر";
}

body.single-product.aw-single-product-gallery-count-4 .woocommerce-product-gallery::before {
	content: "۴ تصویر";
}

body.single-product.aw-single-product-gallery-count-5 .woocommerce-product-gallery::before {
	content: "۵ تصویر";
}

body.single-product.aw-single-product-gallery-count-6 .woocommerce-product-gallery::before {
	content: "۶ تصویر";
}

body.single-product.aw-single-product-gallery-count-7 .woocommerce-product-gallery::before {
	content: "۷ تصویر";
}

body.single-product.aw-single-product-gallery-count-8 .woocommerce-product-gallery::before {
	content: "۸ تصویر";
}

body.single-product.aw-single-product-gallery-count-9 .woocommerce-product-gallery::before {
	content: "۹ تصویر";
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .wd-carousel-container,
body.single-product .wd-carousel-inner,
body.single-product .wd-carousel-wrap,
body.single-product .wd-carousel-item,
body.single-product .woocommerce-product-gallery__image {
	background: var(--aw-white) !important;
}

body.single-product .woocommerce-product-gallery__image a {
	display: flex !important;
	min-height: clamp(500px, 58vw, 690px);
	align-items: center;
	justify-content: center;
	background: var(--aw-white) !important;
}

body.single-product .woocommerce-product-gallery__image img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: min(86%, 620px) !important;
	max-height: clamp(470px, 54vw, 650px) !important;
	object-fit: contain !important;
	padding: clamp(16px, 2.6vw, 34px) !important;
	background: var(--aw-white) !important;
}

body.single-product .wd-nav-arrows {
	opacity: 1 !important;
	visibility: visible !important;
}

body.single-product .wd-nav-arrows .wd-btn-arrow {
	width: 46px !important;
	height: 46px !important;
	background: var(--aw-white) !important;
	border: 1px solid var(--aw-line) !important;
	color: var(--aw-black) !important;
}

body.single-product .summary-inner {
	position: sticky;
	top: 104px;
	display: flex;
	flex-direction: column;
	min-height: clamp(500px, 58vw, 690px);
	padding: clamp(28px, 3.2vw, 42px) !important;
	background: var(--aw-white);
	border: 1px solid var(--aw-line);
	box-shadow: none !important;
}

body.single-product .product_title {
	order: 1;
	margin: 0 !important;
	color: var(--aw-black) !important;
	font-size: clamp(30px, 3.4vw, 52px) !important;
	font-weight: 900 !important;
	line-height: 1.18 !important;
	letter-spacing: 0 !important;
	text-align: right !important;
}

body.single-product .aw-single-product-artist {
	order: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	margin-top: 16px;
	color: var(--aw-muted);
	font-size: 15px;
	line-height: 1.8;
}

body.single-product .aw-single-product-artist span {
	font-weight: 500;
}

body.single-product .aw-single-product-artist strong {
	color: var(--aw-black);
	font-size: 18px;
	font-weight: 800;
}

body.single-product .aw-single-product-artist a {
	color: inherit !important;
	text-decoration: none !important;
}

body.single-product .aw-single-product-artist a:hover,
body.single-product .aw-single-product-details dd a:hover,
body.single-product .woocommerce-product-attributes a:hover {
	color: var(--aw-black) !important;
	text-decoration: underline !important;
	text-underline-offset: 5px;
}

body.single-product .summary-inner > .price {
	order: 3;
	margin: 24px 0 0 !important;
	padding: 18px 0 0 !important;
	border-top: 1px solid var(--aw-line);
	color: var(--aw-black) !important;
	font-size: clamp(19px, 1.7vw, 24px) !important;
	font-weight: 900 !important;
	line-height: 1.6 !important;
	text-align: right !important;
}

body.single-product .aw-single-product-details {
	order: 4;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 22px 0 0 !important;
	border-top: 1px solid var(--aw-line);
	border-right: 1px solid var(--aw-line);
	background: var(--aw-white);
}

body.single-product .aw-single-product-details div {
	display: grid;
	gap: 4px;
	min-height: 78px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--aw-line);
	border-left: 1px solid var(--aw-line);
}

body.single-product .aw-single-product-details dt,
body.single-product .aw-single-product-details dd {
	margin: 0 !important;
	text-align: right;
}

body.single-product .aw-single-product-details dt {
	color: var(--aw-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.8;
}

body.single-product .aw-single-product-details dd,
body.single-product .aw-single-product-details dd a {
	color: var(--aw-black) !important;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.8;
	text-decoration: none !important;
}

body.single-product .summary-inner > .price .call-for-price-link,
body.single-product .summary-inner > .price .call-for-price-text {
	color: var(--aw-black) !important;
	font-weight: 900 !important;
	text-decoration: none !important;
}

body.single-product .aw-single-product-action,
body.single-product form.cart .single_add_to_cart_button {
	order: 5;
	display: inline-flex !important;
	width: 100% !important;
	min-height: 56px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	margin: 18px 0 0 !important;
	padding: 0 20px !important;
	background: var(--aw-black) !important;
	border: 1px solid var(--aw-black) !important;
	color: var(--aw-white) !important;
	border-radius: 0 !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

body.single-product .aw-single-product-action:hover,
body.single-product form.cart .single_add_to_cart_button:hover {
	background: var(--aw-white) !important;
	color: var(--aw-black) !important;
}

body.single-product .aw-single-product-action i,
body.single-product form.cart .single_add_to_cart_button::after {
	font-style: normal;
	font-size: 18px;
	line-height: 1;
}

body.single-product form.cart .single_add_to_cart_button::after {
	content: "←";
}

body.single-product form.cart {
	order: 5;
	display: grid !important;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 12px;
	margin: 18px 0 0 !important;
}

body.single-product form.cart .quantity {
	margin: 0 !important;
}

body.single-product form.cart .quantity,
body.single-product .quantity {
	display: grid !important;
	grid-template-columns: 36px 42px 36px;
	width: 114px !important;
	min-width: 114px !important;
	height: 56px !important;
	align-items: stretch !important;
	direction: ltr;
	border: 1px solid var(--aw-black) !important;
	background: var(--aw-white) !important;
	border-radius: 0 !important;
	overflow: hidden;
	box-shadow: none !important;
}

body.single-product .quantity input[type="button"],
body.single-product .quantity input[type="number"],
body.single-product .quantity .qty {
	width: 100% !important;
	min-width: 0 !important;
	height: 54px !important;
	min-height: 54px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--aw-white) !important;
	color: var(--aw-black) !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 54px !important;
	text-align: center !important;
	box-shadow: none !important;
}

body.single-product .quantity .qty {
	border-inline: 1px solid var(--aw-line) !important;
	appearance: textfield;
}

body.single-product .custom-order-notice {
	order: 6;
	margin: 18px 0 0 !important;
	padding: 16px 18px !important;
	background: var(--aw-paper) !important;
	border: 1px solid var(--aw-line) !important;
	border-radius: 0 !important;
	color: var(--aw-muted) !important;
	font-size: 14px !important;
	line-height: 1.9 !important;
}

body.single-product .custom-order-notice strong {
	color: var(--aw-black);
}

body.single-product .woocommerce-product-attributes {
	order: 7;
	display: grid !important;
	grid-template-columns: 1fr;
	margin: 28px 0 0 !important;
	border: 1px solid var(--aw-line) !important;
	background: var(--aw-white);
}

body.single-product .woocommerce-product-attributes tbody,
body.single-product .woocommerce-product-attributes tr,
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
	display: block !important;
	width: 100% !important;
	border: 0 !important;
	background: transparent !important;
}

body.single-product .woocommerce-product-attributes tr {
	display: grid !important;
	grid-template-columns: minmax(112px, .35fr) minmax(0, 1fr);
	align-items: start;
	min-height: 54px;
	padding: 14px 16px !important;
	border-bottom: 1px solid var(--aw-line) !important;
}

body.single-product .woocommerce-product-attributes tr:last-child {
	border-bottom: 0 !important;
}

body.single-product .woocommerce-product-attributes th {
	color: var(--aw-muted) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.9 !important;
	text-align: right !important;
}

body.single-product .woocommerce-product-attributes td,
body.single-product .woocommerce-product-attributes td p,
body.single-product .woocommerce-product-attributes td a {
	margin: 0 !important;
	color: var(--aw-black) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.9 !important;
	text-align: right !important;
	text-decoration: none !important;
}

body.single-product .woocommerce-product-attributes a {
	color: var(--aw-black) !important;
	text-decoration: none !important;
}

body.single-product .product-tabs-wrapper {
	margin: 0 !important;
	padding: clamp(48px, 6vw, 84px) 0 !important;
	background: var(--aw-paper) !important;
}

body.single-product .woocommerce-tabs {
	border: 1px solid var(--aw-line);
	background: var(--aw-white);
	padding: clamp(24px, 3vw, 38px) !important;
}

body.single-product .wd-nav-tabs {
	justify-content: flex-start !important;
	border-bottom: 1px solid var(--aw-line);
}

body.single-product .wd-nav-tabs .wd-nav-link {
	color: var(--aw-black) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
}

body.single-product .woocommerce-Tabs-panel {
	color: var(--aw-muted);
	font-size: 16px;
	line-height: 2.1;
	text-align: right;
}

body.single-product .related-and-upsells,
body.single-product .related.products {
	width: min(1240px, calc(100% - 44px));
	margin-inline: auto;
}

@media (max-width: 980px) {
	body.single-product .product-image-summary-inner {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.single-product .product-images,
	body.single-product .summary {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body.single-product .summary-inner {
		position: static;
		min-height: 0;
	}

	body.single-product .woocommerce-product-gallery__image a {
		min-height: auto;
	}
}

@media (max-width: 640px) {
	body.single-product .single-product-page > .container,
	body.single-product .product-tabs-wrapper > .container,
	body.single-product .related-and-upsells,
	body.single-product .related.products {
		width: calc(100% - 28px) !important;
	}

	body.single-product .product-image-summary-wrap {
		padding-top: 28px !important;
	}

	body.single-product .summary-inner {
		padding: 24px 20px !important;
	}

	body.single-product .product_title {
		font-size: clamp(32px, 11vw, 46px) !important;
	}

	body.single-product .woocommerce-product-attributes tr {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* Final single-product polish */
body.single-product .site-content {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--aw-white) 0%, #f8f8f8 100%) !important;
}

body.single-product .site-content::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: min(460px, 42vw);
	background: var(--aw-pattern) left top / 560px auto repeat;
	opacity: .11;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.62) 34%, rgba(0,0,0,.18) 67%, transparent 100%), linear-gradient(180deg, #000 0%, rgba(0,0,0,.66) 45%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.62) 34%, rgba(0,0,0,.18) 67%, transparent 100%), linear-gradient(180deg, #000 0%, rgba(0,0,0,.66) 45%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

body.single-product .site-content::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: min(460px, 42vw);
	background: linear-gradient(90deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.78) 42%, rgba(255,255,255,.98) 100%), linear-gradient(180deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,.86) 62%, rgba(255,255,255,1) 100%);
	pointer-events: none;
}

body.single-product .single-product-page,
body.single-product .product-tabs-wrapper,
body.single-product .related-and-upsells {
	position: relative;
	z-index: 1;
}

body.single-product .product-image-summary-wrap {
	background: transparent !important;
}

body.single-product .product-image-summary-wrap::before {
	display: none !important;
	content: none !important;
}

body.single-product .woocommerce-product-gallery {
	padding: 0 !important;
	border-color: #d9d9d9;
	box-shadow: none !important;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .wd-carousel-container,
body.single-product .wd-carousel-inner {
	border: 0 !important;
}

body.single-product .wd-carousel-wrap,
body.single-product .wd-carousel-item,
body.single-product .woocommerce-product-gallery__image {
	border: 0 !important;
}

body.single-product .summary-inner > .price {
	display: grid;
	gap: 6px;
	padding: 18px 0 16px !important;
	border-bottom: 1px solid var(--aw-line);
}

body.single-product .summary-inner > .price::before {
	content: "قیمت اثر";
	color: var(--aw-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

body.single-product .summary-inner > .price,
body.single-product .summary-inner > .price .amount,
body.single-product .summary-inner > .price bdi {
	color: var(--aw-black) !important;
	font-size: clamp(23px, 2.2vw, 31px) !important;
	font-weight: 950 !important;
	letter-spacing: 0 !important;
}

body.single-product .product-tabs-wrapper {
	padding: clamp(44px, 5.5vw, 72px) 0 !important;
	background: #f6f6f6 !important;
	border-top: 1px solid var(--aw-line);
}

body.single-product .woocommerce-tabs {
	display: grid;
	grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
	gap: 0;
	padding: 0 !important;
	border: 1px solid var(--aw-line);
	background: var(--aw-white);
}

body.single-product .wd-nav-wrapper {
	padding: clamp(22px, 2.4vw, 32px);
	border-left: 1px solid var(--aw-line);
	background: #fbfbfb;
	text-align: right !important;
}

body.single-product .wd-nav-tabs {
	display: grid !important;
	gap: 0;
	justify-content: stretch !important;
	border-bottom: 0;
}

body.single-product .wd-nav-tabs > li {
	margin: 0 !important;
	border-bottom: 1px solid var(--aw-line);
}

body.single-product .wd-nav-tabs > li:last-child {
	border-bottom: 0;
}

body.single-product .wd-nav-tabs .wd-nav-link {
	justify-content: flex-start !important;
	min-height: 54px;
	padding: 0 !important;
	color: var(--aw-black) !important;
	font-size: 15px !important;
	font-weight: 850 !important;
	text-align: right !important;
}

body.single-product .wd-nav-tabs .active .wd-nav-link::after,
body.single-product .wd-nav-tabs .wd-nav-link::after {
	display: none !important;
	content: none !important;
}

body.single-product .wd-accordion-item {
	grid-column: 2;
	padding: clamp(24px, 3vw, 40px);
}

body.single-product .wd-accordion-title {
	display: none !important;
}

body.single-product .woocommerce-Tabs-panel {
	padding: 0 !important;
	color: #555;
	font-size: 16px;
	line-height: 2.15;
	text-align: right;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-Reviews-title,
body.single-product .comment-reply-title {
	margin: 28px 0 12px !important;
	color: var(--aw-black) !important;
	font-size: clamp(24px, 2.2vw, 34px) !important;
	font-weight: 900 !important;
	line-height: 1.45 !important;
	text-align: right !important;
}

body.single-product .woocommerce-Tabs-panel h2:first-child,
body.single-product .woocommerce-Tabs-panel h3:first-child {
	margin-top: 0 !important;
}

body.single-product .woocommerce-Tabs-panel p,
body.single-product .woocommerce-Tabs-panel li,
body.single-product .woocommerce-noreviews,
body.single-product .comment-notes {
	color: #666 !important;
	font-size: 15px !important;
	line-height: 2.15 !important;
	text-align: right !important;
}

body.single-product .woocommerce-Tabs-panel strong {
	color: var(--aw-black);
	font-weight: 900;
}

body.single-product #reviews,
body.single-product #review_form_wrapper,
body.single-product .comment-respond {
	border: 0 !important;
	background: transparent !important;
}

body.single-product .comment-form input:not([type="checkbox"]):not([type="submit"]),
body.single-product .comment-form textarea,
body.single-product .comment-form select {
	width: 100% !important;
	min-height: 48px;
	padding: 12px 14px !important;
	border: 1px solid var(--aw-line) !important;
	border-radius: 0 !important;
	background: var(--aw-white) !important;
	color: var(--aw-black) !important;
	box-shadow: none !important;
}

body.single-product .comment-form textarea {
	min-height: 150px;
}

body.single-product .comment-form label {
	color: var(--aw-black);
	font-size: 13px;
	font-weight: 800;
}

body.single-product .comment-form .submit {
	min-height: 50px;
	padding: 0 28px !important;
	border: 1px solid var(--aw-black) !important;
	border-radius: 0 !important;
	background: var(--aw-black) !important;
	color: var(--aw-white) !important;
	font-weight: 900 !important;
}

body.single-product .related-and-upsells {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(42px, 5vw, 70px) max(22px, calc((100vw - 1240px) / 2)) !important;
	background: var(--aw-white);
	border-top: 1px solid var(--aw-line);
}

body.single-product .related-products.with-title {
	width: min(1240px, 100%);
	margin-inline: auto;
	background: transparent !important;
	box-shadow: none !important;
}

body.single-product .related-products .wd-el-title {
	margin: 0 0 26px !important;
	padding: 0 0 16px !important;
	border-bottom: 1px solid var(--aw-line);
	color: var(--aw-black) !important;
	font-size: clamp(28px, 3vw, 44px) !important;
	font-weight: 950 !important;
	line-height: 1.35 !important;
	text-align: right !important;
}

body.single-product .related-products .wd-carousel-wrap {
	gap: 22px !important;
}

body.single-product .related-products .wd-carousel-item,
body.single-product .related-products .wd-product.product-grid-item {
	background: var(--aw-white) !important;
	border: 1px solid var(--aw-line) !important;
	box-shadow: none !important;
}

body.single-product .related-products .product-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: var(--aw-white) !important;
}

body.single-product .related-products .product-element-top {
	aspect-ratio: 1 / 1;
	padding: 18px;
	border-bottom: 1px solid var(--aw-line);
	background: var(--aw-white) !important;
}

body.single-product .related-products .product-image-link,
body.single-product .related-products .product-element-top img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

body.single-product .related-products .product-element-bottom {
	display: grid;
	gap: 12px;
	padding: 18px !important;
	text-align: right !important;
}

body.single-product .related-products .wd-entities-title,
body.single-product .related-products .wd-entities-title a {
	color: var(--aw-black) !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 1.75 !important;
	text-align: right !important;
}

body.single-product .related-products .aw-loop-product-artist {
	margin: 0 !important;
	color: var(--aw-muted);
	font-size: 12px;
	line-height: 1.8;
}

body.single-product .related-products .aw-loop-product-artist strong {
	color: var(--aw-black);
	font-size: 13px;
}

body.single-product .related-products .price {
	color: var(--aw-black) !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	text-align: right !important;
}

body.single-product .related-products .wrapp-buttons {
	inset: auto 18px 18px auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

body.single-product .related-products .wd-buttons,
body.single-product .related-products .wd-action-btn {
	display: block !important;
}

body.single-product .related-products .wd-add-btn a {
	display: inline-flex !important;
	width: 44px !important;
	height: 44px !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	border: 1px solid var(--aw-line) !important;
	background: var(--aw-white) !important;
	color: var(--aw-black) !important;
	font-size: 0 !important;
}

body.single-product .related-products .wd-add-btn a::after {
	content: "←";
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

body.single-product .related-products .wd-add-btn a span {
	display: none !important;
}

@media (max-width: 980px) {
	body.single-product .site-content::before {
		width: 100vw;
		height: 430px;
	}

	body.single-product .woocommerce-tabs {
		grid-template-columns: 1fr;
	}

	body.single-product .wd-nav-wrapper,
	body.single-product .wd-accordion-item {
		grid-column: 1;
	}

	body.single-product .wd-nav-wrapper {
		border-left: 0;
		border-bottom: 1px solid var(--aw-line);
	}

	body.single-product .wd-nav-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.single-product .wd-nav-tabs > li {
		border-bottom: 0;
		border-left: 1px solid var(--aw-line);
	}
}

@media (max-width: 640px) {
	body.single-product .woocommerce-product-gallery {
		padding: 0 !important;
	}

	body.single-product .summary-inner > .price,
	body.single-product .summary-inner > .price .amount,
	body.single-product .summary-inner > .price bdi {
		font-size: 22px !important;
	}

	body.single-product .aw-single-product-details {
		grid-template-columns: 1fr;
	}

	body.single-product .related-and-upsells {
		padding-inline: 14px !important;
	}
}

/* Targeted fixes from final product-page review */
body.single-product .single-breadcrumbs-wrapper,
body.single-product .wd-breadcrumbs,
body.single-product nav.woocommerce-breadcrumb {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
}

body.single-product .aw-single-product-details dd a,
body.single-product .woocommerce-product-attributes a {
	display: inline-flex;
	align-items: center;
	color: var(--aw-black) !important;
	font-weight: 900 !important;
	text-decoration: none !important;
}

body.single-product form.cart {
	grid-template-columns: 114px minmax(0, 1fr);
	align-items: stretch;
}

body.single-product form.cart .quantity {
	align-self: end;
}

body.single-product form.cart .single_add_to_cart_button {
	margin-top: 0 !important;
}

body.single-product .product-tabs-wrapper {
	border-top: 0 !important;
}

body.single-product .woocommerce-tabs,
body.single-product .wd-accordion-item,
body.single-product .wd-accordion-title,
body.single-product #tab-description {
	border-top: 0 !important;
	box-shadow: none !important;
}

@media (max-width: 980px) {
	body.single-product .wd-nav-wrapper {
		display: none !important;
	}

	body.single-product .woocommerce-tabs {
		display: block;
	}

	body.single-product .wd-accordion-item {
		padding: 22px 20px 28px !important;
		border-top: 0 !important;
	}

	body.single-product .wd-accordion-title {
		display: flex !important;
		min-height: 54px;
		align-items: center;
		justify-content: flex-start;
		margin: 0 0 20px !important;
		padding: 0 0 14px !important;
		border-top: 0 !important;
		border-bottom: 1px solid var(--aw-line) !important;
		color: var(--aw-black) !important;
		font-size: 18px !important;
		font-weight: 900 !important;
		text-align: right !important;
	}
}

@media (max-width: 640px) {
	body.single-product .product-image-summary-wrap {
		padding-top: 18px !important;
	}

	body.single-product form.cart {
		grid-template-columns: 114px minmax(0, 1fr) !important;
		gap: 10px !important;
	}

	body.single-product form.cart .single_add_to_cart_button {
		min-height: 56px !important;
		font-size: 14px !important;
	}

	body.single-product .woocommerce-tabs {
		border-top: 0 !important;
	}

	body.single-product .wd-accordion-title {
		margin-bottom: 18px !important;
	}
}

/* Product image frame and page pattern */
body.single-product .site-content::before {
	top: 0 !important;
	left: 0 !important;
	width: min(860px, 72vw) !important;
	height: min(520px, 58vw) !important;
	background: var(--aw-pattern) left top / 560px auto repeat !important;
	opacity: .16 !important;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 28%, rgba(0,0,0,.25) 58%, transparent 100%), linear-gradient(180deg, #000 0%, rgba(0,0,0,.68) 42%, rgba(0,0,0,.18) 74%, transparent 100%) !important;
	mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 28%, rgba(0,0,0,.25) 58%, transparent 100%), linear-gradient(180deg, #000 0%, rgba(0,0,0,.68) 42%, rgba(0,0,0,.18) 74%, transparent 100%) !important;
}

body.single-product .site-content::after {
	width: min(860px, 72vw) !important;
	height: min(520px, 58vw) !important;
	background: linear-gradient(90deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.68) 58%, rgba(255,255,255,1) 100%), linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.64) 70%, rgba(255,255,255,1) 100%) !important;
}

body.single-product .product-images,
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .wd-carousel-container,
body.single-product .wd-carousel-inner,
body.single-product .wd-carousel-wrap {
	border: 1px solid var(--aw-line) !important;
	background: var(--aw-white) !important;
}

body.single-product .woocommerce-product-gallery {
	padding: 14px !important;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .wd-carousel-container,
body.single-product .wd-carousel-inner,
body.single-product .wd-carousel-wrap {
	border-color: transparent !important;
}

body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image a {
	border: 1px solid var(--aw-line) !important;
}

body.single-product .woocommerce-product-gallery__image {
	background: var(--aw-white) !important;
}

body.single-product .woocommerce-product-gallery__image a {
	min-height: clamp(480px, 55vw, 660px);
	background: var(--aw-white) !important;
}

@media (max-width: 640px) {
	body.single-product .site-content::before,
	body.single-product .site-content::after {
		width: 100vw !important;
		height: 360px !important;
	}

	body.single-product .product-images,
	body.single-product .woocommerce-product-gallery {
		border: 1px solid var(--aw-line) !important;
	}

	body.single-product .woocommerce-product-gallery {
		padding: 10px !important;
	}

	body.single-product .woocommerce-product-gallery__image a {
		min-height: 420px;
	}
}

body.single-product .product-images,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .wd-carousel-container,
body.single-product .wd-carousel-inner,
body.single-product .wd-carousel-wrap,
body.single-product .wd-carousel-item,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image a {
	border: 0 !important;
}

body.single-product .woocommerce-product-gallery {
	border: 1px solid var(--aw-line) !important;
}

/* Desktop product tabs: tabs stay above the content, aligned to the right. */
@media (min-width: 981px) {
	body.single-product .woocommerce-tabs {
		display: block !important;
		border: 1px solid var(--aw-line) !important;
		background: var(--aw-white) !important;
	}

	body.single-product .wd-nav-wrapper {
		display: flex !important;
		justify-content: flex-end !important;
		padding: 0 clamp(24px, 3vw, 40px) !important;
		border-left: 0 !important;
		border-bottom: 1px solid var(--aw-line) !important;
		background: var(--aw-white) !important;
		text-align: right !important;
	}

	body.single-product .wd-nav-tabs {
		display: flex !important;
		width: auto !important;
		gap: 0 !important;
		align-items: stretch !important;
		justify-content: flex-end !important;
		border: 0 !important;
		direction: rtl !important;
	}

	body.single-product .wd-nav-tabs > li {
		margin: 0 !important;
		border-bottom: 0 !important;
		border-left: 1px solid var(--aw-line) !important;
	}

	body.single-product .wd-nav-tabs > li:last-child {
		border-left: 0 !important;
	}

	body.single-product .wd-nav-tabs .wd-nav-link {
		position: relative !important;
		display: inline-flex !important;
		min-height: 64px !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 0 28px !important;
		color: var(--aw-muted) !important;
		font-size: 15px !important;
		font-weight: 850 !important;
		line-height: 1.4 !important;
		text-align: center !important;
	}

	body.single-product .wd-nav-tabs .active .wd-nav-link,
	body.single-product .wd-nav-tabs .wd-active .wd-nav-link,
	body.single-product .wd-nav-tabs .wd-nav-link:hover {
		color: var(--aw-black) !important;
		background: #f7f7f7 !important;
	}

	body.single-product .wd-nav-tabs .active .wd-nav-link::after,
	body.single-product .wd-nav-tabs .wd-active .wd-nav-link::after {
		display: block !important;
		content: "" !important;
		position: absolute !important;
		right: 24px !important;
		bottom: -1px !important;
		left: 24px !important;
		width: auto !important;
		height: 2px !important;
		background: var(--aw-black) !important;
	}

	body.single-product .wd-accordion-item {
		grid-column: auto !important;
		padding: clamp(30px, 3.5vw, 48px) clamp(24px, 3vw, 40px) !important;
	}
}

/* Avoid repeating details already shown in the primary product summary grid. */
body.single-product .summary-inner > .aw-single-product-details + table.woocommerce-product-attributes.shop_attributes {
	display: none !important;
}

/* Related products use the same clean card system as the rest of the shop. */
body.single-product .related-products,
body.single-product .related-products .wd-carousel-inner,
body.single-product .related-products .wd-carousel,
body.single-product .related-products .wd-carousel-wrap {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.single-product .related-products .wd-carousel-wrap {
	gap: 20px !important;
}

body.single-product .related-products .wd-carousel-item {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.single-product .related-products .wd-product.product-grid-item {
	padding: 0 !important;
	background: var(--aw-white) !important;
	border: 1px solid var(--aw-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

body.single-product .related-products .product-wrapper {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	min-height: 100% !important;
	padding: 0 !important;
	background: var(--aw-white) !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.single-product .related-products .product-element-top {
	display: grid !important;
	aspect-ratio: 1 / 1 !important;
	place-items: center !important;
	margin: 0 !important;
	padding: clamp(18px, 2.5vw, 30px) !important;
	background: var(--aw-white) !important;
	border: 0 !important;
	border-bottom: 1px solid var(--aw-line) !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

body.single-product .related-products .product-image-link {
	display: grid !important;
	width: 100% !important;
	height: 100% !important;
	place-items: center !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.single-product .related-products .product-element-top img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	padding: 0 !important;
	object-fit: contain !important;
}

body.single-product .related-products .product-element-bottom {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	gap: 0 !important;
	padding: 18px 18px 20px !important;
	background: var(--aw-white) !important;
	border: 0 !important;
	text-align: right !important;
}

body.single-product .related-products .wrapp-buttons {
	position: static !important;
	inset: auto !important;
	display: block !important;
	width: 100% !important;
	margin: 16px 0 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

body.single-product .related-products .wd-buttons,
body.single-product .related-products .wd-action-btn {
	display: block !important;
	width: 100% !important;
}

body.single-product .related-products .wd-add-btn a {
	display: inline-flex !important;
	width: 100% !important;
	min-height: 44px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 9px !important;
	margin: 0 !important;
	padding: 0 15px !important;
	background: var(--aw-black) !important;
	border: 1px solid var(--aw-black) !important;
	color: var(--aw-white) !important;
	font-size: 13px !important;
	font-weight: 850 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

body.single-product .related-products .wd-add-btn a::after {
	content: "←" !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
}

body.single-product .related-products .wd-add-btn a span {
	display: inline-block !important;
	font-size: 0 !important;
	line-height: 1 !important;
}

body.single-product .related-products .wd-add-btn a span::before {
	content: "خرید" !important;
	font-size: 13px !important;
}

/* Related products: lock the section inside the page rhythm instead of letting the carousel bleed. */
body.single-product .related-products.with-title {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	overflow: visible !important;
	direction: rtl !important;
}

body.single-product .related-products.with-title .wd-el-title {
	width: 100% !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
	text-align: right !important;
}

body.single-product .related-products.with-title .wd-carousel-inner,
body.single-product .related-products.with-title .wd-carousel,
body.single-product .related-products.with-title .wd-carousel-wrap {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	transform: none !important;
}

body.single-product .related-products.with-title .wd-carousel-wrap {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 280px)) !important;
	justify-content: center !important;
	gap: 20px !important;
	direction: rtl !important;
}

body.single-product .related-products.with-title .wd-carousel-item {
	width: auto !important;
	min-width: 0 !important;
	max-width: 280px !important;
	margin: 0 !important;
}

body.single-product .related-products.with-title .wd-carousel-item:nth-child(n+5) {
	display: none !important;
}

body.single-product .related-products.with-title .wd-nav-arrows,
body.single-product .related-products.with-title .wd-nav-pagin {
	display: none !important;
}

@media (max-width: 1024px) {
	body.single-product .related-and-upsells {
		width: min(100% - 40px, 760px) !important;
		margin-bottom: clamp(28px, 5vw, 44px) !important;
	}

	body.single-product .related-products.with-title {
		max-width: 100% !important;
	}

	body.single-product .related-products.with-title .wd-carousel-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.single-product .related-products.with-title .wd-carousel-item {
		max-width: none !important;
	}
}

@media (max-width: 640px) {
	body.single-product .related-and-upsells {
		width: min(100% - 32px, 430px) !important;
		margin-bottom: 32px !important;
	}

	body.single-product .related-products.with-title {
		max-width: 100% !important;
	}

body.single-product .related-products.with-title .wd-carousel-wrap {
	grid-template-columns: 1fr !important;
	gap: 16px !important;
	}
}

/* Keep the tail of related products clean before the footer. */
body.single-product .related-and-upsells,
body.single-product .related-products.with-title,
body.single-product .related-products.with-title .wd-carousel-container,
body.single-product .related-products.with-title .wd-carousel-inner,
body.single-product .related-products.with-title .wd-carousel,
body.single-product .related-products.with-title .wd-carousel-wrap {
	background: transparent !important;
	border-top: 0 !important;
	box-shadow: none !important;
}

body.single-product .related-and-upsells {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Final tab alignment: keep single-product tabs pinned to the right in RTL. */
@media (min-width: 981px) {
	body.single-product .product-tabs-wrapper .wd-nav-tabs-wrapper {
		display: flex !important;
		width: 100% !important;
		justify-content: flex-start !important;
		direction: rtl !important;
		text-align: right !important;
	}

	body.single-product .product-tabs-wrapper .wd-nav-tabs {
		display: inline-flex !important;
		width: auto !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: auto !important;
		direction: rtl !important;
	}

	body.single-product .product-tabs-wrapper .wd-nav-tabs .wd-nav-link,
	body.single-product .product-tabs-wrapper .wd-nav-tabs .nav-link-text,
	body.single-product .product-tabs-wrapper .wd-nav-tabs .wd-tabs-title {
		display: inline-flex !important;
		align-items: center !important;
		white-space: nowrap !important;
		word-break: keep-all !important;
	}
}
