/**
 * پاپ‌آپ فروش عمده و چاپ اختصاصی — پیشبند شاپ
 * تمام کلاس‌ها با پیشوند pbpopup تعریف شده‌اند تا با استایل قالب تداخل نداشته باشند.
 */

.pbpopup {
	--pbp-dark: #16171b;
	--pbp-dark-2: #1e1f25;
	--pbp-dark-3: #24262e;
	--pbp-gold: #c9a24d;
	--pbp-gold-soft: #e6c882;
	--pbp-gold-deep: #a67c2b;
	--pbp-text: #f4f2ee;
	--pbp-muted: #a9abb5;
	--pbp-radius: 20px;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: inherit;
	direction: rtl;
}

.pbpopup[hidden] {
	display: none;
}

/* ---------- پس‌زمینه ---------- */

.pbpopup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 9, 11, 0.74);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.pbpopup.is-open .pbpopup__overlay {
	opacity: 1;
}

/* ---------- کادر اصلی ---------- */

.pbpopup__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: linear-gradient(160deg, #262832 0%, #1a1b21 45%, #141519 100%);
	border: 1px solid rgba(201, 162, 77, 0.32);
	border-radius: var(--pbp-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
	opacity: 0;
	transform: translateY(18px) scale(0.97);
	transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	overscroll-behavior: contain;
}

.pbpopup.is-open .pbpopup__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* خط طلایی بالای کادر */
.pbpopup__dialog::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	border-radius: var(--pbp-radius) var(--pbp-radius) 0 0;
	background: linear-gradient(90deg, transparent, var(--pbp-gold-soft), var(--pbp-gold), transparent);
}

.pbpopup__glow {
	position: absolute;
	top: -90px;
	right: -60px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(201, 162, 77, 0.22) 0%, rgba(201, 162, 77, 0) 70%);
	pointer-events: none;
}

.pbpopup__body {
	position: relative;
	padding: 34px 34px 28px;
}

/* ---------- دکمه بستن ---------- */

.pbpopup__close {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--pbp-muted);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pbpopup__close:hover,
.pbpopup__close:focus-visible {
	color: var(--pbp-text);
	background: rgba(201, 162, 77, 0.18);
	transform: rotate(90deg);
}

.pbpopup__close svg {
	width: 16px;
	height: 16px;
}

/* ---------- محتوا ---------- */

.pbpopup__badge {
	display: inline-block;
	margin-bottom: 14px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--pbp-gold-soft);
	background: rgba(201, 162, 77, 0.12);
	border: 1px solid rgba(201, 162, 77, 0.3);
	border-radius: 999px;
}

.pbpopup__title {
	margin: 0 0 12px;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.7;
	color: var(--pbp-text);
}

.pbpopup__subtitle {
	margin: 0 0 20px;
	font-size: 14.5px;
	line-height: 2.1;
	color: var(--pbp-muted);
}

.pbpopup__features {
	margin: 0 0 24px;
	padding: 18px 18px 14px;
	list-style: none;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
}

.pbpopup__features li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.9;
	color: #d9dae0;
}

.pbpopup__features li:last-child {
	margin-bottom: 0;
}

.pbpopup__check {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 4px;
	color: #16171b;
	background: linear-gradient(135deg, var(--pbp-gold-soft), var(--pbp-gold));
	border-radius: 50%;
}

.pbpopup__check svg {
	width: 12px;
	height: 12px;
}

/* ---------- دکمه‌ها ---------- */

.pbpopup__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.pbpopup__btn {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	text-decoration: none;
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pbpopup__btn:hover,
.pbpopup__btn:focus-visible {
	transform: translateY(-2px);
	text-decoration: none;
}

.pbpopup__btn-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.pbpopup__btn-icon svg {
	width: 19px;
	height: 19px;
}

.pbpopup__btn--primary {
	color: #1a1503;
	background: linear-gradient(135deg, var(--pbp-gold-soft) 0%, var(--pbp-gold) 55%, var(--pbp-gold-deep) 100%);
	box-shadow: 0 10px 24px rgba(201, 162, 77, 0.24);
}

.pbpopup__btn--primary:hover,
.pbpopup__btn--primary:focus-visible {
	color: #1a1503;
	box-shadow: 0 14px 30px rgba(201, 162, 77, 0.36);
}

.pbpopup__btn--ghost {
	color: var(--pbp-gold-soft);
	background: rgba(201, 162, 77, 0.07);
	border: 1px solid rgba(201, 162, 77, 0.45);
}

.pbpopup__btn--ghost:hover,
.pbpopup__btn--ghost:focus-visible {
	color: #fff;
	background: rgba(201, 162, 77, 0.16);
	border-color: var(--pbp-gold);
}

/* ---------- تماس ---------- */

.pbpopup__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pbpopup__link {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--pbp-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.pbpopup__link:hover,
.pbpopup__link:focus-visible {
	color: var(--pbp-gold-soft);
	text-decoration: none;
}

.pbpopup__link svg {
	width: 17px;
	height: 17px;
}

.pbpopup__num {
	direction: ltr;
	unicode-bidi: embed;
	letter-spacing: 0.5px;
}

.pbpopup__footnote {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.9;
	color: #7f818b;
	text-align: center;
}

/* ---------- قفل اسکرول صفحه ---------- */

body.pbpopup-lock {
	overflow: hidden;
}

/* ---------- موبایل: نمایش به‌صورت شیت پایین صفحه ---------- */

@media (max-width: 600px) {
	.pbpopup {
		align-items: flex-end;
		padding: 0;
	}

	.pbpopup__dialog {
		max-width: 100%;
		max-height: 92vh;
		border-bottom: 0;
		border-radius: 22px 22px 0 0;
		transform: translateY(40px);
	}

	.pbpopup__dialog::before {
		border-radius: 22px 22px 0 0;
	}

	.pbpopup__body {
		padding: 26px 18px 22px;
	}

	.pbpopup__badge {
		margin-bottom: 10px;
		padding: 6px 12px;
		font-size: 11.5px;
	}

	.pbpopup__title {
		margin-bottom: 10px;
		font-size: 19px;
		line-height: 1.6;
	}

	.pbpopup__subtitle {
		margin-bottom: 16px;
		font-size: 13.5px;
		line-height: 1.95;
	}

	.pbpopup__features {
		margin-bottom: 18px;
		padding: 14px 14px 10px;
	}

	.pbpopup__features li {
		margin-bottom: 10px;
		font-size: 13px;
		line-height: 1.85;
	}

	.pbpopup__actions {
		grid-template-columns: 1fr;
	}

	.pbpopup__btn {
		min-height: 50px;
	}

	.pbpopup__contact {
		margin-top: 16px;
		padding-top: 14px;
	}
}

/* ---------- احترام به تنظیم کاهش انیمیشن ---------- */

@media (prefers-reduced-motion: reduce) {
	.pbpopup__overlay,
	.pbpopup__dialog,
	.pbpopup__btn,
	.pbpopup__close {
		transition: none !important;
	}

	.pbpopup__dialog {
		transform: none !important;
	}
}
