/* =========================================================
   امین الکترو — فروشگاه UX قوی v3
   ========================================================= */
:root {
	--ae-shop-ink: #0f172a;
	--ae-shop-muted: #64748b;
	--ae-shop-line: #e2e8f0;
	--ae-shop-bg: #f1f5f9;
	--ae-shop-card: #ffffff;
	--ae-shop-accent: #0369a1;
	--ae-shop-accent-soft: #e0f2fe;
	--ae-shop-radius: 14px;
	--ae-shop-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
	--ae-shop-font: "Vazirmatn", Tahoma, sans-serif;
}

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.tax-pa_brand,
body.search-results,
body.post-type-archive-product {
	background: var(--ae-shop-bg);
	font-family: var(--ae-shop-font);
}

/* ---------- هیرو برندمحور ---------- */
.page-title,
.wd-page-title,
.title-shop,
.wd-page-title .wd-page-title-content,
body .page-title.page-title-default,
body .wd-page-title.wd-page-title-default {
	font-family: var(--ae-shop-font) !important;
	background: linear-gradient(160deg, #0b1220 0%, #1e293b 70%, #0f172a 100%) !important;
	background-image: none !important;
	background-color: #0f172a !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 0 !important;
	padding-top: 1.35rem !important;
	padding-bottom: 1.35rem !important;
}

.wd-page-title::before,
.wd-page-title::after,
.page-title::before,
.page-title::after,
.wd-page-title .wd-page-title-bg,
.page-title .wd-page-title-bg {
	display: none !important;
	opacity: 0 !important;
}

.wd-page-title .entry-title,
.page-title .title,
.wd-page-title h1,
.page-title .entry-title {
	font-weight: 800 !important;
	letter-spacing: -0.03em;
	color: #fff !important;
	font-size: clamp(1.55rem, 2.4vw, 2.1rem) !important;
	margin: 0 !important;
	line-height: 1.25 !important;
}

/* برند بالای عنوان */
body.post-type-archive-product .wd-page-title .entry-title::before,
body.tax-product_cat .wd-page-title .entry-title::before,
body.tax-pa_brand .wd-page-title .entry-title::before,
body.post-type-archive-product .page-title .title::before,
body.tax-product_cat .page-title .title::before {
	content: "الکتروامین";
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #7dd3fc;
	margin-bottom: 0.4rem;
}

/* زیر‌عنوان کوتاه */
body.post-type-archive-product .wd-page-title .entry-title::after,
body.tax-product_cat .wd-page-title .entry-title::after,
body.tax-pa_brand .wd-page-title .entry-title::after {
	content: "تجهیزات برق صنعتی · انتخاب سریع از میان صدها محصول";
	display: block;
	font-size: 0.86rem;
	font-weight: 500;
	color: #94a3b8;
	margin-top: 0.45rem;
	letter-spacing: 0;
	max-width: 28rem;
}

.wd-page-title .breadcrumbs,
.page-title .breadcrumbs,
.wd-page-title .woocommerce-breadcrumb,
.wd-breadcrumbs {
	color: #94a3b8 !important;
	font-size: 0.82rem !important;
}

.wd-page-title .breadcrumbs a,
.woocommerce-breadcrumb a {
	color: #cbd5e1 !important;
}

/* مخفی شلوغی‌های دمو زیر عنوان */
.wd-page-title .wd-nav-product-cat,
.page-title .wd-nav-product-cat,
.wd-page-title .wd-dropdown-cats,
.wd-page-title .wd-nav-product-cat-title,
.wd-page-title .wd-nav-product-cat-wrap,
.page-title .wd-nav-product-cat-wrap,
.wd-page-title .shop-title-wrapper > .wd-nav,
.wd-page-title .wd-btn-show-cat,
.wd-page-title [class*="nav-product-cat"],
.wd-shop-tools .wd-nav-product-cat-wrap .wd-dropdown,
.woodmart-woocommerce-layered-nav .wd-nav-img,
.wd-nav-img[src*="flower"],
img[src*="flower.svg"],
img[src*="cat-flower"],
.menu-item a[href*="/accessories/"],
.cat-item-25 {
	display: none !important;
}

/* فشرده‌تر کردن هیرو */
.wd-page-title .container,
.page-title .container {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
}

body.post-type-archive-product .wd-page-title,
body.tax-product_cat .wd-page-title,
body.tax-pa_brand .wd-page-title {
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}

/* فیلترهای دمو */
#woodmart-woocommerce-layered-nav-6,
#woodmart-woocommerce-layered-nav-7,
.sidebar-widget.woodmart-woocommerce-layered-nav:has(a[href*="filter_color"]),
.sidebar-widget.woodmart-woocommerce-layered-nav:has(a[href*="filter_size"]),
.widget_rating_filter,
.widget_top_rated_products,
aside.sidebar-container .woodmart-recent-posts,
.widget_recent_entries {
	display: none !important;
}

/* ---------- کنترل‌دک فشرده ---------- */
.ae-shop-deck {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	background: var(--ae-shop-card);
	border: 1px solid var(--ae-shop-line);
	border-radius: var(--ae-shop-radius);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ae-shop-search {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	align-items: stretch;
}

.ae-shop-search input[type="search"] {
	width: 100%;
	border: 1px solid var(--ae-shop-line);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	font-family: var(--ae-shop-font);
	font-size: 0.95rem;
	background: #f8fafc;
	color: var(--ae-shop-ink);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ae-shop-search input[type="search"]:focus {
	border-color: #7dd3fc;
	box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
	background: #fff;
}

.ae-shop-search button {
	border: 0;
	border-radius: 12px;
	padding: 0.75rem 1.25rem;
	background: var(--ae-shop-ink);
	color: #fff;
	font-family: var(--ae-shop-font);
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ae-shop-search button:hover {
	background: var(--ae-shop-accent);
	transform: translateY(-1px);
}

.ae-filter-row {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.65rem;
	align-items: center;
	min-width: 0;
}

.ae-filter-row__label {
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--ae-shop-muted);
	white-space: nowrap;
}

.ae-scroll-x {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.4rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 2px;
	min-width: 0;
}

.ae-scroll-x::-webkit-scrollbar {
	height: 4px;
}

.ae-scroll-x::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}

.ae-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.38rem 0.75rem;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid var(--ae-shop-line);
	color: var(--ae-shop-ink) !important;
	text-decoration: none !important;
	font-size: 0.82rem;
	font-weight: 600;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.ae-chip span {
	color: var(--ae-shop-muted);
	font-weight: 500;
	font-size: 0.74rem;
}

.ae-chip:hover,
.ae-chip.is-active {
	background: var(--ae-shop-ink);
	border-color: var(--ae-shop-ink);
	color: #fff !important;
}

.ae-chip:hover span,
.ae-chip.is-active span {
	color: #7dd3fc;
}

.ae-chip-brand.is-active,
.ae-chip-brand:hover {
	background: var(--ae-shop-accent);
	border-color: var(--ae-shop-accent);
}

.ae-chip-brand.is-active span,
.ae-chip-brand:hover span {
	color: #e0f2fe;
}

/* جعبه برند قدیمی (اگر باقی مانده) */
.ae-brand-filter {
	display: none !important;
}

/* ---------- نوار ابزار ---------- */
.shop-loop-head,
.wd-shop-tools {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0.25rem 0 0.85rem !important;
	margin-bottom: 0.5rem !important;
}

.shop-loop-head,
.wd-shop-tools,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-ordering select {
	font-family: var(--ae-shop-font) !important;
}

.woocommerce-ordering select {
	border-radius: 10px !important;
	border-color: var(--ae-shop-line) !important;
	padding: 0.45rem 0.75rem !important;
	background: #fff !important;
}

/* ---------- کارت محصول یکدست ---------- */
.products.wd-products,
ul.products {
	--wd-col-lg: 3;
	gap: 1rem !important;
}

.products .product,
ul.products li.product,
.wd-product {
	display: flex !important;
	flex-direction: column;
	background: var(--ae-shop-card) !important;
	border: 1px solid var(--ae-shop-line) !important;
	border-radius: var(--ae-shop-radius) !important;
	overflow: hidden;
	box-shadow: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	padding: 0 !important;
	min-height: 100%;
}

.products .product:hover,
ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: var(--ae-shop-shadow);
	border-color: #cbd5e1 !important;
}

.products .product .product-wrapper,
.wd-product .product-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1;
	background: #fff !important;
	height: 100%;
}

