/* ==========================================================================
   EscBay — main stylesheet
   Design tokens (dark is default; .escbay-light-mode overrides on <html>)
   ========================================================================== */
:root {
	--escbay-bg: #0a0a0b;
	--escbay-bg-soft: #141416;
	--escbay-card: #1a1a1d;
	--escbay-border: #2a2a2e;
	--escbay-orange: #ff8a3d;
	--escbay-orange-dark: #d4701f;
	--escbay-phosphor: #caff33;
	--escbay-glow-gradient: linear-gradient(135deg, var(--escbay-orange), var(--escbay-phosphor));
	--escbay-white: #f5f5f5;
	--escbay-gray: #9a9a9e;
	--escbay-font: 'Vazirmatn', Tahoma, sans-serif;
	--escbay-radius: 10px;
	--escbay-container: 1320px;

	/* 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%);
}

html.escbay-light-mode {
	--escbay-bg: #ffffff;
	--escbay-bg-soft: #f3f3f4;
	--escbay-card: #f7f7f8;
	--escbay-border: #e3e3e5;
	--escbay-white: #1d1d1f;
	--escbay-gray: #6e6e73;

	--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);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	position: relative;
	margin: 0;
	background: var(--escbay-bg);
	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(255, 138, 61, 0.38), transparent 42%),
		radial-gradient(circle at 88% 12%, rgba(202, 255, 51, 0.22), transparent 40%),
		radial-gradient(circle at 25% 85%, rgba(202, 255, 51, 0.16), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(255, 138, 61, 0.24), transparent 45%);
	filter: blur(70px);
}

html.escbay-light-mode body::before {
	background:
		radial-gradient(circle at 12% 15%, rgba(255, 138, 61, 0.28), transparent 42%),
		radial-gradient(circle at 88% 12%, rgba(202, 255, 51, 0.30), transparent 40%),
		radial-gradient(circle at 25% 85%, rgba(202, 255, 51, 0.20), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(255, 138, 61, 0.18), transparent 45%);
}


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);
	position: sticky;
	top: 0;
	z-index: 50;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.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;
	background: var(--escbay-orange);
	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-nav__list {
	display: flex;
	align-items: center;
	gap: 34px;
	font-size: 0.95rem;
	color: var(--escbay-gray);
}

.escbay-nav__list a {
	position: relative;
	padding-bottom: 6px;
	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-glass-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(255, 138, 61, 0.12);
}
.escbay-nav__list .sub-menu li.current-menu-item > a::after { display: none; }

/* "سایر خدمات" — 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-glow-gradient);
	color: #1a0f00 !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.08); color: #1a0f00; }

@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-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;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.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);
}

/* Full hero background photo (editable via Customizer), with a
   dark overlay so the centered title/buttons stay readable. */
.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__inner--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-height: auto;
	gap: 6px;
	padding-block: 6vh 3vh;
}

.escbay-hero__content--center { max-width: 640px; }
.escbay-hero__desc--center { margin-inline: auto; }

.escbay-hero__actions--center { justify-content: center; margin-top: 6px; }

/* Compress the hero on laptop-height screens so the whole thing
   (header + title + buttons) fits without scrolling on first load. */
@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__desc--center { font-size: 0.92rem; margin-bottom: 4px; }
	.escbay-features { margin-block: 24px 20px; padding: 18px; }
}

.escbay-hero__content {
	min-width: 0;
}

.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);
}

.escbay-hero__title--accent {
	display: block;
	color: var(--escbay-orange);
}

.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 32px;
}

.escbay-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.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: transparent;
	border-color: var(--escbay-orange);
	color: var(--escbay-orange);
	box-shadow: 0 0 0 rgba(202, 255, 51, 0);
}
.escbay-btn--primary:hover {
	border-color: var(--escbay-phosphor);
	color: var(--escbay-white);
	background: linear-gradient(135deg, rgba(255, 138, 61, 0.18), rgba(202, 255, 51, 0.18));
	box-shadow: 0 0 26px rgba(202, 255, 51, 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(255, 138, 61, 0.2);
}

.escbay-btn--accent {
	background: var(--escbay-phosphor);
	border-color: var(--escbay-phosphor);
	color: #111;
}
.escbay-btn--accent:hover {
	background: var(--escbay-white);
	border-color: var(--escbay-white);
	box-shadow: 0 0 26px rgba(202, 255, 51, 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;
	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);
}

.escbay-hero__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 480px;
	max-height: 560px;
	overflow: hidden; /* prevents an oversized/odd-shaped uploaded image from spilling onto the text column */
}

.escbay-hero__glow {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 320px;
	height: 320px;
	max-width: 60%;
	max-height: 60%;
	border: 3px solid var(--escbay-orange);
	border-radius: 50%;
	filter: blur(1px);
	box-shadow: 0 0 60px 10px rgba(232, 130, 46, 0.45);
	opacity: 0.85;
	pointer-events: none;
}

.escbay-hero__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-height: 480px;
	object-fit: contain; /* keeps the uploaded photo's proportions and stops it from stretching past its box */
	margin-inline: auto;
}

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

.escbay-features__item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.escbay-features__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	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-border);
	background: var(--escbay-bg-soft);
	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.4fr 1fr 1fr 1.2fr;
	gap: 32px;
	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__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);
}

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

.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;
}

.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-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: #1a0f00;
}

@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,
.escbay-features {
	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(255, 138, 61, 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(255, 138, 61, 0.14), rgba(202, 255, 51, 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(255, 138, 61, 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(255, 138, 61, 0.16), rgba(202, 255, 51, 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-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: #1a0f00;
}

.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: var(--escbay-radius);
	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; }

.escbay-shop-card__media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(202, 255, 51, 0.08));
}

.escbay-shop-card__badge,
.escbay-shop-card__cat {
	position: absolute;
	top: 10px;
	right: 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; }

@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; } }

/* ==========================================================================
   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(255, 138, 61, 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; }

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

/* ==========================================================================
   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); }

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

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

.escbay-pricing-hub__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	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, #caff33, #6b9d10);
	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: 900px) {
	.escbay-pricing-hub { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.escbay-pricing-hub { grid-template-columns: 1fr; }
}
