/* ==========================================================================
   EscBay — main stylesheet
   Design tokens (dark is default; .escbay-light-mode overrides on <html>)

   @version 3.35.7 — 2026-09-07: fixed RTL corner-tag overlap on the news
   ticker (.escbay-news-ticker__tag / --en); added .escbay-page__order
   styles for the new single order button at the end of service pages.
   @version 3.35.8 — 2026-09-07: added "سایر خدمات" tile-grid styles
   (.escbay-service-tiles), repair-only phone price-check box, and the
   dedicated Apple ID unlock form (.escbay-apple-unlock).
   ========================================================================== */
:root {
	--escbay-bg: #0a0a0b;
	--escbay-bg-soft: #141416;
	--escbay-card: #1a1a1d;
	--escbay-border: #2a2a2e;
	/* پالت آبی/نیلی ملایم — جایگزین نارنجی قبلی، برای حس مینیمال، آرام و
	   لوکس‌تر. نام متغیرها همون قبلیه (برای سازگاری با کل فایل)، فقط
	   خودِ رنگ عوض شده. */
	--escbay-orange: #5b6ee8;
	--escbay-orange-dark: #414fb8;
	--escbay-phosphor: #a9b8ff;
	--escbay-glow-gradient: linear-gradient(135deg, var(--escbay-orange), var(--escbay-phosphor));
	--escbay-space-green: linear-gradient(135deg, #00c48c, var(--escbay-orange));
	--escbay-white: #f5f5f5;
	--escbay-gray: #b7b7bc;
	--escbay-font: 'Vazirmatn', Tahoma, sans-serif;
	--escbay-radius: 10px;
	--escbay-container: 1320px;

	/* پس‌زمینهٔ رنگی و چشم‌گیر («مش» چندرنگ نرم — سبک رایج سایت‌های
	   امروزی مثل Stripe/Linear) — عمداً از پالت برند مستقل است.
	   ۴ رنگ اصلی به‌شکل «R, G, B» (بدون rgb() دورش) تعریف شدن تا هم
	   توی گرادیانت پس‌زمینه هم توی لکه‌های نوری پشت کارت‌ها، هر دو با
	   هم از Customize قابل تغییر باشن. */
	/* پیش‌تر این ۴ لکهٔ نوری بنفش/صورتی/فیروزه‌ای بودن؛ طبق بریف طراحی
	   جدید («پریمیوم، سینمایی، فقط اکسنت نارنجی محدود») همه به سایه‌های
	   نارنجی/کهربایی و یه خاکستری گرم تبدیل شدن — بدون رنگ‌های شلوغ. */
	--escbay-accent-1: 232, 130, 46;
	--escbay-accent-2: 180, 90, 30;
	--escbay-accent-3: 90, 75, 60;
	--escbay-accent-4: 249, 115, 22;
	--escbay-bg-base: #08080a;
	--escbay-bg-gradient:
		radial-gradient(ellipse 900px 700px at 6% -8%, rgba(var(--escbay-accent-1), 0.45), transparent 60%),
		radial-gradient(ellipse 800px 650px at 98% 4%, rgba(var(--escbay-accent-2), 0.32), transparent 58%),
		radial-gradient(ellipse 750px 600px at 12% 96%, rgba(var(--escbay-accent-3), 0.30), transparent 58%),
		radial-gradient(ellipse 850px 650px at 92% 92%, rgba(var(--escbay-accent-4), 0.28), transparent 58%),
		linear-gradient(160deg, var(--escbay-bg-base) 0%, #100c1a 45%, var(--escbay-bg-base) 100%);

	/* Glassmorphism tokens */
	--escbay-glass-bg: rgba(24, 24, 27, 0.45);
	--escbay-glass-bg-soft: rgba(255, 255, 255, 0.045);
	--escbay-glass-border: rgba(255, 255, 255, 0.09);
	--escbay-glass-blur: blur(20px) saturate(150%);
	/* زیرمنوهای کشویی روی محتوای پشت خودشون باز میشن، برای همین به یک
	   پس‌زمینهٔ کدرتر از بقیهٔ پنل‌های شیشه‌ای نیاز دارن تا متن پشت‌شون
	   دیده نشه و نوشته‌ها خونا بمونن. */
	--escbay-submenu-bg: rgba(18, 18, 20, 0.96);
}

html.escbay-light-mode {
	--escbay-bg: #ffffff;
	--escbay-bg-soft: #f3f3f4;
	--escbay-card: #f7f7f8;
	--escbay-border: #e3e3e5;
	--escbay-white: #1d1d1f;
	--escbay-gray: #5a5a60;
	--escbay-bg-base: #ffffff;
	--escbay-bg-gradient:
		radial-gradient(ellipse 900px 700px at 6% -8%, rgba(var(--escbay-accent-1), 0.22), transparent 60%),
		radial-gradient(ellipse 800px 650px at 98% 4%, rgba(var(--escbay-accent-2), 0.18), transparent 58%),
		radial-gradient(ellipse 750px 600px at 12% 96%, rgba(var(--escbay-accent-3), 0.16), transparent 58%),
		radial-gradient(ellipse 850px 650px at 92% 92%, rgba(var(--escbay-accent-4), 0.14), transparent 58%),
		linear-gradient(160deg, var(--escbay-bg-base) 0%, #f5f4fa 55%, #eef0f6 100%);

	--escbay-glass-bg: rgba(255, 255, 255, 0.5);
	--escbay-glass-bg-soft: rgba(255, 255, 255, 0.68);
	--escbay-glass-border: rgba(0, 0, 0, 0.07);
	--escbay-submenu-bg: rgba(255, 255, 255, 0.97);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	position: relative;
	margin: 0;
	background: var(--escbay-bg-gradient);
	background-attachment: fixed;
	color: var(--escbay-white);
	font-family: var(--escbay-font);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.25s ease, color 0.25s ease;
	overflow-x: hidden;
}

/* Soft orange + phosphor glow blobs, fixed behind everything —
   this is what the glass panels (.escbay-glass-card, header, sections)
   blur through, giving the whole site its glassy look. */
body::before {
	content: '';
	position: fixed;
	inset: -15%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 15%, rgba(var(--escbay-accent-1), 0.5), transparent 42%),
		radial-gradient(circle at 88% 12%, rgba(var(--escbay-accent-2), 0.4), transparent 40%),
		radial-gradient(circle at 20% 85%, rgba(var(--escbay-accent-3), 0.35), transparent 45%),
		radial-gradient(circle at 82% 82%, rgba(var(--escbay-accent-4), 0.35), transparent 45%);
	filter: blur(70px);
	animation: escbay-bg-drift 36s ease-in-out infinite alternate;
	will-change: transform;
}

/* حرکت خیلی آروم و ظریفِ لکه‌های نوری پشت‌زمینه — فقط با transform
   (نه background-position) تا مرورگر فقط روی GPU جابه‌جاش کنه، بدون
   هیچ فشاری روی رندر بقیهٔ صفحه. عمداً خیلی کند و کم‌دامنه است تا حس
   «زنده» بده ولی اصلاً حواس‌پرت‌کننده نباشه. */
@keyframes escbay-bg-drift {
	0%   { transform: translate(0, 0) scale(1); }
	50%  { transform: translate(-2%, 1.5%) scale(1.04); }
	100% { transform: translate(2%, -1.5%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	body::before { animation: none; }
}

/* محو-ظاهرشدن ظریف موقع اسکرول — کلاس‌ها با جاوااسکریپت (reveal.js)
   اضافه می‌شن؛ اگه جاوااسکریپت اجرا نشه یا کاربر کاهش‌حرکت رو روشن
   کرده باشه، این کلاس هیچ‌وقت اضافه نمی‌شه و عناصر عادی دیده می‌شن. */
.escbay-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.escbay-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

html.escbay-light-mode body::before {
	background:
		radial-gradient(circle at 12% 15%, rgba(var(--escbay-accent-1), 0.30), transparent 42%),
		radial-gradient(circle at 88% 12%, rgba(var(--escbay-accent-2), 0.26), transparent 40%),
		radial-gradient(circle at 20% 85%, rgba(var(--escbay-accent-3), 0.22), transparent 45%),
		radial-gradient(circle at 82% 82%, rgba(var(--escbay-accent-4), 0.20), transparent 45%);
}

/* دانهٔ ظریف (grain) روی کل پس‌زمینه — تکنیک رایج سایت‌های پریمیوم
   برای اینکه گرادیانت صاف حس «تخت/کم‌کیفیت» نده و کمی بافت داشته
   باشد. خیلی کم‌رنگ است (opacity پایین) که فقط ناخودآگاه حس می‌شود،
   نه اینکه دیده شود. */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: url("../images/noise.svg");
	background-repeat: repeat;
	opacity: 0.035;
	mix-blend-mode: overlay;
}
html.escbay-light-mode body::after { opacity: 0.05; }


a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.escbay-container {
	max-width: var(--escbay-container);
	margin-inline: auto;
	padding-inline: 24px;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--escbay-orange);
	outline-offset: 3px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.escbay-header {
	background: var(--escbay-glass-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border-bottom: 1px solid var(--escbay-glass-border);
	box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.45);
	position: sticky;
	top: 0;
	z-index: 50;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
html.escbay-light-mode .escbay-header {
	box-shadow: 0 8px 32px -16px rgba(0, 0, 0, 0.15);
}

/* جعبهٔ جستجوی بالای سایت — درست زیر هدر باز می‌شود. */
.escbay-search-overlay {
	position: sticky;
	top: 84px;
	z-index: 49;
	background: var(--escbay-submenu-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border-bottom: 1px solid var(--escbay-glass-border);
}
.escbay-search-overlay[hidden] { display: none; }
.escbay-search-overlay__inner { padding-block: 16px; }
.escbay-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--escbay-bg-soft);
	border-radius: 999px;
	padding: 10px 20px;
	color: var(--escbay-gray);
}
.escbay-search-form__input {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--escbay-ink);
}
.escbay-search-form__close {
	border: none;
	background: none;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	color: var(--escbay-gray);
	padding: 2px 6px;
}
.escbay-search-form__close:hover { color: var(--escbay-orange); }

@media (max-width: 640px) {
	.escbay-search-overlay { top: 68px; }
}

.escbay-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 84px;
}

.escbay-logo__link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.35rem;
}

.escbay-logo__mark {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
}
.escbay-logo__mark span {
	width: 22px;
	height: 7px;
	/* لوگو همیشه نارنجی برند می‌ماند، حتی اگر رنگ اصلی سایت از
	   Customize چیز دیگری تنظیم شده باشد. */
	background: #ff8a3d;
	border-radius: 2px;
}
.escbay-logo__mark span:nth-child(2) { width: 16px; margin-inline-start: 6px; }
.escbay-logo__mark span:nth-child(3) { width: 22px; }
.escbay-logo__text { color: #ff8a3d; }

.escbay-nav__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 0.95rem;
	color: var(--escbay-gray);
}

.escbay-nav__list > li {
	white-space: nowrap;
}

.escbay-nav__list a {
	position: relative;
	padding-bottom: 6px;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.escbay-nav__list a:hover {
	color: var(--escbay-white);
}

/* Highlight current page like "صفحه اصلی" in the reference design */
.escbay-nav__list li.current-menu-item > a,
.escbay-nav__list li.current_page_item > a {
	color: var(--escbay-orange);
}
.escbay-nav__list li.current-menu-item > a::after,
.escbay-nav__list li.current_page_item > a::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: var(--escbay-orange);
}

/* Submenu dropdowns — add sub-items to a menu item in
   Appearance > Menus and they'll appear here automatically. */
.menu-item-has-children {
	position: relative;
}
.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-start: 5px;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.7;
}
.escbay-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-radius: 14px;
	background: var(--escbay-submenu-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border: 1px solid var(--escbay-glass-border);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 60;
}
.escbay-nav__list .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	white-space: nowrap;
}
.escbay-nav__list .sub-menu a:hover {
	background: rgba(91, 110, 232, 0.12);
}
.escbay-nav__list .sub-menu li.current-menu-item > a::after { display: none; }

/* Category header ("گیفت‌کارت") + its indented product list, inside
   the "سایر خدمات" dropdown — see escbay_fallback_menu(). */
.escbay-nav__list .sub-menu .escbay-nav__sub-heading > a {
	font-weight: 700;
	color: var(--escbay-white);
}
.escbay-nav__list .sub-menu .escbay-nav__sub-heading:not(:first-child) > a {
	margin-top: 6px;
	border-top: 1px solid var(--escbay-border);
	padding-top: 12px;
}
.escbay-nav__list .sub-menu .escbay-nav__subitem > a {
	padding-inline-start: 22px;
	font-size: 0.86rem;
	color: var(--escbay-gray);
}
.escbay-nav__list .sub-menu .escbay-nav__extra-first > a {
	margin-top: 6px;
	border-top: 1px solid var(--escbay-border);
	padding-top: 12px;
}

/* "سایر خدمات" — made to stand out from the rest of the top menu, per
   client request, so it reads as an important destination rather than
   a plain link. */
.escbay-nav__item--highlight > a {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--escbay-space-green);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff !important;
	font-weight: 700;
}
.escbay-nav__item--highlight > a::after { display: none; }
.escbay-nav__item--highlight.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-start: 5px;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.8;
}
.escbay-nav__item--highlight > a:hover { filter: brightness(1.1); color: #ffffff; }

@media (min-width: 961px) {
	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.escbay-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.escbay-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	border: none;
	color: var(--escbay-white);
	transition: background 0.2s ease;
}
.escbay-icon-btn:hover { background: var(--escbay-bg-soft); }
.escbay-icon-btn { position: relative; }
.escbay-icon-btn__badge {
	position: absolute;
	top: 2px;
	inset-inline-end: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--escbay-orange);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
}

