/* ============================================================
   1) PRODUCT GRID & CARDS
   ============================================================ */
.woo-products-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
	.woo-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 768px) {
	.woo-products-grid {
		gap:  12px;
		grid-template-columns: 1fr;
	}
}
.woo-filter-toggle-btn {
	border: 1px solid var(--filter-border) !important;
}

.woo-product-card {
	position: relative;
	background-color: #fff;
	padding: 14px;
	border: 1px solid #F4F4F4;
	border-radius: 8px;
	min-width: 0;
	opacity: 0;
	animation: fadeInUp 0.5s ease forwards;
}
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.woo-product-card img.hidden,
.woo-product-card h3.hidden,
.woo-product-card p.hidden,
.woo-product-card a.hidden {
	display: none;
}
.woo-product-card > a {
	display: block;
	text-decoration: none;
}
.woo-product-card > a:hover .card-title {
	color: #1C5940;
	transition: color 0.3s ease;
}
.product-image-link {
	position: relative;
	display: block;
	overflow: hidden;
}
.product-main-image {
	display: block;
	width: 100%;
	transition: opacity 0.4s ease;
	position: relative;
	z-index: 2;
}
.product-gallery-image {
	display: block;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
}
.product-image-link:hover .product-main-image { opacity: 0; }
.product-image-link:hover .product-gallery-image { opacity: 1; }

.card-title {
	font-size:24px!important;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
	min-width: 0;
	justify-content: left;
  display: flex;
}
.product-subtitle {
	display: flex;
	justify-content: left;
}
.card-title {

	font-weight: 700 !important;
}
.product-footer-row {
	flex-direction: row-reverse;
	border-top: 1px solid transparent;
	border-image: linear-gradient(to right, transparent, #ccc, transparent) 1;
	padding-top: 10px;
	padding-bottom: 0;
}
.price-container {
	display: flex;
	justify-content: end !important;
	align-items: center;
	gap: 14px;
	margin: 0 !important;
	min-height: 43px;
}
.price-container-single {
	display: flex;
	flex-direction: column-reverse;
}
.regular-price {
	text-align: left;
	font-size: 14px;
	color: #777;
}
.regular-price .woocommerce-Price-currencySymbol {
	display: none;
}
.sale-price {
	font-size: 24px;
	font-weight: bold;
	text-align: left;
}
.sale-price bdi {
	display: flex !important;
	gap: 6px;
	align-items: center;
	margin-top: -6px;
	flex-direction: row-reverse;
	margin-top: 4px;
	font-size: 24px;
}
.discount {
	position: absolute;
	top: 4%;
	z-index: 998;
	line-height: 22px;
	font-size: 16px;
	gap: 2px !important;
	flex-direction: row-reverse;
	font-weight: bold;
	color: #fff;
	padding: 0 0.5rem;
	border-radius: 8px;
	background: #f14559 !important;
	box-shadow: 3px 1px 4px 0 rgba(241, 69, 89, 0.26);
	display: flex;
	align-items: center;
}
.out-of-stock {
	font-size: 14px;
	color: #e74c3c;
	font-weight: bold;
	width: 100%;
}
.available-call {
	font-size: 14px;
	color: #27ae60;
	font-weight: bold;
	width: 100%;
}
span.woocommerce-Price-amount.amount,
.discount {
	font-family: var(--e-global-typography-b2452c9-font-family);
}

/* Pagination */
.woo-page-numbers .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	background: #fff;
	margin: 0 5px;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
}
.woo-page-numbers .page-numbers.current {
	background-color: #ebebeb;
	color: #000;
	border-color: #ebebeb;
}
.woo-page-numbers .page-numbers:hover {
	background-color: #f3f3f3;
}

