/**
 * تم اطلس
 */

.theme-atlas {
	--atlas-green: var(--t2, #14B8A6);
	--atlas-page-bg: linear-gradient(180deg, #0B0E14 0%, #12161F 48%, #0F131A 100%);
	--atlas-page-bg-color1: #0B0E14;
	--atlas-page-bg-color2: #12161F;
	--atlas-page-bg-type: gradient;
	--atlas-page-bg-opacity: 1;
	--atlas-cover-wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 500' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='m' maskUnits='userSpaceOnUse'%3E%3Crect width='1440' height='500' fill='white'/%3E%3Cpath fill='black' transform='translate(0 320)' d='M0,72 C180,138 320,48 520,102 C720,158 920,58 1120,108 C1280,132 1380,68 1440,102 L1440,180 L0,180 Z'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='1440' height='500' fill='white' mask='url(%23m)'/%3E%3C/svg%3E");
	background: var(--atlas-page-bg);
	background-size: 100% 100%;
	overflow-x: clip;
}

.theme-atlas .store-footer {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg,
		color-mix(in srgb, var(--atlas-page-bg-color1) 66%, transparent) 0%,
		color-mix(in srgb, var(--atlas-page-bg-color2) 76%, transparent) 100%) !important;
	border-top-color: color-mix(in srgb, var(--atlas-green) 8%, rgba(148, 163, 184, 0.18)) !important;
	backdrop-filter: blur(18px) saturate(130%);
	-webkit-backdrop-filter: blur(18px) saturate(130%);
	box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.07);
}

.theme-atlas .store-footer::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
	pointer-events: none;
}

.theme-atlas .store-footer > div {
	position: relative;
	z-index: 1;
	min-height: 2.75rem;
}

.theme-atlas .store-footer .store-footer-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	white-space: nowrap;
	line-height: 1.1;
}

.theme-atlas .store-footer .store-footer-brand,
.theme-atlas .store-footer .store-footer-copy {
	display: inline-flex;
	align-items: center;
	line-height: 1.1;
	margin: 0;
}

.theme-atlas .store-footer .store-heading-section,
.theme-atlas .store-footer .store-product-title {
	color: var(--store-heading-section) !important;
}

.theme-atlas .store-footer .store-product-title {
	color: var(--store-title) !important;
}

@media (max-width: 768px) {
	.theme-atlas .store-footer > div {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		min-height: 2.5rem;
	}

	.theme-atlas .store-footer .store-footer-inner {
		gap: 0.3rem;
		font-size: 0.7rem;
	}
}