.escbay-theme-toggle__moon { display: block; }
.escbay-theme-toggle__sun { display: none; }
html.escbay-light-mode .escbay-theme-toggle__moon { display: none; }
html.escbay-light-mode .escbay-theme-toggle__sun { display: block; }

.escbay-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
}
.escbay-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--escbay-white);
	margin-inline: auto;
}

/* ==========================================================================
   هیرو — دو چیدمان کاملاً جدا، هرکدوم با قوانین خودش (بدون هیچ
   قانونی که بین این دو مشترک/متداخل باشه، که قبلاً باعث چند باگ
   وسط‌چینی شده بود):

   ۱) چیدمان دوستونه («split»، پیش‌فرض وقتی عکس محصول ست شده):
      ستون متن (راست) + ستون عکس با هالهٔ نورانی (چپ)
   ۲) چیدمان وسط‌چین («--center»، وقتی عکس محصول ست نشده):
      عنوان، توضیح و دکمه‌ها زیر هم، با یک عرض یکسان و بدون
      محدودیت عرضِ جداگانه روی هرکدوم — تا مرکزشون همیشه دقیقاً
      یکی باشه.
   ========================================================================== */

.escbay-hero {
	position: relative;
	padding-block: 28px 0;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.65);
}
html.escbay-light-mode .escbay-hero {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* عکس پس‌زمینهٔ کامل هیرو (اختیاری، از Customizer)، با یه پوشش
   تیره/روشن که عنوان/دکمه‌های وسط‌چین روش خونا بمونن. */
.escbay-hero--has-bg {
	background-image: var(--escbay-hero-bg-dark);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
html.escbay-light-mode .escbay-hero--has-bg {
	background-image: var(--escbay-hero-bg-light, var(--escbay-hero-bg-dark));
}
.escbay-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(10, 10, 14, 0.05) 0%, rgba(10, 10, 14, 0.2) 60%, rgba(10, 10, 14, 0.45) 100%);
}
html.escbay-light-mode .escbay-hero__overlay {
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0.88) 100%);
}

/* ---- چیدمان دوستونه (پیش‌فرض) ---- */
.escbay-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	min-height: 560px;
}
.escbay-hero__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.escbay-hero__content {
	min-width: 0;
}

/* ---- چیدمان وسط‌چین ---- */
.escbay-hero__inner--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-height: auto;
	gap: 6px;
	padding-block: 6vh 3vh;
}
/* ستون متن هم باید خودش وسط‌چین باشه (نه فقط فرزندهاش)، وگرنه
   عرضش با محتواش تعیین می‌شه و مرکزش می‌تونه از بقیه فرق کنه. */
.escbay-hero__inner--center .escbay-hero__text {
	align-items: center;
	width: 100%;
}
.escbay-hero__inner--center .escbay-hero__content {
	max-width: 640px;
	width: 100%;
}
/* نکتهٔ کلیدی: هیچ‌کدوم از عنوان/توضیح/دکمه‌ها توی این حالت عرض
   محدود جدا نباید داشته باشن — همه باید دقیقاً عرض همین ستون متن
   (حداکثر ۶۴۰px) رو بگیرن و فقط با text-align:center وسط‌چین بشن.
   اگه یکی‌شون عرض کوچیک‌تر با margin:auto داشته باشه، مرکزش به
   دلیل گردکردنِ px می‌تونه چندپیکسل با بقیه فرق کنه. */
.escbay-hero__inner--center .escbay-hero__desc {
	max-width: none; /* با یه انتخاب‌گر ترکیبی (نه یه کلاس تنها)، تخصصی‌ترشه؛
		دیگه هیچ‌وقت به ترتیبِ قوانین توی فایل بستگی نداره. */
}
.escbay-hero__inner--center .escbay-hero__actions {
	justify-content: center;
	margin-top: 6px;
}

/* فشرده‌کردن هیرو روی مانیتورهای کوتاه (لپ‌تاپ) که همه‌چی
   (هدر+عنوان+دکمه‌ها) بدون اسکرول جا بشه. */
@media (min-width: 1024px) and (max-height: 820px) {
	.escbay-hero { padding-block: 14px 0; }
	.escbay-hero__inner--center { padding-block: 3vh 2vh; gap: 4px; }
	.escbay-hero__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
	.escbay-hero__inner--center .escbay-hero__desc { font-size: 0.92rem; margin-bottom: 40px; }
}

/* ---- عنوان / توضیح / دکمه‌ها — مشترک بین هر دو چیدمان ---- */
.escbay-hero__title {
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.5;
	margin: 0 0 20px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
	text-wrap: balance;
}
.escbay-hero__title--accent {
	display: block;
	color: var(--escbay-orange);
	font-size: 0.88em; /* همیشه یه‌کم کوچیک‌تر از سطر بالاش، که هیچ‌وقت ازش پهن‌تر نشه (شکل هرم برعکس) */
}
.escbay-hero__desc {
	color: var(--escbay-gray);
	font-size: 1rem;
	max-width: 40ch; /* فقط توی چیدمان دوستونه معتبره؛ توی وسط‌چین با قانون بالا خنثی می‌شه */
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
	margin: 0 0 72px;
	text-wrap: balance;
}
.escbay-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ---- عکس محصول + هالهٔ نورانی (فقط چیدمان دوستونه) ---- */
.escbay-hero__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 480px;
	max-height: 560px;
	overflow: hidden; /* جلوگیری از سرریز عکسی با ابعاد نامتعارف روی ستون متن */
}
.escbay-hero__glow {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 60%;
	height: 60%;
	max-width: 420px;
	max-height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 130, 46, 0.55) 0%, rgba(232, 130, 46, 0.25) 45%, transparent 72%);
	filter: blur(6px);
	pointer-events: none;
}
html.escbay-light-mode .escbay-hero__glow {
	background: radial-gradient(circle, rgba(232, 130, 46, 0.35) 0%, rgba(232, 130, 46, 0.14) 45%, transparent 72%);
}
.escbay-hero__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-height: 480px;
	object-fit: contain;
	margin-inline: auto;
}

.escbay-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.escbay-btn:hover { transform: translateY(-2px); }

.escbay-btn--primary {
	background: var(--escbay-glass-bg-soft);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border-color: var(--escbay-orange);
	color: var(--escbay-orange);
	box-shadow: 0 0 0 rgba(169, 184, 255, 0);
}
.escbay-btn--primary:hover {
	border-color: var(--escbay-phosphor);
	color: var(--escbay-white);
	background: linear-gradient(135deg, rgba(91, 110, 232, 0.18), rgba(169, 184, 255, 0.18));
	box-shadow: 0 0 26px rgba(169, 184, 255, 0.25);
}

.escbay-btn--outline {
	background: transparent;
	border-color: var(--escbay-glass-border);
	color: var(--escbay-white);
}
.escbay-btn--outline:hover {
	border-color: var(--escbay-orange);
	box-shadow: 0 0 18px rgba(91, 110, 232, 0.2);
}

.escbay-btn--accent {
	background: var(--escbay-phosphor);
	border-color: var(--escbay-phosphor);
	color: #111;
}
.escbay-btn--accent:hover {
	/* قبلاً اینجا از var(--escbay-white) استفاده شده بود که اسمش
	   گمراه‌کننده‌ست — این متغیر رنگ «متن اصلی» سایته، نه لزوماً سفید؛
	   توی حالت روز مقدارش تقریباً مشکیه، پس دکمه موقع هاور سیاه می‌شد.
	   الان فقط با برایتنس روشن‌ترش می‌کنیم، رنگ پایه عوض نمی‌شه. */
	filter: brightness(1.12);
	box-shadow: 0 0 26px rgba(169, 184, 255, 0.35);
}

.escbay-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}
.escbay-btn.is-disabled:hover { transform: none; box-shadow: none; }

/* ==========================================================================
   Quick contact — "سریع‌ترین راه دریافت خدمات" block shown at the end
   of every service page (see escbay_render_quick_contact()).
   ========================================================================== */
.escbay-quickcontact {
	margin-block: 44px;
	padding: 28px;
	border-radius: 18px;
	text-align: center;
}
.escbay-quickcontact__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
}
.escbay-quickcontact__desc {
	margin: 0 0 20px;
	color: var(--escbay-gray);
	font-size: 0.9rem;
}
.escbay-quickcontact__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
.escbay-quickcontact__note {
	margin: 16px 0 0;
	font-size: 0.82rem;
	color: var(--escbay-orange);
}

/* ==========================================================================
   Feature strip
   ========================================================================== */
.escbay-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-block: 56px 40px;
}

.escbay-features__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border-radius: 999px;
	border: 1px solid var(--escbay-glass-border);
	background: var(--escbay-glass-bg-soft);
}

.escbay-features__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(232, 130, 46, 0.12);
	color: var(--escbay-orange);
}

.escbay-features__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.85rem;
	color: var(--escbay-gray);
}
.escbay-features__text strong {
	color: var(--escbay-white);
	font-size: 0.95rem;
	font-weight: 700;
}

/* ==========================================================================
   Generic content (index.php fallback)
   ========================================================================== */
.escbay-content {
	padding-block: 60px;
	min-height: 50vh;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.escbay-footer {
	position: relative;
	margin-top: 40px;
	border-top: 1px solid var(--escbay-glass-border);
	background: var(--escbay-glass-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	color: var(--escbay-gray);
	font-size: 0.9rem;
}

/* Trust badges strip */
.escbay-footer__trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 28px 0;
}
.escbay-footer__trust-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 12px;
	border-radius: 16px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--escbay-text);
	text-align: center;
}
.escbay-footer__trust-icon { color: var(--escbay-orange); display: inline-flex; flex-shrink: 0; }

/* Column grid */
.escbay-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr 0.85fr 0.85fr 0.85fr 0.85fr 1fr;
	gap: 24px;
	padding-block: 8px 32px;
}

.escbay-footer__col--brand { padding-inline-end: 12px; }

.escbay-footer__logo,
.escbay-footer__logo-text { margin-bottom: 14px; }
.escbay-footer__logo img { max-height: 48px; width: auto; }
.escbay-footer__logo-text { display: inline-flex; align-items: center; gap: 8px; }

.escbay-footer__about {
	font-size: 0.85rem;
	line-height: 1.9;
	color: var(--escbay-gray);
	margin-bottom: 16px;
	max-width: 320px;
}

.escbay-footer__social { display: flex; gap: 10px; }
.escbay-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--escbay-card);
	border: 1px solid var(--escbay-border);
	color: var(--escbay-text);
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.escbay-footer__social-link:hover {
	color: var(--escbay-orange);
	border-color: var(--escbay-orange);
	transform: translateY(-2px);
}

.escbay-footer__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--escbay-text);
	margin-bottom: 16px;
}

.escbay-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}
.escbay-footer__list a {
	color: var(--escbay-gray);
	transition: color 0.2s ease;
}

.escbay-footer__news-pinned {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}
.escbay-footer__news-pinned .escbay-news-card__tag { margin-bottom: 0; }
.escbay-footer__news-pinned a { color: var(--escbay-ink); font-weight: 600; }
.escbay-footer__list a:hover { color: var(--escbay-orange); }

.escbay-footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--escbay-gray);
	line-height: 1.6;
}
.escbay-footer__list--contact svg { flex-shrink: 0; margin-top: 2px; color: var(--escbay-orange); }
.escbay-footer__list--contact a { color: var(--escbay-gray); }
.escbay-footer__list--contact a:hover { color: var(--escbay-orange); }

.escbay-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	border-top: 1px solid var(--escbay-border);
	padding-block: 18px;
	font-size: 0.8rem;
}
.escbay-footer__credit { color: var(--escbay-gray); opacity: 0.7; }

@media (max-width: 960px) {
	.escbay-footer__trust { grid-template-columns: repeat(2, 1fr); }
	.escbay-footer__inner { grid-template-columns: 1fr 1fr; }
	.escbay-footer__col--brand { grid-column: 1 / -1; padding-inline-end: 0; }
}