/* Skeleton */
.skeleton-card { position: relative; }
.shimmer {
	position: absolute;
	top: 0;
	left: -150%;
	width: 150%;
	height: 100%;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
	animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer {
	0%   { left: -150%; }
	100% { left: 100%; }
}
@media (max-width: 480px) {
	.skeleton-image { height: auto; aspect-ratio: 1 / 1; }
}

/* ============================================================
   2) FILTER DESIGN TOKENS (single source of truth)
   ============================================================ */
.woo-filter-container {
	--filter-primary: #1C5940;
	--filter-primary-soft: #EDF3F0;
	--filter-primary-hover: #5E7C72;
	--filter-accent: #C69F5A;
	--filter-accent-soft: #F6EFDF;
	--filter-accent-hover: #A87F2F;
	--filter-border: #e6e8eb;
	--filter-border-strong: #d5d9de;
	--filter-text: #2a2f35;
	--filter-muted: #7b828a;
	--filter-bg: #ffffff;
	--filter-bg-soft: #f7f8f9;
	--filter-radius: 0;
	--filter-radius-sm: 0;
	--filter-spacing: 16px;
	--filter-check-size: 18px;
	--filter-input-h: 42px;

	position: relative;
	direction: rtl;
	text-align: right;
	color: var(--filter-text);
	font-family: inherit;
}
.woo-filter-container *,
.woo-filter-container *::before,
.woo-filter-container *::after {
	box-sizing: border-box;
}
.woo-filter-container :focus-visible {
	outline: 2px solid var(--filter-primary);
	outline-offset: 2px;
}
.woo-filter-container .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
body.no-scroll { overflow: hidden !important; }

/* ============================================================
   3) SIDEBAR / PANEL SHELL (desktop)
   ============================================================ */
.woo-filter-header { display: none; }
.woo-filter-overlay { display: none; }
.woo-sort-overlay { display: none; }
.woo-sort-panel { display: none; }

.woo-filter-panel {
	position: relative;
	width: 100%;
	max-width: 320px;
	background: var(--filter-bg);
	border: 1px solid var(--filter-border);
	border-radius: 8px;
	padding: 4px 16px 8px;
}
.woo-filter-panel-header,
.woo-filter-panel-footer { display: none; }

.woo-filter-list {
	display: block;
}

/* Filter sections */
.filter-section + .filter-section { border-top: 1px solid var(--filter-border); }
.filter-section-head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: none;
	border: 0;
	padding: 14px 0;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--filter-text);
	cursor: pointer;
	text-align: right;
}
.filter-section-head.is-static { cursor: default; }
.filter-section-title { line-height: 1.4; }
.filter-section-chevron {
	color: var(--filter-muted);
	font-size: 1rem;
	line-height: 1;
	transition: transform 0.2s ease;
}
.filter-section-head[aria-expanded="false"] .filter-section-chevron {
	transform: rotate(-90deg);
}
.filter-section-head:hover .filter-section-chevron { color: var(--filter-primary); }
.filter-section-body { padding-bottom: var(--filter-spacing); }

/* Search */
.filter-search {
	position: relative;
	margin: 0 0 10px;
}
.filter-search-input {
	width: 100%;
	height: 38px;
	padding: 0 34px 0 12px;
	border: 1px solid var(--filter-border);
	border-radius: 8px;
	background: var(--filter-bg-soft);
	color: var(--filter-text);
	font-family: inherit;
	font-size: 0.85rem;
}
.filter-search-input::placeholder { color: var(--filter-muted); }
.filter-search-input:focus {
	outline: none;
	border-color: var(--filter-primary);
	background: #fff;
	box-shadow: 0 0 0 3px var(--filter-primary-soft);
}
.filter-search-icon {
	position: absolute;
	top: 50%;
	right: 11px;
	transform: translateY(-50%);
	color: var(--filter-muted);
	font-size: 0.95rem;
	line-height: 1;
	pointer-events: none;
}