/* =========================================================
   ضد تداخل عکس تیره / placeholder مشکی / wd-hover-info
   ========================================================= */
body.woocommerce .wd-product.wd-hover-info .wd-product-thumb,
body.woocommerce .wd-product.wd-hover-info .product-element-top,
body.woocommerce .product-grid-item.wd-hover-info .product-element-top {
	display: flex !important;
	flex-direction: column !important;
	position: relative !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
	background: #fff !important;
}

body.woocommerce .wd-product.wd-hover-info .product-image-link,
body.woocommerce .wd-product .wd-product-img-link,
body.woocommerce .product-grid-item .product-image-link {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	background: #f1f5f9 !important;
	overflow: hidden !important;
	order: 0 !important;
}

/* همه تصاویر محصول باید دیده شوند */
body.woocommerce .products .product .product-image-link img,
body.woocommerce .wd-product .product-image-link img,
body.woocommerce .wd-product .wd-product-img-link img {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
	max-width: 92% !important;
	max-height: 92% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	margin: 0 auto !important;
}

/* نشان «بدون تصویر» روی placeholder */
body.woocommerce .products .product .product-image-link:has(img[src*="ae-placeholder"])::after {
	content: "بدون تصویر";
	position: absolute;
	left: 50%;
	top: 72%;
	transform: translate(-50%, -50%);
	font-family: "Vazirmatn", Tahoma, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	color: #94a3b8;
	pointer-events: none;
	white-space: nowrap;
}