@media (max-width: 600px) {
	.escbay-footer__trust { grid-template-columns: 1fr; margin-top: 0; }
	.escbay-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.escbay-footer__about { margin-inline: auto; }
	.escbay-footer__social { justify-content: center; }
	.escbay-footer__list--contact li { justify-content: center; }
	.escbay-footer__bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.escbay-nav { display: none; }
	.escbay-menu-toggle { display: flex; }

	.escbay-nav.is-open {
		display: block;
		position: absolute;
		top: 84px;
		inset-inline: 0;
		background: var(--escbay-bg);
		border-bottom: 1px solid var(--escbay-border);
		padding: 16px 24px 24px;
	}
	.escbay-nav.is-open .escbay-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.escbay-nav__list .sub-menu {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		margin-top: 8px;
		width: 100%;
	}
	.menu-item-has-children.is-submenu-open > .sub-menu {
		display: flex;
	}
	.menu-item-has-children.is-submenu-open > a::after {
		transform: rotate(225deg) translateY(1px);
	}

	.escbay-hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
		min-height: auto;
		padding-block: 20px 40px;
	}
	.escbay-hero__desc { margin-inline: auto; }
	.escbay-hero__actions { justify-content: center; }
	.escbay-hero__media { order: -1; min-height: 320px; }
	.escbay-hero__img { max-height: 320px; }

	.escbay-features {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.escbay-features { grid-template-columns: 1fr; }
	.escbay-header__inner { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.escbay-btn:hover { transform: none; }
}

/* ==========================================================================
   Generic service page (تعمیر / فروش / قیمت‌گذاری / دستگاه دوم‌دست)
   ========================================================================== */
.escbay-page__banner {
	padding-block: 72px 40px;
	text-align: center;
	border-bottom: 1px solid var(--escbay-border);
	background: var(--escbay-glass-bg-soft);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
}

.escbay-page__title {
	font-size: clamp(1.8rem, 3.2vw, 2.4rem);
	font-weight: 800;
	margin: 0 0 14px;
}

/* Style 2: blurred background image behind the title/desc */
.escbay-page__banner--blur-bg {
	position: relative;
	overflow: hidden;
	padding-block: 96px 56px;
}
.escbay-page__banner-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(28px) brightness(0.55) saturate(1.1);
	transform: scale(1.15); /* hides blurred edges */
	z-index: 0;
}
.escbay-page__banner--blur-bg .escbay-container {
	position: relative;
	z-index: 1;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: var(--escbay-radius);
	padding-block: 18px;
}
.escbay-page__banner--blur-bg .escbay-page__title,
.escbay-page__banner--blur-bg .escbay-page__desc {
	color: #ffffff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Style 3: image beside the title/desc */
.escbay-page__banner--side {
	text-align: right;
	padding-block: 56px;
}
.escbay-page__banner-side-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.escbay-page__banner-media {
	border-radius: var(--escbay-radius);
	overflow: hidden;
}
.escbay-page__banner-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.escbay-page__banner--side .escbay-page__desc { margin-inline: 0; }
@media (max-width: 780px) {
	.escbay-page__banner-side-inner { grid-template-columns: 1fr; text-align: center; }
	.escbay-page__banner--side { text-align: center; }
	.escbay-page__banner--side .escbay-page__desc { margin-inline: auto; }
	.escbay-page__banner-media { order: -1; }
}

.escbay-page__desc {
	color: var(--escbay-gray);
	max-width: 60ch;
	margin-inline: auto;
}

.escbay-page__content {
	padding-block: 48px;
	max-width: 860px;
}

.escbay-page--narrow .escbay-page__content,
.escbay-page--narrow.escbay-page { max-width: 760px; margin-inline: auto; }

.escbay-page__cover {
	border-radius: var(--escbay-radius);
	overflow: hidden;
	margin-bottom: 32px;
}

.escbay-page__cta {
	display: flex;
	gap: 14px;
	justify-content: center;
	padding-block: 8px 64px;
	flex-wrap: wrap;
}

/* Repair-only "check your phone's price before repairing" box */
.escbay-page__price-check {
	margin-block: 32px;
	padding: 24px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.escbay-page__price-check-text {
	margin: 0;
	flex: 1 1 320px;
	color: var(--escbay-gray);
	font-size: 0.92rem;
}

/* Dedicated "آنلاک اپل آیدی" order form (see inc/service-orders.php) */
.escbay-apple-unlock {
	margin-block: 44px;
	padding: 32px 28px;
	border-radius: 18px;
	box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.5);
}
.escbay-apple-unlock__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	text-align: center;
}
.escbay-apple-unlock__note {
	margin: 0 0 22px;
	font-size: 0.85rem;
	color: var(--escbay-gray);
	text-align: center;
	max-width: 60ch;
	margin-inline: auto;
}
.escbay-apple-unlock__success {
	margin: 0;
	text-align: center;
	color: #2a9d3f;
	font-weight: 700;
}
.escbay-apple-unlock__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 520px;
	margin-inline: auto;
}
.escbay-apple-unlock__form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.88rem;
	color: var(--escbay-gray);
}
.escbay-apple-unlock__form input,
.escbay-apple-unlock__form textarea,
.escbay-apple-unlock__form select {
	font-family: var(--escbay-font);
	font-size: 0.9rem;
	color: var(--escbay-white);
	background: var(--escbay-bg-soft);
	border: 1px solid var(--escbay-border);
	border-radius: 10px;
	padding: 11px 14px;
	resize: vertical;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.escbay-apple-unlock__form input:focus,
.escbay-apple-unlock__form textarea:focus,
.escbay-apple-unlock__form select:focus {
	outline: none;
	border-color: var(--escbay-orange);
	box-shadow: 0 0 0 3px rgba(232, 130, 46, 0.15);
}
.escbay-apple-unlock__form input[type="file"] {
	padding: 8px 12px;
	color: var(--escbay-gray);
}
.escbay-apple-unlock__form button { margin-top: 8px; align-self: center; }

/* Single order box at the end of a service page (see single-escbay_service.php) */
.escbay-page__order {
	margin-block: 44px;
	padding: 32px 28px;
	text-align: center;
}
.escbay-page__order-price {
	margin: 0 0 18px;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--escbay-orange);
}
.escbay-page__order .escbay-btn--lg {
	padding: 16px 40px;
	font-size: 1.05rem;
}
.escbay-page__order-back {
	display: block;
	margin-top: 16px;
	font-size: 0.85rem;
	color: var(--escbay-gray);
	text-decoration: underline;
}

/* Secondary "which channel do you prefer?" row under the order button */
.escbay-contact-channels__label {
	margin: 22px 0 10px;
	font-size: 0.82rem;
	color: var(--escbay-gray);
}
.escbay-contact-channels {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.escbay-contact-channels__item {
	font-family: var(--escbay-font);
	font-size: 0.82rem;
	color: var(--escbay-gray);
	background: transparent;
	border: 1px solid var(--escbay-border);
	border-radius: 999px;
	padding: 7px 16px;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.escbay-contact-channels__item:hover {
	border-color: var(--escbay-orange);
	color: var(--escbay-orange);
}

.escbay-page__content--wide {
	max-width: var(--escbay-container);
	margin-inline: auto;
}

.escbay-pricelist__updated {
	margin-top: 10px;
	font-size: 0.82rem;
	color: var(--escbay-gray);
}

/* ==========================================================================
   News (اخبار)
   ========================================================================== */
.escbay-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding-block: 40px 24px;
}

.escbay-news-card {
	background: var(--escbay-card);
	border: 1px solid var(--escbay-border);
	border-radius: var(--escbay-radius);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.escbay-news-card:hover {
	transform: translateY(-3px);
	border-color: var(--escbay-orange);
}

.escbay-news-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.escbay-news-card__body { padding: 18px 20px 22px; }

.escbay-news-card__date {
	font-size: 0.8rem;
	color: var(--escbay-gray);
}

.escbay-news-card__title {
	font-size: 1.05rem;
	margin: 8px 0 10px;
}
.escbay-news-card__title a:hover { color: var(--escbay-orange); }

.escbay-news-card__excerpt {
	font-size: 0.9rem;
	color: var(--escbay-gray);
	margin: 0;
}

.escbay-news-card__tag {
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(91, 110, 232, 0.15);
	color: var(--escbay-orange);
	margin-bottom: 6px;
}
.escbay-news-card__tag--notice { background: rgba(214, 69, 69, 0.15); color: var(--escbay-danger, #d64545); }

.escbay-news-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 24px 0;
}
.escbay-news-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--escbay-radius);
	background: var(--escbay-bg-soft);
}

.escbay-news-source {
	font-size: 0.8rem;
	color: var(--escbay-gray);
	margin-top: 12px;
	opacity: 0.8;
}

/* ==========================================================================
   نوار خبر زیر هیروی صفحهٔ اصلی — مثل نوار خبر تلویزیون. فقط وقتی یک
   خبر/اطلاعیه «پین» شده باشد رندر می‌شود؛ در غیر این صورت هیچ فضایی
   اشغال نمی‌کند.
   ========================================================================== */
.escbay-news-ticker {
	display: block;
	position: relative;
	min-height: 42px;
	padding: 0 16px;
	background: linear-gradient(135deg, rgba(193, 18, 31, 0.85), rgba(139, 0, 0, 0.85));
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff !important;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	border-radius: 12px;
	margin-bottom: 28px;
	z-index: 5;
	overflow: hidden;
	box-shadow: 0 8px 24px -8px rgba(193, 18, 31, 0.4);
}
.escbay-news-ticker--price {
	background: linear-gradient(135deg, rgba(247, 103, 7, 0.85), rgba(232, 89, 12, 0.85));
	margin-top: 10px;
	box-shadow: 0 8px 24px -8px rgba(230, 81, 0, 0.4);
}
/* برچسب‌ها روی خودِ نوار، دو سر راست/چپ — با پس‌زمینهٔ نیمه‌کدر، طوری
   که وقتی متن درحال‌حرکت از زیرشون رد می‌شه، انگار از «پشت» برچسب‌ها
   عبور می‌کنه، نه اینکه کنارشون یه ردیف جدا بگیره. */
.escbay-news-ticker__tag {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 2;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(to left, #8b0000 55%, transparent);
	padding: 0 16px 0 30px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.escbay-news-ticker__tag--en {
	left: 0;
	right: auto;
	background: linear-gradient(to right, #8b0000 55%, transparent);
	padding: 0 30px 0 16px;
	font-family: Arial, sans-serif;
	letter-spacing: 0.06em;
}
.escbay-news-ticker__dot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #fff;
	animation: escbay-ticker-blink 1.1s ease-in-out infinite;
}
@keyframes escbay-ticker-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}
.escbay-news-ticker__viewport {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 42px;
	overflow: hidden;
}
.escbay-news-ticker__text {
	position: absolute;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	white-space: nowrap;
	color: #fff !important;
	padding: 0 4px;
	will-change: transform;
}
@media (max-width: 640px) {
	.escbay-news-ticker__tag--en { display: none; }
}

.escbay-pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding-block: 20px 60px;
}
.escbay-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 10px;
	border-radius: 8px;
	border: 1px solid var(--escbay-border);
	color: var(--escbay-white);
}
.escbay-pagination .page-numbers.current {
	background: var(--escbay-orange);
	border-color: var(--escbay-orange);
	color: #ffffff;
}

@media (max-width: 960px) {
	.escbay-news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.escbay-news-grid { grid-template-columns: 1fr; }
	.escbay-page__banner { padding-block: 48px 32px; }
}

/* ==========================================================================
   Glass card utility — reused by the feature strip, icon grid,
   quick-links row and homepage sections.
   ========================================================================== */
.escbay-glass-card {
	background: var(--escbay-glass-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border: 1px solid var(--escbay-glass-border);
}

/* ==========================================================================
   Section B — product category icon grid
   ========================================================================== */
.escbay-icon-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
	border-radius: 18px;
	padding: 20px 10px;
	margin-block: 8px 40px;
}

.escbay-icon-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 8px;
	border-radius: 14px;
	color: var(--escbay-white);
	transition: transform 0.2s ease, background 0.2s ease;
}
.escbay-icon-grid__item:hover {
	background: rgba(91, 110, 232, 0.08);
	transform: translateY(-3px);
}

.escbay-icon-grid__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: var(--escbay-orange);
	background: linear-gradient(135deg, rgba(91, 110, 232, 0.14), rgba(169, 184, 255, 0.14));
	border: 1px solid var(--escbay-glass-border);
}

.escbay-icon-grid__label {
	font-size: 0.82rem;
	text-align: center;
}

@media (max-width: 800px) {
	.escbay-icon-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Section E — quick-link icon buttons (گیفت کارت، اپل آیدی...)
   ========================================================================== */
.escbay-quicklinks {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	margin-block: 16px 64px;
}

.escbay-quicklinks__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 28px 12px;
	border-radius: 16px;
	color: var(--escbay-white);
	text-align: center;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.escbay-quicklinks__item:hover {
	transform: translateY(-4px);
	border-color: var(--escbay-orange);
	box-shadow: 0 0 22px rgba(91, 110, 232, 0.18);
}

.escbay-quicklinks__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	color: var(--escbay-phosphor);
	background: linear-gradient(135deg, rgba(91, 110, 232, 0.16), rgba(169, 184, 255, 0.16));
}

.escbay-quicklinks__label {
	font-size: 0.88rem;
	font-weight: 600;
}

@media (max-width: 800px) {
	.escbay-quicklinks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.escbay-quicklinks { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Homepage sections (Apple-style, alternating image/text)
   ========================================================================== */
.escbay-section {
	position: relative;
	padding-block: 56px;
	margin-block: 24px;
	border-radius: 22px;
	background: var(--escbay-glass-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border: 1px solid var(--escbay-glass-border);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* دسته‌بندی سریع + پیشنهادها، فقط داخل بخش «دستگاه‌های دست دوم» صفحهٔ
   اصلی — زیر متن/عکس اصلی همان بخش. */
.escbay-home-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}
.escbay-home-cats__item {
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--escbay-bg-soft);
	border: 1px solid var(--escbay-border);
	font-size: 0.85rem;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.escbay-home-cats__item:hover { background: var(--escbay-orange); color: #fff; border-color: var(--escbay-orange); }

.escbay-home-suggestions {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
	margin-top: 18px;
}
.escbay-home-suggestions__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--escbay-glass-bg-soft);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border: 1px solid var(--escbay-glass-border);
	border-radius: 16px;
	padding: 12px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.escbay-home-suggestions__card:hover { transform: translateY(-3px); border-color: var(--escbay-orange); }
.escbay-home-suggestions__media {
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: var(--escbay-bg-soft);
}
.escbay-home-suggestions__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.escbay-home-suggestions__card:hover .escbay-home-suggestions__media img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
	.escbay-home-suggestions__media img { transition: none; }
	.escbay-home-suggestions__card:hover .escbay-home-suggestions__media img { transform: none; }
}
.escbay-home-suggestions__title { font-size: 0.82rem; font-weight: 600; }
.escbay-home-suggestions__price { font-size: 0.8rem; font-weight: 800; color: var(--escbay-orange); }
.escbay-home-suggestions__cta,
.escbay-shop-card__cta {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 10px;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--escbay-white);
	background: var(--escbay-glass-bg-soft);
	border: 1px solid var(--escbay-glass-border);
	transition: background 0.2s ease, border-color 0.2s ease;
}
.escbay-home-suggestions__card:hover .escbay-home-suggestions__cta,
.escbay-shop-card:hover .escbay-shop-card__cta {
	background: var(--escbay-orange);
	border-color: var(--escbay-orange);
	color: #fff;
}

@media (max-width: 900px) {
	.escbay-home-suggestions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
	.escbay-home-suggestions { grid-template-columns: repeat(2, 1fr); }
}

.escbay-section {
	max-width: var(--escbay-container);
	margin-inline: auto;
}

/* When a background image is set for this section, it covers the
   whole section and sits behind an overlay (for text contrast). */
.escbay-section--has-bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	isolation: isolate; /* keeps the overlay/content stacking contained to this section */
	overflow: hidden; /* clip the background image to the rounded corners */
}

