body.yd-sp-page {
	margin: 0;
	background: #f3f3f1;
	color: #1a1a1a;
	font-family: "IRANSans", "IRANSansWeb", Tahoma, Arial, sans-serif;
}

body.yd-sp-page .wd-preloader,
body.yd-sp-page .wd-loader {
	display: none !important;
}

.yd-sp {
	padding: 18px 0 48px;
}

.yd-sp__wrap {
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
}

.yd-sp__crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	margin: 0 0 14px;
	color: #6b6b66;
	font-size: 12px;
	line-height: 1.8;
}

.yd-sp__crumb a,
.yd-sp__crumb span {
	color: inherit;
	text-decoration: none;
}

.yd-sp__crumb a:not(:last-of-type)::after,
.yd-sp__crumb a::after {
	content: "/";
	margin: 0 8px;
	color: #b7b7b0;
}

.yd-sp__crumb span {
	color: #222;
}

.yd-sp__sheet {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.9fr) 320px;
	gap: 16px;
	align-items: start;
	padding: 16px;
	background: #fff;
	border: 1px solid #e6e6e2;
	border-radius: 8px;
}

.yd-sp__gallery {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	min-width: 0;
}

.yd-sp__gallery.has-thumbs {
	grid-template-columns: minmax(0, 1fr) 86px;
}

.yd-sp__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 480px;
	padding: 20px;
	background: #f7f7f5;
	border: 1px solid #eee;
	border-radius: 8px;
}

.yd-sp__photo,
.yd-sp__stage img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 440px;
	max-height: 440px;
	object-fit: contain;
}

.yd-sp__thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yd-sp__thumb {
	width: 74px;
	height: 74px;
	padding: 4px;
	border: 1px solid #e4e4e0;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.yd-sp__thumb.is-on {
	border-color: #111;
}

.yd-sp__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.yd-sp__info h1 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.7;
}

.yd-sp__off {
	display: inline-block;
	margin: 0 0 8px;
	padding: 2px 8px;
	background: #111;
	color: #f5c400;
	font-size: 12px;
	font-weight: 800;
}

.yd-sp__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	color: #555;
	font-size: 13px;
}

.yd-sp__facts b {
	color: #111;
}

.yd-sp__facts .is-in { color: #0d7a32; font-weight: 800; }
.yd-sp__facts .is-out { color: #b42318; font-weight: 800; }

.yd-sp__lead,
.yd-sp__lead p {
	margin: 0 0 14px;
	color: #444;
	font-size: 13px;
	line-height: 2;
}

.yd-sp__specs {
	margin: 0;
	border-top: 1px solid #eee;
}

.yd-sp__specs div {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid #f1f1ee;
	font-size: 13px;
}

.yd-sp__specs dt {
	color: #777;
}

.yd-sp__specs dd {
	margin: 0;
	color: #222;
	font-weight: 700;
}

.yd-sp__buy {
	position: sticky;
	top: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e6e6e2;
	border-radius: 8px;
}

.yd-sp__seller {
	display: grid;
	gap: 2px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0ec;
}

.yd-sp__seller span,
.yd-sp__seller small {
	color: #777;
	font-size: 12px;
}

.yd-sp__seller a,
.yd-sp__seller strong {
	color: #111;
	font-size: 15px;
	font-weight: 900;
	text-decoration: none;
}

.yd-sp__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}

.yd-sp__price strong {
	color: #111;
	font-size: 22px;
	font-weight: 900;
}

.yd-sp__price del {
	color: #9a9a94;
	font-size: 13px;
}

.yd-sp__price b {
	padding: 1px 6px;
	background: #f5c400;
	color: #111;
	font-size: 12px;
}

.yd-sp__cart form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.yd-sp__cart .quantity {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.yd-sp__cart .quantity input.qty,
.yd-sp__cart .quantity input {
	width: 52px;
	height: 42px;
	border: 0 !important;
	background: #fff !important;
	color: #111 !important;
	box-shadow: none !important;
	text-align: center;
	font: inherit;
}

.yd-sp__cart .quantity .minus,
.yd-sp__cart .quantity .plus,
.yd-sp__cart .quantity button {
	width: 32px;
	height: 42px;
	border: 0;
	background: #fafafa;
	color: #111;
	cursor: pointer;
}

.yd-sp__cart .single_add_to_cart_button,
.yd-sp__cart button[name="add-to-cart"] {
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #f5c400;
	color: #111;
	font: inherit;
	font-weight: 900;
	cursor: pointer;
}

.yd-sp__cart .wd-buy-now-btn,
.yd-sp__cart a.wd-buy-now-btn,
.yd-sp__cart button.wd-buy-now-btn,
.yd-sp__cart .single_add_to_cart_button + a,
.yd-sp__cart .single_add_to_cart_button + button {
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #111;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 800;
	text-decoration: none;
}

.yd-sp__cart .stock {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	color: #0d7a32;
	font-size: 12px;
	font-weight: 800;
}

.yd-sp__cart .variations {
	width: 100%;
	margin: 0 0 8px;
	border-collapse: collapse;
}

.yd-sp__cart .variations td {
	padding: 4px 0;
	font-size: 13px;
}

.yd-sp__cart .variations select {
	width: 100%;
	min-height: 40px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}

.yd-sp__assure {
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #f0f0ec;
	list-style: none;
	color: #666;
	font-size: 12px;
	line-height: 1.9;
}

body.yd-sp-page .yd-sp__block {
	display: block;
	width: 100%;
	max-width: none;
	float: none;
	margin-top: 16px;
	padding: 18px 20px 20px;
	background: #fff;
	border: 1px solid #e6e6e2;
	border-radius: 8px;
	box-sizing: border-box;
}

.yd-sp__block h2 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 900;
}

.yd-sp__prose {
	width: 100%;
	max-width: none;
	color: #333;
	font-size: 14px;
	line-height: 2.05;
}

.yd-sp__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-sp__grid a {
	display: grid;
	gap: 8px;
	min-height: 100%;
	padding: 10px;
	border: 1px solid #eee;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.yd-sp__grid a:hover {
	border-color: #111;
}

.yd-sp__grid img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: #fafafa;
}