body.woocommerce .wd-product.wd-hover-info .top-information,
body.woocommerce .wd-product.wd-hover-info .bottom-information,
body.woocommerce .product-grid-item.wd-hover-info .top-information,
body.woocommerce .product-grid-item.wd-hover-info .bottom-information {
	position: static !important;
	inset: auto !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	background: #fff !important;
	color: #0f172a !important;
	padding: 0.65rem 0.85rem !important;
	margin: 0 !important;
	text-shadow: none !important;
	z-index: 2 !important;
	pointer-events: auto !important;
	display: block !important;
}

body.woocommerce .wd-product.wd-hover-info .top-information {
	order: 1 !important;
	padding-bottom: 0.15rem !important;
	border-top: 0 !important;
}

body.woocommerce .wd-product.wd-hover-info .bottom-information {
	order: 2 !important;
	padding: 0.15rem 0 0.95rem !important;
}

body.woocommerce .wd-product.wd-hover-info .wd-entities-title,
body.woocommerce .wd-product.wd-hover-info .wd-entities-title a,
body.woocommerce .wd-product.wd-hover-info .price,
body.woocommerce .wd-product.wd-hover-info .price .amount,
body.woocommerce .wd-product.wd-hover-info .ae-loop-meta,
body.woocommerce .wd-product.wd-hover-info .ae-loop-sku {
	color: #0f172a !important;
	text-shadow: none !important;
	opacity: 1 !important;
}

body.woocommerce .wd-product.wd-hover-info .price,
body.woocommerce .wd-product.wd-hover-info .price .amount,
body.woocommerce .wd-product.wd-hover-info .price .amount bdi {
	color: #0369a1 !important;
}

/* دکمه‌های شناور روی تصویر را مزاحم نکن */
body.woocommerce .wd-product.wd-hover-info .wd-buttons {
	position: absolute !important;
	z-index: 5 !important;
}
.products .product .product-element-top,
.wd-product .product-element-top {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	border-radius: 0;
	overflow: visible !important;
	background: #fff !important;
	aspect-ratio: auto !important;
	min-height: 0 !important;
	height: auto !important;
}

.products .product .product-image-link,
.wd-product .product-image-link {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	aspect-ratio: 1 / 1;
	overflow: hidden !important;
	background: #f1f5f9 !important;
	border-radius: 0;
	border-bottom: 1px solid var(--ae-shop-line);
}

/* مات روشن پشت عکس‌های تیره + contain */
.products .product .product-image-link img,
.products .product .product-element-top img,
.wd-product img,
.products .product img.attachment-woocommerce_thumbnail,
.products .product img.wp-post-image {
	object-fit: contain !important;
	object-position: center !important;
	width: auto !important;
	max-width: 92% !important;
	max-height: 92% !important;
	height: auto !important;
	margin: 0 auto !important;
	background: #f1f5f9 !important;
	mix-blend-mode: normal !important;
	filter: none !important;
}