.escbay-section__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(10, 10, 11, 0.72); /* dark-mode overlay */
	pointer-events: none;
}

html.escbay-light-mode .escbay-section__overlay {
	background: rgba(255, 255, 255, 0.8); /* light-mode overlay */
}

.escbay-section--has-bg .escbay-section__inner {
	position: relative;
	z-index: 1;
}

/* Alternate background per section, like Apple's product pages —
   uses the same tokens as dark/light mode, so it stays correct
   automatically when the visitor switches theme. */
.escbay-section:nth-of-type(even) {
	background: var(--escbay-glass-bg-soft);
}

.escbay-section__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}

.escbay-section--right .escbay-section__content { order: 1; }
.escbay-section--right .escbay-section__media { order: 2; }
.escbay-section--left .escbay-section__content { order: 2; }
.escbay-section--left .escbay-section__media { order: 1; }

.escbay-section__title {
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	font-weight: 800;
	margin: 0 0 16px;
}

.escbay-section__text {
	color: var(--escbay-gray);
	max-width: 46ch;
	margin: 0 0 28px;
}

.escbay-section__media {
	overflow: hidden; /* contains the zoomed image on hover */
	border-radius: var(--escbay-radius);
}

.escbay-section__media img {
	width: 100%;
	border-radius: var(--escbay-radius);
	display: block;
	transition: transform 0.4s ease;
}

.escbay-section__media:hover img {
	transform: scale(1.05);
}

.escbay-section__media-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--escbay-radius);
	background: linear-gradient(135deg, var(--escbay-card), var(--escbay-bg-soft));
	border: 1px dashed var(--escbay-border);
}

@media (max-width: 800px) {
	.escbay-section { padding-block: 48px; }
	.escbay-section__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.escbay-section--right .escbay-section__content,
	.escbay-section--left .escbay-section__content { order: 2; }
	.escbay-section--right .escbay-section__media,
	.escbay-section--left .escbay-section__media { order: 1; }
	.escbay-section__text { margin-inline: auto; }
}





/* ==========================================================================
   Secondhand shop — category filters + product card grid
   ========================================================================== */
.escbay-shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.escbay-shop-filters__item {
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--escbay-border);
	color: var(--escbay-gray);
	font-size: 0.85rem;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.escbay-shop-filters__item:hover { color: var(--escbay-white); border-color: var(--escbay-orange); }
.escbay-shop-filters__item.is-active {
	background: var(--escbay-glow-gradient);
	border-color: transparent;
	color: #ffffff;
}

.escbay-shop__empty {
	text-align: center;
	color: var(--escbay-gray);
	padding-block: 40px;
}

.escbay-shop-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding-bottom: 48px;
}

.escbay-shop-card {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	color: var(--escbay-white);
	transition: transform 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
}
.escbay-shop-card:hover { transform: translateY(-4px); border-color: var(--escbay-orange); }

.escbay-shop-card__link {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

/* Favorite (heart) toggle — a plain button placed on top of the card
   image, kept outside the <a> so it never triggers navigation. */
.escbay-fav-btn {
	position: absolute;
	z-index: 2;
	top: 10px;
	inset-inline-start: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.escbay-fav-btn:hover { transform: scale(1.08); }
.escbay-fav-btn.is-active {
	color: var(--escbay-orange);
	background: rgba(0, 0, 0, 0.6);
}
.escbay-fav-btn.is-active svg { fill: currentColor; }

/* Same button reused (larger) on the single product page. */
.escbay-product .escbay-fav-btn {
	position: static;
	width: 40px;
	height: 40px;
	background: var(--escbay-bg-soft);
	color: var(--escbay-white);
	border: 1px solid var(--escbay-border);
}
.escbay-product .escbay-fav-btn.is-active { color: var(--escbay-orange); border-color: var(--escbay-orange); }

.escbay-shop-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--escbay-bg-soft);
}
.escbay-shop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.escbay-shop-card:hover .escbay-shop-card__media img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
	.escbay-shop-card__media img { transition: none; }
	.escbay-shop-card:hover .escbay-shop-card__media img { transform: none; }
}

.escbay-shop-card__media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(91, 110, 232, 0.12), rgba(169, 184, 255, 0.08));
}

/* ==========================================================================
   نتایج جستجوی سایت
   ========================================================================== */
.escbay-search-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-block: 24px;
}
.escbay-search-result {
	display: flex;
	gap: 16px;
	background: var(--escbay-card);
	border: 1px solid var(--escbay-border);
	border-radius: var(--escbay-radius);
	padding: 14px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.escbay-search-result:hover { border-color: var(--escbay-orange); transform: translateY(-2px); }
.escbay-search-result__media {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	border-radius: calc(var(--escbay-radius) - 4px);
	overflow: hidden;
	background: var(--escbay-bg-soft);
}
.escbay-search-result__media img { width: 100%; height: 100%; object-fit: cover; }
.escbay-search-result__body { flex: 1; min-width: 0; }
.escbay-search-result__title { font-size: 1rem; margin: 4px 0 6px; }
.escbay-search-result__excerpt {
	font-size: 0.85rem;
	color: var(--escbay-gray);
	margin: 0 0 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.escbay-search-result__price { font-weight: 800; color: var(--escbay-orange); font-size: 0.9rem; }

@media (max-width: 480px) {
	.escbay-search-result__media { flex-basis: 72px; width: 72px; height: 72px; }
}

/* ==========================================================================
   فرم درخواست اطلاع‌رسانی — «دستگاه مورد نظرتان را پیدا نکردید؟»
   ========================================================================== */
.escbay-notify-request {
	border-radius: var(--escbay-radius);
	padding: 28px;
	margin-top: 40px;
	text-align: center;
}
.escbay-notify-request__title { font-size: 1.1rem; margin: 0 0 6px; }
.escbay-notify-request__desc { color: var(--escbay-gray); font-size: 0.9rem; margin: 0 0 18px; }
.escbay-notify-request__form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 560px;
	margin-inline: auto;
}
.escbay-notify-request__form input,
.escbay-notify-request__form textarea {
	flex: 1 1 220px;
	font-family: inherit;
	border: 1px solid var(--escbay-border);
	border-radius: 12px;
	padding: 11px 14px;
	background: var(--escbay-bg-soft);
	color: var(--escbay-ink);
}
.escbay-notify-request__form textarea { flex-basis: 100%; min-height: 70px; resize: vertical; }
.escbay-notify-request__form button { flex-basis: 100%; }
.escbay-notify-request__success { color: #2a9d3f; font-weight: 700; font-size: 1rem; }

.escbay-shop-card__badge,
.escbay-shop-card__cat {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 999px;
}
.escbay-shop-card__badge { background: #c0392b; color: #fff; }
.escbay-shop-card__cat { background: rgba(0, 0, 0, 0.55); color: var(--escbay-white); backdrop-filter: blur(6px); }

.escbay-shop-card--sold { opacity: 0.6; }

.escbay-shop-card__body { padding: 16px 18px 20px; }
.escbay-shop-card__title { font-size: 0.98rem; margin: 0 0 6px; }
.escbay-shop-card__condition { font-size: 0.8rem; color: var(--escbay-gray); margin: 0 0 8px; }
.escbay-shop-card__price { font-weight: 800; color: var(--escbay-orange); margin: 0; }
.escbay-empty-note { padding: 24px; text-align: center; color: var(--escbay-gray); background: var(--escbay-card); border: 1px dashed var(--escbay-border); border-radius: var(--escbay-radius); }

/* صفحهٔ «معرفی سریع» — مقصد کیوآرکد/لینک تبلیغاتی. */
.escbay-quicklink {
	display: flex;
	justify-content: center;
	padding: 48px 16px 72px;
}
.escbay-quicklink__card {
	width: 100%;
	max-width: 440px;
	text-align: center;
	padding: 36px 28px;
	border-radius: 20px;
	background: var(--escbay-glass-bg-soft);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	border: 1px solid var(--escbay-glass-border);
}
.escbay-quicklink__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 18px;
}
.escbay-quicklink__logotext { font-size: 1.5rem; font-weight: 800; color: #ff8a3d; }
.escbay-quicklink__tagline {
	color: var(--escbay-gray);
	line-height: 1.9;
	margin: 0 0 28px;
}
.escbay-quicklink__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.escbay-quicklink__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--escbay-glow-gradient);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
}
.escbay-quicklink__btn--outline {
	background: transparent;
	border: 1px solid var(--escbay-border);
	color: var(--escbay-white);
}
.escbay-quicklink__btn-icon { font-size: 1.1rem; }
.escbay-quicklink__addr {
	margin: 28px 0 0;
	font-size: 0.8rem;
	color: var(--escbay-gray);
}


.escbay-contact-context { padding: 16px 20px; margin-bottom: 20px; border-inline-start: 3px solid var(--escbay-orange); }
.escbay-contact-context strong { color: var(--escbay-orange); }
.escbay-contact-context__hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--escbay-gray); }
.escbay-contact-info { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.escbay-contact-info a { color: inherit; text-decoration: none; }
.escbay-contact-info a:hover { color: var(--escbay-orange); }

.escbay-purchase-request { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.escbay-purchase-request__success { color: #2a9d3f; font-weight: 700; margin: 0; }

.escbay-auction-submit { padding: 24px; }
.escbay-auction-submit__form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; max-width: 480px; }
.escbay-auction-submit__form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--escbay-gray); }
.escbay-auction-submit__form input,
.escbay-auction-submit__form textarea {
	font-family: var(--escbay-font);
	font-size: 0.9rem;
	color: var(--escbay-white);
	background: var(--escbay-bg-soft);
	border: 1px solid var(--escbay-border);
	border-radius: 8px;
	padding: 10px 12px;
	resize: vertical;
}

.escbay-purchase-request__hint { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--escbay-gray); text-decoration: none; }
.escbay-purchase-request__hint:hover { color: var(--escbay-orange); }
.escbay-purchase-request__hint svg { animation: escbay-hint-bounce 1.6s ease-in-out infinite; }
@keyframes escbay-hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.escbay-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--escbay-card);
	color: var(--escbay-white);
	border: 1px solid var(--escbay-border);
	border-radius: var(--escbay-radius);
	padding: 12px 20px;
	font-size: 0.9rem;
	box-shadow: var(--escbay-shadow);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 9999;
	pointer-events: none;
}
.escbay-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.escbay-install-banner {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 12px;
	width: calc(100% - 32px);
	max-width: 400px;
	padding: 14px 16px;
	background: var(--escbay-card);
	border: 1px solid var(--escbay-border);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	transform: translateX(-50%) translateY(140%);
	transition: transform 0.35s ease;
}
.escbay-install-banner.is-visible { transform: translateX(-50%) translateY(0); }
.escbay-install-banner__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: block;
}
.escbay-install-banner__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.escbay-install-banner__title { font-size: 0.92rem; font-weight: 800; color: var(--escbay-white); }
.escbay-install-banner__text {
	font-size: 0.8rem;
	color: var(--escbay-gray);
	line-height: 1.5;
}
.escbay-install-banner__install {
	flex-shrink: 0;
	background: var(--escbay-glow-gradient);
	color: #fff;
	border: none;
	padding: 9px 18px;
	border-radius: 9px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}
