/* =========================================================
   صفحه محصول — شکوه دندان
   قانون طراحی: بدون گوشه گرد (فقط دایره‌ها)
   ========================================================= */

.pd {
	padding: 28px 0 0;
}

/* hidden همیشه برنده باشد (حتی روی عناصر flex/grid) */
.pd [hidden] {
	display: none !important;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	font-size: .863rem;
	color: var(--muted);
}

.crumbs a:hover {
	color: var(--primary);
}

.crumbs b {
	font-weight: 500;
	color: var(--text);
}

.crumbs span {
	color: var(--gray-2);
}

/* ستون گالری به اندازه عکسِ هم‌قد صفحه است تا بین گالری و اطلاعات فاصله اضافه نیفتد */
.pd__grid {
	display: grid;
	grid-template-columns: minmax(0, min(calc(108px + var(--pg-h) * .8), 55%)) minmax(0, 760px);
	justify-content: center;
	gap: 64px;
	align-items: start;
}

/* جای‌گذار تصویر محصول با رنگ انتخاب‌شده */
.ph--pd {
	background: radial-gradient(circle at 50% 40%, #fff, var(--gray-1) 70%);
}

.ph--pd svg,
.ph[style*="--pc"] svg {
	width: 46%;
	max-width: 280px;
	fill: var(--pc, var(--primary));
	filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .15));
	transition: fill .5s var(--ease);
}

.ph--video {
	background:
		radial-gradient(circle at 30% 20%, rgba(143, 130, 196, .35), transparent 60%),
		linear-gradient(160deg, var(--primary-3), var(--primary-2));
}

.ph__label {
	color: rgba(255, 255, 255, .55);
	font-size: .9rem;
}

/* =========================================================
   گالری
   ========================================================= */
.pg {
	position: sticky;
	top: calc(var(--header-top) + var(--nav-h) + 20px);
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 16px;
}

.pg__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: calc(100vh - var(--header-top) - var(--nav-h) - 60px);
	overflow-y: auto;
	scrollbar-width: none;
}

.pg__thumbs::-webkit-scrollbar {
	display: none;
}

.pg__thumb {
	position: relative;
	flex: none;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	opacity: .55;
	outline: 1px solid transparent;
	outline-offset: -1px;
	transition: opacity .3s, outline-color .3s;
}

.pg__thumb:hover {
	opacity: .85;
}

.pg__thumb.is-active {
	opacity: 1;
	outline-color: var(--primary);
}

.pg__thumb .ph svg {
	width: 60%;
}

.pg__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--white);
}

.pg__play svg {
	width: 26px;
	height: 26px;
	padding: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	border: 1px solid rgba(255, 255, 255, .6);
	fill: currentColor;
}

.pg__stage {
	position: relative;
	overflow: hidden;
	background: var(--gray-1);
}

.pg__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.pg__track::-webkit-scrollbar {
	display: none;
}

.pg__slide {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	scroll-snap-align: start;
	overflow: hidden;
}

.pg__slide .ph {
	position: absolute;
	inset: 0;
}

.pg__slide video.media-fill {
	z-index: 1;
	object-fit: cover;
	background: transparent;
}

.pg__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 46px;
	height: 46px;
	padding: 13px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--primary);
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity .3s, background .2s, color .2s;
}

.pg__arrow svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pg__stage:hover .pg__arrow {
	opacity: 1;
}

.pg__arrow:hover {
	background: var(--primary);
	color: var(--white);
}

.pg__arrow--prev {
	right: 18px;
}

.pg__arrow--next {
	left: 18px;
}

.pg__count {
	position: absolute;
	bottom: 18px;
	left: 18px;
	z-index: 2;
	padding: 4px 12px;
	background: rgba(255, 255, 255, .85);
	font-family: "Cormorant Garamond", "Vazirmatn", serif;
	font-size: .95rem;
	color: var(--muted);
}

.pg__count b {
	color: var(--primary);
}

.pg__tag {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	padding: 4px 14px;
	background: var(--primary);
	color: var(--white);
	font-size: .843rem;
}

/* =========================================================
   اطلاعات محصول
   ========================================================= */
.pi__cat {
	font-size: .863rem;
	letter-spacing: .04em;
	color: var(--accent);
}

.pi__title {
	margin: 6px 0 4px;
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--primary);
}

.pi__sku {
	font-size: .843rem;
	color: var(--muted);
}

.pi__sku span {
	direction: ltr;
	display: inline-block;
}

.pi__price {
	margin: 18px 0 10px;
	font-size: 1.6rem;
	color: var(--primary);
}

.pi__price strong {
	font-weight: 700;
}

.pi__price small {
	font-size: .912rem;
	color: var(--muted);
}

.pi__lead {
	color: var(--muted);
	margin-bottom: 8px;
}

/* ---------- گزینه‌ها ---------- */
.opt {
	padding: 22px 0;
	border-top: 1px solid var(--line);
}

.opt__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 14px;
}

.opt__label {
	font-weight: 700;
	color: var(--text);
}

.opt__value {
	font-size: .9rem;
	color: var(--muted);
}

.opt__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: auto;
	font-size: .912rem;
	color: var(--primary);
	border-bottom: 1px solid currentColor;
}

.opt__link svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.opt__error {
	margin-top: 10px;
	font-size: .882rem;
	color: #c8264f;
}

.opt--inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* سواچ رنگ: مربع، با قاب نازک دور انتخاب‌شده */
.swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.swatch {
	position: relative;
	width: 38px;
	height: 38px;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
	transition: transform .25s var(--ease);
}

.swatch::after {
	content: "";
	position: absolute;
	inset: -5px;
	border: 1px solid transparent;
	transition: border-color .25s;
}

.swatch:hover {
	transform: translateY(-2px);
}

.swatch.is-active::after {
	border-color: var(--primary);
}

/* دکمه سایز */
.sizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 8px;
}

.size-btn {
	position: relative;
	display: grid;
	place-items: center;
	height: 50px;
	border: 1px solid var(--gray-2);
	font-weight: 500;
	direction: ltr;
	transition: border-color .2s, background .2s, color .2s;
}