/* Scrollable taxonomy lists */
.filter-items-scroll {
	max-height: 240px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-inline-end: 4px;
}
.filter-items-scroll::-webkit-scrollbar { width: 6px; }
.filter-items-scroll::-webkit-scrollbar-thumb {
	background: #d7dbe0;
	border-radius: 8px;
}
.filter-items-scroll::-webkit-scrollbar-thumb:hover { background: #c1c6cc; }

/* ============================================================
   4) CHECKBOX LISTS
   ============================================================ */
.filter-item { margin: 0; }
.filter-check {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	min-height: 40px;
	padding: 2px 0;
	position: relative; /* anchor for the invisible checkbox below */
}
.filter-check-box {
	position: relative;
	flex: 0 0 auto;
	width: var(--filter-check-size);
	height: var(--filter-check-size);
	border: 1.5px solid var(--filter-border-strong);
	border-radius: 8px;
	background: #fff;
	transition: border-color .15s ease, background-color .15s ease;
}
.filter-check-box::after {
	content: "";
	position: absolute;
	top: 1px;
	right: 5px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}
/* ========== FIX: مشکل ناپدید شدن لیست فیلترها در موبایل ==========
   قبلاً چک‌باکس با ابعاد 1x1 پیکسل مخفی می‌شد. روی بعضی مرورگرهای
   موبایل (به‌خصوص iOS Safari)، وقتی یک اینپوت به این کوچکی داخل
   کانتینر اسکرول‌دار (.woo-filter-list) فوکوس می‌گرفت، مرورگر خودش
   کل کانتینر را اسکرول می‌کرد تا آن را «در دید» بیاورد و همین باعث
   می‌شد پنل فیلتر موبایل به‌طرز عجیبی جابه‌جا شود و انگار بخش‌های
   دسته‌بندی/ویژگی ناپدید شده باشند. راه‌حل: اندازه‌ی اینپوت مخفی را
   دقیقاً برابر با کل ردیف چک‌باکس (.filter-check) کن، نه ۱ پیکسل،
   تا محاسبه‌ی موقعیتش برای مرورگر طبیعی بماند. */
.filter-check input[type="checkbox"] {
	position: absolute !important;
	top: 0;
	right: 0;
	width: 100% !important;
	height: 100% !important;
	opacity: 0 !important;
	margin: 0 !important;
	pointer-events: none;
}
.filter-check input[type="checkbox"]:checked + .filter-check-box {
	background: var(--filter-primary);
	border-color: var(--filter-primary);
}
.filter-check input[type="checkbox"]:checked + .filter-check-box::after {
	transform: rotate(45deg) scale(1);
}
.filter-check input[type="checkbox"]:focus-visible + .filter-check-box {
	box-shadow: 0 0 0 3px var(--filter-primary-soft);
}
.filter-check:hover .filter-check-box { border-color: var(--filter-primary); }
.filter-option-text {
	font-size: 0.88rem;
	color: var(--filter-text);
	line-height: 1.55;
	min-width: 0;
}
.filter-check input[type="checkbox"]:checked ~ .filter-option-text { font-weight: 600; }

/* Categories (nested) */
.category-item { display: block; width: 100%; margin: 0; }
.filter-item-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}
.filter-item-main .filter-check { flex: 1 1 auto; min-width: 0; }
.toggle-sub {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	border-radius: 8px;
	color: var(--filter-muted);
	font-size: 1rem;
	cursor: pointer;
}
.toggle-sub:hover {
	background: var(--filter-bg-soft);
	color: var(--filter-primary);
}
.subcategory-list {
	padding-right: 16px;
	margin: 2px 0 6px;
	border-right: 1px solid var(--filter-border);
}
.subcategory-item .filter-check { min-height: 36px; }

/* Attributes */
.attribute-item + .attribute-item { border-top: 1px solid var(--filter-border); }
.attribute-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border: 0;
	background: none;
	padding: 12px 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--filter-text);
	text-align: right;
}
.attribute-name { line-height: 1.4; }
.attribute-chevron {
	color: var(--filter-muted);
	font-size: 1rem;
	line-height: 1;
	transition: transform 0.2s ease;
}
.attribute-header[aria-expanded="false"] .attribute-chevron { transform: rotate(90deg); }
.attribute-header:hover .attribute-chevron { color: var(--filter-primary); }
.term-list-wrapper { padding-bottom: 12px; }

/* ============================================================
   5) AVAILABILITY SWITCHES
   ============================================================ */