/* طرح تزئینی + نویز بافتی */
.theme-atlas::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		radial-gradient(ellipse at 14% 16%, color-mix(in srgb, var(--t2, #14B8A6) 10%, transparent) 0%, transparent 46%),
		radial-gradient(ellipse at 86% 84%, color-mix(in srgb, var(--t2, #14B8A6) 7%, transparent) 0%, transparent 44%),
		radial-gradient(ellipse at 72% 24%, rgba(148, 163, 184, 0.04) 0%, transparent 50%);
	background-repeat: repeat, no-repeat, no-repeat, no-repeat;
	background-size: 160px 160px, 100% 100%, 100% 100%, 100% 100%;
	background-blend-mode: soft-light, normal, normal, normal;
	opacity: 0.28;
}

/*
 * رنگ پس‌زمینه صفحه (Design Token / تنظیمات فروشگاه)
 * رنگ همیشه روی body دیده می‌شود؛ شفافیت فقط شدت پترن را کنترل می‌کند.
 * (قبلاً با transparency=100 لایه رنگ opacity:0 می‌شد و فقط نویز روشن می‌ماند)
 */
.theme-atlas.theme-atlas-custom-bg {
	background: var(--atlas-page-bg) !important;
	background-color: var(--atlas-page-bg-color1) !important;
	background-size: 100% 100%;
	background-attachment: fixed;
	isolation: isolate;
}

.theme-atlas.theme-atlas-custom-bg::before {
	z-index: 0;
	/* strength = شفافیت/۱۰۰ از renderPageBgCss — شدت دیده شدن پترن روی رنگ */
	opacity: calc(0.12 + (var(--atlas-page-bg-strength, 0.35) * 0.4));
}

.theme-atlas.theme-atlas-custom-bg::after {
	display: none;
}

.theme-atlas > *:not(.atlas-header-mobile):not(#atlasCatSheet):not(#productDetailsModal):not(#storeLightbox):not(#store-user-portal):not(#cs-store-portal):not(#atlasBackToTop) {
	position: relative;
	z-index: 1;
}

.theme-atlas .swal2-container {
	z-index: 2147483647 !important;
}

/* ── هدر موبایل ── */
.theme-atlas .atlas-header-mobile {
	display: none;
}

@media (max-width: 1023px) {
	.theme-atlas.has-mobile-header {
		padding-top: 3.5rem;
	}

	.theme-atlas .atlas-header-mobile {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 40;
		background: linear-gradient(180deg,
			color-mix(in srgb, var(--atlas-page-bg-color1) 68%, transparent) 0%,
			color-mix(in srgb, var(--atlas-page-bg-color2) 78%, transparent) 100%);
		backdrop-filter: blur(18px) saturate(130%);
		-webkit-backdrop-filter: blur(18px) saturate(130%);
		border-bottom: 1px solid color-mix(in srgb, var(--atlas-green) 8%, rgba(148, 163, 184, 0.18));
		box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.14);
	}

	.theme-atlas .atlas-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 0 1rem;
		height: 3.5rem;
	}

	.theme-atlas .atlas-header-brand {
		flex: 1;
		min-width: 0;
	}

	.theme-atlas .atlas-header-title {
		margin: 0;
		font-size: 1rem;
		font-weight: 700;
		color: var(--store-heading-section);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.theme-atlas .atlas-header-logo {
		width: 2.5rem;
		height: 2.5rem;
		border-radius: 0.75rem;
		object-fit: cover;
		border: 1px solid rgba(6, 64, 43, 0.12);
	}

	.theme-atlas .atlas-header-cat-btn {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		padding: 0.4rem 0.75rem 0.4rem 0.45rem;
		border-radius: 0.65rem;
		border: 1px solid color-mix(in srgb, var(--atlas-green) 18%, rgba(15, 23, 42, 0.08));
		background: color-mix(in srgb, #ffffff 88%, transparent);
		color: var(--atlas-green);
		font-size: 0.8125rem;
		font-weight: 700;
		box-shadow: 0 4px 14px -8px rgba(6, 64, 43, 0.28);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		-webkit-tap-highlight-color: transparent;
		transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}

	.theme-atlas .atlas-header-cat-btn__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.7rem;
		height: 1.7rem;
		border-radius: 0.45rem;
		background: color-mix(in srgb, var(--atlas-green) 10%, #f8fafc);
		color: var(--atlas-green);
	}

	.theme-atlas .atlas-header-cat-ico {
		width: 1rem;
		height: 1rem;
		display: block;
	}

	.theme-atlas .atlas-header-cat-btn.is-open,
	.theme-atlas .atlas-header-cat-btn.is-active-cat {
		background: var(--atlas-green);
		color: #fff;
		border-color: transparent;
		box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--atlas-green) 55%, transparent);
	}

	.theme-atlas .atlas-header-cat-btn.is-open .atlas-header-cat-btn__icon,
	.theme-atlas .atlas-header-cat-btn.is-active-cat .atlas-header-cat-btn__icon {
		background: rgba(255, 255, 255, 0.2);
		color: #fff;
	}
}

/* ── کاور تمام‌عرض ── */
.theme-atlas .atlas-cover-shell {
	width: 100%;
}

.theme-atlas .atlas-cover {
	position: relative;
	width: 100%;
	min-height: clamp(22rem, 55vh, 36rem);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	isolation: isolate;
}

.theme-atlas .atlas-cover__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.theme-atlas .atlas-cover__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.theme-atlas .atlas-cover__bg--fallback {
	background:
		linear-gradient(135deg, rgba(6, 64, 43, 0.15) 0%, transparent 50%),
		linear-gradient(180deg, #8faa8a 0%, #5c7a5e 38%, #3d5c42 72%, #1e3a28 100%);
}

.theme-atlas .atlas-cover__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.12) 52%, transparent 72%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%, transparent 100%);
	pointer-events: none;
}

.theme-atlas .atlas-cover__bg,
.theme-atlas .atlas-cover__scrim {
	-webkit-mask-image: var(--atlas-cover-wave-mask);
	mask-image: var(--atlas-cover-wave-mask);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* موج پایین — برش کاور؛ پس‌زمینه صفحه از زیر دیده می‌شود */
.theme-atlas .atlas-cover__waves {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.theme-atlas .atlas-cover__wave-slot {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	line-height: 0;
}

.theme-atlas .atlas-cover__wave-slot--bottom {
	bottom: 0;
	height: clamp(6.5rem, 20vw, 12rem);
}

.theme-atlas .atlas-cover__wave {
	display: none;
}

.theme-atlas .atlas-cover__content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 90rem;
	margin: 0 auto;
	padding: clamp(2rem, 6vh, 3.5rem) clamp(1.25rem, 5vw, 4rem) clamp(4.5rem, 11vh, 6.5rem);
	text-align: center;
	transform: translateY(clamp(0.5rem, 3.5vh, 2rem));
}

.theme-atlas .atlas-cover__inner {
	max-width: min(100%, 46rem);
	margin: 0 auto;
	text-align: center;
}

.theme-atlas .atlas-cover__title {
	margin: 0 auto 0.75rem;
	font-size: clamp(1.45rem, 3.2vw, 2.35rem);
	font-weight: 900;
	line-height: 1.25;
	text-align: center;
	text-wrap: pretty;
	max-width: 100%;
}

@supports (text-wrap: balance) {
	.theme-atlas .atlas-cover__title {
		text-wrap: balance;
	}
}

.theme-atlas .atlas-cover__desc {
	margin: 0 auto;
	max-width: 34rem;
	font-size: clamp(0.9rem, 1.8vw, 1.05rem);
	line-height: 1.7;
	text-align: center;
	text-wrap: pretty;
}

/* فالو + اشتراک در کاور */
.theme-atlas .atlas-cover__inner .store-follow-hero {
	margin-top: 1rem;
	margin-bottom: 0;
	max-width: min(100%, 28rem);
}
.theme-atlas .atlas-cover__inner .store-follow-count {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.65);
	background: rgba(255, 255, 255, 0.94);
	color: #334155;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
	text-shadow: none;
}
.theme-atlas .atlas-cover__inner .store-share-btn {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(255, 255, 255, 0.65);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
}
.theme-atlas .atlas-cover__inner .store-follow-btn {
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28), 0 2px 8px rgba(15, 23, 42, 0.12);
}
.theme-atlas .atlas-cover__inner .store-follow-btn.is-following {
	background: rgba(255, 255, 255, 0.96);
}

/* ── باکس محصولات ── */
.theme-atlas .atlas-main {
	padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
}

.theme-atlas .atlas-products-box {
	width: min(100%, 96rem);
	margin: 0 auto;
	padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
	min-height: clamp(24rem, 55vh, 40rem);
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	position: relative;
	z-index: 4;
}

.theme-atlas .atlas-products-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #64748b;
}

/* محصولات ویژه — کارت‌های جمع‌وجور */
.theme-atlas .atlas-collection-section {
	margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
	.theme-atlas .atlas-collection-section {
		margin-bottom: 1.65rem;
	}
}

.theme-atlas .atlas-collection-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.theme-atlas .atlas-collection-title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

@media (min-width: 640px) {
	.theme-atlas .atlas-collection-title {
		font-size: 1.05rem;
	}
}

.theme-atlas .atlas-collection-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.theme-atlas .atlas-swiper-prev,
.theme-atlas .atlas-swiper-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	min-height: 2rem;
	max-width: 2rem;
	max-height: 2rem;
	aspect-ratio: 1 / 1;
	padding: 0;
	flex-shrink: 0;
	border-radius: 0.5rem;
	border: 1px solid rgba(15, 23, 42, 0.1);
	background: rgba(255, 255, 255, 0.88);
	color: #475569;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-atlas .atlas-swiper-prev svg,