.size-btn:hover:not(:disabled) {
	border-color: var(--primary);
}

.size-btn.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--white);
}

.size-btn.is-out {
	color: var(--gray-3);
	cursor: not-allowed;
	background:
		linear-gradient(to top right, transparent calc(50% - .5px), var(--gray-2) 50%, transparent calc(50% + .5px));
}

.size-btn.has-num {
	align-content: center;
	gap: 0;
	line-height: 1.1;
}

.size-btn__num {
	font-size: .762rem;
	font-weight: 400;
	opacity: .65;
}

.size-btn small {
	position: absolute;
	bottom: 3px;
	font-size: .605rem;
	direction: rtl;
}

/* شمارنده تعداد */
.qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--gray-2);
}

.qty button {
	width: 44px;
	height: 44px;
	padding: 14px;
	color: var(--primary);
	transition: background .2s;
}

.qty button:hover {
	background: var(--gray-1);
}

.qty svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

.qty input {
	width: 48px;
	height: 44px;
	border: 0;
	border-inline: 1px solid var(--gray-2);
	font: inherit;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.qty--sm button {
	width: 38px;
	height: 38px;
	padding: 12px;
}

.qty--sm input {
	height: 38px;
	width: 42px;
}

/* =========================================================
   گلدوزی اختصاصی
   ========================================================= */
.emb {
	margin: 4px 0 22px;
	border: 1px solid var(--gray-2);
	background:
		radial-gradient(ellipse at 100% 0%, rgba(143, 130, 196, .12), transparent 60%),
		var(--white);
	transition: border-color .3s, box-shadow .3s;
}

.emb.is-on {
	border-color: var(--primary);
	box-shadow: 0 20px 40px -30px rgba(43, 30, 87, .5);
}

.emb.is-flash {
	animation: emb-flash 1.2s var(--ease);
}

@keyframes emb-flash {
	30% {
		box-shadow: 0 0 0 6px rgba(143, 130, 196, .35);
	}
}

.emb__toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	cursor: pointer;
}

.emb__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.emb__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 10px;
	flex: none;
	border-radius: 50%;
	background: var(--gray-1);
	color: var(--primary);
	transition: background .3s, color .3s;
}

.emb__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
}

.emb.is-on .emb__icon {
	background: var(--primary);
	color: var(--white);
}

.emb__title {
	flex: 1;
}

.emb__title b {
	display: block;
	color: var(--primary);
}

.emb__title small {
	font-size: .863rem;
	color: var(--muted);
}

.emb__title small span {
	color: var(--primary);
	font-weight: 600;
}

/* سوییچ مربعی */
.switch {
	position: relative;
	width: 46px;
	height: 24px;
	flex: none;
	background: var(--gray-2);
	transition: background .3s;
}

.switch::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 18px;
	height: 18px;
	background: var(--white);
	transition: transform .3s var(--ease);
}

.emb.is-on .switch {
	background: var(--primary);
}

.emb.is-on .switch::after {
	transform: translateX(-22px);
}

.emb__toggle input:focus-visible ~ .switch {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.emb__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .45s var(--ease);
}

.emb__body > * {
	overflow: hidden;
}

.emb.is-on .emb__body {
	grid-template-rows: 1fr;
}

.emb__inner {
	min-height: 0;
}

.emb__note {
	display: flex;
	gap: 10px;
	margin: 0 20px 18px;
	padding: 12px 14px;
	background: var(--gray-1);
	font-size: .912rem;
	color: var(--muted);
}

.emb__note svg {
	width: 20px;
	height: 20px;
	flex: none;
	margin-top: 2px;
	fill: none;
	stroke: var(--primary);
	stroke-width: 1.5;
	stroke-linecap: round;
}

.emb__note b {
	color: var(--primary);
}

.emb__step {
	margin: 0 20px 20px;
}

.emb__step--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.emb__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-weight: 500;
	font-size: .92rem;
}

.emb__step--row .emb__label {
	margin-bottom: 0;
}

.emb__label i {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
	font-style: normal;
	font-size: .782rem;
}

.emb__label em,
.emb__label small {
	font-style: normal;
	font-weight: 400;
	font-size: .882rem;
	color: var(--muted);
}

/* انتخاب لوگو / نام */
.seg {
	display: inline-flex;
	margin-bottom: 12px;
	border: 1px solid var(--gray-2);
}

.seg__btn {
	padding: 8px 22px;
	font-size: .943rem;
	color: var(--muted);
	transition: background .2s, color .2s;
}

.seg__btn.is-active {
	background: var(--primary);
	color: var(--white);
}

.drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1px dashed var(--accent);
	background: var(--white);
	cursor: pointer;
	transition: background .2s, border-color .2s;
}

.drop:hover,
.drop.is-drag {
	background: var(--gray-1);
	border-color: var(--primary);
}

.drop input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.drop__icon {
	width: 40px;
	height: 40px;
	padding: 9px;
	flex: none;
	border-radius: 50%;
	background: var(--gray-1);
	color: var(--primary);
}

.drop__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.drop__text b {
	display: block;
	font-weight: 500;
	font-size: .9rem;
}

.drop__text small {
	font-size: .812rem;
	color: var(--muted);
}

.drop__file {
	margin-right: auto;
	max-width: 40%;
	padding: 4px 10px;
	background: var(--primary);
	color: var(--white);
	font-size: .812rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	direction: ltr;
}

.drop.has-file {
	border-style: solid;
	border-color: var(--primary);
}

.field {
	position: relative;
}

.field input,
.emb textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gray-2);
	background: var(--white);
	font: inherit;
	transition: border-color .2s;
}

.field input:focus,
.emb textarea:focus {
	outline: none;
	border-color: var(--primary);
}

.field__count {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	font-size: .782rem;
	color: var(--gray-3);
}

.emb textarea {
	resize: vertical;
}