.filter-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding: 2px 0;
}
.filter-option-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--filter-text);
	cursor: pointer;
}
.filter-option-label .fi {
	color: var(--filter-muted);
	font-size: 1rem;
	line-height: 1;
}
.switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 42px;
	height: 24px;
}
.switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}
.switch .slider {
	position: absolute;
	inset: 0;
	background: #d7dbe0;
	border-radius: 999px;
	transition: background-color .2s ease;
	pointer-events: none;
}
.switch .slider::before {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.switch input:checked + .slider { background: var(--filter-primary); }
.switch input:checked + .slider::before { transform: translateX(-18px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px var(--filter-primary-soft); }

/* ============================================================
   6) PRICE FILTER
   ============================================================ */
.price-filter-wrapper {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 4px;
	width: 100%;
}
.price-slider-container { padding: 8px 6px 2px; }
.price-slider { width: 100%; }
.price-range-display { display: none; }
.price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.price-input-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.price-input-group label {
	font-size: 0.78rem;
	color: var(--filter-muted);
}
.price-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.price-input-wrap input {
	width: 100%;
	height: var(--filter-input-h);
	padding: 0 12px 0 52px;
	border: 1px solid var(--filter-border);
	border-radius: 8px;
	background: #fff;
	color: var(--filter-text);
	font-family: inherit;
	font-size: 0.9rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.price-input-wrap input:focus {
	outline: none;
	border-color: var(--filter-primary);
	box-shadow: 0 0 0 3px var(--filter-primary-soft);
}
.price-input-wrap .price-unit {
	position: absolute;
	left: 10px;
	font-size: 0.72rem;
	color: var(--filter-muted);
	pointer-events: none;
}
.price-filter-actions { display: flex; justify-content: flex-start; }
.btn-apply-price-filter,
.button.btn-apply-price-filter {
	background: var(--filter-primary-soft);
	color: var(--filter-primary);
	border: 0;
	border-radius: 8px;
	padding: 7px 14px;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease;
}
.btn-apply-price-filter:hover { background: var(--filter-primary-soft); }

/* noUiSlider overrides (main.css loads before noUiSlider, so keep selectors specific) */
.woo-filter-container .noUi-target {
	background: #e6e8eb;
	border: none;
	box-shadow: none;
	border-radius: 999px;
}
.woo-filter-container .noUi-target.noUi-horizontal {
	height: 4px;
}
.woo-filter-container .noUi-connect {
	background: var(--filter-primary);
	border-radius: 999px;
}
.woo-filter-container .noUi-base { height: 100%; }
.woo-filter-container .noUi-horizontal .noUi-handle {
	width: 20px;
	height: 20px;
	top: -8px;
	right: -10px;
	left: auto;
	border: 2px solid var(--filter-primary);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.18);
	cursor: grab;
}
.woo-filter-container .noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
	left: -10px;
	right: auto;
}
.woo-filter-container .noUi-handle::before,
.woo-filter-container .noUi-handle::after { display: none; }
.woo-filter-container .noUi-handle:focus {
	outline: none;
	box-shadow: 0 0 0 4px var(--filter-primary-soft);
}
.woo-filter-container .noUi-handle.noUi-active {
	border-color: var(--filter-primary-hover);
	box-shadow: 0 0 0 4px var(--filter-primary-soft);
}
.woo-filter-container .noUi-tooltip { display: none; }

/* ============================================================
   7) ACTIVE FILTERS (chips)
   ============================================================ */
.woo-filter-active { display: none; padding: 2px 0 16px; }
.woo-filter-active.has-filters {
	display: block;
	border-bottom: 1px solid var(--filter-border);
	margin-bottom: 2px;
}
.active-filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}
.active-filters-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--filter-muted);
	white-space: nowrap;
}
.clear-all-filters {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none!important;
	border: 0;
	padding: 3px 6px;
	border-radius: 8px;
	color: var(--filter-accent-hover)!important;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.clear-all-filters:hover { background: var(--filter-accent-soft); }
.clear-all-filters .filter-close-icon {
	font-style: normal;
	font-size: 0.95rem;
	line-height: 1;
}

.filter-close-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	height: 16px;
	line-height: 1;
	font-size: 12px !important;
	align-items: center;
	line-height: 0 !important;
}
.clear-all-filters {
	font-size: 12px !important;
}
.active-filter-item {
	font-size: 12px !important;
	border-radius: 8px !important;
}
.clear-all-filters {
	align-items: center;
	display: flex !important;
	gap: 2px;
}
.clear-all-filters[hidden] { display: none !important; }

