/* Frontend filters styles */
.dz-filters-sidebar {
	font-family: inherit;
	color: #333;
	direction: rtl;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 20px;
	padding: 24px 16px;
}

.dz-filters-sidebar input {
	padding: 0 !important;
	border-radius: 0 !important;
}

.dz-filters-header h3 {
	font-size: 16px;
	color: #1a7b53;
	/* Match the green from the screenshot */
	margin: 0 0 17px 0;
}

/* Accordion */
.dz-filter-accordion {
	border-bottom: 1px solid #f0f0f0;
	padding: 15px 0;
}

.dz-filter-accordion:last-of-type {
	border-bottom: none;
}

.dz-accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.dz-accordion-header h4 {
	font-size: 15px;
	margin: 0;
	font-weight: 600;
	color: #56585B;
}

.dz-accordion-icon {
	transition: transform 0.3s ease;
	display: flex;
}

.dz-filter-accordion.open .dz-accordion-icon {
	transform: rotate(180deg);
}

.dz-accordion-content {
	display: none;
	padding-top: 15px;
}

.dz-filter-accordion.open .dz-accordion-content {
	display: block;
}

/* Price Inputs */
.dz-price-inputs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-direction: column;
}

.dz-price-input-box {
	flex: 1;
	background: #F5F5F5;
	border-radius: 32px;
	display: flex;
	align-items: center;
	padding: 12px 16px;
}

.dz-price-label {
	font-size: 12px;
	color: #56585B;
	margin-left: 8px;
}

.dz-price-input-box input {
	border: none !important;
	background: transparent !important;
	width: 100% !important;
	outline: none;
	font-weight: bold;
	font-size: 18px !important;
	color: #56585B !important;
	text-align: left;
	/* Prices look better LTR inside RTL */
	direction: ltr;
	padding: 0 !important;
}

.dz-toman-icon {
	margin-right: 5px;
	display: flex;
}

/* Custom jQuery UI Slider styling */
#dz-price-slider {
	background: #eee;
	border: none;
	height: 4px;
	margin: 10px 10px 20px 10px;
	position: relative;
}

#dz-price-slider .ui-slider-range {
	background: #f0a500;
	/* Orange color */
}

#dz-price-slider .ui-slider-handle {
	background: #f0a500;
	border: 2px solid #fff;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	top: -6px;
	outline: none;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dz-price-slider-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #56585B;
}

/* Search inputs */
.dz-filter-search {
	background: #F5F5F5;
	border-radius: 20px;
	display: flex;
	align-items: center;
	padding: 11px;
	margin-bottom: 15px;
	gap: 8px;
}

.dz-filter-search input {
	border: none;
	background: transparent !important;
	width: 100%;
	outline: none;
	font-size: 12px !important;
	color: #898B8D !important;
}

.dz-search-icon {
	display: flex;
	align-items: center;
}

/* Category Tree */
.dz-category-tree {
	list-style: none;
	padding: 0 0 0 16px;
	margin: 0;
	font-size: 14px;
	max-height: 220px;
	overflow: auto;
}

.dz-cat-item {
	margin: 0;
}

.dz-cat-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 12px 0;
	color: #56585B;
	border-bottom: 1px solid #f0f0f0;
}

.dz-cat-item.active>.dz-cat-label {
	font-weight: bold;
	color: #56585B;
}

.dz-cat-arrow {
	margin-left: 8px;
	transition: transform 0.3s ease;
}

.dz-cat-name {
	margin-left: auto;
}

.dz-cat-children {
	list-style: none;
	padding-right: 15px;
	/* Indent for RTL */
	margin: 0;
	display: block;
}

/* Colors Grid */
.dz-color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
	gap: 15px;
}

.dz-color-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	gap: 5px;
}

.dz-color-swatch {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid #eee;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
}

/* Emulate the mockup's gradient look by adding a subtle inner shadow or pseudo element */
.dz-color-swatch::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
}

.dz-color-name {
	font-size: 12px;
	color: #666;
}

.dz-color-item:hover .dz-color-swatch,
.dz-color-item.active .dz-color-swatch {
	transform: scale(1.1);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	border-color: #ccc;
}

/* Toggle Switch */
.dz-filter-toggle-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	font-weight: 600;
	font-size: 14px;
	color: #56585B;
}

.dz-toggle-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 20px;
}

.dz-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.dz-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
}

.dz-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	transition: .4s;
}

input:checked+.dz-slider {
	background-color: #1a7b53;
}

input:checked+.dz-slider:before {
	transform: translateX(20px);
}

.dz-slider.round {
	border-radius: 34px;
}

.dz-slider.round:before {
	border-radius: 50%;
}