/* حذف ماسک/اورلی تیره وودمارت روی تصویر */
.products .product .product-element-top::before,
.products .product .product-element-top::after,
.products .product .product-image-link::before,
.products .product .product-image-link::after,
.products .product .hover-img,
.products .product .hover-mask,
.products .product .wd-hover-border,
.products .product .color-overlay,
.wd-product .hover-mask {
	display: none !important;
	opacity: 0 !important;
	background: none !important;
	content: none !important;
	box-shadow: none !important;
}

/* عنوان/اطلاعات دیگر روی عکس ننشیند */
.products .product .top-information,
.wd-product .top-information,
.products .product .product-element-top .top-information {
	position: static !important;
	inset: auto !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	transform: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	background: #fff !important;
	color: var(--ae-shop-ink) !important;
	padding: 0.7rem 0.85rem 0.15rem !important;
	margin: 0 !important;
	text-align: right !important;
	z-index: 1 !important;
	pointer-events: auto !important;
}

.products .product .top-information .wd-entities-title,
.products .product .top-information .wd-entities-title a,
.products .product .top-information .woocommerce-loop-product__title,
.products .product .top-information .woocommerce-loop-product__title a,
.wd-product .top-information a {
	color: var(--ae-shop-ink) !important;
	text-shadow: none !important;
	background: transparent !important;
}

/* مخفی دسته تکراری وودمارت */
.products .product .wd-product-cats,
.wd-product .wd-product-cats,
.products .product .posted_in,
.products .product .wd-product-brands-links,
.products .product .top-information .wd-product-cats {
	display: none !important;
}

.products .product .wd-entities-title,
.products .product .woocommerce-loop-product__title,
.wd-product .wd-entities-title,
.products .product .wd-entities-title a,
.products .product .woocommerce-loop-product__title a {
	font-family: var(--ae-shop-font) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: var(--ae-shop-ink) !important;
	line-height: 1.45 !important;
	margin: 0.15rem 0 0.2rem !important;
	min-height: 2.5em;
	text-shadow: none !important;
}

.ae-loop-meta {
	margin: 0 0.9rem 0.15rem;
	font-size: 0.78rem;
	color: var(--ae-shop-muted);
	font-weight: 500;
	line-height: 1.4;
	flex: 0 0 auto;
}

.ae-loop-sku {
	margin: 0 0.9rem 0.35rem;
	font-size: 0.75rem;
	color: var(--ae-shop-muted);
	flex: 0 0 auto;
}

.ae-loop-sku .ltr {
	direction: ltr;
	unicode-bidi: isolate;
	font-weight: 700;
	color: #334155;
}

.ae-price-inquiry,
.ae-loop-inquiry {
	display: none !important;
}

.products .product .price,
.wd-product .price {
	margin: 0.15rem 0.9rem 0.55rem !important;
	font-family: var(--ae-shop-font) !important;
	font-weight: 800 !important;
	font-size: 1.02rem !important;
	color: var(--ae-shop-accent) !important;
	min-height: 1.5em;
}

.products .product .price .amount bdi,
.wd-product .price .amount bdi {
	display: inline-flex !important;
	flex-direction: row-reverse;
	align-items: baseline;
	gap: 0.3rem;
	direction: ltr;
	unicode-bidi: isolate;
}

.products .product .price .woocommerce-Price-currencySymbol {
	font-size: 0.78rem !important;
	font-weight: 700 !important;
}

/* فضای خالی قیمت وقتی استعلام است */
.products .product:has(.ae-card-cta--inquiry) .price:empty,
.products .product:has(.ae-card-cta--inquiry) .price:blank {
	min-height: 0;
	margin: 0 !important;
}

/* CTA یکدست پایین کارت — فاصله از لبه‌های کارت */
.ae-card-cta,
.products .product .ae-card-cta,
.products .product a.button.ae-card-cta,
.products .product a.button.ae-loop-btn-wa,
.products .product a.button[href*="wa.me"],
.products .product .add_to_cart_button.ae-card-cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0.55rem 0.9rem 1.05rem !important;
	padding: 0.7rem 0.9rem !important;
	border-radius: 12px !important;
	font-family: var(--ae-shop-font) !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border: 0 !important;
	width: calc(100% - 1.8rem) !important;
	max-width: calc(100% - 1.8rem) !important;
	box-sizing: border-box !important;
	line-height: 1.35 !important;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: none;
}