.active-filters-list,
.woo-filter-active .active-filters-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	user-select: none;
}
.active-filters-list::-webkit-scrollbar { display: none; }
.active-filters-list.active-drag {
	cursor: grabbing;
	scroll-behavior: auto;
}
.active-filter-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	background: var(--filter-accent-soft)!important;
	color: var(--filter-accent-hover)!important;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 5px 10px;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease;
}
.active-filter-item:hover { background: #F0E5CE; }
.active-filter-item .filter-close-icon {
	font-style: normal;
	font-size: 0.95rem;

	opacity: .75;
}
.active-filter-item:hover .filter-close-icon { opacity: 1; }
.active-filter-item.loading { opacity: .7; pointer-events: none; }

.active-filter-skeleton {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f0f2f4;
	border-radius: 8px;
	padding: 6px 10px;
	height: 28px;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}
.active-filter-skeleton-icon {
	width: 14px;
	height: 14px;
	background: #e0e3e7;
	border-radius: 8px;
}
.active-filter-skeleton-text {
	height: 12px;
	background: #e0e3e7;
	border-radius: 8px;
}

/* ============================================================
   8) STANDALONE ACTIVE FILTER BARS (shortcode / theme)
   ============================================================ */
.woo-active-filters-bar-shortcode,
.woo-active-filters-bar,
.desktop-active-filters {
	display: none;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 16px;
	width: 100%;
}
.woo-active-filters-bar-shortcode.has-filters,
.woo-active-filters-bar.has-filters,
.desktop-active-filters.has-filters { display: flex; }
.woo-active-filters-bar-shortcode .active-filters-list,
.woo-active-filters-bar .active-filters-list,
.desktop-active-filters .active-filters-list { flex: 1 1 auto; min-width: 0; }
.woo-active-filters-bar-shortcode .active-filters-label,
.woo-active-filters-bar .active-filters-label,
.desktop-active-filters .active-filters-label {
	font-size: 0.82rem;
	color: var(--filter-muted);
	white-space: nowrap;
	flex-shrink: 0;
}

/* ============================================================
   9) MOBILE: PRODUCT TOOLBAR + FULL-SCREEN FILTER DRAWER
   ============================================================ */
@media (max-width: 1024px) {
	.woo-filter-header {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0 0 12px;
	}
	.woo-filter-toggle-btn {
		position: relative;
		flex: 1 1 0;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		background: #fff!important;
		color: var(--filter-text)!important;
		border: 1px solid var(--filter-border)!important;
		border-radius: 8px!important;
		padding: 10px 14px;
		font-family: inherit;
		font-size: 0.9rem;
		font-weight: 600;
		cursor: pointer;
	}
	.woo-filter-toggle-btn.has-active-filter {
		border-color: var(--filter-accent);
		color: var(--filter-accent-hover);
	}
	.woo-filter-toggle-btn .fi { font-size: 1rem; line-height: 1; }
	.filter-count {
		display: none;
		min-width: 20px;
		height: 20px;
		padding: 0 5px;
		border-radius: 8px;
		background: var(--filter-accent);
		color: #fff;
		font-size: 0.68rem;
		font-weight: 700;
		line-height: 20px;
		text-align: center;
	}
	.filter-count.is-visible { display: inline-block; }

	.woo-sort-toggle-btn {
		position: relative;
		flex: 1 1 0;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		background: #fff!important;
		color: var(--filter-text)!important;
		border: 1px solid var(--filter-border)!important;
		border-radius: 8px!important;
		padding: 10px 14px;
		font-family: inherit;
		font-size: 0.9rem;
		font-weight: 600;
		cursor: pointer;
	}
	.woo-sort-toggle-btn .fi { font-size: 1rem; line-height: 1; }
	.woo-sort-current {
		max-width: 130px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
	.active-filter-item {
	font-size: 12px !important;
	border-radius: 8px !important;
}


	.woo-sort-toggle-btn:focus {
		outline: none;
		border-color: var(--filter-primary);
		box-shadow: 0 0 0 3px var(--filter-primary-soft);
	}
	.woo-sort-toggle-btn .woo-sort-chevron {
		color: var(--filter-muted);
		font-size: 0.95rem;
		line-height: 1;
	}

	.woo-filter-overlay {
		position: fixed;
		inset: 0;
		background: rgba(17, 20, 24, .45);
		z-index: 99998;
		display: block;
	}
	.woo-filter-overlay[hidden] { display: none; }

	.woo-filter-panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		z-index: 99999;
		width: 100%;
		max-width: none;
		height: auto;
		max-height: 88vh;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: #fff;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		transform: translateY(100%);
		visibility: hidden;
		transition: transform .3s ease, visibility .3s ease;
	}
	.woo-filter-panel::before,
	.woo-sort-panel::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		transform: translateX(-50%);
		width: 40px;
		height: 4px;
		border-radius: 8px;
		background: var(--filter-border-strong);
		z-index: 2;
	}
	.woo-filter-container.filters-open .woo-filter-panel {
		transform: translateY(0);
		visibility: visible;
	}

	.woo-sort-overlay {
		position: fixed;
		inset: 0;
		background: rgba(17, 20, 24, .45);
		z-index: 100000;
		display: block;
	}
	.woo-sort-overlay[hidden] { display: none; }

	.woo-sort-panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100001;
		display: flex;
		flex-direction: column;
		max-height: 80vh;
		background: #fff;
		border-radius: 8px;
		overflow: hidden;
		transform: translateY(100%);
		visibility: hidden;
		transition: transform .3s ease, visibility .3s ease;
	}
	.woo-filter-container.sort-open .woo-sort-panel {
		transform: translateY(0);
		visibility: visible;
	}
	.woo-sort-panel-header {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: 0 0 auto;
		height: 56px;
		padding: 0 16px;
		background: #fff;
		border-bottom: 1px solid var(--filter-border);
	}
	.woo-sort-panel-title {
		font-size: 1rem;
		font-weight: 700;
	}
	.woo-sort-close-btn {
		width: 40px;
		height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		background: none!important;
		border-radius: 8px;
		color: var(--filter-text)!important;
		font-size: 1.3rem;
		cursor: pointer;
	}
	.woo-sort-close-btn:hover { background: var(--filter-bg-soft); }
	.woo-sort-options {
		flex: 1 1 auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
	}
	.woo-sort-option {
		width: 100%;
		min-height: 50px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		padding: 0 14px;
		border: 0;
		border-radius: 8px;
		background: none!important;
		color: var(--filter-text)!important;
		font-family: inherit;
		font-size: 0.95rem;
		font-weight: 600;
		text-align: right;
		cursor: pointer;
	}
	.woo-sort-option::after {
		content: "";
		flex: 0 0 auto;
		width: 18px;
		height: 18px;
		border: 2px solid var(--filter-border-strong);
		border-radius: 50%!important;
		transition: border-color .15s ease, background .15s ease;
	}
	.woo-sort-option.is-active {
		background: var(--filter-primary-soft);
		color: var(--filter-primary-hover);
	}
	.woo-sort-option.is-active::after {
		border-color: var(--filter-primary);
		background: radial-gradient(circle, var(--filter-primary) 0 5px, transparent 6px);
	}

	.woo-filter-panel-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: 0 0 auto;
		height: 56px;
		padding: 0 16px;
		background: #fff;
		border-bottom: 1px solid var(--filter-border);
	}
	.woo-filter-panel-title {
		font-size: 1rem;
		font-weight: 700;
	}
	.woo-filter-close-btn {
		width: 40px;
		height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		background: none!important;
		border-radius: 8px;
		color: var(--filter-text)!important;
		font-size: 1.3rem;
		cursor: pointer;
	}
	.woo-filter-close-btn:hover { background: var(--filter-bg-soft); }

	.woo-filter-active {
		flex: 0 0 auto;
		padding: 12px 16px 10px;
		border-bottom: 1px solid var(--filter-border);
	}
	.woo-filter-active.has-filters { display: block; }

	.woo-filter-list {
		flex: 1 1 auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 4px 16px calc(16px + env(safe-area-inset-bottom));
	}

	.woo-filter-panel-footer {
		position: sticky;
		bottom: 0;
		flex: 0 0 auto;
		display: flex;
		gap: 10px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--filter-border);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .05);
	}
	.woo-filter-cancel-btn {
		flex: 0 0 auto;
		min-width: 100px;
		height: 46px;
		border: 1px solid var(--filter-border)!important;
		border-radius: 8px!important;
		background: #fff!important;
		color: var(--filter-text)!important;
		font-family: inherit;
		font-size: 0.9rem;
		font-weight: 600;
		cursor: pointer;
	}
	.woo-filter-apply-btn {
		flex: 1 1 auto;
		height: 46px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		border: 0;
		border-radius: 8px!important;
		background: var(--filter-primary)!important;
		color: #fff;
		font-family: inherit;
		font-size: 0.95rem;
		font-weight: 700;
		cursor: pointer;
	}
	.woo-filter-cancel-btn:active,
	.woo-filter-apply-btn:active { transform: scale(.99); }
	.btn-apply-price-filter { display: none !important; }

	/* Larger touch targets inside the drawer */
	.filter-check { min-height: 44px; }
	.subcategory-item .filter-check { min-height: 44px; }
	.woo-filter-container .noUi-horizontal .noUi-handle { width: 24px; height: 24px; top: -10px; right: -12px; }
	.woo-filter-container .noUi-txt-dir-rtl.noUi-horizontal .noUi-handle { left: -12px; right: auto; }
}