.escbay-install-banner__close {
	position: absolute;
	top: 6px;
	inset-inline-end: 8px;
	background: none;
	border: none;
	color: var(--escbay-gray);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

@media (max-width: 1080px) { .escbay-shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .escbay-shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .escbay-shop-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   «سایر خدمات» هاب — تایل‌های آیکونی (ساخت اپل آیدی، گیفت‌کارت،
   شماره مجازی و…). برخلاف کارت‌های فروشگاهی، این‌ها معمولاً عکس واقعی
   ندارند، پس یک آیکون/مونوگرام رنگی جایگزینش می‌شود.
   ========================================================================== */
.escbay-services-hub__heading {
	text-align: center;
	margin-block: 8px 8px;
}
.escbay-services-hub__heading .escbay-section__title { margin-bottom: 8px; }
.escbay-services-hub__heading .escbay-section__text { margin: 0 auto; }

.escbay-service-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-block: 28px 56px;
}
.escbay-service-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	gap: 10px;
	min-height: 280px;
	padding: 30px 24px 28px;
	border-radius: 18px;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* حالت بدون عکس (فقط آیکون/مونوگرام) — آیکون رو در یه جای ثابت
   بالای کارت نگه می‌داریم (نه با margin:auto که به طول عنوان
   وابسته بود و باعث می‌شد آیکون‌ها توی یه ردیف هم‌تراز نباشن). */
.escbay-service-tile:not(.escbay-service-tile--has-image) {
	justify-content: flex-start;
}
.escbay-service-tile:hover {
	transform: translateY(-6px);
	border-color: var(--escbay-orange);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
/* When there's a real photo, darken the bottom so title/desc stay legible */
.escbay-service-tile--has-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.05) 100%);
	z-index: 0;
}
.escbay-service-tile--has-image .escbay-service-tile__body,
.escbay-service-tile--has-image .escbay-service-tile__cta {
	position: relative;
	z-index: 1;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 10px;
	padding: 8px 12px;
	margin-top: 4px;
}
.escbay-service-tile--has-image .escbay-service-tile__title,
.escbay-service-tile--has-image .escbay-service-tile__desc { color: #ffffff; }
.escbay-service-tile--has-image .escbay-service-tile__desc { color: rgba(255, 255, 255, 0.78); }

/* اگه ادمین «رنگ متن روی عکس» رو مشکی انتخاب کرده باشه (چون عکس
   خودش روشنه)، هم متن و هم پوششِ روی عکس رو معکوس می‌کنیم. */
.escbay-service-tile--dark-text.escbay-service-tile--has-image::before {
	background: linear-gradient(to top, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.4) 55%, rgba(255, 255, 255, 0.05) 100%);
}
.escbay-service-tile--dark-text.escbay-service-tile--has-image .escbay-service-tile__body {
	background: rgba(255, 255, 255, 0.55);
}
.escbay-service-tile--dark-text.escbay-service-tile--has-image .escbay-service-tile__title,
.escbay-service-tile--dark-text.escbay-service-tile--has-image .escbay-service-tile__desc { color: #1d1d1f; }
.escbay-service-tile--dark-text.escbay-service-tile--has-image .escbay-service-tile__desc { color: rgba(29, 29, 31, 0.78); }

.escbay-service-tile__icon {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: linear-gradient(135deg, var(--escbay-orange), var(--escbay-phosphor));
}
.escbay-service-tile:not(.escbay-service-tile--has-image) .escbay-service-tile__cta {
	margin-top: auto; /* پایین کارت می‌مونه، بدون اینکه آیکون/عنوانِ بالاش رو جابه‌جا کنه */
}
.escbay-service-tile__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.escbay-service-tile__monogram { font-size: 1.5rem; font-weight: 800; color: #fff; }
.escbay-service-tile__body { display: flex; flex-direction: column; gap: 6px; }
.escbay-service-tile__title { font-size: 1.1rem; font-weight: 700; }
.escbay-service-tile__desc { font-size: 0.85rem; line-height: 1.7; color: var(--escbay-gray); }
.escbay-service-tile__cta {
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--escbay-orange);
}
.escbay-service-tile__cta svg { transform: rotate(180deg); } /* rtl: arrow points left-to-right visually */

@media (max-width: 1080px) { .escbay-service-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .escbay-service-tiles { grid-template-columns: 1fr; min-height: 220px; } }

/* ==========================================================================
   Single secondhand product page
   ========================================================================== */
.escbay-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding-block: 48px 64px;
	align-items: start;
}

.escbay-product__media {
	position: relative;
	border-radius: var(--escbay-radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--escbay-bg-soft);
}
.escbay-product__media img { width: 100%; height: 100%; object-fit: cover; }

.escbay-product__info {
	border-radius: var(--escbay-radius);
	padding: 32px;
}

.escbay-product__cat {
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(91, 110, 232, 0.15);
	color: var(--escbay-orange);
	margin-bottom: 14px;
}

.escbay-product__title { font-size: 1.6rem; margin: 0 0 12px; }
.escbay-product__price { font-size: 1.5rem; font-weight: 800; color: var(--escbay-orange); margin: 0 0 14px; }
.escbay-product__condition { color: var(--escbay-gray); margin: 0 0 18px; }
.escbay-product__desc { color: var(--escbay-gray); line-height: 1.9; margin-bottom: 24px; }
.escbay-product__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.escbay-product__gallery {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}
.escbay-product__gallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--escbay-radius);
	background: var(--escbay-bg-soft);
}

.escbay-product__specs { border-radius: var(--escbay-radius); padding: 26px 28px; margin-bottom: 40px; }
.escbay-product__specs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px 32px;
}
.escbay-product__specs-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--escbay-border);
	font-size: 0.88rem;
}
.escbay-product__specs-label { color: var(--escbay-gray); }
.escbay-product__specs-value { font-weight: 700; }

@media (max-width: 780px) {
	.escbay-product { grid-template-columns: 1fr; padding-block: 32px 48px; }
	.escbay-product__gallery { grid-template-columns: repeat(3, 1fr); }
	.escbay-product__specs-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Daily price list — one styled table per category
   ========================================================================== */
.escbay-pricetables {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-bottom: 48px;
}

.escbay-pricetable {
	border-radius: var(--escbay-radius);
	padding: 26px 28px;
}

.escbay-pricetable__title {
	font-size: 1.15rem;
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--escbay-glass-border);
	display: flex;
	align-items: center;
	gap: 10px;
}
.escbay-pricetable__title::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--escbay-glow-gradient);
}

.escbay-pricetable__rows { display: flex; flex-direction: column; }

.escbay-pricetable__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px dashed var(--escbay-border);
}
.escbay-pricetable__row:last-child { border-bottom: none; }
.escbay-pricetable__row.is-unavailable { opacity: 0.5; }

.escbay-pricetable__name { font-weight: 600; font-size: 0.94rem; }
.escbay-pricetable__note { display: block; font-size: 0.78rem; color: var(--escbay-gray); font-weight: 400; margin-top: 3px; }

.escbay-pricetable__price {
	font-weight: 800;
	color: var(--escbay-orange);
	white-space: nowrap;
	font-size: 0.95rem;
}
.escbay-pricetable__row.is-unavailable .escbay-pricetable__price { color: var(--escbay-gray); }

.escbay-price-disclaimer {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 0.8rem;
	color: var(--escbay-gray);
	background: var(--escbay-bg-soft);
	border-radius: 10px;
	padding: 10px 16px;
	margin: 0 0 20px;
}
.escbay-price-disclaimer a { color: var(--escbay-orange); font-weight: 700; }

@media (max-width: 640px) {
	.escbay-pricetable { padding: 20px; }
}

/* ==========================================================================
   لیست قیمت روز (دستگاه‌های نو) — کارت هر مدل با عکس + ردیف‌های قیمت.
   کاملاً جدا از استایل‌های ماشین‌حساب قیمت‌گذاری و فروشگاه دست‌دوم.
   ========================================================================== */
.escbay-plmodel-sections {
	display: flex;
	flex-direction: column;
	gap: 44px;
	padding-bottom: 48px;
}

.escbay-plmodel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
	margin-top: 18px;
}

.escbay-plmodel-card {
	border-radius: var(--escbay-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.escbay-plmodel-card:hover {
	border-color: var(--escbay-orange);
	transform: translateY(-3px);
}

.escbay-plmodel-card__image {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: calc(var(--escbay-radius) - 4px);
	background: var(--escbay-bg-soft);
}

.escbay-plmodel-card__title {
	font-size: 1.05rem;
	margin: 0;
	font-weight: 800;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--escbay-border);
}
.escbay-plmodel-card__desc {
	margin: 0 0 4px;
	font-size: 0.8rem;
	color: var(--escbay-gray);
	line-height: 1.6;
}

.escbay-plmodel-card__rows {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.escbay-plmodel-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 8px;
	border-radius: 8px;
	font-size: 0.85rem;
}
.escbay-plmodel-row:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.escbay-plmodel-row.is-unavailable { opacity: 0.5; }

.escbay-plmodel-row__specs { color: var(--escbay-gray); line-height: 1.6; }
.escbay-plmodel-row__price {
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--escbay-orange);
	white-space: nowrap;
}
.escbay-plmodel-row.is-unavailable .escbay-plmodel-row__price { color: var(--escbay-gray); }

.escbay-plmodel-card__order {
	margin-top: 6px;
	width: 100%;
	justify-content: center;
	font-size: 0.85rem;
	padding: 10px;
}

@media (max-width: 640px) {
	.escbay-plmodel-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.escbay-plmodel-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
	.escbay-plmodel-row__price { white-space: normal; }
}

/* ==========================================================================
   صفحه قیمت‌گذاری — تایل‌های ۶‌گانهٔ انتخاب نوع دستگاه
   ========================================================================== */
.escbay-pricing-hub {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
	padding-block: 8px 56px;
}

.escbay-pricing-hub__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	height: 360px;
	padding: 32px 16px;
	border-radius: var(--escbay-radius);
	color: var(--escbay-white);
	border: 1px solid var(--escbay-glass-border);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}
.escbay-pricing-hub__tile:hover { transform: translateY(-5px); }

.escbay-pricing-hub__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.escbay-pricing-hub__tile.has-image .escbay-pricing-hub__overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}
.escbay-pricing-hub__tile.has-image.escbay-pricing-hub__tile--text-dark .escbay-pricing-hub__overlay {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.55));
}

.escbay-pricing-hub__tile--text-dark { color: #10240a; }

.escbay-pricing-hub__icon {
	width: 62px;
	height: 62px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	position: relative;
	z-index: 1;
}
.escbay-pricing-hub__tile--text-dark .escbay-pricing-hub__icon { background: rgba(0, 0, 0, 0.1); }

.escbay-pricing-hub__label,
.escbay-pricing-hub__desc { position: relative; z-index: 1; }
.escbay-pricing-hub__label { font-weight: 800; font-size: 1.02rem; }
.escbay-pricing-hub__desc { font-size: 0.78rem; opacity: 0.85; line-height: 1.7; }

.escbay-pricing-hub__tile--iphone:not(.has-image) {
	background: linear-gradient(155deg, #ff8a3d, #b3541a);
}
.escbay-pricing-hub__tile--macbook:not(.has-image) {
	background: linear-gradient(155deg, #4b4b52, #1c1c1f);
}
.escbay-pricing-hub__tile--console:not(.has-image) {
	background: linear-gradient(155deg, #2f6bff, #0f2f8c);
}
.escbay-pricing-hub__tile--ipad:not(.has-image) {
	background: linear-gradient(155deg, #a9b8ff, #4f5fc9);
	color: #10240a;
}
.escbay-pricing-hub__tile--ipad:not(.has-image) .escbay-pricing-hub__icon { background: rgba(0, 0, 0, 0.1); }
.escbay-pricing-hub__tile--applewatch:not(.has-image) {
	background: linear-gradient(155deg, #ff5f8f, #8c1a4b);
}
.escbay-pricing-hub__tile--airpods:not(.has-image) {
	background: linear-gradient(155deg, #e8e8ef, #9797a8);
	color: #1a1a20;
}
.escbay-pricing-hub__tile--airpods:not(.has-image) .escbay-pricing-hub__icon { background: rgba(0, 0, 0, 0.08); }

@media (max-width: 1100px) {
	.escbay-pricing-hub { grid-template-columns: repeat(3, 1fr); }
}
/* موبایل: به‌جای فشرده‌شدن تایل‌ها توی ستون‌های تنگ، ردیف عمودی نگه
   داشته می‌شود ولی به‌صورت افقی اسکرول/سوایپ می‌شود — هر تایل عرض ثابت
   خودش را دارد و کمی از تایل بعدی هم دیده می‌شود تا کاربر بفهمد قابل
   کشیدن است. */
@media (max-width: 900px) {
	.escbay-pricing-hub {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-inline: 4px;
		margin-inline: -4px;
	}
	.escbay-pricing-hub__tile {
		flex: 0 0 220px;
		height: 300px;
		scroll-snap-align: start;
	}
}
@media (max-width: 480px) {
	.escbay-pricing-hub__tile { flex-basis: 190px; height: 250px; }
}

/* ==========================================================================
   محصولات دیجیتال — گیفت‌کارت / هوش مصنوعی / سیم‌کارت
   (see inc/digital-products.php, single-escbay_digital.php,
   page-templates/template-digital-hub.php)
   ========================================================================== */

/* Hub page: colorful tile grid */
.escbay-digital-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-block: 28px 56px;
}
.escbay-digital-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
	border-radius: var(--escbay-radius);
	overflow: hidden;
	padding: 20px;
	text-decoration: none;
	color: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.escbay-digital-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32); }
.escbay-digital-tile__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.escbay-digital-tile__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
}
.escbay-digital-tile__title,
.escbay-digital-tile__desc,
.escbay-digital-tile__price {
	position: relative;
	z-index: 2;
}
.escbay-digital-tile__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.escbay-digital-tile__desc { font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 8px; display: block; }
.escbay-digital-tile__price { font-size: 0.85rem; font-weight: 700; color: #fff; }

@media (max-width: 1080px) { .escbay-digital-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .escbay-digital-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .escbay-digital-grid { grid-template-columns: 1fr; } }

/* Single product page: hero (info + media side by side) */
.escbay-digital-hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
	text-align: right;
}
.escbay-digital-hero__crumb { margin: 0 0 6px; font-size: 0.82rem; }
.escbay-digital-hero__crumb a { color: var(--escbay-gray); text-decoration: none; }
.escbay-digital-hero__crumb a:hover { color: var(--escbay-orange); }
.escbay-digital-hero__price {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--escbay-orange);
	margin: 12px 0 20px;
}
.escbay-digital-hero__row {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 16px;
	margin-bottom: 20px;
}
.escbay-digital-hero__label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--escbay-gray);
}
.escbay-digital-hero__label select {
	font-family: var(--escbay-font);
	font-size: 0.9rem;
	color: var(--escbay-white);
	background: var(--escbay-bg-soft);
	border: 1px solid var(--escbay-border);
	border-radius: 8px;
	padding: 10px 12px;
	min-width: 220px;
}
.escbay-digital-hero__qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--escbay-border);
	border-radius: 8px;
	overflow: hidden;
}
.escbay-digital-hero__qty button {
	width: 38px;
	height: 40px;
	background: var(--escbay-bg-soft);
	border: none;
	color: var(--escbay-white);
	font-size: 1.1rem;
	cursor: pointer;
}
.escbay-digital-hero__qty button:hover { color: var(--escbay-orange); }
.escbay-digital-hero__qty input {
	width: 44px;
	height: 40px;
	text-align: center;
	border: none;
	border-inline: 1px solid var(--escbay-border);
	background: transparent;
	color: var(--escbay-white);
	font-family: var(--escbay-font);
}
.escbay-digital-hero__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--escbay-radius);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.escbay-digital-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.escbay-digital-hero__monogram { font-size: 4rem; font-weight: 800; color: rgba(255, 255, 255, 0.9); }