/* رنگ نخ: دایره‌های کوچک با حلقه دور انتخاب‌شده */
.threads {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.thread {
	position: relative;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background:
		repeating-linear-gradient(60deg, rgba(255, 255, 255, .25) 0 2px, transparent 2px 5px),
		var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.thread::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 1px solid transparent;
	transition: border-color .2s;
}

.thread.is-active::after {
	border-color: var(--primary);
}

/* محل گلدوزی */
.places {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.place input {
	position: absolute;
	opacity: 0;
}

.place__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 14px 8px 12px;
	border: 1px solid var(--gray-2);
	background: var(--white);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}

.place__pic {
	width: 60px;
	height: 60px;
	margin-bottom: 4px;
}

.pl__shirt {
	fill: var(--gray-1);
	stroke: var(--gray-3);
	stroke-width: 1.2;
	transition: fill .3s;
}

.pl__pocket {
	fill: none;
	stroke: var(--gray-3);
	stroke-width: 1;
	stroke-dasharray: 2 2;
}

.pl__mark {
	fill: var(--accent);
	transition: fill .3s;
}

.place__name {
	font-weight: 500;
	font-size: .943rem;
}

.place__price {
	font-size: .782rem;
	color: var(--muted);
}

.place__price.is-extra {
	color: var(--primary);
	font-weight: 600;
}

.place input:checked + .place__card {
	border-color: var(--primary);
	background: var(--gray-1);
}

.place input:checked + .place__card .pl__shirt {
	fill: color-mix(in srgb, var(--pc) 20%, white);
}

.place input:checked + .place__card .pl__mark {
	fill: var(--primary);
	animation: mark-pulse 1.6s infinite;
	transform-box: fill-box;
	transform-origin: center;
}

@keyframes mark-pulse {
	50% {
		transform: scale(1.4);
	}
}

.place input:focus-visible + .place__card {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.emb__warn {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-top: 10px;
	padding: 10px 12px;
	background: #fff5f7;
	border-right: 2px solid #c8264f;
	font-size: .882rem;
	color: #8f1d3a;
}

.emb__warn svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.emb__sum {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0 20px;
	padding: 16px 0 18px;
	border-top: 1px dashed var(--gray-2);
}

.emb__sum strong {
	font-size: 1.1rem;
	color: var(--primary);
}

.emb .opt__error {
	margin: 0 20px 16px;
}

/* =========================================================
   فاکتور و دکمه‌ها
   ========================================================= */
.bill {
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.bill__row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: .92rem;
	color: var(--muted);
}

.bill__row small {
	font-size: .843rem;
}

.bill__row--total {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px dashed var(--gray-2);
	color: var(--text);
	font-weight: 500;
}

.bill__row--total strong {
	font-size: 1.35rem;
	color: var(--primary);
}

.pi__actions {
	display: flex;
	gap: 10px;
}

.pi__add {
	flex: 1;
	padding: 18px;
	font-size: 1rem;
}

.pi__wish {
	width: 58px;
	flex: none;
	padding: 17px;
	border: 1px solid var(--gray-2);
	color: var(--primary);
	transition: border-color .2s, background .2s;
}

.pi__wish svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.pi__wish:hover {
	border-color: var(--primary);
}

.pi__wish[aria-pressed="true"] svg {
	fill: currentColor;
}

/* ---------- مزایا (مثل نمونه) ---------- */
.pi__perks {
	display: grid;
	gap: 12px;
	margin: 26px 0;
}

.pi__perks li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: .92rem;
	color: var(--muted);
}

.pi__perks svg {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: var(--primary);
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pi__perks b {
	color: var(--text);
	font-weight: 600;
}

/* ---------- ردیف ویدیوهای محصول ---------- */
.reels__title {
	margin-bottom: 12px;
	font-weight: 700;
	color: var(--primary);
}

.reels__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.reel {
	position: relative;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	color: var(--white);
	text-align: right;
}

.reel .ph {
	position: absolute;
	inset: 0;
}

.reel video.media-fill {
	z-index: 0;
	transition: transform .8s var(--ease);
}

.reel:hover video.media-fill {
	transform: scale(1.05);
}

.reel__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(transparent 55%, rgba(20, 12, 45, .7));
}

.reel__play {
	position: absolute;
	bottom: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 11px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .9);
	background: rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background .3s, color .3s;
}

.reel__play svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.reel:hover .reel__play {
	background: var(--white);
	color: var(--primary);
}

.reel__cap {
	position: absolute;
	top: 14px;
	right: 14px;
	left: 14px;
	z-index: 2;
	font-size: .843rem;
	font-weight: 500;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

/* ---------- آکاردئون ---------- */
.acc {
	margin-top: 26px;
	border-top: 1px solid var(--line);
}

.acc details {
	border-bottom: 1px solid var(--line);
}

.acc summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

.acc summary::-webkit-details-marker {
	display: none;
}

.acc summary::after {
	content: "+";
	font-size: 1.3rem;
	font-weight: 300;
	color: var(--primary);
	transition: transform .3s;
}

.acc details[open] summary::after {
	transform: rotate(45deg);
}

.acc details p {
	padding-bottom: 18px;
	color: var(--muted);
	font-size: .92rem;
}

/* =========================================================
   راهنمای سایز
   ========================================================= */
.sg {
	margin-top: 96px;
	padding: 80px 0;
	background:
		radial-gradient(ellipse at 90% 0%, rgba(143, 130, 196, .18), transparent 55%),
		var(--gray-1);
}

.sg.is-flash {
	animation: sg-flash 1.4s var(--ease);
}

@keyframes sg-flash {
	30% {
		background-color: #ece8f7;
	}
}

.sg__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.sg__head .kicker {
	margin-bottom: 4px;
}

.sg__gender {
	display: inline-block;
	margin-right: 8px;
	padding: 2px 14px;
	background: var(--primary);
	color: var(--white);
	font-size: .9rem;
	font-weight: 500;
	vertical-align: middle;
}

.sg__grid > * {
	min-width: 0;
}

.sg__grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.sg__figure {
	padding: 24px;
	background: var(--white);
}

.sg__fig {
	display: block;
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
}

.sg__body {
	fill: var(--gray-1);
	stroke: var(--gray-3);
	stroke-width: 1;
}

.sg__m {
	stroke: var(--accent-2);
	stroke-width: 1.6;
	stroke-dasharray: 4 3;
	fill: var(--accent-2);
	transition: stroke .3s, fill .3s, opacity .3s;
	opacity: .7;
}

.sg__m.is-hot {
	stroke: var(--primary);
	fill: var(--primary);
	stroke-dasharray: none;
	stroke-width: 2.2;
	opacity: 1;
}

.sg__legend {
	display: grid;
	gap: 6px;
	margin-top: 18px;
	font-size: .882rem;
	color: var(--muted);
}

.sg__legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: default;
	transition: color .2s;
}

