/**
 * قیمت‌گذاری پلکانی حرفه‌ای — استایل سمت کاربر.
 * طراحی راست‌چین و سازگار با حالت روشن و تاریک.
 */

/*
 * رنگ اصلی عمداً روی :root تعریف شده، نه روی .tpp-block.
 * تنظیم رنگ سفارشی مدیر به شکل :root{--tpp-accent:…} در هد صفحه چاپ می‌شود و اگر
 * .tpp-block هم همین متغیر را تعریف می‌کرد، مقدار نزدیک‌تر همیشه برنده می‌شد و
 * رنگ انتخابی مدیر هیچ‌وقت اعمال نمی‌شد.
 */
:root {
	--tpp-accent: #0f7b6c;
}

.tpp-block {
	--tpp-bg: #ffffff;
	--tpp-bg-soft: #f6f8f8;
	--tpp-border: #e3e8e8;
	--tpp-text: #1f2933;
	--tpp-muted: #6b7785;
	--tpp-radius: 12px;

	direction: rtl;
	margin: 18px 0;
	font-size: 14px;
	color: var(--tpp-text);
}

/* حالت تیره از تنظیمات افزونه می‌آید، نه از تنظیم سیستم کاربر؛ وگرنه روی یک
   سایت روشن، پنل برای کاربرانی که ویندوزشان تیره است تیره می‌شد. */

/* ---------------- جدول پله‌ها ---------------- */

.tpp-table {
	background: var(--tpp-bg);
	border: 1px solid var(--tpp-border);
	border-radius: var(--tpp-radius);
	overflow: hidden;
}

.tpp-table__title {
	padding: 10px 14px;
	font-weight: 700;
	font-size: 14px;
	background: var(--tpp-bg-soft);
	border-bottom: 1px solid var(--tpp-border);
}

.tpp-table__el {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 14px;
}

.tpp-table__el th,
.tpp-table__el td {
	padding: 10px 14px;
	text-align: right;
	border: 0;
	border-bottom: 1px solid var(--tpp-border);
	vertical-align: middle;
}

.tpp-table__el thead th {
	font-size: 12px;
	font-weight: 600;
	color: var(--tpp-muted);
	background: var(--tpp-bg-soft);
}

.tpp-table__el tbody tr:last-child td {
	border-bottom: 0;
}

.tpp-table__el tbody tr {
	transition: background-color .18s ease;
}

.tpp-table.is-clickable tbody tr {
	cursor: pointer;
}

.tpp-table.is-clickable tbody tr:hover {
	background: var(--tpp-bg-soft);
}

.tpp-tier.is-active {
	background: color-mix(in srgb, var(--tpp-accent) 12%, transparent);
	box-shadow: inset 3px 0 0 0 var(--tpp-accent);
}

.tpp-tier.is-active .tpp-price {
	color: var(--tpp-accent);
}

.tpp-col--unit_price .tpp-price {
	font-weight: 700;
	font-size: 15px;
}

.tpp-discount {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--tpp-accent);
}

.tpp-save--none,
.tpp-col--discount .tpp-discount:empty {
	color: var(--tpp-muted);
	background: none;
}

/* ---------------- حالت کارتی ---------------- */

.tpp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	padding: 12px;
}

.tpp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 12px;
	text-align: center;
	background: var(--tpp-bg-soft);
	border: 1px solid var(--tpp-border);
	border-radius: 10px;
	transition: border-color .18s ease, transform .18s ease;
}

.tpp-table--cards.is-clickable .tpp-card {
	cursor: pointer;
}

.tpp-table--cards.is-clickable .tpp-card:hover {
	transform: translateY(-2px);
	border-color: var(--tpp-accent);
}

.tpp-card.is-active {
	border-color: var(--tpp-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--tpp-accent) 25%, transparent);
}