@media (max-width: 780px) {
	.escbay-digital-hero { grid-template-columns: 1fr; text-align: center; }
	.escbay-digital-hero__row { justify-content: center; }
	.escbay-digital-hero__media { order: -1; max-width: 420px; margin-inline: auto; }
}

/* Delivery-info cards row */
.escbay-digital-infocards {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	margin-block: 8px 40px;
}
.escbay-digital-infocard {
	background: var(--escbay-glass-bg);
	border: 1px solid var(--escbay-border);
	border-radius: 14px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.escbay-digital-infocard__label { font-size: 0.78rem; color: var(--escbay-gray); }
.escbay-digital-infocard__value { font-size: 0.9rem; font-weight: 700; }

@media (max-width: 1080px) { .escbay-digital-infocards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .escbay-digital-infocards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Override: auction plugin's list-card (.escbay-au-list-card) has its own
   hardcoded stylesheet that doesn't know about the theme's dark/light mode
   — its text was unreadable in dark mode. Forcing theme-aware colors here.
   ========================================================================== */
.escbay-au-list-card {
	background: var(--escbay-card) !important;
	border: 1px solid var(--escbay-border) !important;
}
.escbay-au-list-card__body {
	background: transparent !important;
}
.escbay-au-list-card__title {
	color: var(--escbay-white) !important;
	font-weight: 700 !important;
}
.escbay-au-list-card__price {
	color: var(--escbay-orange) !important;
	font-weight: 800 !important;
}
.escbay-au-list-card__meta {
	color: var(--escbay-gray) !important;
}

/* ==========================================================================
   مقایسهٔ دستگاه‌ها (see inc/device-compare.php, template-device-compare.php)
   ========================================================================== */
.escbay-dc-tabs {
	display: flex;
	gap: 10px;
	margin-block: 20px;
	flex-wrap: wrap;
}
.escbay-dc-tab {
	font-family: var(--escbay-font);
	font-size: 0.9rem;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid var(--escbay-border);
	background: transparent;
	color: var(--escbay-gray);
	cursor: pointer;
	transition: all 0.2s ease;
}
.escbay-dc-tab.is-active {
	background: var(--escbay-orange);
	border-color: var(--escbay-orange);
	color: #fff;
}
.escbay-dc-selects {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}
.escbay-dc-select {
	flex: 1 1 200px;
	font-family: var(--escbay-font);
	font-size: 0.88rem;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--escbay-border);
	background: var(--escbay-bg-soft);
	color: var(--escbay-white);
}
.escbay-dc-result { margin-top: 28px; overflow-x: auto; }
.escbay-dc-result {
	background: #ffffff;
	border-radius: var(--escbay-radius);
	padding: 20px;
}
.escbay-dc-result .escbay-dc-summary {
	background: #f5f5f7;
	border-color: #e5e5e7;
}
.escbay-dc-result .escbay-dc-summary li { color: #1d1d1f; }
.escbay-dc-result .escbay-dc-summary li.is-best { color: var(--escbay-orange); }
.escbay-dc-result .escbay-dc-summary__note { color: #6e6e73; }
.escbay-dc-result .escbay-dc-row { border-color: #e5e5e7; }
.escbay-dc-result .escbay-dc-row--head .escbay-dc-cell { border-bottom-color: var(--escbay-orange); }
.escbay-dc-result .escbay-dc-cell { color: #1d1d1f; border-bottom-color: #e5e5e7; }
.escbay-dc-result .escbay-dc-cell--label { color: #6e6e73; }
.escbay-dc-result .escbay-dc-excerpt { color: #6e6e73; }
.escbay-dc-table { display: table; width: 100%; border-collapse: collapse; min-width: 480px; }
.escbay-dc-row { display: table-row; }
.escbay-dc-row--head .escbay-dc-cell {
	border-bottom: 2px solid var(--escbay-orange);
	padding-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 10;
	background: #ffffff;
	padding-top: 10px;
}
.escbay-dc-row--head img { max-width: 90px; display: block; margin: 0 auto 8px; }
.escbay-dc-excerpt { display: block; font-size: 0.72rem; font-weight: 400; color: var(--escbay-gray); margin-top: 4px; }
.escbay-dc-cell {
	display: table-cell;
	padding: 12px 16px;
	border-bottom: 1px solid var(--escbay-border);
	font-size: 0.85rem;
	text-align: center;
	vertical-align: middle;
}
.escbay-dc-cell--label {
	text-align: right;
	font-weight: 700;
	color: var(--escbay-gray);
	white-space: nowrap;
}
.escbay-dc-diff {
	color: #2a9d3f;
	font-weight: 700;
	font-size: 0.78rem;
	display: block;
}
.escbay-dc-source {
	font-size: 0.78rem;
	color: var(--escbay-gray);
	text-align: center;
	margin-block: 24px 8px;
}
.escbay-dc-summary {
	background: var(--escbay-glass-bg);
	border: 1px solid var(--escbay-border);
	border-radius: var(--escbay-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
}
.escbay-dc-summary h3 { margin: 0 0 12px; font-size: 1rem; }
.escbay-dc-summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.escbay-dc-summary li { font-size: 0.9rem; font-weight: 600; }
.escbay-dc-summary li.is-best { color: var(--escbay-orange); font-weight: 800; }
.escbay-dc-summary__note { margin: 14px 0 0; font-size: 0.78rem; color: var(--escbay-gray); }
@media (max-width: 640px) {
	.escbay-dc-cell { font-size: 0.78rem; padding: 10px 8px; }
}

/* جدول ثابت مبلغ گمرکی تقریبی ریجستری (inc/service-orders.php) */
.escbay-reg-fee-table {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 14px 0 18px;
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid var(--escbay-border);
	border-radius: 10px;
	padding: 6px;
	background: #ffffff;
}
.escbay-reg-fee-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 10px;
	font-size: 0.85rem;
	border-radius: 6px;
	color: #1d1d1f;
}
.escbay-reg-fee-row:nth-child(odd) { background: rgba(0, 0, 0, 0.03); }
.escbay-reg-fee-row--head {
	position: sticky;
	top: -6px;
	font-weight: 800;
	color: var(--escbay-orange);
	background: #ffffff !important;
	border-bottom: 1px solid #e5e5e7;
	border-radius: 0;
	z-index: 1;
}

/* دکمهٔ برگشت فقط-فلش (مثل اپل) — escbay_render_back_link() */
.escbay-back-link {
	position: fixed;
	top: 140px;
	right: 20px;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--escbay-border);
	color: var(--escbay-white);
	background: var(--escbay-glass-bg);
	backdrop-filter: var(--escbay-glass-blur);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	transition: background 0.2s ease, transform 0.15s ease;
}
.escbay-back-link:hover { background: var(--escbay-orange); color: #fff; transform: translateX(-3px); }
html.escbay-light-mode .escbay-back-link:hover { color: #fff; }
@media (max-width: 640px) {
	.escbay-back-link { top: 110px; right: 12px; width: 36px; height: 36px; }
}

/* «درخواست‌های من» توی حساب کاربری (page-templates/template-account.php) */
.escbay-my-requests { display: flex; flex-direction: column; gap: 14px; }
.escbay-my-requests__item { padding: 18px 20px; }
.escbay-my-requests__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.escbay-my-requests__status { font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.escbay-my-requests__status--pending { background: rgba(192, 57, 43, 0.15); color: #c0392b; }
.escbay-my-requests__status--answered { background: rgba(42, 157, 63, 0.15); color: #2a9d3f; }
.escbay-my-requests__status--closed { background: rgba(136, 136, 136, 0.15); color: #888; }
.escbay-my-requests__date { font-size: 0.78rem; color: var(--escbay-gray); margin: 6px 0 0; }
.escbay-my-requests__details { font-size: 0.85rem; margin: 8px 0 0; }
.escbay-my-requests__reply { font-size: 0.85rem; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--escbay-border); color: var(--escbay-orange); }

/* مودال «سفارش این مدل» (لیست قیمت روز) */
.escbay-pl-order-modal[hidden] { display: none; }
.escbay-pl-order-modal {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.escbay-pl-order-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}
.escbay-pl-order-modal__box {
	position: relative;
	z-index: 1;
	width: 90%;
	max-width: 380px;
	padding: 28px 24px;
	background: var(--escbay-bg);
}
.escbay-pl-order-modal__close {
	position: absolute;
	top: 10px;
	left: 10px;
	background: none;
	border: none;
	font-size: 1.4rem;
	color: var(--escbay-gray);
	cursor: pointer;
	line-height: 1;
}

/* فضای تبلیغاتی (escbay_render_ad_slot) */
.escbay-ad-slot {
	display: block;
	margin-block: 24px;
	border-radius: var(--escbay-radius);
	overflow: hidden;
	border: 1px solid var(--escbay-border);
}
.escbay-ad-slot img {
	width: 100%;
	height: auto;
	display: block;
}

/* اسکرول نرم برای دکمهٔ «برای ثبت کلیک کنید» (single-escbay_service.php) */
html { scroll-behavior: smooth; }
#escbay-order-form { scroll-margin-top: 100px; }
.escbay-dc-result { scroll-margin-top: 100px; }
#escbay-insp-form { scroll-margin-top: 100px; }

/* دکمهٔ ثابت «دیدن دستهٔ بعدی» (لیست قیمت روز) */
.escbay-pl-next-btn {
	position: fixed;
	bottom: 100px;
	right: 20px;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	background: var(--escbay-space-green);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	box-shadow: 0 10px 28px rgba(0, 196, 140, 0.4);
	cursor: pointer;
	transition: transform 0.15s ease;
}
.escbay-pl-next-btn:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
	.escbay-pl-next-btn { bottom: 84px; right: 12px; padding: 10px 14px; font-size: 0.78rem; }
}

.escbay-pl-next-btn__arrow {
	display: inline-flex;
	transition: transform 0.25s ease;
}

/* ==========================================================================
   مگامنوی حرفه‌ای — escbay_fallback_menu() در functions.php
   ========================================================================== */
.escbay-nav__list .sub-menu.escbay-mega__panel {
	min-width: 560px;
	max-width: 92vw;
	padding: 22px 26px;
	background: rgba(12, 12, 16, 0.92);
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
html.escbay-light-mode .escbay-nav__list .sub-menu.escbay-mega__panel {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(0, 0, 0, 0.08);
}
.escbay-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 28px;
}
.escbay-mega__col {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.escbay-nav__list .sub-menu.escbay-mega__panel .escbay-mega__col-heading {
	display: block;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	color: var(--escbay-orange);
	text-transform: none;
	padding: 4px 6px 10px;
	margin: 0;
	border: none;
	white-space: normal;
}
a.escbay-mega__col-heading:hover { color: var(--escbay-orange); filter: brightness(1.15); }
.escbay-nav__list .sub-menu.escbay-mega__panel .escbay-mega__link {
	display: block;
	padding: 7px 6px;
	border-radius: 8px;
	font-size: 0.86rem;
	color: var(--escbay-gray);
	white-space: normal;
	line-height: 1.5;
}
.escbay-nav__list .sub-menu.escbay-mega__panel .escbay-mega__link:hover {
	background: rgba(255, 138, 61, 0.1);
	color: var(--escbay-white);
}
@media (max-width: 960px) {
	.escbay-nav__list .sub-menu.escbay-mega__panel {
		position: static;
		min-width: 0;
		max-width: none;
		width: 100%;
		box-shadow: none;
		border: none;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		padding: 4px 0 4px 16px;
	}
	.escbay-mega__grid { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   نوشتهٔ تایل‌ها — درشت‌تر و بولدتر تا بهتر به چشم بیاد
   ========================================================================== */
.escbay-service-tile__title {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.005em;
}
.escbay-service-tile__desc {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.75;
}
.escbay-service-tile__cta {
	font-size: 0.98rem;
	font-weight: 800;
}
.escbay-service-tile--has-image .escbay-service-tile__title,
.escbay-service-tile--has-image .escbay-service-tile__desc {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.escbay-service-tile--dark-text.escbay-service-tile--has-image .escbay-service-tile__title,
.escbay-service-tile--dark-text.escbay-service-tile--has-image .escbay-service-tile__desc {
	text-shadow: none;
}

.escbay-features__text { font-size: 0.95rem; font-weight: 600; }
.escbay-features__text strong { font-size: 1.1rem; font-weight: 800; }

.escbay-home-cats__item { font-size: 0.98rem; font-weight: 700; padding: 10px 22px; }
.escbay-home-suggestions__title { font-size: 0.95rem; font-weight: 800; }
.escbay-shop-card__title { font-size: 1.12rem; font-weight: 800; }
.escbay-plmodel-card__title { font-size: 1.2rem; font-weight: 800; }

@media (max-width: 640px) {
	.escbay-service-tile__title { font-size: 1.3rem; }
	.escbay-service-tile__desc { font-size: 0.95rem; }
}

/* ==========================================================================
   تایل‌های «قیمت‌گذاری» و «دست‌دوم» (escbay-pricing-hub__tile) —
   نوشتهٔ درشت‌تر/بولدتر + رنگ سفیدِ ثابت روی عکس (نه متغیری که توی حالت
   روز تیره می‌شد و روی پوششِ تیره گم می‌شد)
   ========================================================================== */
.escbay-pricing-hub__label {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.35;
}
.escbay-pricing-hub__desc {
	font-size: 0.98rem;
	font-weight: 600;
	opacity: 1;
	line-height: 1.75;
}
.escbay-pricing-hub__tile.has-image:not(.escbay-pricing-hub__tile--text-dark) {
	color: #ffffff;
}
.escbay-pricing-hub__tile.has-image:not(.escbay-pricing-hub__tile--text-dark) .escbay-pricing-hub__label,
.escbay-pricing-hub__tile.has-image:not(.escbay-pricing-hub__tile--text-dark) .escbay-pricing-hub__desc {
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.escbay-pricing-hub__tile.has-image .escbay-pricing-hub__overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.7));
}
@media (max-width: 640px) {
	.escbay-pricing-hub__label { font-size: 1.3rem; }
	.escbay-pricing-hub__desc { font-size: 0.9rem; }
}

/* ==========================================================================
   بخش «خدمات تعمیرات تخصصی» — ۴ مرحله با خط اتصال
   ========================================================================== */
.escbay-repair-process {
	position: relative;
	margin-block: 56px;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--escbay-glass-border);
	background: var(--escbay-glass-bg);
}
.escbay-repair-process__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: brightness(0.35) saturate(1.1);
	z-index: 0;
}
html.escbay-light-mode .escbay-repair-process__media { filter: brightness(0.32) saturate(1.1); }
/* یه پوشش تیرهٔ ثابت هم روی خودِ عکس (نه فقط فیلتر روشنایی) — تضمین
   می‌کنه نوشتهٔ سفید همیشه خونا بمونه، مستقل از اینکه خودِ عکس
   چقدر روشن/تیره باشه. */
.escbay-repair-process__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.55) 100%);
}
.escbay-repair-process__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 36px 32px;
}
.escbay-repair-process__head { max-width: 260px; }
.escbay-repair-process__title { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.escbay-repair-process__text { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.85); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.escbay-repair-process__steps {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.escbay-repair-process__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	position: relative;
	width: 110px;
	text-align: center;
}
.escbay-repair-process__step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 47px;
	inset-inline-start: calc(50% + 28px);
	width: calc(100% - 30px);
	height: 1px;
	background: var(--escbay-orange);
	opacity: 0.4;
}
.escbay-repair-process__step-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1.5px solid var(--escbay-orange);
	color: var(--escbay-orange);
	background: rgba(232, 130, 46, 0.1);
}
.escbay-repair-process__step-num {
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--escbay-orange);
}
.escbay-repair-process__step-label { font-size: 0.85rem; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.escbay-repair-process__cta { flex-shrink: 0; }
@media (max-width: 900px) {
	.escbay-repair-process__inner { flex-direction: column; align-items: flex-start; }
	.escbay-repair-process__steps { justify-content: center; width: 100%; }
	.escbay-repair-process__cta { align-self: center; }
}
@media (max-width: 480px) {
	.escbay-repair-process__step { width: 78px; }
	.escbay-repair-process__step:not(:last-child)::after { inset-inline-start: calc(50% + 20px); width: calc(100% - 20px); }
}

/* برچسب «در حال تکمیل» روی تایل‌های قیمت‌گذاری که هنوز آماده نیستن */
.escbay-pricing-hub__badge {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	z-index: 2;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #e8822e, #c96a1f);
	box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.4);
}

/* نوار کوچیک «نرخ دلار» بالای صفحهٔ قیمت‌گذاری/فروش */
.escbay-dollar-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--escbay-orange);
	background: rgba(232, 130, 46, 0.1);
	border: 1px solid rgba(232, 130, 46, 0.3);
}

/* ==========================================================================
   تعمیرات سخت‌افزاری — نوار اعتماد + ویزارد (تایل‌های افقی)
   ========================================================================== */
.escbay-hw-trust {
	list-style: none;
	margin: 28px 0 8px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.escbay-hw-trust__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--escbay-glass-bg);
	border: 1px solid var(--escbay-glass-border);
	-webkit-backdrop-filter: var(--escbay-glass-blur);
	backdrop-filter: var(--escbay-glass-blur);
}
.escbay-hw-trust__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: var(--escbay-orange);
	background: rgba(var(--escbay-accent-1), 0.12);
}
.escbay-hw-trust__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.escbay-hw-trust__text strong { font-size: 0.95rem; color: var(--escbay-white); }
.escbay-hw-trust__text span { font-size: 0.78rem; line-height: 1.7; color: var(--escbay-gray); }