.sg__legend li.is-hot {
	color: var(--primary);
	font-weight: 600;
}

.sg__dot {
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: var(--accent-2);
	transition: background .2s, transform .2s;
}

.is-hot > .sg__dot,
.is-hot .sg__dot {
	background: var(--primary);
	transform: scale(1.3);
}

.sg__table-wrap {
	overflow-x: auto;
	background: var(--white);
	scrollbar-width: thin;
}

.sg__table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: .92rem;
}

.sg__table th,
.sg__table td {
	padding: 18px 12px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
	transition: background .2s, color .2s;
}

.sg__table thead th {
	position: relative;
	padding: 20px 12px;
	background: var(--primary-2);
	color: var(--white);
	font-family: "Cormorant Garamond", "Vazirmatn", serif;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: .04em;
}

.sg__table thead small {
	display: block;
	margin-top: 2px;
	font-family: "Vazirmatn", sans-serif;
	font-size: .782rem;
	font-weight: 400;
	letter-spacing: 0;
	opacity: .7;
}

.sg__table thead .sg__corner small {
	color: var(--accent-2);
}

.sg__table thead .sg__corner {
	font-family: "Vazirmatn", sans-serif;
	font-size: .812rem;
	font-weight: 400;
	color: var(--accent-2);
	text-align: right;
}

.sg__table tbody th {
	position: sticky;
	right: 0;
	background: var(--white);
	text-align: right;
	font-weight: 500;
	color: var(--text);
	z-index: 1;
}

.sg__table tbody th .sg__dot {
	display: inline-block;
	margin-left: 10px;
	vertical-align: middle;
}

.sg__table td {
	color: var(--muted);
}

/* هاور: سطر و ستون روشن می‌شوند */
.sg__table tr.is-hot th,
.sg__table tr.is-hot td {
	background: #f4f2fa;
	color: var(--primary);
}

.sg__table [data-col].is-col {
	background: #f4f2fa;
}

.sg__table thead [data-col].is-col {
	background: var(--primary-3);
}

/* سایز انتخاب‌شده (از دکمه‌های سایز یا پیشنهاد) */
.sg__table [data-col].is-picked {
	background: var(--primary);
	color: var(--white);
}

.sg__table thead [data-col].is-picked {
	background: var(--accent);
}

.sg__table tr:last-child td,
.sg__table tr:last-child th {
	border-bottom: 0;
}

/* سایزم را پیدا کن */
.sg__finder {
	margin-top: 20px;
	padding: 22px 24px;
	background: var(--white);
	border-right: 3px solid var(--primary);
}

.sg__finder-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-weight: 700;
	color: var(--primary);
}

.sg__finder-title svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.sg__finder-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
}

.sg__finder label {
	display: grid;
	gap: 6px;
	font-size: .882rem;
	color: var(--muted);
}

.sg__finder input {
	width: 150px;
	padding: 10px 12px;
	border: 1px solid var(--gray-2);
	font: inherit;
}

.sg__finder input:focus {
	outline: none;
	border-color: var(--primary);
}

.sg__result {
	flex: 1;
	min-width: 200px;
	padding: 10px 14px;
	background: var(--gray-1);
	font-size: .9rem;
	color: var(--muted);
}

.sg__result b {
	display: inline-block;
	margin: 0 4px;
	padding: 0 10px;
	background: var(--primary);
	color: var(--white);
	direction: ltr;
}

/* محصولات مشابه */
.track--related {
	grid-auto-columns: calc((100% - 4 * 20px) / 5);
	gap: 20px;
}

/* =========================================================
   پاپ‌آپ گلدوزی
   ========================================================= */
.modal {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: grid;
	place-items: center;
	padding: 20px;
}

.modal[hidden] {
	display: none;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 12, 45, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: fade .35s var(--ease);
}

.modal__panel {
	position: relative;
	display: grid;
	grid-template-columns: 0.9fr 1fr;
	width: min(820px, 100%);
	background: var(--white);
	box-shadow: 0 40px 80px -30px rgba(20, 12, 45, .6);
	animation: pop-in .5s var(--ease);
}

@keyframes pop-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(.98);
	}
}

.modal__x {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 10px;
	border-radius: 50%;
	color: var(--white);
	background: rgba(255, 255, 255, .12);
	transition: background .2s;
}

.modal__x svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

.modal__x:hover {
	background: rgba(255, 255, 255, .25);
}

.pop__art {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 320px;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 20%, rgba(143, 130, 196, .45), transparent 55%),
		radial-gradient(circle at 80% 90%, rgba(176, 74, 168, .35), transparent 50%),
		var(--primary-2);
}

.pop__art svg {
	width: 80%;
}

.pop__stitch {
	fill: none;
	stroke: var(--accent-2);
	stroke-width: 2;
	stroke-dasharray: 6 5;
	stroke-linecap: round;
	animation: stitch-run 1.6s linear infinite;
}

@keyframes stitch-run {
	to {
		stroke-dashoffset: -22;
	}
}

.pop__needle {
	fill: var(--white);
	filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9));
}

.pop__badge {
	position: absolute;
	bottom: 22px;
	right: 22px;
	font-family: "Cormorant Garamond", serif;
	font-size: 1rem;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--accent-2);
}

.pop__body {
	padding: 40px 36px 34px;
}

.pop__body h3 {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--primary);
	margin-bottom: 10px;
}

.pop__body > p {
	color: var(--muted);
	margin-bottom: 18px;
}

.pop__list {
	display: grid;
	gap: 8px;
	margin-bottom: 26px;
	font-size: .9rem;
}