@media (max-width: 480px) {
	.price-inputs { grid-template-columns: 1fr; }
}

/* ============================================================
   10) NO PRODUCTS FOUND + SUGGESTIONS
   ============================================================ */
.woo-no-products-found {
	width: 100%;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	grid-column: 1 / -1;
}
.no-products-content {
	max-width: 600px;
	text-align: center;
	background: #fff;
	padding: 50px 40px;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	animation: fadeInUp 0.6s ease-out;
}
.no-products-icon {
	width: 200px;
	height: 150px;
	margin: 0 auto 64px;
	animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}
.no-products-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.no-products-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 28px;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 15px;
	line-height: 1.3;
	justify-content: center;
}
.no-products-title .fi {
	color: #dc2626;
	font-size: 32px;
	min-width: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.no-products-description {
	font-size: 16px;
	color: #718096;
	margin-bottom: 30px;
	line-height: 1.6;
}
.suggestions-loading-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
	padding: 20px;
	background: #f7fafc;
	border-radius: 8px;
}
.suggestions-loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e2e8f0;
	border-top-color: #C69F5A;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}
.suggestions-loading-text {
	font-size: 15px;
	color: #A87F2F;
	font-weight: 600;
	line-height: 1.6;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
}
.loading-dots::after {
	content: '...';
	display: inline-block;
	animation: loadingDots 1.5s infinite;
	width: 20px;
	text-align: left;
}
@keyframes loadingDots {
	0%, 20%   { content: '.'; }
	40%       { content: '..'; }
	60%, 100% { content: '...'; }
}
.filter-suggestions-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}
.suggestions-skeleton {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: center;
}
.suggestion-skeleton-item {
	height: 36px;
	background: #e0e0e0;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
}
.suggestion-skeleton-item:nth-child(1) { width: 150px; }
.suggestion-skeleton-item:nth-child(2) { width: 180px; }
.suggestion-skeleton-item:nth-child(3) { width: 120px; }
.suggestion-skeleton-item .shimmer {
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
	animation: shimmer 1.5s infinite;
}
.filter-suggestion-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: linear-gradient(135deg, #1C5940 0%, #C69F5A 100%);
	color: #fff;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(198, 159, 90, 0.4);
	border: none;
	outline: none;
	animation: slideIn 0.4s ease-out;
}
@keyframes slideIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}
.filter-suggestion-tag:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 6px 20px rgba(198, 159, 90, 0.6);
	background: linear-gradient(135deg, #C69F5A 0%, #1C5940 100%);
}
.filter-suggestion-tag:active {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 3px 10px rgba(198, 159, 90, 0.5);
}
.filter-suggestion-tag .suggestion-count {
	background: rgba(255, 255, 255, 0.3);
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
}
.no-suggestions-message,
.error-suggestions-message {
	font-size: 15px;
	color: #718096;
	padding: 15px 25px;
	background: #f7fafc;
	border-radius: 8px;
	margin-top: 10px;
}
.error-suggestions-message {
	color: #e53e3e;
	background: #fff5f5;
}