.yd-sp__grid span {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.7;
}

.yd-sp__grid small {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: #111;
	font-size: 13px;
	font-weight: 800;
}

.yd-sp__grid small .woocommerce-Price-amount,
.yd-sp__grid small ins,
.yd-sp__grid small del {
	display: block;
}

.yd-sp__grid del {
	color: #999;
	font-weight: 500;
}

.yd-sp__rate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #333;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.yd-sp__stars {
	color: #ddd;
	letter-spacing: 1px;
	font-style: normal;
}

.yd-sp__stars .is-on {
	color: #f5c400;
}

.yd-sp__tabbar {
	display: flex;
	gap: 0;
	margin: -18px -20px 16px;
	border-bottom: 1px solid #eee;
}

.yd-sp__tabbar button {
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #555;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.yd-sp__tabbar button.is-on {
	border-bottom-color: #111;
	color: #111;
}

.yd-sp__panel[hidden] {
	display: none;
}

.yd-sp__table {
	width: 100%;
	border-collapse: collapse;
}

.yd-sp__table th,
.yd-sp__table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f0f0ec;
	text-align: right;
	font-size: 14px;
}

.yd-sp__table th {
	width: 220px;
	background: #fafafa;
	color: #555;
	font-weight: 700;
}

.yd-sp__reviews {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 22px;
}

.yd-sp__summary strong {
	display: block;
	font-size: 42px;
	line-height: 1;
}

.yd-sp__summary small {
	display: block;
	margin: 6px 0 12px;
	color: #666;
}

.yd-sp__summary ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-sp__summary li {
	display: grid;
	grid-template-columns: 16px 1fr 24px;
	gap: 8px;
	align-items: center;
	margin-bottom: 6px;
	font-size: 12px;
}

.yd-sp__bar {
	height: 6px;
	background: #eee;
	border-radius: 99px;
	overflow: hidden;
}

.yd-sp__bar i {
	display: block;
	height: 100%;
	background: #f5c400;
}

.yd-sp__review-list article {
	padding: 14px 0;
	border-bottom: 1px solid #f0f0ec;
}

.yd-sp__review-list header {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	margin-bottom: 6px;
}

.yd-sp__review-list time {
	color: #888;
	font-size: 12px;
}

.yd-sp__review-list p {
	margin: 0;
	line-height: 1.9;
}

.yd-sp__form {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.yd-sp__pick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.yd-sp__pick legend {
	width: 100%;
	margin-bottom: 6px;
	font-weight: 800;
}

.yd-sp__pick label {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	font-size: 13px;
}

.yd-sp__field,
.yd-sp__who label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
}

.yd-sp__who {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.yd-sp__form textarea,
.yd-sp__form input[type="text"],
.yd-sp__form input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-weight: 500;
	box-sizing: border-box;
}

.yd-sp__form button {
	justify-self: start;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.yd-sp__empty {
	margin: 0;
	color: #666;
}

.yd-sp__notice {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #ead98a;
	border-radius: 8px;
	background: #fff8dc;
	color: #3d3208;
	font-size: 13px;
}

.yd-sp__buyer,
.yd-sp__guest {
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
}

.yd-sp__buyer {
	color: #168a4a;
}

.yd-sp__guest {
	color: #888;
	font-weight: 600;
}

@media (max-width: 760px) {
	.yd-sp__reviews,
	.yd-sp__who {
		grid-template-columns: 1fr;
	}

	.yd-sp__tabbar {
		overflow-x: auto;
	}
}

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	margin-bottom: 12px;
}

@media (max-width: 1100px) {
	.yd-sp__sheet {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.yd-sp__info {
		grid-column: 1 / -1;
		order: 3;
	}
}

@media (max-width: 760px) {
	.yd-sp__wrap {
		width: min(100% - 16px, 1240px);
	}

	.yd-sp__sheet,
	.yd-sp__grid {
		grid-template-columns: 1fr;
	}

	.yd-sp__gallery,
	.yd-sp__gallery.has-thumbs {
		grid-template-columns: 1fr;
	}

	.yd-sp__photo,
	.yd-sp__stage img {
		height: 280px;
		max-height: 280px;
	}

	.yd-sp__thumbs {
		flex-direction: row;
		overflow-x: auto;
	}

	.yd-sp__stage {
		min-height: 240px;
	}

	.yd-sp__buy {
		position: static;
	}
}