.pop__list li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pop__list svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: var(--primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pop__list b {
	color: var(--primary);
}

.pop__actions {
	display: grid;
	gap: 10px;
}

.pop__actions .btn {
	width: 100%;
	padding: 16px;
}

.pop__no {
	padding: 10px;
	font-size: .943rem;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.pop__no:hover {
	color: var(--primary);
}

/* =========================================================
   اعلان افزودن به سبد
   ========================================================= */
.toast {
	position: fixed;
	top: calc(var(--header-top) + var(--nav-h) + 16px);
	left: 24px;
	z-index: 350;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(380px, calc(100% - 32px));
	padding: 16px 18px;
	background: var(--white);
	border-right: 3px solid var(--primary);
	box-shadow: 0 30px 60px -30px rgba(20, 12, 45, .5);
	animation: toast-in .5s var(--ease);
}

.toast[hidden] {
	display: none;
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateX(-24px);
	}
}

.toast__icon {
	width: 36px;
	height: 36px;
	padding: 9px;
	flex: none;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
}

.toast__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.toast__text {
	flex: 1;
	min-width: 0;
}

.toast__text b {
	display: block;
	color: var(--primary);
}

.toast__text small {
	display: block;
	font-size: .843rem;
	color: var(--muted);
}

.toast__link {
	font-size: .863rem;
	color: var(--primary);
	border-bottom: 1px solid currentColor;
	white-space: nowrap;
}

/* =========================================================
   واکنش‌گرا
   ========================================================= */
@media (max-width: 1100px) {
	.pd__grid {
		gap: 40px;
	}

	.pg {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.track--related {
		grid-auto-columns: calc((100% - 2 * 20px) / 3);
	}

	.sg__grid {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 28px;
	}
}

@media (max-width: 900px) {
	.pd {
		padding-top: 16px;
	}

	.pd__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.pg {
		position: static;
		grid-template-columns: 1fr;
		margin-inline: -24px;
	}

	.pg__thumbs {
		order: 2;
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		padding: 0 24px;
	}

	.pg__thumb {
		width: 62px;
	}

	.pg__arrow {
		display: none;
	}

	.sg {
		margin-top: 64px;
		padding: 56px 0;
	}

	.sg__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.sg__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg__figure {
		display: grid;
		grid-template-columns: 120px 1fr;
		gap: 20px;
		align-items: center;
	}

	.sg__legend {
		margin-top: 0;
	}

	.track--related {
		grid-auto-columns: calc((100% - 16px) / 2.2);
		gap: 16px;
	}

	.modal__panel {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 40px);
		overflow-y: auto;
	}

	.pop__art {
		min-height: 160px;
	}
}

@media (max-width: 600px) {
	.pg {
		margin-inline: -16px;
	}

	.pg__thumbs {
		padding: 0 16px;
	}

	.places {
		gap: 6px;
	}

	.place__pic {
		width: 48px;
		height: 48px;
	}

	.emb__toggle {
		padding: 16px;
	}

	.emb__note,
	.emb__step,
	.emb__sum,
	.emb .opt__error {
		margin-inline: 16px;
	}

	.drop__file {
		display: none;
	}

	.drop.has-file .drop__text small {
		color: var(--primary);
	}

	.sg__figure {
		grid-template-columns: 96px 1fr;
		padding: 16px;
	}

	.sg__table th,
	.sg__table td {
		padding: 14px 10px;
	}

	.sg__finder input {
		width: 100%;
	}

	.sg__finder label {
		flex: 1 1 calc(50% - 8px);
		white-space: nowrap;
	}

	.sg__result {
		flex-basis: 100%;
	}

	.track--related {
		grid-auto-columns: 64%;
	}

	.modal {
		padding: 0;
		align-items: end;
	}

	.modal__panel {
		max-height: 92vh;
	}

	.pop__body {
		padding: 26px 20px 24px;
	}

	.toast {
		left: 16px;
	}
}

/* =========================================================
   گالری: همیشه داخل صفحه جا شود + دکمه بزرگ‌نمایی
   ========================================================= */
.pd {
	--pg-h: calc(100vh - var(--header-top) - var(--nav-h) - 110px);
}

@supports (height: 100svh) {
	.pd {
		--pg-h: calc(100svh - var(--header-top) - var(--nav-h) - 110px);
	}
}

.pg__stage {
	width: 100%;
	max-width: calc(var(--pg-h) * .8);
}

.pg__thumbs {
	max-height: var(--pg-h);
}

.pg__slide:not(.pg__slide--video) {
	cursor: zoom-in;
}

.pg__zoom {
	position: absolute;
	bottom: 14px;
	right: 14px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 11px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .88);
	color: var(--primary);
	transition: background .2s, color .2s, transform .3s var(--ease);
}

.pg__zoom svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

.pg__zoom:hover {
	background: var(--primary);
	color: var(--white);
	transform: scale(1.06);
}

@media (max-width: 900px) {
	.pg__stage {
		max-width: none;
	}

	.pg__slide {
		aspect-ratio: auto;
		height: min(125vw, calc(100svh - 150px));
	}
}

/* =========================================================
   امتیاز (ستاره‌ها)
   ========================================================= */
.pi__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
}

.pi__rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .882rem;
	color: var(--muted);
	transition: color .2s;
}

.pi__rating b {
	color: var(--primary);
	font-weight: 600;
}

.pi__rating:hover {
	color: var(--primary);
}

.pi__rating:hover span:last-child {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.stars {
	position: relative;
	display: inline-flex;
	flex: none;
	direction: ltr;
	--s: 14px;
}

.stars--lg {
	--s: 22px;
}

.stars__bg,
.stars__fg {
	display: flex;
	gap: 2px;
}

.stars__fg {
	position: absolute;
	inset: 0;
	width: calc(var(--r) / 5 * 100%);
	overflow: hidden;
}

/* ستاره‌ها از راست پر شوند (مثل خواندن فارسی) */
.stars {
	transform: scaleX(-1);
}

.stars svg {
	flex: none;
	width: var(--s);
	height: var(--s);
}

.stars__bg svg {
	fill: var(--gray-2);
}

.stars__fg svg {
	fill: #c9a24a;
}

/* =========================================================
   توضیحات کامل (سئو)
   ========================================================= */
.seo {
	padding: 88px 0 24px;
}

.seo .container {
	max-width: 980px;
}

.seo__body {
	position: relative;
	max-height: 380px;
	overflow: hidden;
	transition: max-height .7s var(--ease);
}

.seo__body::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 140px;
	background: linear-gradient(transparent, var(--white));
	pointer-events: none;
	transition: opacity .4s;
}