.tpp-card__ribbon {
	position: absolute;
	top: -1px;
	inset-inline-start: -1px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--tpp-accent);
	border-radius: 10px 0 10px 0;
}

.tpp-card__range {
	font-size: 12px;
	color: var(--tpp-muted);
}

.tpp-card__price {
	font-size: 16px;
	font-weight: 700;
}

.tpp-card__save {
	font-size: 11px;
	color: var(--tpp-muted);
}

/* ---------------- حالت فهرستی ---------------- */

.tpp-list {
	margin: 0;
	padding: 8px 14px;
	list-style: none;
}

.tpp-list__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--tpp-border);
}

.tpp-list__item:last-child {
	border-bottom: 0;
}

.tpp-list__dots {
	flex: 1;
	height: 1px;
	border-bottom: 1px dotted var(--tpp-border);
}

.tpp-list__price {
	font-weight: 700;
}

.tpp-list__badge {
	padding: 1px 7px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--tpp-accent);
	border-radius: 999px;
}

.tpp-table--list .tpp-list__item.is-active {
	box-shadow: none;
	background: none;
}

.tpp-table--list .tpp-list__item.is-active .tpp-list__price {
	color: var(--tpp-accent);
}

/* ---------------- جعبه قیمت زنده ---------------- */

.tpp-live {
	margin-top: 12px;
	padding: 12px 14px;
	background: var(--tpp-bg-soft);
	border: 1px solid var(--tpp-border);
	border-radius: var(--tpp-radius);
}

.tpp-live__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 3px 0;
}

.tpp-live__label {
	font-size: 13px;
	color: var(--tpp-muted);
}

.tpp-live__value {
	font-weight: 700;
	font-size: 15px;
}

.tpp-live__value--big {
	font-size: 19px;
	color: var(--tpp-accent);
}

.tpp-live__row--saved .tpp-live__value {
	font-size: 13px;
	color: var(--tpp-accent);
}

.tpp-live__row--total {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--tpp-border);
}

/* پرش ملایم هنگام تغییر عدد */
@keyframes tpp-flash {
	0%   { transform: translateY(-3px); opacity: .35; }
	100% { transform: translateY(0);    opacity: 1;   }
}

.tpp-flash {
	animation: tpp-flash .22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.tpp-flash {
		animation: none;
	}
}

/* ---------------- پیام پله بعدی ---------------- */

.tpp-next-tier {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 9px 12px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--tpp-text);
	background: color-mix(in srgb, var(--tpp-accent) 10%, transparent);
	border: 1px dashed color-mix(in srgb, var(--tpp-accent) 45%, transparent);
	border-radius: 10px;
}

.tpp-next-tier::before {
	content: "↑";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	color: #fff;
	background: var(--tpp-accent);
	border-radius: 50%;
}

/* ---------------- نشان آرشیو و اشاره قیمت ---------------- */

.tpp-badge {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--tpp-accent, #0f7b6c);
	border-radius: 999px;
}