.theme-atlas .atlas-swiper-next svg {
	width: 1rem;
	height: 1rem;
	display: block;
	flex-shrink: 0;
}

.theme-atlas .atlas-swiper-prev:hover,
.theme-atlas .atlas-swiper-next:hover {
	background: #fff;
	border-color: color-mix(in srgb, var(--t2, #06402b) 25%, transparent);
	color: var(--atlas-green);
}

/* موبایل/لمس: قانون کلی 44px را خنثی کن تا دقیق مربع لبه‌گرد بمانند */
@media (pointer: coarse), (max-width: 768px) {
	.theme-atlas .atlas-swiper-prev,
	.theme-atlas .atlas-swiper-next {
		width: 2.5rem !important;
		height: 2.5rem !important;
		min-width: 2.5rem !important;
		min-height: 2.5rem !important;
		max-width: 2.5rem !important;
		max-height: 2.5rem !important;
		aspect-ratio: 1 / 1;
		padding: 0 !important;
		border-radius: 0.55rem;
	}

	.theme-atlas .atlas-collection-card__fab,
	.theme-atlas .atlas-collection-card .store-direct-fab,
	.theme-atlas .atlas-collection-card .store-theme-btn--icon {
		width: 2.25rem !important;
		height: 2.25rem !important;
		min-width: 2.25rem !important;
		min-height: 2.25rem !important;
		max-width: 2.25rem !important;
		max-height: 2.25rem !important;
		aspect-ratio: 1 / 1;
		padding: 0 !important;
		border-radius: 0.5rem !important;
	}
}

.theme-atlas .atlas-collection-swiper {
	overflow: hidden;
}

.theme-atlas .atlas-collection-swiper .swiper-slide {
	height: auto;
}

.theme-atlas .atlas-product-card--collection {
	height: 100%;
	border-radius: 0.85rem;
	background: var(--store-product-card-bg, linear-gradient(155deg, #1C222C 0%, #151921 100%));
	box-shadow:
		0 8px 24px -14px rgba(0, 0, 0, 0.5),
		0 0 0 1px color-mix(in srgb, var(--t2, #14B8A6) 10%, transparent);
}

.theme-atlas .atlas-product-card--collection::before {
	width: 4.5rem;
	height: 4.5rem;
	bottom: -0.75rem;
	left: -0.75rem;
}

.theme-atlas .atlas-product-card--collection:hover {
	transform: translateY(-2px);
	box-shadow:
		0 12px 28px -14px rgba(0, 0, 0, 0.6),
		0 0 20px -10px color-mix(in srgb, var(--t2, #14B8A6) 30%, transparent);
}

.theme-atlas .atlas-collection-card__gallery {
	aspect-ratio: 5 / 4;
	min-height: 0;
}

.theme-atlas .atlas-product-card--collection .atlas-product-card__gallery::after {
	height: 30%;
	opacity: 0.65;
}

.theme-atlas .atlas-product-card--collection:hover .atlas-product-card__gallery .gallery-main-img {
	transform: scale(1.02);
}

.theme-atlas .atlas-collection-card__body {
	padding: 0.4rem 0.6rem 0.48rem;
}

.theme-atlas .atlas-product-card--collection .atlas-product-card__title {
	font-size: 0.8125rem;
	margin-bottom: 0.15rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.theme-atlas .atlas-product-card--collection .atlas-product-card__price {
	margin-bottom: 0;
	gap: 0.35rem;
}

.theme-atlas .atlas-product-card--collection .atlas-product-card__price-old {
	font-size: 0.6875rem;
}

.theme-atlas .atlas-product-card--collection .atlas-product-card__price-current {
	font-size: 0.8125rem;
}

.theme-atlas .atlas-collection-card__fab {
	position: absolute;
	z-index: 5;
	bottom: 0.35rem;
	left: 0.35rem;
	box-sizing: border-box;
	width: 1.85rem;
	height: 1.85rem;
	min-width: 1.85rem;
	min-height: 1.85rem;
	max-width: 1.85rem;
	max-height: 1.85rem;
	aspect-ratio: 1 / 1;
	padding: 0;
	border-radius: 0.4rem;
	box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.25);
}

.theme-atlas .atlas-collection-card__fab svg {
	width: 0.875rem;
	height: 0.875rem;
}

.theme-atlas .atlas-collection-card__fab--pay {
	left: auto;
	right: 0.35rem;
}

.theme-atlas .atlas-collection-card .store-direct-fab {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	left: auto;
	bottom: auto;
	z-index: 5;
	box-sizing: border-box;
	width: 1.85rem;
	height: 1.85rem;
	min-width: 1.85rem;
	min-height: 1.85rem;
	max-width: 1.85rem;
	max-height: 1.85rem;
	aspect-ratio: 1 / 1;
	padding: 0;
	border-radius: 0.4rem;
	box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.25);
}

.theme-atlas .atlas-collection-card .store-direct-fab-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.theme-atlas .atlas-collection-card .product-like-btn {
	transform: scale(0.82);
	transform-origin: top left;
}

/* دسته‌بندی — Premium */
.theme-atlas {
	--atlas-cat-surface: color-mix(in srgb, #ffffff 82%, transparent);
	--atlas-cat-border: color-mix(in srgb, var(--atlas-green) 12%, rgba(148, 163, 184, 0.28));
	--atlas-cat-text: #334155;
	--atlas-cat-muted: #64748b;
	--atlas-cat-icon-bg: color-mix(in srgb, var(--atlas-green) 9%, #f8fafc);
	--atlas-cat-chip-bg: color-mix(in srgb, #ffffff 94%, transparent);
	--atlas-cat-chip-hover: color-mix(in srgb, var(--atlas-green) 8%, #ffffff);
	--atlas-cat-shadow: 0 12px 32px -16px rgba(6, 64, 43, 0.22);
	--atlas-cat-sheet-bg: linear-gradient(180deg, #ffffff 0%, #f5f8f5 52%, #eef3ef 100%);
	--atlas-cat-backdrop: rgba(8, 22, 16, 0.52);
}

.theme-atlas .atlas-cat-nav {
	display: none;
	margin-bottom: 1.75rem;
	text-align: center;
}

@media (min-width: 1024px) {
	.theme-atlas .atlas-cat-nav {
		display: block;
	}
}

.theme-atlas .atlas-cat-nav-track {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	max-width: 100%;
	padding: 0.45rem;
	border-radius: 0.9rem;
	background: var(--atlas-cat-surface);
	border: 1px solid var(--atlas-cat-border);
	box-shadow: var(--atlas-cat-shadow), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
}

.theme-atlas .atlas-cat-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.95rem;
	min-height: 2.55rem;
	border-radius: 0.6rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--atlas-cat-text);
	background: var(--atlas-cat-chip-bg);
	border: 1px solid transparent;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.theme-atlas .atlas-cat-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 0.45rem;
	background: var(--atlas-cat-icon-bg);
	color: var(--atlas-green);
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.theme-atlas .atlas-cat-btn-ico,
.theme-atlas .atlas-cat-btn-chevron {
	width: 0.9rem;
	height: 0.9rem;
	display: block;
	flex-shrink: 0;
}

.theme-atlas .atlas-cat-btn-chevron {
	opacity: 0.55;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-atlas .atlas-cat-btn:hover {
	color: var(--atlas-green);
	background: var(--atlas-cat-chip-hover);
	border-color: color-mix(in srgb, var(--atlas-green) 28%, transparent);
	box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--atlas-green) 35%, transparent);
}

.theme-atlas .atlas-cat-btn:hover .atlas-cat-btn-chevron {
	opacity: 1;
}

.theme-atlas .atlas-cat-btn:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--atlas-green) 50%, transparent);
	outline-offset: 2px;
}

.theme-atlas .atlas-cat-btn.is-active {
	color: #fff;
	background: linear-gradient(145deg, color-mix(in srgb, var(--atlas-green) 82%, #0a5c3c) 0%, var(--atlas-green) 100%);
	border-color: transparent;
	box-shadow:
		0 10px 24px -10px color-mix(in srgb, var(--atlas-green) 55%, transparent),
		0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.theme-atlas .atlas-cat-btn.is-active .atlas-cat-btn-icon {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.theme-atlas .atlas-cat-btn.is-active .atlas-cat-btn-chevron {
	opacity: 0.9;
	color: #fff;
}

.theme-atlas .atlas-cat-nav.is-drilled .atlas-cat-nav-track {
	justify-content: flex-start;
}

.theme-atlas .atlas-cat-btn--back {
	color: var(--atlas-cat-muted) !important;
	background: color-mix(in srgb, var(--atlas-green) 6%, #f8fafc) !important;
	border-color: var(--atlas-cat-border) !important;
	box-shadow: none !important;
}

.theme-atlas .atlas-cat-btn--back:hover {
	color: var(--atlas-green) !important;
	border-color: color-mix(in srgb, var(--atlas-green) 35%, transparent) !important;
}

.theme-atlas .atlas-cat-btn--parent { font-weight: 700; }
.theme-atlas .atlas-cat-btn--sub { font-weight: 500; }

.theme-atlas .store-product-item.atlas-filter-hidden {
	display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
	.theme-atlas .atlas-reveal-pending {
		will-change: opacity, transform;
	}
}

.theme-atlas .atlas-reveal-done {
	will-change: auto;
}

.theme-atlas .atlas-cat-empty.hidden {
	display: none;
}

.theme-atlas .atlas-cat-empty {
	text-align: center;
	padding: 2.5rem 1rem;
}

.theme-atlas .atlas-cat-empty-ico {
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
	color: color-mix(in srgb, var(--atlas-green) 35%, #cbd5e1);
}

.theme-atlas .atlas-cat-empty-svg {
	width: 3.25rem;
	height: 3.25rem;
}

.theme-atlas .atlas-action-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	display: block;
}

.theme-atlas .atlas-swiper-ico {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

.theme-atlas .atlas-lightbox-ico {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

/* شیت موبایل — Premium Bottom Sheet (بالای منوی موبایل) */
.theme-atlas .atlas-cat-sheet {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10080;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
}

@media (max-width: 1023px) {
	.theme-atlas .atlas-cat-sheet {
		display: block;
	}
}

.theme-atlas .atlas-cat-sheet.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.theme-atlas .atlas-cat-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: var(--atlas-cat-backdrop);
	backdrop-filter: blur(10px) saturate(120%);
	-webkit-backdrop-filter: blur(10px) saturate(120%);
	opacity: 0;
}

.theme-atlas .atlas-cat-sheet-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: min(82vh, 40rem);
	padding: 0.65rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
	background: var(--atlas-cat-sheet-bg);
	border-radius: 1.35rem 1.35rem 0 0;
	border: 1px solid color-mix(in srgb, #fff 55%, transparent);
	border-bottom: none;
	box-shadow:
		0 -20px 50px rgba(8, 22, 16, 0.2),
		0 1px 0 rgba(255, 255, 255, 0.75) inset;
	transform: translateY(105%);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	will-change: transform;
}

.theme-atlas .atlas-cat-sheet-handle {
	width: 2.75rem;
	height: 0.28rem;
	border-radius: 9999px;
	background: color-mix(in srgb, var(--atlas-green) 22%, #cbd5e1);
	margin: 0.15rem auto 0.75rem;
}

.theme-atlas .atlas-cat-sheet-head {
	position: relative;
	display: block;
	min-height: 2.75rem;
	margin-bottom: 1rem;
	padding: 0 2.85rem;
}

.theme-atlas .atlas-cat-sheet-heading {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.15rem 0;
}

.theme-atlas .atlas-cat-sheet-back,
.theme-atlas .atlas-cat-sheet-close {
	position: absolute;
	top: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0;
	margin: 0;
	border-radius: 0.7rem;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	border: 1px solid var(--atlas-cat-border);
	background: #fff;
	color: var(--atlas-cat-muted);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(8, 22, 16, 0.06);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	z-index: 2;
}

.theme-atlas .atlas-cat-sheet-back {
	inset-inline-end: 0;
	inset-inline-start: auto;
}

.theme-atlas .atlas-cat-sheet-close {
	inset-inline-start: 0;
	inset-inline-end: auto;
}

.theme-atlas .atlas-cat-sheet-back:hover,
.theme-atlas .atlas-cat-sheet-close:hover {
	color: var(--atlas-green);
	border-color: color-mix(in srgb, var(--atlas-green) 30%, transparent);
	background: color-mix(in srgb, var(--atlas-green) 8%, #fff);
}

.theme-atlas .atlas-cat-sheet-back-ico,
.theme-atlas .atlas-cat-sheet-close-ico {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

.theme-atlas .atlas-cat-sheet-back[hidden] {
	display: none !important;
}

.theme-atlas .atlas-cat-sheet-title {
	display: block;
	margin: 0 auto;
	padding: 0;
	max-width: 100%;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--atlas-green);
	line-height: 1.4;
	text-align: center !important;
	overflow-wrap: anywhere;
}

.theme-atlas .atlas-cat-sheet-sub {
	display: block;
	margin: 0.3rem auto 0;
	padding: 0;
	max-width: 100%;
	font-size: 0.75rem;
	color: var(--atlas-cat-muted);
	text-align: center !important;
	line-height: 1.5;
}

.theme-atlas .atlas-cat-sheet-sub[hidden] {
	display: none !important;
}

.theme-atlas .atlas-cat-sheet-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.theme-atlas .atlas-cat-sheet-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.55rem;
	width: 100%;
	min-width: 0;
	min-height: 6.75rem;
	padding: 1rem 0.7rem 0.85rem;
	border-radius: 1rem;
	border: 1px solid var(--atlas-cat-border);
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--atlas-green) 4%, #fff) 100%);
	color: var(--atlas-cat-text);
	font-weight: 600;
	cursor: pointer;
	box-shadow:
		0 8px 22px -14px rgba(8, 22, 16, 0.22),
		0 1px 0 rgba(255, 255, 255, 0.85) inset;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
	overflow: hidden;
}

.theme-atlas .atlas-cat-sheet-item--span {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	min-height: 3.25rem;
	padding: 0.8rem 0.9rem;
	text-align: start;
	border-radius: 0.9rem;
}

.theme-atlas .atlas-cat-sheet-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.55rem;
	height: 2.55rem;
	border-radius: 0.85rem;
	background: var(--atlas-cat-icon-bg);
	color: var(--atlas-green);
	flex-shrink: 0;
	box-shadow: 0 4px 12px -8px color-mix(in srgb, var(--atlas-green) 40%, transparent);
}

.theme-atlas .atlas-cat-sheet-item--span .atlas-cat-sheet-icon {
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 0.65rem;
}

.theme-atlas .atlas-cat-ico,
.theme-atlas .atlas-cat-check-ico,
.theme-atlas .atlas-cat-sheet-chevron,
.theme-atlas .atlas-cat-sheet-arrow {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
	flex-shrink: 0;
}

.theme-atlas .atlas-cat-sheet-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.8125rem;
	line-height: 1.35;
	letter-spacing: -0.01em;
	width: 100%;
	word-break: break-word;
}

.theme-atlas .atlas-cat-sheet-item--span .atlas-cat-sheet-name {
	flex: 1;
	min-width: 0;
	-webkit-line-clamp: 1;
	text-align: start;
	font-size: 0.875rem;
}

.theme-atlas .atlas-cat-sheet-meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin-top: auto;
	color: var(--atlas-cat-muted);
	font-size: 0.7rem;
	font-weight: 600;
}

.theme-atlas .atlas-cat-sheet-meta--quiet {
	opacity: 0.45;
}

.theme-atlas .atlas-cat-sheet-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	border-radius: 9999px;
	background: color-mix(in srgb, var(--atlas-green) 10%, #f1f5f9);
	color: var(--atlas-green);
}

.theme-atlas .atlas-cat-sheet-check {
	display: none;
	margin-inline-start: auto;
	color: var(--atlas-green);
}

.theme-atlas .atlas-cat-sheet-item.is-active .atlas-cat-sheet-check {
	display: inline-flex;
}

.theme-atlas .atlas-cat-sheet-item.is-active {
	border-color: color-mix(in srgb, var(--atlas-green) 45%, transparent);
	background:
		linear-gradient(165deg, color-mix(in srgb, var(--atlas-green) 10%, #fff) 0%, color-mix(in srgb, var(--atlas-green) 6%, #fff) 100%);
	color: var(--atlas-green);
	box-shadow:
		0 10px 26px -12px color-mix(in srgb, var(--atlas-green) 40%, transparent),
		0 0 0 1px color-mix(in srgb, var(--atlas-green) 12%, transparent);
}

.theme-atlas .atlas-cat-sheet-item.is-active .atlas-cat-sheet-icon {
	background: color-mix(in srgb, var(--atlas-green) 16%, #fff);
	color: var(--atlas-green);
}

.theme-atlas .atlas-cat-sheet-item:active {
	transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
	.theme-atlas .atlas-cat-sheet-item:active {
		transform: none;
	}
}

html[data-theme="dark"] .theme-atlas {
	--atlas-cat-surface: color-mix(in srgb, #1e293b 88%, transparent);
	--atlas-cat-border: rgba(148, 163, 184, 0.22);
	--atlas-cat-text: #e2e8f0;
	--atlas-cat-muted: #94a3b8;
	--atlas-cat-icon-bg: color-mix(in srgb, var(--atlas-green) 18%, #0f172a);
	--atlas-cat-chip-bg: color-mix(in srgb, #0f172a 70%, transparent);
	--atlas-cat-chip-hover: color-mix(in srgb, var(--atlas-green) 14%, #1e293b);
	--atlas-cat-sheet-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
	--atlas-cat-backdrop: rgba(2, 8, 6, 0.72);
}

html[data-theme="dark"] .theme-atlas .atlas-cat-sheet-item,
html[data-theme="dark"] .theme-atlas .atlas-cat-sheet-back,
html[data-theme="dark"] .theme-atlas .atlas-cat-sheet-close {
	background: #1e293b;
	border-color: rgba(148, 163, 184, 0.2);
	color: #e2e8f0;
}

/* گرید محصولات */
.theme-atlas .atlas-products-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.7rem;
}

@media (min-width: 640px) {
	.theme-atlas .atlas-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
}

@media (min-width: 1024px) {
	.theme-atlas .atlas-products-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.8rem;
	}
}

@media (min-width: 1280px) {
	.theme-atlas .atlas-products-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.8rem;
	}
}

/* کارت محصول — پریمیوم (پس‌زمینه از Design Token) */
.theme-atlas .atlas-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 1.25rem;
	background: var(--store-product-card-bg, linear-gradient(155deg, #1C222C 0%, #151921 100%));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid color-mix(in srgb, var(--t2, #14B8A6) 16%, rgba(148, 163, 184, 0.12));
	box-shadow:
		0 12px 36px -16px rgba(0, 0, 0, 0.55),
		0 0 0 1px color-mix(in srgb, var(--t2, #14B8A6) 8%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.theme-atlas .atlas-product-card::before {
	content: '';
	position: absolute;
	bottom: -1.25rem;
	left: -1.25rem;
	width: 7rem;
	height: 7rem;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--t2, #14B8A6) 14%, transparent) 0%, transparent 72%);
	pointer-events: none;
	z-index: 0;
}

.theme-atlas .atlas-product-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	pointer-events: none;
	z-index: 2;
}

.theme-atlas .atlas-product-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--t2, #14B8A6) 28%, transparent);
	box-shadow:
		0 22px 48px -18px rgba(0, 0, 0, 0.65),
		0 0 28px -12px color-mix(in srgb, var(--t2, #14B8A6) 35%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-atlas .atlas-product-card > * {
	position: relative;
	z-index: 1;
}

.theme-atlas .atlas-product-card__media {
	padding: 0;
}

.theme-atlas .atlas-product-card__gallery {
	aspect-ratio: 4 / 5;
	min-height: 11rem;
	border-radius: 0;
	overflow: hidden;
	background: linear-gradient(145deg, #eef2ee 0%, #e2ebe4 100%);
}

.theme-atlas .atlas-product-card__badge {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 5;
	padding: 0.22rem 0.65rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.3;
	color: #fff;
	background: linear-gradient(135deg, #f43f5e, #e11d48);
	box-shadow: 0 6px 16px -6px rgba(225, 29, 72, 0.7);
	pointer-events: none;
}

.theme-atlas .atlas-product-card__gallery::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 42%;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.28) 100%);
	pointer-events: none;
	z-index: 1;
}

.theme-atlas .atlas-product-card__gallery:has(.atlas-product-card__thumbs)::after {
	height: 48%;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.45) 100%);
}

.theme-atlas .atlas-product-card__gallery .gallery-main-img {
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-atlas .atlas-product-card:hover .atlas-product-card__gallery .gallery-main-img {
	transform: scale(1.04);
}

.theme-atlas .atlas-product-card__thumbs {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.55rem 0.65rem 0.65rem;
	pointer-events: auto;
}

.theme-atlas .atlas-product-card__thumb {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.5rem;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
	transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-atlas .atlas-product-card__thumb:not(.active) {
	opacity: 0.88;
}

.theme-atlas .atlas-product-card__thumb:hover {
	transform: scale(1.06);
}

.theme-atlas .atlas-product-card__thumb:hover,
.theme-atlas .atlas-product-card__thumb.active {
	border-color: #fff;
	opacity: 1;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}

.theme-atlas .atlas-product-card__thumb.active {
	outline: 2px solid var(--t2, var(--atlas-green));
	outline-offset: 1px;
}

.theme-atlas .atlas-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.6rem 1rem 0.7rem;
}

.theme-atlas .atlas-product-card__title {
	margin: 0 0 0.3rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.theme-atlas .atlas-product-card__desc {
	margin: 0 0 0.7rem;
	font-size: 0.875rem;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: calc(1.65em * 2);
}

.theme-atlas .atlas-product-card__desc.is-empty {
	visibility: hidden;
	pointer-events: none;
	user: '';
}

.theme-atlas .atlas-product-card__price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.6rem;
	padding-top: 0;
}

.theme-atlas .atlas-product-card .price-accent {
	color: var(--t1, var(--store-price, #4FD1C5));
	text-shadow: 0 0 18px color-mix(in srgb, var(--store-price, #4FD1C5) 32%, transparent);
}

.theme-atlas .atlas-product-card__price-old {
	font-size: 0.8125rem;
	color: #94a3b8;
	text-decoration: line-through;
}

.theme-atlas .atlas-product-card__price-current {
	font-size: 0.96875rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.theme-atlas .atlas-product-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.4rem;
	margin-top: auto;
}

.theme-atlas .atlas-product-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.25rem;
	padding: 0.42rem 0.75rem;
	border-radius: 0.625rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-atlas .atlas-product-card__btn:hover {
	transform: translateY(-1px);
	filter: none;
}

.theme-atlas .atlas-product-card__btn:active {
	transform: translateY(0);
}

/* توضیحات — outline مدرن */
.theme-atlas .atlas-product-card__btn.btn-product-details {
	background: color-mix(in srgb, var(--t2, #14B8A6) 12%, #0f141c);
	color: var(--t2, #5EEAD4);
	border-color: color-mix(in srgb, var(--t2, #14B8A6) 28%, transparent);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-atlas .atlas-product-card__btn.btn-product-details:hover {
	background: color-mix(in srgb, var(--t2, #14B8A6) 18%, #121820);
	border-color: color-mix(in srgb, var(--t2, #14B8A6) 42%, transparent);
}

/* دایرکت — پررنگ و تمیز */
.theme-atlas .atlas-product-card__btn.store-theme-btn-direct {
	background: var(--store-direct-bg) !important;
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--store-direct-bg) 55%, transparent);
}

.theme-atlas .atlas-product-card__btn.store-theme-btn-direct:hover {
	filter: brightness(1.05);
	box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--store-direct-bg) 60%, transparent);
}

/* لینک پرداخت */
.theme-atlas .atlas-product-card__btn--alt {
	background: var(--store-btn-bg-alt);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 14px -8px rgba(6, 64, 43, 0.2);
}

.theme-atlas .atlas-product-card__btn--alt:hover {
	filter: brightness(1.05);
}

/* بارگذاری بیشتر */
.theme-atlas .atlas-load-more-wrap {
	margin-top: 1.5rem;
	text-align: center;
}

.theme-atlas .atlas-load-more-wrap.is-loading .atlas-load-spinner {
	display: inline-block;
}

.theme-atlas .atlas-load-sentinel {
	height: 1px;
}

.theme-atlas .atlas-load-more-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #64748b;
}

.theme-atlas .atlas-load-spinner {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid rgba(6, 64, 43, 0.15);
	border-top-color: var(--atlas-green);
	border-radius: 50%;
	animation: atlas-spin 0.7s linear infinite;
}

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

/* مودال و لایت‌باکس */
.theme-atlas .atlas-details-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.theme-atlas .atlas-details-modal.open {
	opacity: 1;
	visibility: visible;
}

.theme-atlas .atlas-details-modal .modal-box {
	width: min(100%, 32rem);
	max-height: 85vh;
	overflow: auto;
	background: var(--store-product-card-bg, linear-gradient(155deg, #1C222C 0%, #151921 100%));
	border: 1px solid color-mix(in srgb, var(--t2, #14B8A6) 16%, rgba(148, 163, 184, 0.12));
	border-radius: 1.25rem;
	padding: 1.25rem;
	box-shadow:
		0 12px 36px -16px rgba(0, 0, 0, 0.55),
		0 0 0 1px color-mix(in srgb, var(--t2, #14B8A6) 8%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	color: var(--store-text, #e2e8f0);
}

.theme-atlas .atlas-details-modal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.theme-atlas .atlas-details-modal .modal-close {
	font-size: 1.5rem;
	line-height: 1;
	border: none;
	background: transparent;
	color: var(--store-text, #94a3b8);
	opacity: 0.75;
	cursor: pointer;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.theme-atlas .atlas-details-modal .modal-close:hover {
	opacity: 1;
	color: var(--store-title, #f8fafc);
}

.theme-atlas .atlas-details-modal .detail-row {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--t2, #14B8A6) 10%, rgba(148, 163, 184, 0.14));
}

.theme-atlas .atlas-details-modal .detail-row:last-child {
	border-bottom: none;
}

.theme-atlas .atlas-details-modal .detail-label {
	font-size: 0.75rem;
	color: color-mix(in srgb, var(--store-text, #94a3b8) 72%, transparent);
}

.theme-atlas .atlas-details-modal .detail-value {
	color: var(--store-text, #e2e8f0);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.theme-atlas .atlas-details-modal .detail-value.multiline {
	white-space: pre-line;
}

.theme-atlas .atlas-details-modal .atlas-details-empty {
	color: color-mix(in srgb, var(--store-text, #94a3b8) 80%, transparent);
	font-size: 0.875rem;
}

@media (max-width: 768px) {
	.theme-atlas .atlas-main {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		padding-bottom: 1.5rem;
	}

	.theme-atlas .atlas-products-box {
		width: 100%;
		padding: 1rem 0.5rem 1.4rem;
		min-height: clamp(25rem, 58vh, 42rem);
	}

	.theme-atlas .atlas-cover {
		min-height: clamp(16rem, 42vh, 24rem);
	}

	.theme-atlas .atlas-cover__content {
		transform: translateY(clamp(0.35rem, 2vh, 1rem));
	}

	.theme-atlas .atlas-cover__title {
		font-size: clamp(1.05rem, 4.5vw, 1.45rem);
		line-height: 1.3;
	}

	.theme-atlas .atlas-cover__scrim {
		background:
			radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 55%, transparent 78%),
			linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(6, 64, 43, 0.1) 100%);
	}

	.theme-atlas .atlas-product-card--collection {
		min-height: 16rem;
	}

	.theme-atlas .atlas-collection-card__gallery {
		aspect-ratio: 5 / 6;
	}

	.theme-atlas .atlas-collection-card__body {
		padding: 0.5rem 0.65rem 0.2rem;
	}

	.theme-atlas .atlas-product-card--collection .atlas-product-card__title {
		font-size: 0.875rem;
		margin-bottom: 0.25rem;
	}

	.theme-atlas .atlas-product-card--collection .atlas-product-card__price {
		gap: 0.4rem;
		margin-bottom: 0;
	}

	.theme-atlas .atlas-product-card--collection .atlas-product-card__actions {
		margin-bottom: 0.1rem;
	}
}

/* لایت‌باکس */
.theme-atlas .lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.theme-atlas .lightbox.open {
	opacity: 1;
	visibility: visible;
}

.theme-atlas .lightbox img {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: calc(90vh - 5rem);
	object-fit: contain;
	border-radius: 1rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.theme-atlas .lightbox-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(90vw, 1000px);
	max-width: 100%;
	max-height: calc(90vh - 2rem);
}

.theme-atlas .lightbox-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.theme-atlas .lightbox-btn.prev { right: 12px; }
.theme-atlas .lightbox-btn.next { left: 12px; }

.theme-atlas .lightbox-close {
	position: absolute;
	z-index: 10;
	top: max(12px, env(safe-area-inset-top));
	left: max(12px, env(safe-area-inset-left));
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.theme-atlas .lightbox-counter {
	position: absolute;
	z-index: 10;
	bottom: max(20px, env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
}

/* ── Contact Icons ── */
.theme-atlas .atlas-contact-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin-top: 1.25rem;
}
.theme-atlas .atlas-contact-icon-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	box-shadow: 0 2px 10px rgba(255, 255, 255, 0.35), 0 3px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	text-decoration: none;
}
.theme-atlas .atlas-contact-icon-link:hover {
	transform: translateY(-3px) scale(1.08);
	box-shadow: 0 4px 16px rgba(255, 255, 255, 0.45), 0 6px 18px rgba(0, 0, 0, 0.24);
}
.theme-atlas .atlas-contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 0.75rem;
	background: #64748b;
	color: #fff;
}
.theme-atlas .atlas-contact-icon svg {
	width: 1.65rem;
	height: 1.65rem;
	stroke: currentColor;
}
.theme-atlas .atlas-contact-icon-img {
	width: 1.7rem;
	height: 1.7rem;
	display: block;
	object-fit: contain;
	filter: brightness(0) invert(1);
}
.theme-atlas .atlas-contact-icon-img--native {
	filter: none;
}
.theme-atlas .atlas-contact-icon-link--telegram  .atlas-contact-icon { background: #0088cc; }
.theme-atlas .atlas-contact-icon-link--whatsapp  .atlas-contact-icon { background: #25D366; }
.theme-atlas .atlas-contact-icon-link--youtube   .atlas-contact-icon { background: #FF0000; }
.theme-atlas .atlas-contact-icon-link--mobile    .atlas-contact-icon { background: #0891b2; }
.theme-atlas .atlas-contact-icon-link--phone     .atlas-contact-icon { background: #F97316; }
.theme-atlas .atlas-contact-icon-link--instagram .atlas-contact-icon { background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%); }
.theme-atlas .atlas-contact-icon-link--x         .atlas-contact-icon { background: #000000; }
.theme-atlas .atlas-contact-icon-link--website   .atlas-contact-icon { background: #0EA5E9; }
.theme-atlas .atlas-contact-icon-link--eitaa     .atlas-contact-icon { background: #F97316; }
.theme-atlas .atlas-contact-icon-link--bale      .atlas-contact-icon { background: #2563EB; }
.theme-atlas .atlas-contact-icon-link--gap       .atlas-contact-icon { background: #00A36C; }
.theme-atlas .atlas-contact-icon-link--soroush   .atlas-contact-icon { background: #0088cc; }
.theme-atlas .atlas-contact-icon-link--rubika    .atlas-contact-icon { background: #7C3AED; }
.theme-atlas .atlas-contact-icon-link--generic   .atlas-contact-icon { background: #475569; }

@media (max-width: 768px) {
	.theme-atlas .atlas-contact-icons { gap: 0.5rem; margin-top: 1rem; }
	.theme-atlas .atlas-contact-icon-link { width: 2.4rem; height: 2.4rem; }
	.theme-atlas .atlas-contact-icon-img { width: 1.45rem; height: 1.45rem; }
}

/* ── Back to Top (Dark + Neon) ── */
.theme-atlas #atlasBackToTop {
	position: fixed;
	z-index: 45;
	/* دسکتاپ: روبه‌روی دکمه فروشگاه (راست) → سمت چپ */
	right: auto;
	left: max(1rem, env(safe-area-inset-left));
	bottom: max(1.25rem, calc(1rem + env(safe-area-inset-bottom)));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 3rem;
	height: 3rem;
	min-width: 3rem;
	min-height: 3rem;
	max-width: 3rem;
	max-height: 3rem;
	padding: 0;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--t2, #14B8A6) 42%, rgba(148, 163, 184, 0.22));
	border-radius: 0.85rem;
	background:
		linear-gradient(155deg,
			color-mix(in srgb, #1C222C 88%, var(--t2, #14B8A6)) 0%,
			#151921 55%,
			#0F131A 100%);
	color: var(--t2, #4FD1C5);
	box-shadow:
		0 10px 28px -12px rgba(0, 0, 0, 0.65),
		0 0 0 1px color-mix(in srgb, var(--t2, #14B8A6) 12%, transparent),
		0 0 22px -8px color-mix(in srgb, var(--t2, #14B8A6) 45%, transparent);
	cursor: pointer;
	visibility: hidden;
	pointer-events: none;
	-webkit-tap-highlight-color: transparent;
	isolation: isolate;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.theme-atlas #atlasBackToTop::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at 30% 20%,
		color-mix(in srgb, var(--t2, #14B8A6) 28%, transparent) 0%,
		transparent 62%);
	opacity: 0.85;
	pointer-events: none;
}

.theme-atlas #atlasBackToTop .atlas-back-top-ico {
	position: relative;
	z-index: 1;
	width: 1.35rem;
	height: 1.35rem;
	display: block;
	flex-shrink: 0;
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--t2, #14B8A6) 55%, transparent));
}

.theme-atlas #atlasBackToTop:hover {
	border-color: color-mix(in srgb, var(--t2, #14B8A6) 70%, rgba(255, 255, 255, 0.2));
	color: #7ee8df;
	box-shadow:
		0 14px 32px -12px rgba(0, 0, 0, 0.7),
		0 0 0 1px color-mix(in srgb, var(--t2, #14B8A6) 28%, transparent),
		0 0 28px -4px color-mix(in srgb, var(--t2, #14B8A6) 55%, transparent);
}

.theme-atlas #atlasBackToTop:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--t2, #14B8A6) 70%, transparent);
	outline-offset: 3px;
}

.theme-atlas #atlasBackToTop.is-visible {
	pointer-events: auto;
}

@media (max-width: 1023px) {
	.theme-atlas #atlasBackToTop {
		width: 2.75rem;
		height: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
		max-width: 2.75rem;
		max-height: 2.75rem;
		border-radius: 0.75rem;
		/* هم‌تراز عمودی با دکمه فروشگاه، سمت راست */
		left: auto;
		right: max(0.875rem, env(safe-area-inset-right));
		bottom: max(1rem, env(safe-area-inset-bottom));
	}

	.theme-atlas #atlasBackToTop .atlas-back-top-ico {
		width: 1.2rem;
		height: 1.2rem;
	}
}

@media (pointer: coarse) {
	.theme-atlas #atlasBackToTop {
		width: 2.75rem !important;
		height: 2.75rem !important;
		min-width: 2.75rem !important;
		min-height: 2.75rem !important;
		max-width: 2.75rem !important;
		max-height: 2.75rem !important;
		padding: 0 !important;
	}
}