.seo.is-open .seo__body::after {
	opacity: 0;
}

.seo__body .section__title {
	margin-bottom: 22px;
}

.seo__body h3 {
	margin: 30px 0 10px;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary);
}

.seo__body p,
.seo__body li {
	font-size: .98rem;
	line-height: 2.1;
	color: #4a4560;
}

.seo__body ul {
	display: grid;
	gap: 4px;
	padding: 0;
	list-style: none;
}

.seo__body li {
	position: relative;
	padding-right: 22px;
}

.seo__body li::before {
	content: "";
	position: absolute;
	top: 1em;
	right: 2px;
	width: 7px;
	height: 7px;
	background: var(--accent);
	transform: rotate(45deg);
}

.seo__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 12px 28px;
	border: 1px solid var(--primary);
	color: var(--primary);
	font-size: .943rem;
	transition: background .2s, color .2s;
}

.seo__more::after {
	content: "";
	width: 7px;
	height: 7px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .3s;
}

.seo.is-open .seo__more::after {
	transform: translateY(2px) rotate(-135deg);
}

.seo__more:hover {
	background: var(--primary);
	color: var(--white);
}

/* =========================================================
   نظرات
   ========================================================= */
.reviews {
	padding: 72px 0 24px;
}

.reviews__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--gray-2);
}

.reviews__grid {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.rv-sum {
	position: sticky;
	top: calc(var(--header-top) + var(--nav-h) + 24px);
	padding: 32px;
	background:
		radial-gradient(ellipse at 100% 0%, rgba(143, 130, 196, .2), transparent 60%),
		var(--gray-1);
	text-align: center;
}

.rv-sum__score {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--muted);
}

.rv-sum__score b {
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1;
	color: var(--primary);
}

.rv-sum__count {
	margin: 10px 0 22px;
	font-size: .912rem;
	color: var(--muted);
}

.rv-sum__bars {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
	font-size: .863rem;
	color: var(--muted);
}

.rv-sum__bars li {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr) 22px;
	align-items: center;
	gap: 10px;
}

.rv-bar {
	height: 4px;
	background: var(--gray-2);
}

.rv-bar i {
	display: block;
	height: 100%;
	background: var(--primary);
}

.reviews__list {
	display: grid;
	gap: 0;
}

.rv {
	padding: 26px 0;
	border-bottom: 1px solid var(--gray-2);
}

.rv:first-of-type {
	padding-top: 0;
}

.rv__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rv__head > div {
	flex: 1;
	display: grid;
}

.rv__avatar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
	font-weight: 600;
}

.rv__name {
	font-weight: 600;
	color: var(--primary);
}

.rv__date {
	font-size: .843rem;
	color: var(--muted);
}

.rv__meta {
	margin: 14px 0 8px;
	font-size: .863rem;
	color: var(--muted);
}

.rv__meta b {
	font-weight: 500;
	color: var(--primary);
}

.rv__badge {
	margin-right: 8px;
	padding: 2px 10px;
	background: #ece8f7;
	color: var(--primary);
	font-size: .782rem;
}

.rv__text {
	line-height: 2;
	color: #3d3854;
}

.rv__help {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: .843rem;
	color: var(--muted);
	transition: color .2s;
}

.rv__help::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M7 11v9H3v-9zM7 11l4-8c1.7 0 3 1.3 3 3v3h5.5c1.2 0 2 1 1.8 2.2l-1.4 7.2c-.2 1-1 1.6-2 1.6H7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M7 11v9H3v-9zM7 11l4-8c1.7 0 3 1.3 3 3v3h5.5c1.2 0 2 1 1.8 2.2l-1.4 7.2c-.2 1-1 1.6-2 1.6H7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rv__help:hover,
.rv__help.is-on {
	color: var(--primary);
}

/* فرم ثبت نظر */
.rv-form {
	display: grid;
	gap: 16px;
	margin-bottom: 32px;
	padding: 28px;
	border: 1px solid var(--gray-2);
	background: var(--white);
	animation: rv-in .5s var(--ease);
}

@keyframes rv-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

.rv-form__title {
	font-weight: 600;
	color: var(--primary);
}

.rv-form__rate {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: .943rem;
	color: var(--muted);
}

.rv-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.rv-form label {
	display: grid;
	gap: 6px;
	font-size: .882rem;
	color: var(--muted);
}

.rv-form input[type="text"],
.rv-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gray-2);
	background: var(--white);
	font: inherit;
	font-size: .92rem;
	color: var(--text);
	resize: vertical;
	transition: border-color .2s;
}

.rv-form input[type="text"]:focus,
.rv-form textarea:focus {
	outline: none;
	border-color: var(--primary);
}

.rv-form .opt__error {
	margin: 0;
}

.rv-form__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* انتخاب ستاره: ترتیب ۵→۱ در DOM، با row-reverse از راست ۱ تا ۵ دیده می‌شود */
.rate-pick {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	direction: ltr;
	gap: 4px;
}

.rate-pick input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rate-pick label {
	display: block;
	cursor: pointer;
}

.rate-pick svg {
	width: 26px;
	height: 26px;
	fill: var(--gray-2);
	transition: fill .15s, transform .2s;
}

.rate-pick label:hover svg,
.rate-pick label:hover ~ label svg,
.rate-pick input:checked ~ label svg {
	fill: #c9a24a;
}

.rate-pick label:hover svg {
	transform: scale(1.12);
}

.rate-pick input:focus-visible + label svg {
	outline: 1px solid var(--primary);
	outline-offset: 2px;
}