.tpp-price-hint {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 500;
	color: var(--tpp-accent, #0f7b6c);
}

/* ---------------- سبد خرید ---------------- */

.tpp-savings-row th,
.tpp-savings-row td {
	color: var(--tpp-accent, #0f7b6c);
}

.tpp-savings-amount {
	font-weight: 700;
}

/* ---------------- موبایل ---------------- */

@media (max-width: 480px) {
	.tpp-table__el thead {
		display: none;
	}

	.tpp-table__el tbody tr {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 10px;
		padding: 8px 12px;
		border-bottom: 1px solid var(--tpp-border);
	}

	.tpp-table__el tbody td {
		padding: 0;
		border: 0;
	}

	.tpp-table__el tbody td::before {
		content: attr(data-title) ": ";
		font-size: 11px;
		color: var(--tpp-muted);
	}

	.tpp-col--range::before {
		content: none !important;
	}

	.tpp-col--range {
		flex: 1 0 100%;
		font-weight: 700;
	}
}

/* ================================================================== *
 * حالت پاپ‌آور: دکمه کوچک «i» کنار تعداد + پنل قیمت‌های عمده
 * ================================================================== */

.tpp-block--popover {
	display: contents;
}

.tpp-info-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 8px;
	padding: 6px 12px 6px 8px;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: var(--tpp-accent, #0f7b6c);
	background: color-mix(in srgb, var(--tpp-accent, #0f7b6c) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--tpp-accent, #0f7b6c) 35%, transparent);
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	vertical-align: middle;
	transition: background-color .18s ease, border-color .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tpp-info-btn:hover,
.tpp-info-btn:focus-visible {
	background: color-mix(in srgb, var(--tpp-accent, #0f7b6c) 18%, transparent);
	border-color: var(--tpp-accent, #0f7b6c);
}

.tpp-info-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	font-size: 11px;
	font-weight: 700;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	color: #fff;
	background: var(--tpp-accent, #0f7b6c);
	border-radius: 50%;
}

.tpp-info-btn__text:empty {
	display: none;
}

/* پنل */

.tpp-popover[hidden] {
	display: none;
}

.tpp-popover {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	direction: rtl;
}

.tpp-popover__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 20, 25, .55);
	backdrop-filter: blur(2px);
}

.tpp-popover__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 380px;
	max-height: 82vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--tpp-bg, #fff);
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
	animation: tpp-pop .18s ease-out;
}

@keyframes tpp-pop {
	from { transform: translateY(10px) scale(.98); opacity: 0; }
	to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.tpp-popover__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--tpp-border, #e3e8e8);
}

.tpp-popover__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--tpp-text, #1f2933);
}

.tpp-popover__close {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--tpp-muted, #6b7785);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tpp-popover__close:hover {
	background: var(--tpp-bg-soft, #f6f8f8);
}

.tpp-popover__body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px;
}

body.tpp-popover-open {
	overflow: hidden;
}

/* روی موبایل پنل از پایین بالا می‌آید */
@media (max-width: 560px) {
	.tpp-popover {
		align-items: flex-end;
		padding: 0;
	}

	.tpp-popover__panel {
		max-width: none;
		max-height: 78vh;
		border-radius: 18px 18px 0 0;
		animation: tpp-sheet .2s ease-out;
	}

	@keyframes tpp-sheet {
		from { transform: translateY(100%); }
		to   { transform: translateY(0); }
	}

	.tpp-popover__head {
		padding: 16px;
	}
}

/* ================================================================== *
 * رفع سرریز روی صفحه‌های باریک
 * ================================================================== */

.tpp-block,
.tpp-block * {
	box-sizing: border-box;
}

.tpp-block {
	max-width: 100%;
}

.tpp-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tpp-table {
	min-width: 0;
}

.tpp-table__el {
	table-layout: auto;
	width: 100%;
	max-width: 100%;
}

.tpp-table__el td,
.tpp-table__el th {
	word-break: keep-all;
	overflow-wrap: normal;
}

/* مبلغ و درصد هرگز نباید وسط عدد بشکنند */
.tpp-price,
.tpp-save,
.tpp-discount,
.tpp-col--range,
.tpp-table .woocommerce-Price-amount {
	white-space: nowrap;
}

/* اشاره قیمت نباید عرض ستون قیمت قالب را بشکند */
.tpp-price-hint {
	max-width: 100%;
	white-space: normal;
	overflow-wrap: normal;
}

.tpp-price-hint .woocommerce-Price-amount {
	white-space: nowrap;
}

/* نسخه دوم بلوک که قالب رندر کرده هرگز دیده نشود */
.tpp-block--duplicate {
	display: none !important;
}

/* انیمیشن روی قیمت خود قالب */
p.price .tpp-flash,
.price-wrap .tpp-flash {
	display: inline-block;
}

.tpp-popover__body .tpp-tier {
	position: relative;
	margin-bottom: 8px;
	padding: 12px 14px;
	background: var(--tpp-bg-soft, #f6f8f8);
	border: 1px solid var(--tpp-border, #e3e8e8);
	border-radius: 12px;
}

.tpp-popover__body .tpp-tier:last-child {
	margin-bottom: 0;
}

.tpp-popover__body .tpp-tier.is-active {
	background: color-mix(in srgb, var(--tpp-accent, #0f7b6c) 8%, transparent);
	border-color: var(--tpp-accent, #0f7b6c);
}

.tpp-popover__body .is-clickable .tpp-tier {
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.tpp-popover__body .is-clickable .tpp-tier:hover {
	border-color: var(--tpp-accent, #0f7b6c);
}

/* ================================================================== *
 * تایپوگرافی پنل قیمت‌های عمده
 * ================================================================== */

.tpp-popover__panel {
	font-family: inherit;
	/* ارقام هم‌عرض؛ بدون این، ستون قیمت با تغییر عدد می‌لرزد */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.tpp-popover__title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.tpp-popover__body .tpp-tier {
	padding: 13px 15px;
	line-height: 1.7;
}

/* واحد پول کمی کوچک‌تر از خود عدد، مثل بیشتر فروشگاه‌های فارسی */
.tpp-popover__body .woocommerce-Price-currencySymbol {
	margin-inline-start: 3px;
	font-size: .82em;
	font-weight: 600;
	opacity: .75;
}

/* پله فعال */
.tpp-popover__body .tpp-tier.is-active {
	box-shadow: 0 0 0 1px var(--tpp-accent, #0f7b6c);
}

/* دکمه i */
.tpp-info-btn {
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
}

/* ================================================================== *
 * انیمیشن نرم تغییر قیمت
 * ================================================================== */

.tpp-animating {
	transition: color .28s ease;
}

.tpp-price-up {
	color: var(--tpp-muted, #6b7785);
}

.tpp-price-down {
	color: var(--tpp-accent, #0f7b6c);
}

@media (prefers-reduced-motion: reduce) {
	.tpp-animating {
		transition: none;
	}

	.tpp-popover__panel {
		animation: none;
	}
}

/* ================================================================== *
 * بازطراحی نهایی کارت‌های پنل — نسخه ۱.۴
 * قواعد پیش‌تر تعریف‌شده را عمداً بازنویسی می‌کند.
 * ================================================================== */

.tpp-popover__body {
	padding: 10px;
}

/* --- کارت هر پله --- */

.tpp-popover__body .tpp-tier {
	margin: 0 0 8px;
	padding: 0;
	overflow: hidden;
	background: var(--tpp-bg-soft, #f6f8f8);
	border: 1px solid var(--tpp-border, #e3e8e8);
	border-radius: 12px;
	box-shadow: none;
	transition: border-color .16s ease, background-color .16s ease;
}

.tpp-popover__body .tpp-tier:last-child {
	margin-bottom: 0;
}

.tpp-popover__body .tpp-tier.is-active {
	background: var(--tpp-bg, #fff);
	border-color: var(--tpp-accent, #0f7b6c);
	box-shadow: 0 0 0 1px var(--tpp-accent, #0f7b6c), 0 4px 14px rgba(0, 0, 0, .06);
}

/* --- یادداشت «۶ × ۱۹۵٬۰۰۰» زیر قیمت --- */

.tpp-qty-note {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.8;
	color: var(--tpp-muted, #6b7785);
	direction: rtl;
	unicode-bidi: isolate;
}

.tpp-qty-note[hidden] {
	display: none;
}

.tpp-qty-note .woocommerce-Price-amount {
	font-weight: 600;
	color: inherit;
}

/* ================================================================== *
 * فهرست پله‌ها داخل پنل — مارک‌آپ اختصاصی، بدون جدول
 * ================================================================== */

.tpp-popover__body {
	padding: 12px;
	direction: rtl;
	text-align: right;
}

.tpp-tiers {
	margin: 0;
	padding: 0;
	list-style: none;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.tpp-tiers .tpp-tier {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	background: var(--tpp-bg-soft, #f6f8f8);
	border: 1.5px solid var(--tpp-border, #e3e8e8);
	border-radius: var(--tpp-radius, 12px);
	transition: border-color .16s ease, background-color .16s ease;
}

.tpp-tiers .tpp-tier:last-child {
	margin-bottom: 0;
}

.tpp-tiers .tpp-tier.is-active {
	background: var(--tpp-bg, #fff);
	border-color: var(--tpp-accent, #0f7b6c);
}

/* --- سرتیتر: بازه تعداد + نشان تخفیف --- */

.tpp-tier__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--tpp-border, #e3e8e8);
}

.tpp-tier.is-active .tpp-tier__head {
	border-bottom-color: color-mix(in srgb, var(--tpp-accent, #0f7b6c) 28%, transparent);
}

.tpp-tier__range {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
	color: var(--tpp-text, #1f2933);
	overflow-wrap: break-word;
}

.tpp-tier.is-active .tpp-tier__range {
	color: var(--tpp-accent, #0f7b6c);
}

.tpp-tier__badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.7;
	color: #fff;
	background: var(--tpp-accent, #0f7b6c);
	border-radius: 999px;
	white-space: nowrap;
}

/* --- بدنه: برچسب ← مقدار --- */

.tpp-tier__body {
	padding: 4px 14px 10px;
}

.tpp-tier__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
}

.tpp-tier__label {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.8;
	color: var(--tpp-muted, #6b7785);
}

.tpp-tier__value {
	flex: 0 1 auto;
	min-width: 0;
	text-align: left;
	white-space: nowrap;
}

.tpp-tier__value .woocommerce-Price-amount {
	display: inline-block;
	direction: rtl;
	unicode-bidi: isolate;
	white-space: nowrap;
}

.tpp-tier__value.tpp-price {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.015em;
	color: var(--tpp-accent, #0f7b6c);
}

.tpp-tier__value.tpp-save {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tpp-text, #1f2933);
}

.tpp-tier__value .woocommerce-Price-currencySymbol {
	margin-inline-start: 3px;
	font-size: .82em;
	font-weight: 600;
	opacity: .7;
}

/* --- قابل کلیک --- */

.tpp-tiers.is-clickable .tpp-tier {
	cursor: pointer;
}

.tpp-tiers.is-clickable .tpp-tier:hover {
	border-color: color-mix(in srgb, var(--tpp-accent, #0f7b6c) 55%, transparent);
}

.tpp-tiers.is-clickable .tpp-tier:focus-visible {
	outline: 2px solid var(--tpp-accent, #0f7b6c);
	outline-offset: 2px;
}

/* --- صفحه‌های خیلی باریک --- */

@media (max-width: 360px) {
	.tpp-tier__head,
	.tpp-tier__body {
		padding-inline: 11px;
	}

	.tpp-tier__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1px;
	}

	.tpp-tier__value {
		text-align: right;
	}
}

/* ================================================================== *
 * صفحه‌بندی فروشگاه
 * ================================================================== */

/* --- بازطراحی شماره‌ها: همه روشن، فقط صفحه فعلی متمایز --- */

.tpp-pagination-restyle .woocommerce-pagination ul.page-numbers,
.tpp-pagination-restyle nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.tpp-pagination-restyle .woocommerce-pagination ul li {
	margin: 0;
	padding: 0;
	border: 0;
	overflow: visible;
}

.tpp-pagination-restyle .woocommerce-pagination a.page-numbers,
.tpp-pagination-restyle .woocommerce-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	/* رنگ کامل، نه کم‌رنگ — همان چیزی که خوانایی را بالا می‌برد */
	color: var(--tpp-text, #1f2933);
	background: var(--tpp-bg, #fff);
	border: 1.5px solid var(--tpp-border, #e3e8e8);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.tpp-pagination-restyle .woocommerce-pagination a.page-numbers:hover {
	color: var(--tpp-accent, #0f7b6c);
	border-color: var(--tpp-accent, #0f7b6c);
}

/* صفحه‌ای که کاربر داخلش است */
.tpp-pagination-restyle .woocommerce-pagination span.page-numbers.current,
.tpp-pagination-restyle .woocommerce-pagination .page-numbers.current {
	color: #fff;
	background: var(--tpp-accent, #0f7b6c);
	border-color: var(--tpp-accent, #0f7b6c);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--tpp-accent, #0f7b6c) 35%, transparent);
}

.tpp-pagination-restyle .woocommerce-pagination .page-numbers.dots {
	min-width: 26px;
	padding: 0;
	background: none;
	border-color: transparent;
}

/* حالت «کم‌رنگ»: قاب‌ها نامرئی، فقط صفحه فعلی رنگی */
.tpp-pagination-style-minimal .woocommerce-pagination a.page-numbers,
.tpp-pagination-style-minimal .woocommerce-pagination span.page-numbers {
	background: none;
	border-color: transparent;
}

.tpp-pagination-style-minimal .woocommerce-pagination .page-numbers.current {
	background: var(--tpp-accent, #0f7b6c);
	border-color: var(--tpp-accent, #0f7b6c);
}

/* حالت گرد */
.tpp-pagination-style-round .woocommerce-pagination a.page-numbers,
.tpp-pagination-style-round .woocommerce-pagination span.page-numbers {
	border-radius: 999px;
}

/* --- دکمه «مشاهده بیشتر» --- */

.tpp-loadmore {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 32px 0 8px;
	padding: 0;
	clear: both;
	text-align: center;
}

.tpp-loadmore__count {
	font-size: 13px;
	font-weight: 500;
	color: var(--tpp-muted, #6b7785);
}

.tpp-loadmore__bar {
	width: 100%;
	max-width: 240px;
	height: 4px;
	overflow: hidden;
	background: var(--tpp-border, #e3e8e8);
	border-radius: 999px;
}

.tpp-loadmore__fill {
	display: block;
	height: 100%;
	background: var(--tpp-accent, #0f7b6c);
	border-radius: 999px;
	transition: width .45s cubic-bezier(.22, .61, .36, 1);
}

.tpp-loadmore__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 190px;
	padding: 13px 30px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.6;
	color: #fff;
	background: var(--tpp-accent, #0f7b6c);
	border: 0;
	border-radius: 14px;
	cursor: pointer;
	transition: transform .14s ease, box-shadow .2s ease, opacity .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tpp-loadmore__btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--tpp-accent, #0f7b6c) 38%, transparent);
}

.tpp-loadmore__btn:active:not(:disabled) {
	transform: translateY(0);
}

.tpp-loadmore__btn:disabled {
	cursor: default;
	opacity: .75;
}

.tpp-loadmore__spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tpp-spin .6s linear infinite;
}

.tpp-loadmore__btn.is-loading .tpp-loadmore__spinner {
	display: block;
}

@keyframes tpp-spin {
	to { transform: rotate(360deg); }
}

.tpp-loadmore__end {
	padding: 6px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--tpp-muted, #6b7785);
}

/* در حالت اسکرول بی‌نهایت، دکمه فقط پشتیبان است */
.tpp-loadmore.is-infinite .tpp-loadmore__btn {
	opacity: .55;
}

/* محصولات تازه‌آمده نرم ظاهر می‌شوند */
.tpp-just-loaded {
	animation: tpp-fade-up .35s ease-out both;
}

@keyframes tpp-fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.tpp-just-loaded {
		animation: none;
	}

	.tpp-loadmore__fill {
		transition: none;
	}
}