.escbay-hw {
	margin-block: 20px 48px;
	padding: 34px 30px 38px;
	border-radius: 22px;
}
.escbay-hw__head { text-align: center; margin-bottom: 26px; }
.escbay-hw__title { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; color: var(--escbay-white); }
.escbay-hw__lead { margin: 0 auto; max-width: 620px; font-size: 0.92rem; line-height: 1.9; color: var(--escbay-gray); }
.escbay-hw__error {
	margin: 0 auto 18px;
	max-width: 620px;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 0.88rem;
	text-align: center;
	color: #e5484d;
	background: rgba(229, 72, 77, 0.1);
	border: 1px solid rgba(229, 72, 77, 0.35);
}
.escbay-hw__form { display: flex; flex-direction: column; gap: 26px; }
.escbay-hw__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.escbay-hw__step legend {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	margin-bottom: 14px;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--escbay-white);
}
.escbay-hw__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 0.82rem;
	color: #fff;
	background: var(--escbay-glow-gradient);
}
/* مرحله‌ها فقط وقتی JS فعاله مخفی می‌شن و یکی‌یکی باز می‌شن */
.escbay-hw--js .escbay-hw__step:not(.is-open) { display: none; }
.escbay-hw--js .escbay-hw__step.is-open { animation: escbayHwIn 0.35s ease both; }
@keyframes escbayHwIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

.escbay-hw__grid { display: grid; gap: 14px; }
.escbay-hw__grid--devices { grid-template-columns: repeat(3, 1fr); }
.escbay-hw__grid--issues  { grid-template-columns: repeat(2, 1fr); }

/* تایل افقی: آیکون کنار متن */
.escbay-hw__choice {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	cursor: pointer;
	color: var(--escbay-white);
	background: var(--escbay-glass-bg);
	border: 1px solid var(--escbay-glass-border);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.escbay-hw__choice:hover { transform: translateY(-2px); border-color: var(--escbay-orange); }
.escbay-hw__choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.escbay-hw__choice-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	color: var(--escbay-orange);
	background: rgba(var(--escbay-accent-1), 0.12);
	transition: background 0.2s ease, color 0.2s ease;
}
.escbay-hw__choice-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.escbay-hw__choice-body strong { font-size: 0.98rem; font-weight: 700; }
.escbay-hw__choice-desc { font-size: 0.78rem; line-height: 1.7; color: var(--escbay-gray); }
.escbay-hw__choice-price { font-size: 0.78rem; font-weight: 700; color: var(--escbay-orange); }
.escbay-hw__tick {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: transparent;
	border: 1.5px solid var(--escbay-border);
	transition: all 0.2s ease;
}
.escbay-hw__choice.is-checked,
.escbay-hw__choice:has(input:checked) {
	border-color: var(--escbay-orange);
	box-shadow: 0 0 0 3px rgba(var(--escbay-accent-1), 0.16);
}
.escbay-hw__choice.is-checked .escbay-hw__choice-icon,
.escbay-hw__choice:has(input:checked) .escbay-hw__choice-icon {
	color: #fff;
	background: var(--escbay-glow-gradient);
}
.escbay-hw__choice.is-checked .escbay-hw__tick,
.escbay-hw__choice:has(input:checked) .escbay-hw__tick {
	color: #fff;
	border-color: transparent;
	background: var(--escbay-orange);
}
.escbay-hw__choice:has(input:focus-visible) { outline: 2px solid var(--escbay-orange); outline-offset: 2px; }

.escbay-hw__select,
.escbay-hw__field input,
.escbay-hw__field textarea,
.escbay-hw__field select {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--escbay-font);
	font-size: 0.92rem;
	color: var(--escbay-white);
	background: var(--escbay-bg-soft);
	border: 1px solid var(--escbay-border);
	border-radius: 12px;
	padding: 12px 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.escbay-hw__select { max-width: 420px; }
.escbay-hw__select:focus,
.escbay-hw__field input:focus,
.escbay-hw__field textarea:focus,
.escbay-hw__field select:focus {
	outline: none;
	border-color: var(--escbay-orange);
	box-shadow: 0 0 0 3px rgba(var(--escbay-accent-1), 0.15);
}
.escbay-hw__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 14px;
	font-size: 0.86rem;
	color: var(--escbay-gray);
}
.escbay-hw__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.escbay-hw__contact .escbay-hw__field { margin-top: 0; }
.escbay-hw__promise {
	list-style: none;
	margin: 18px 0 20px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}
.escbay-hw__promise li {
	position: relative;
	padding-inline-start: 22px;
	font-size: 0.86rem;
	color: var(--escbay-white);
}
.escbay-hw__promise li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background: var(--escbay-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.escbay-hw__done { text-align: center; padding: 18px 8px; }
.escbay-hw__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 50%;
	color: #fff;
	background: var(--escbay-glow-gradient);
}
.escbay-hw__done h2 { margin: 0 0 8px; color: var(--escbay-white); }
.escbay-hw__done p { margin: 0 auto; max-width: 560px; line-height: 1.9; color: var(--escbay-gray); }
.escbay-hw-more-title { margin: 8px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--escbay-white); }

@media (max-width: 1080px) {
	.escbay-hw-trust { grid-template-columns: repeat(2, 1fr); }
	.escbay-hw__grid--devices { grid-template-columns: repeat(2, 1fr); }
	.escbay-hw__contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.escbay-hw { padding: 24px 16px 28px; }
	.escbay-hw-trust { grid-template-columns: 1fr; }
	.escbay-hw__grid--devices,
	.escbay-hw__grid--issues { grid-template-columns: 1fr; }
	.escbay-hw__choice-icon { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.escbay-hw--js .escbay-hw__step.is-open { animation: none; }
	.escbay-hw__choice { transition: none; }
}
.escbay-hw__issuegroup[hidden] { display: none !important; }

/* تایل دستگاه در صفحهٔ اصلی تعمیرات + توضیح زیر آن */
.escbay-hw__grid--hub { margin-block: 28px 8px; }
.escbay-hw__devtile { text-decoration: none; }
.escbay-hw__devtile:hover .escbay-hw__choice-icon {
	color: #fff;
	background: var(--escbay-glow-gradient);
}
.escbay-hw__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--escbay-gray);
	transition: transform 0.2s ease, color 0.2s ease;
}
.escbay-hw__devtile:hover .escbay-hw__arrow { color: var(--escbay-orange); transform: translateX(-4px); }
.escbay-hw-intro { text-align: center; margin: 28px auto 4px; max-width: 760px; }
.escbay-hw-intro__title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; color: var(--escbay-white); }
.escbay-hw-intro__text { margin: 0; font-size: 0.95rem; line-height: 2; color: var(--escbay-gray); }