.rv-thanks {
	margin-bottom: 28px;
	padding: 18px 22px;
	border-right: 3px solid var(--primary);
	background: #ece8f7;
	color: var(--primary);
	font-size: .92rem;
}

@media (max-width: 900px) {
	.seo {
		padding-top: 64px;
	}

	.reviews__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.rv-sum {
		position: static;
	}
}

@media (max-width: 600px) {
	.seo__body {
		max-height: 320px;
	}

	.reviews__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.rv-sum {
		padding: 24px;
	}

	.rv-form {
		padding: 20px;
	}

	.rv-form__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================
   نمایش بزرگ (لایت‌باکس) با زوم
   ========================================================= */
.lb {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: rgba(18, 12, 36, .985);
	color: var(--white);
	animation: lb-in .35s var(--ease);
}

.lb[hidden] {
	display: none;
}

@keyframes lb-in {
	from {
		opacity: 0;
	}
}

.lb__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
}

.lb__count {
	font-family: "Cormorant Garamond", "Vazirmatn", serif;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, .6);
}

.lb__count b {
	color: var(--white);
}

.lb__hint {
	font-size: .843rem;
	color: rgba(255, 255, 255, .55);
}

.lb__btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 13px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
	color: var(--white);
	transition: background .2s, border-color .2s;
}

.lb__btn:hover {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .6);
}

.lb__btn svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lb__stage {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 0 84px;
	touch-action: pan-y;
}

.lb__item {
	position: relative;
	height: 100%;
	max-width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--gray-1);
	cursor: zoom-in;
	animation: lb-in .3s var(--ease);
}

.lb__item.is-zoomed {
	cursor: zoom-out;
	touch-action: none;
}

.lb__item > * {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform .35s var(--ease);
}

.lb__item.is-zoomed > * {
	transform: scale(2.4);
	transition: transform .35s var(--ease), transform-origin .08s linear;
}

.lb__item img {
	object-fit: contain;
	background: var(--gray-1);
}

.lb__item--video {
	cursor: default;
	background: #000;
}

.lb__item--video video {
	object-fit: contain;
}

.lb__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
}

.lb__nav--prev {
	right: 20px;
}

.lb__nav--next {
	left: 20px;
}

.lb__thumbs {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px 18px;
	overflow-x: auto;
	scrollbar-width: none;
}

.lb__thumb {
	position: relative;
	flex: none;
	width: 54px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	opacity: .45;
	outline: 1px solid transparent;
	outline-offset: 2px;
	transition: opacity .2s, outline-color .2s;
}

.lb__thumb:hover {
	opacity: .8;
}

.lb__thumb.is-active {
	opacity: 1;
	outline-color: var(--white);
}

.lb__thumb > * {
	position: absolute;
	inset: 0;
}

.lb__thumb .ph svg {
	width: 60%;
}

@media (max-width: 700px) {
	.lb__hint {
		display: none;
	}

	.lb__stage {
		padding: 0 12px;
	}

	.lb__item {
		width: 100%;
		height: auto;
		max-height: 100%;
	}

	.lb__nav {
		top: auto;
		bottom: 92px;
		transform: none;
		width: 40px;
		height: 40px;
		padding: 11px;
		background: rgba(18, 12, 36, .6);
	}

	.lb__thumb {
		width: 44px;
	}
}

/* =========================================================
   افزوده‌های قالب وردپرس (صفحه محصول)
   ========================================================= */
.crumbs .breadcrumb_last,
.crumbs > :last-child {
	color: var(--text);
}

.pi__price del {
	margin-left: 10px;
	font-size: .95rem;
	font-weight: 400;
	color: var(--gray-3);
}

.pi__from {
	font-size: .912rem;
	color: var(--muted);
}

.pi__soon {
	color: var(--gray-3);
}

.pi__rating--empty {
	font-size: .882rem;
	color: var(--muted);
	border-bottom: 1px dashed currentColor;
}

.pi__lead p {
	margin: 0;
}

.swatch.is-out::before,
.size-btn.is-out::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top right, transparent calc(50% - .75px), rgba(0, 0, 0, .35) 50%, transparent calc(50% + .75px));
	pointer-events: none;
}

.swatch.is-out {
	opacity: .55;
}

.size-btn.is-out {
	cursor: pointer;
}

.swatches--static .swatch {
	cursor: default;
}

.pi__var-out {
	margin: 12px 0 0;
	padding: 10px 14px;
	background: #fff8ec;
	border-right: 2px solid #d6a04a;
	font-size: .912rem;
}

.pi__var-out a {
	font-weight: 700;
	color: var(--primary);
}

.pd-oos {
	margin: 18px 0;
}

.pi__add.is-loading {
	opacity: .7;
	pointer-events: none;
}

/* رنگ نخ: رادیو داخل برچسب */
.thread {
	cursor: pointer;
}

.thread input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.thread:has(input:focus-visible)::after {
	border-color: var(--accent);
}

.place__hint {
	font-size: .723rem;
	color: var(--gray-3);
}

.emb__label small {
	font-weight: 400;
	color: var(--muted);
}

.emb__sum small {
	font-weight: 400;
	font-size: .812rem;
	color: var(--muted);
}

/* عکس‌های خریداران در گالری */
.pg__thumb--buyer {
	position: relative;
}

.pg__buyer-dot {
	position: absolute;
	right: 4px;
	bottom: 4px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
}

.pg__buyer-dot svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.pg__slide--buyer .media-fill {
	object-fit: contain;
	background: #f6f5fa;
}

.pg__buyer {
	position: absolute;
	right: 16px;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	display: grid;
	gap: 4px;
	max-width: 420px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 12px 30px -18px rgba(43, 30, 87, .5);
	font-size: .882rem;
	line-height: 1.8;
}

.pg__buyer-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: max-content;
	padding: 2px 10px;
	background: var(--primary);
	color: var(--white);
	font-size: .762rem;
}

.pg__buyer-tag svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.pg__buyer q {
	color: var(--muted);
	quotes: "«" "»";
}

.pg__buyer a {
	width: max-content;
	color: var(--primary);
	border-bottom: 1px solid currentColor;
	font-size: .812rem;
}