.ae-card-cta--inquiry,
.products .product a.button.ae-card-cta--inquiry {
	background: var(--ae-shop-ink) !important;
	color: #fff !important;
}

.ae-card-cta--cart,
.products .product a.button.ae-card-cta--cart {
	background: var(--ae-shop-accent) !important;
	color: #fff !important;
}

.ae-card-cta:hover,
.products .product a.button.ae-card-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
	color: #fff !important;
}

.ae-card-cta--inquiry:hover {
	background: #1e293b !important;
}

.ae-card-cta--cart:hover {
	background: #0c4a6e !important;
}

/* آیکون‌های شناور وودمارت — فقط روی تصویر، بدون جابه‌جایی CTA */
.products .product .wd-buttons,
.wd-product .wd-buttons {
	position: absolute !important;
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
	bottom: auto !important;
	opacity: 0;
	transform: none !important;
	transition: opacity 0.2s ease;
	z-index: 4 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
}

.products .product:hover .wd-buttons {
	opacity: 1;
}

/* جلوگیری از پرش دکمه استعلام/سبد هنگام هاور */
.products .product .bottom-information,
.wd-product .bottom-information,
.products .product:hover .bottom-information,
.wd-product.wd-hover-info:hover .bottom-information,
.products .product .top-information,
.products .product:hover .top-information,
.wd-product.wd-hover-info:hover .top-information {
	position: static !important;
	transform: none !important;
	top: auto !important;
	bottom: auto !important;
	transition: none !important;
}

.products .product .ae-card-cta,
.products .product:hover .ae-card-cta {
	position: static !important;
	transform: none !important;
	top: auto !important;
	bottom: auto !important;
}

.products .product .wd-add-btn:not(.ae-card-cta),
.products .product .button:not(.ae-card-cta):not(.add_to_cart_button) {
	/* leave theme hover icons; primary CTA is bottom */
}

/* مخفی دکمه سبد شناور تکراری وودمارت */
.products .product .wd-add-btn,
.products .product .product-element-top .add_to_cart_button,
.products .product .wd-buttons .button.product_type_simple {
	display: none !important;
}

/* اگر وودمارت ساختار flex ندارد، wrapper را مجبور کن */
.products .product .product-element-bottom,
.wd-product .product-element-bottom,
.products .product .wrapp-product-price,
.products .product .swap-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-bottom: 0.25rem;
}

/* CTA در bottom-information */
.products .product .bottom-information,
.wd-product .bottom-information {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0.35rem;
	padding: 0.2rem 0 1.1rem !important;
	overflow: visible !important;
	background: #fff !important;
	color: var(--ae-shop-ink) !important;
	position: static !important;
	inset: auto !important;
	opacity: 1 !important;
	text-shadow: none !important;
	box-sizing: border-box !important;
}

.products .product .bottom-information .price,
.products .product .bottom-information .price .amount,
.products .product .bottom-information .price .amount bdi {
	color: var(--ae-shop-accent) !important;
	text-shadow: none !important;
	padding: 0 0.9rem !important;
}

.products .product .bottom-information .ae-card-cta,
.products .product .ae-card-cta,
.products .product:hover .ae-card-cta,
.wd-product .ae-card-cta {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: calc(100% - 1.8rem) !important;
	max-width: calc(100% - 1.8rem) !important;
	margin: 0.55rem 0.9rem 0 !important;
	min-height: 42px !important;
	height: auto !important;
	box-sizing: border-box !important;
}

.products .product .top-information .ae-card-cta {
	display: none !important;
}

/* اطمینان برای آرشیو دسته/برند/جستجو */
body.tax-product_cat .products .product .top-information,
body.tax-pa_brand .products .product .top-information,
body.post-type-archive-product .products .product .top-information,
body.woocommerce-shop .products .product .top-information,
body.search-results .products .product .top-information {
	position: static !important;
	background: #fff !important;
}