/* تایل‌های دستگاه در صفحهٔ تعمیرات — همان تایل قیمت‌گذاری، با تعداد دلخواه */
.escbay-pricing-hub__tile--custom:not(.has-image) {
	background: linear-gradient(155deg, #5b6ee8, #2c3a9c);
}
.escbay-pricing-hub__tile { text-decoration: none; }
@media (min-width: 901px) {
	.escbay-pricing-hub--auto { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}

/* لینک «توضیحات کامل‌تر» زیر هر خدمت */
.escbay-hw__more {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #0071e3;
	text-decoration: none;
	transition: gap 0.2s ease, opacity 0.2s ease;
}
.escbay-hw__more:hover { gap: 8px; opacity: 0.85; text-decoration: underline; text-underline-offset: 3px; }
html:not(.escbay-light-mode) .escbay-hw__more { color: #4da3ff; }

/* تایل غیرفعال (مثلاً «فروش قطعات — در دست ساخت») */
.escbay-pricing-hub__tile.is-disabled { cursor: default; filter: saturate(0.7); }
.escbay-pricing-hub__tile.is-disabled:hover { transform: none; }

/* منوی تک‌ستونه — کشوی جمع‌وجور زیر خود آیتم (نه مگامنوی عریض) */
@media (min-width: 961px) {
	.escbay-mega--compact > .sub-menu.escbay-mega__panel {
		min-width: 190px;
		width: max-content;
		max-width: 280px;
		padding: 8px;
	}
	.escbay-mega--compact .escbay-mega__grid {
		display: flex;
		flex-direction: column;
		gap: 0;
	}
	.escbay-mega--compact .escbay-mega__col-heading { padding: 6px 12px 8px; }
	.escbay-nav__list .escbay-mega--compact .sub-menu.escbay-mega__panel .escbay-mega__link {
		padding: 9px 12px;
		white-space: nowrap;
	}
}

/* ===== لیست کامل کنسول (نو / دست‌دوم / بازی) ===== */
.escbay-cc__bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:12px 14px;margin:18px 0}
.escbay-cc__tabs{display:flex;flex-wrap:wrap;gap:8px}
.escbay-cc__tab{border:1px solid rgba(0,0,0,.12);background:transparent;border-radius:999px;padding:7px 14px;font:inherit;font-size:.9rem;cursor:pointer;color:inherit}
.escbay-cc__tab span{opacity:.6;font-size:.8rem;margin-inline-start:4px}
.escbay-cc__tab.is-active{background:var(--escbay-primary,#1d1d1f);color:#fff;border-color:transparent}
.escbay-cc__tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.escbay-cc__search,.escbay-cc__sort select{font:inherit;font-size:.9rem;padding:7px 12px;border:1px solid rgba(0,0,0,.15);border-radius:10px;background:#fff;color:inherit}
.escbay-cc__sort{display:flex;align-items:center;gap:6px;font-size:.88rem}
.escbay-cc__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-bottom:24px}
.escbay-cc__item{display:flex;flex-direction:column;text-decoration:none;color:inherit;overflow:hidden;padding:0}
.escbay-cc__item[hidden]{display:none!important}
.escbay-cc__media{position:relative;display:block;aspect-ratio:4/3;background:rgba(0,0,0,.04)}
.escbay-cc__media img{width:100%;height:100%;object-fit:contain;display:block}
.escbay-cc__badge{position:absolute;top:10px;inset-inline-start:10px;font-size:.75rem;padding:3px 10px;border-radius:999px;background:#fff;color:#1d1d1f;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.escbay-cc__badge--new{background:#e6f7ec;color:#116a35}
.escbay-cc__badge--used{background:#fff3e0;color:#9a5b00}
.escbay-cc__badge--game{background:#e8eefc;color:#2446a6}
.escbay-cc__body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 14px}
.escbay-cc__title{font-weight:700;font-size:1rem;line-height:1.5}
.escbay-cc__note{font-size:.82rem;opacity:.7}
.escbay-cc__meta{display:flex;justify-content:space-between;gap:8px;font-size:.85rem;margin-top:2px}
.escbay-cc__year{opacity:.65}
.escbay-cc__price{font-weight:700}
.escbay-cc__item.is-sold{opacity:.65}
@media(max-width:600px){.escbay-cc__grid{grid-template-columns:repeat(2,1fr);gap:10px}.escbay-cc__tools{width:100%}.escbay-cc__search{flex:1}}
.escbay-cc__admin-hint{margin:14px 0;padding:12px 16px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;font-size:.88rem;background:rgba(255,193,7,.08)}
.escbay-cc__admin-hint ul{margin:6px 0 0;padding-inline-start:18px}
.escbay-cc__views{display:flex;gap:4px}
.escbay-cc__view{border:1px solid rgba(0,0,0,.15);background:#fff;border-radius:8px;padding:6px 8px;cursor:pointer;color:inherit;display:inline-flex}
.escbay-cc__view.is-active{background:var(--escbay-primary,#1d1d1f);color:#fff;border-color:transparent}
.escbay-cc__grid.is-list{grid-template-columns:1fr;gap:8px}
.escbay-cc__grid.is-list .escbay-cc__item{flex-direction:row;align-items:center}
.escbay-cc__grid.is-list .escbay-cc__media{width:84px;flex:none;aspect-ratio:1/1}
.escbay-cc__grid.is-list .escbay-cc__badge{position:static;display:none}
.escbay-cc__grid.is-list .escbay-cc__body{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.escbay-cc__grid.is-list .escbay-cc__meta{gap:16px;margin:0}
.escbay-cc-extra{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;padding:18px 20px;margin:20px 0}
.escbay-cc-extra h2{margin:0 0 4px;font-size:1.1rem}
.escbay-cc-extra p{margin:0}
.escbay-cc-software{margin:28px 0}
.escbay-cc__search,.escbay-cc__sort select{color:#1d1d1f}
.escbay-cc-tiles{margin-bottom:8px}

/* ===== اعلان‌ها (زنگ هدر) ===== */
.escbay-notif{position:relative}
.escbay-notif__btn{position:relative}
.escbay-notif__badge{position:absolute;top:-2px;inset-inline-end:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#e5484d;color:#fff;font-size:.68rem;line-height:17px;text-align:center;font-weight:700}
.escbay-notif__badge[hidden]{display:none}
.escbay-notif__panel{position:absolute;top:calc(100% + 10px);inset-inline-end:0;width:min(340px,92vw);max-height:70vh;overflow:auto;background:#17171b;color:#f2f2f4;border:1px solid rgba(255,255,255,.12);border-radius:14px;box-shadow:0 12px 36px rgba(0,0,0,.45);z-index:1200}
.escbay-notif__panel[hidden]{display:none}
.escbay-notif__head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.1)}
.escbay-notif__markall,.escbay-notif__enable{background:none;border:0;color:#ff8a3d;cursor:pointer;font:inherit;font-size:.82rem}
.escbay-notif__enable{display:block;width:100%;padding:12px;border-top:1px solid rgba(255,255,255,.1)}
.escbay-notif__enable[hidden]{display:none}
.escbay-notif__list{list-style:none;margin:0;padding:0}
.escbay-notif__item a,.escbay-notif__item>span{display:flex;flex-direction:column;gap:3px;padding:11px 14px;text-decoration:none;color:inherit;border-bottom:1px solid rgba(255,255,255,.06)}
.escbay-notif__item.is-unread{background:rgba(255,138,61,.1)}
.escbay-notif__text{font-size:.85rem;opacity:.8}
.escbay-notif__item small{opacity:.55;font-size:.74rem}
.escbay-notif__empty{margin:0;padding:18px 14px;text-align:center;opacity:.6;font-size:.88rem}
.escbay-notif__empty[hidden]{display:none}

/* ===== هدر موبایل: با اضافه‌شدن تلفن و زنگ از عرض صفحه بیرون نزند ===== */
html{overflow-x:hidden;max-width:100%}
@media (max-width:560px){
	.escbay-header__inner{gap:6px}
	.escbay-header__inner>*{min-width:0}
	.escbay-logo{flex:1 1 auto;min-width:0;overflow:hidden}
	.escbay-logo__link{min-width:0}
	.escbay-logo__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
	.escbay-header__actions{gap:0;flex:0 0 auto}
	.escbay-header__actions .escbay-icon-btn{width:34px;height:34px}
	.escbay-header__actions .escbay-icon-btn svg{width:18px;height:18px}
	.escbay-notif__panel{position:fixed;top:72px;inset-inline:8px;width:auto}
}

/* ===== نوار مدیریت وردپرس: هدر سایت زیرش گم نشود (فقط برای مدیر لاگین‌شده) ===== */
.admin-bar .escbay-header{top:32px}
.admin-bar .escbay-search-overlay{top:calc(32px + 84px)}
@media (max-width:782px){
	.admin-bar .escbay-header{top:46px}
	.admin-bar .escbay-search-overlay{top:calc(46px + 68px)}
}
@media (max-width:600px){
	/* وردپرس زیر ۶۰۰px نوار را absolute می‌کند و با اسکرول می‌رود؛ ثابتش می‌کنیم تا هدر درست زیرش بنشیند. */
	#wpadminbar{position:fixed!important}
}

/* ---- حساب: فیلتر درخواست‌ها، جواب مشتری، اعلان‌ها ---- */
.escbay-req-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.escbay-req-filter button{border:1px solid var(--escbay-border);background:transparent;color:inherit;padding:6px 14px;border-radius:999px;cursor:pointer;font:inherit;font-size:.85rem}
.escbay-req-filter button.is-active{background:var(--escbay-orange);border-color:var(--escbay-orange);color:#fff}
.escbay-my-requests__item[hidden]{display:none}
.escbay-my-requests__reply--mine{color:inherit;opacity:.85}
.escbay-req-reply{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-top:12px}
.escbay-req-reply textarea{flex:1 1 220px;border:1px solid var(--escbay-border);border-radius:10px;padding:8px 10px;background:transparent;color:inherit;font:inherit}
.escbay-req-reply__msg{font-size:.8rem;color:var(--escbay-gray);flex-basis:100%}
.escbay-acc-check{display:flex;gap:8px;align-items:center;margin:8px 0}
.escbay-acc-notif.is-unread{border-inline-start:3px solid var(--escbay-orange)}

/* ---- چشم نمایش رمز (فقط یک دکمهٔ کوچک در گوشهٔ فیلد) ---- */
.escbay-account .escbay-pass{position:relative;display:block;width:100%}
.escbay-account .escbay-pass input{width:100%;padding-inline-end:48px}
.escbay-account .escbay-pass .escbay-pass__eye{
	position:absolute !important;inset-inline-end:6px;inset-inline-start:auto;top:50%;transform:translateY(-50%);
	width:36px !important;height:36px !important;min-width:0 !important;max-width:36px;
	margin:0 !important;padding:0 !important;border:0 !important;border-radius:8px;
	background:transparent !important;box-shadow:none !important;
	display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--escbay-gray);
}
.escbay-account .escbay-pass .escbay-pass__eye:hover{color:var(--escbay-orange)}
.escbay-pass__slash{opacity:0}
.escbay-pass.is-shown .escbay-pass__slash{opacity:1}

/* ---- هدر: ترتیب جدید + فاصلهٔ دکمهٔ روز/شب + «درخواست‌های من» داخل زنگ ---- */
.escbay-header__actions .escbay-theme-toggle{margin-inline-start:14px;position:relative}
.escbay-header__actions .escbay-theme-toggle::before{content:"";position:absolute;inset-inline-end:calc(100% + 7px);top:25%;height:50%;width:1px;background:currentColor;opacity:.2}
@media (max-width:560px){
	.escbay-header__actions .escbay-theme-toggle{margin-inline-start:8px}
	.escbay-header__actions .escbay-theme-toggle::before{inset-inline-end:calc(100% + 4px)}
}
.escbay-notif__myreq{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-top:1px solid rgba(255,255,255,.1);color:#f2f2f4;text-decoration:none;font-size:.88rem;font-weight:600}
.escbay-notif__myreq:hover{background:rgba(255,255,255,.06)}
.escbay-notif__myreq-count{background:rgba(255,138,61,.18);color:#ff8a3d;border-radius:999px;padding:2px 10px;font-size:.75rem}

.escbay-autofill-note{font-size:.8rem;color:var(--escbay-gray);margin:0 0 8px;padding:8px 12px;border-radius:8px;background:rgba(91,110,232,.1)}

/* پل نامرئی بین زنگ و پنل تا هنگام حرکت نشانگر پنل نبندد */
.escbay-notif__panel::before{content:"";position:absolute;top:-14px;left:0;right:0;height:14px}

/* ===== 3.62.26 — عیب‌های دست‌دوم + جدیدترین‌ها داخل قاب ===== */
.escbay-defects__lead{color:var(--escbay-muted,#888);margin:0 0 14px;font-size:.9rem}
.escbay-defects__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.escbay-defects__item{position:relative;margin:0;border-radius:16px;overflow:hidden;border:1px solid rgba(214,54,56,.35);background:#000}
.escbay-defects__item img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.escbay-defects__tag{position:absolute;top:10px;inset-inline-start:10px;max-width:calc(100% - 20px);padding:5px 12px;border-radius:99px;background:#d63638;color:#fff;font-size:.8rem;font-weight:700;line-height:1.5;box-shadow:0 4px 12px rgba(0,0,0,.35)}
.escbay-shlatest{margin-top:18px;padding:14px 4px 4px;border-top:1px dashed color-mix(in srgb,#e8a33d 35%,transparent)}
.escbay-shlatest__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-inline:6px}
.escbay-shlatest__head a{color:#f3bb62;font-size:.88rem;text-decoration:none}
html.escbay-light-mode .escbay-shlatest__head a{color:#9a5b0c}
.escbay-shlatest__row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.escbay-shlatest__card{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit;border-radius:16px;padding:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);transition:transform .25s ease,border-color .25s ease}
html.escbay-light-mode .escbay-shlatest__card{background:#fff;border-color:#e5e5ea}
.escbay-shlatest__card:hover{transform:translateY(-3px);border-color:#e8a33d}
.escbay-shlatest__media{position:relative;display:block;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#1c1c1e}
.escbay-shlatest__media img{width:100%;height:100%;object-fit:cover;display:block}
.escbay-shlatest__badge{position:absolute;top:8px;inset-inline-start:8px;font-style:normal;font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:99px;background:#d63638;color:#fff}
.escbay-shlatest__badge--new{background:#0071e3}
.escbay-shlatest__badge--sold{background:#6e6e73}
.escbay-shlatest__title{font-size:.88rem;font-weight:700;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.escbay-shlatest__price{font-size:.85rem;font-weight:800;color:#f3bb62}
html.escbay-light-mode .escbay-shlatest__price{color:#9a5b0c}
@media (max-width:760px){
  .escbay-shlatest__row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:8px;-webkit-overflow-scrolling:touch}
  .escbay-shlatest__card{flex:0 0 62%;scroll-snap-align:start}
}

/* 3.62.27 — ردیف تک‌خطی کوچک‌تر، عنوان کامل */
.escbay-shlatest__row{display:flex !important;overflow-x:auto;scroll-snap-type:x proximity;gap:10px;padding:2px 2px 10px;-webkit-overflow-scrolling:touch;align-items:stretch;scrollbar-width:thin}
.escbay-shlatest__card{flex:0 0 168px !important;scroll-snap-align:start;padding:6px;gap:5px}
.escbay-shlatest__media{aspect-ratio:1/1;border-radius:10px}
.escbay-shlatest__title{display:block !important;-webkit-line-clamp:unset !important;overflow:visible !important;font-size:.8rem;line-height:1.55;word-break:break-word;min-height:3.1em}
.escbay-shlatest__price{font-size:.8rem;margin-top:auto}
.escbay-shlatest__badge{font-size:.66rem;padding:2px 8px;top:6px;inset-inline-start:6px}
@media (max-width:760px){.escbay-shlatest__card{flex:0 0 44% !important}}

/* 3.62.29 — بدون رجیستری (اطلاع‌رسانی) */
.escbay-plg__noreg-note{margin:0 0 12px;padding:10px 14px;border-radius:12px;background:rgba(232,163,61,.12);border:1px solid rgba(232,163,61,.4);font-size:.86rem;line-height:1.9}
.escbay-plg__noreg{display:inline-block;margin-inline-start:8px;padding:1px 9px;border-radius:99px;background:rgba(232,163,61,.18);color:#b9770e;font-size:.7rem;font-weight:700;vertical-align:middle}

/* وضعیت رجیستری هر ردیف آیفون نو */
.escbay-plg__noreg--company{background:#e8f0fe;color:#1a56b0;border-color:rgba(26,86,176,.3)}
.escbay-plg__noreg--code{background:#e6f4ea;color:#1e7a34;border-color:rgba(30,122,52,.3)}