.pg__buyer .stars {
	--size: 13px;
}

.lb__item .lb__buyer {
	position: absolute;
	bottom: 12px;
	right: 12px;
	left: auto;
}

/* نظرات */
.rv-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv-list .children {
	margin: 0 32px 0 0;
	padding: 0;
	list-style: none;
}

.rv__text p {
	margin: 0;
}

.rv__pending {
	font-size: .863rem;
	color: #b06d00;
}

.rv--store {
	background: var(--gray-1);
	padding-inline: 18px;
}

.rv__imgs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.rv__img {
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: var(--gray-1);
}

.rv__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s var(--ease);
}

.rv__img:hover img {
	transform: scale(1.06);
}

.rv-note,
.rv-thanks,
.rv-empty {
	padding: 16px 18px;
	background: var(--gray-1);
	color: var(--muted);
}

.rv-thanks {
	background: #effaf3;
	color: #1d6b3d;
}

.rv-form__as {
	font-size: .912rem;
	color: var(--muted);
}

.rv-form__rate small {
	color: var(--gray-3);
}

.rv-up {
	display: grid;
	gap: 10px;
}

.rv-up__drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px dashed var(--accent-2);
	background: #faf9fe;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}

.rv-up__drop:hover {
	border-color: var(--primary);
	background: #f4f1fc;
}

.rv-up__drop input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.rv-up__drop svg {
	width: 28px;
	height: 28px;
	flex: none;
	fill: none;
	stroke: var(--primary);
	stroke-width: 1.4;
}

.rv-up__drop span {
	display: grid;
	font-size: .912rem;
}

.rv-up__drop small {
	color: var(--muted);
	font-size: .782rem;
}

.rv-up__previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rv-up__thumb {
	width: 64px;
	height: 64px;
	background: center / cover no-repeat var(--gray-1);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.rv-sum__empty {
	display: grid;
	gap: 10px;
	color: var(--muted);
}

.reviews .nav-links {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.reviews .nav-links .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid var(--line);
}

.reviews .nav-links .current {
	background: var(--primary);
	color: var(--white);
}

/* جدول مشخصات ووکامرس داخل آکاردئون */
.acc .woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
	font-size: .943rem;
}

.acc .woocommerce-product-attributes th,
.acc .woocommerce-product-attributes td {
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	text-align: right;
	font-weight: 400;
}

.acc .woocommerce-product-attributes th {
	width: 35%;
	color: var(--muted);
}

.acc .woocommerce-product-attributes p {
	margin: 0;
}

/* =========================================================
   نظرات: هر گفت‌وگو یک کارت؛ پاسخ فروشگاه در حباب جدا با خط اتصال
   ========================================================= */
.rv-list {
	display: grid;
	gap: 16px;
}

.rv-list > .rv-li {
	padding: 24px 26px;
	background: var(--white);
	border: 1px solid #ebe8f3;
	box-shadow: 0 18px 40px -34px rgba(43, 30, 87, .45);
}

.rv-list .rv,
.rv-list .rv:first-of-type {
	padding: 0;
	border: 0;
	background: none;
}

.rv__head {
	align-items: center;
	gap: 12px;
}

.rv__who {
	display: grid;
	gap: 2px;
}

.rv__name {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: .95rem;
}

.rv__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 2px 8px;
	background: #e9f7ef;
	color: #1f7a4a;
	font-size: .743rem;
	font-weight: 600;
}

.rv__badge svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
}

.rv__badge--store {
	background: var(--primary);
	color: var(--white);
}

.rv__head .stars {
	margin-right: auto;
}

.rv__text {
	margin-top: 14px;
	font-size: .95rem;
	line-height: 2.1;
}

/* پاسخ‌ها */
.rv-list .children {
	display: grid;
	gap: 12px;
	margin: 20px 0 0;
	padding: 0 22px 0 0;
	border-right: 2px solid #e4dff3;
}

.rv-list .children > .rv-li {
	position: relative;
}

.rv-list .children > .rv-li::before {
	content: "";
	position: absolute;
	top: 22px;
	right: -22px;
	width: 16px;
	border-top: 2px solid #e4dff3;
}

.rv-list .children .rv.rv--reply {
	padding: 16px 20px;
	background: #f7f5fc;
}

.rv-list .children .rv.rv--reply.rv--store {
	background: linear-gradient(135deg, #f3f0fb, #ebe6f8);
	border-right: 3px solid var(--primary);
}

.rv--reply .rv__avatar {
	width: 36px;
	height: 36px;
	font-size: .912rem;
	background: #d9d2ef;
	color: var(--primary);
}

.rv--store .rv__avatar {
	background: var(--primary);
	color: var(--white);
}

.rv--reply .rv__text {
	margin-top: 10px;
	font-size: .9rem;
}

@media (max-width: 600px) {
	.rv-list > .rv-li {
		padding: 18px 16px;
	}

	.rv-list .children {
		padding-right: 12px;
	}

	.rv-list .children > .rv-li::before {
		right: -12px;
		width: 8px;
	}

	.rv__head {
		flex-wrap: wrap;
	}

	.rv__head .stars {
		margin-right: 56px;
	}
}

/* خروجی افزونه‌ها زیر دکمه سبد (ترب‌پی، اقساط و…) */
.pi__ext {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.pi__ext:empty,
.pi__ext--button:empty {
	display: none;
}

.pi__ext img {
	max-width: 100%;
	height: auto;
}

/* ویجت ترب‌پی */
.pi__ext .torobpay-widget {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border: 1px solid #ebe8f3;
	background: #fbfaff;
}

.pi__ext .torobpay-widget-image {
	width: 40px;
	height: 40px;
}

.pi__ext .torobpay-widget-title {
	font-size: .9rem;
	font-weight: 600;
	color: var(--primary);
}

.pi__ext .torobpay-widget-description {
	font-size: .843rem;
	color: var(--muted);
}

/* آیکن عکسی (آپلودشده) در خدمات زیر دکمه خرید */
.pi__perks .icon-img {
	flex: none;
	width: 22px;
	height: 22px;
	object-fit: contain;
}