/* ============================================================
   11) LOADING STATES
   ============================================================ */
.loading-more-products {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	width: 100%;
	grid-column: 1 / -1;
}
.loading-more-products .loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e2e8f0;
	border-top-color: #C69F5A;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 10px;
}
.loading-more-products p {
	font-size: 14px;
	color: #A87F2F;
	font-weight: 600;
}
.no-more-products {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	width: 100%;
	grid-column: 1 / -1;
}
.no-more-products p {
	font-size: 14px;
	color: #718096;
	background: #f7fafc;
	padding: 10px 20px;
	border-radius: 8px;
}
.load-error {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	width: 100%;
	grid-column: 1 / -1;
}
.load-error p {
	font-size: 14px;
	color: #e53e3e;
	background: #fff5f5;
	padding: 10px 20px;
	border-radius: 8px;
}
.filter-section-head,
.toggle-sub,
.attribute-header {
	background: none !important;
	border: none !important;
	color: #000 !important;
}
.woocommerce-Price-currencySymbol {
	line-height: 14px;
}
/* ============================================================
   12) RESPONSIVE PRODUCT / NO-PRODUCTS ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
	.sale-price bdi { font-size: 24px !important; }
	bdi { font-size: 18px; }

	.woo-no-products-found {
		min-height: 500px;
		padding: 40px 15px;
		margin: 20px 0;
	}
	.no-products-content { padding: 40px 30px; }
	.no-products-icon { width: 150px; height: 110px; margin-bottom: 20px; }
	.no-products-title { font-size: 22px; margin-bottom: 12px; }
	.no-products-description { font-size: 15px; margin-bottom: 25px; }
	.suggestions-loading-wrapper { padding: 15px; }
	.suggestions-loading-spinner { width: 35px; height: 35px; }
	.filter-suggestion-tag { padding: 10px 16px; font-size: 14px; }
	.filter-suggestion-tag .suggestion-count { font-size: 12px; padding: 3px 8px; }
}
@media (max-width: 480px) {
	.woo-no-products-found {
		min-height: 450px;
		padding: 30px 10px;
		border-radius: 8px!important;
	}
	.no-products-content { padding: 30px 20px; }
	.no-products-icon { width: 120px; height: 90px; margin-bottom: 15px; }
	.no-products-title { font-size: 20px; margin-bottom: 10px; }
	.no-products-description { font-size: 14px; margin-bottom: 20px; }
	.suggestions-loading-wrapper { padding: 12px; }
	.suggestions-loading-spinner { width: 30px; height: 30px; border-width: 3px; }
	.suggestions-loading-text { font-size: 14px; }
	.filter-suggestions-container { gap: 8px; }
	.filter-suggestion-tag { padding: 8px 14px; font-size: 13px; }
	.filter-suggestion-tag .suggestion-count { font-size: 11px; padding: 2px 6px; }
}