/* ---------- سایدبار ---------- */
.sidebar-container .widget,
.wd-sidebar .widget {
	background: #fff;
	border: 1px solid var(--ae-shop-line);
	border-radius: 14px;
	padding: 1rem 1.1rem;
	margin-bottom: 1rem;
}

.sidebar-container .widget-title,
.wd-sidebar .widget-title {
	font-family: var(--ae-shop-font) !important;
	font-size: 0.9rem !important;
	font-weight: 800 !important;
	color: var(--ae-shop-ink) !important;
	text-transform: none !important;
	margin-bottom: 0.75rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--ae-shop-line);
}

.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .price_slider_wrapper .ui-widget-header {
	background: var(--ae-shop-accent) !important;
}

.widget_price_filter .button {
	background: var(--ae-shop-ink) !important;
	border-radius: 10px !important;
	font-family: var(--ae-shop-font) !important;
}

/* ---------- صفحه‌بندی ---------- */
.woocommerce-pagination .page-numbers li .page-numbers,
.wd-pagination a,
.wd-pagination span {
	border-radius: 10px !important;
	font-family: var(--ae-shop-font) !important;
	min-width: 40px;
	height: 40px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

.woocommerce-pagination .page-numbers li .page-numbers.current,
.wd-pagination .current {
	background: var(--ae-shop-accent) !important;
	border-color: var(--ae-shop-accent) !important;
	color: #fff !important;
}

/* ---------- تداخل FAB / نوار پایین ---------- */
@media (max-width: 991px) {
	body.ae-minimal.woocommerce-shop .ae-fab,
	body.ae-minimal.tax-product_cat .ae-fab,
	body.ae-minimal.tax-pa_brand .ae-fab,
	body.ae-minimal.post-type-archive-product .ae-fab {
		bottom: 92px !important;
		right: 14px !important;
		gap: 0.45rem;
	}

	body.ae-minimal.woocommerce-shop .ae-fab a,
	body.ae-minimal.tax-product_cat .ae-fab a,
	body.ae-minimal.post-type-archive-product .ae-fab a {
		width: 44px !important;
		height: 44px !important;
		opacity: 0.92;
	}

	/* نوار پایین: فقط برچسب‌های ضروری */
	body.ae-minimal .wd-toolbar .wd-toolbar-label {
		font-size: 0.65rem !important;
	}
}

@media (min-width: 992px) {
	body.ae-minimal .wd-toolbar {
		display: none !important;
	}
	body.ae-minimal {
		padding-bottom: 0 !important;
	}
	body.ae-minimal .ae-fab {
		bottom: 28px !important;
		right: 22px !important;
	}
}

/* موبایل */
@media (max-width: 767px) {
	.ae-shop-deck {
		padding: 0.75rem;
		margin-bottom: 0.75rem;
		border-radius: 12px;
	}

	.ae-shop-search {
		grid-template-columns: 1fr;
	}

	.ae-filter-row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.ae-filter-row__label {
		font-size: 0.72rem;
	}

	body.post-type-archive-product .wd-page-title .entry-title::after,
	body.tax-product_cat .wd-page-title .entry-title::after {
		font-size: 0.78rem;
		max-width: 100%;
	}

	.products .product .wd-entities-title {
		font-size: 0.88rem !important;
		min-height: 2.5em;
	}

	ul.products {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem !important;
	}

	ul.products li.product {
		width: auto !important;
		float: none !important;
		margin: 0 !important;
	}

	.ae-card-cta,
	.products .product .ae-card-cta {
		font-size: 0.78rem !important;
		padding: 0.6rem 0.55rem !important;
		margin-left: 0.55rem !important;
		margin-right: 0.55rem !important;
		margin-bottom: 0.55rem !important;
		width: calc(100% - 1.1rem);
	}
}

@media (max-width: 420px) {
	ul.products {
		grid-template-columns: 1fr;
	}
}

/* کاهش شلوغی «نمایش فیلترها» وقتی دک کنترل داریم */
body.woocommerce-shop .wd-shop-tools .wd-filter-buttons,
body.tax-product_cat .wd-shop-tools .wd-filter-buttons {
	opacity: 0.9;
}

@keyframes ae-deck-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.ae-shop-deck {
	animation: ae-deck-in 0.35s ease both;
}

.products .product {
	animation: ae-deck-in 0.4s ease both;
}
