.widget_hs_brand_filter,
.widget_hs_stock_filter,
.widget_hs_category_filter,
.widget_hs_sale_filter {
	--hs-bf-line: rgba(0, 0, 0, .1);
	--hs-bf-hover: rgba(0, 0, 0, .045);
	--hs-bf-active: #111;
}

.widget .hs-brand-filter__search {
	display: block;
	width: 100%;
	height: 2.4rem;
	margin: 0 0 .6rem;
	padding: 0 .75rem 0 2.2rem;
	font-size: .875rem;
	line-height: 1;
	text-align: start;
	border: 1px solid var(--hs-bf-line);
	border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem 50% / 1rem;
	box-shadow: none;
}

[dir="rtl"] .widget .hs-brand-filter__search {
	padding: 0 2.2rem 0 .75rem;
	background-position: calc(100% - .75rem) 50%;
}

.widget .hs-brand-filter__search:focus {
	outline: 0;
	border-color: var(--hs-bf-active);
}

.hs-brand-filter {
	list-style: none;
	margin: 0;
	padding: 0 .25rem 0 0;
	max-height: 18rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, .25) transparent;
}

.hs-brand-filter__item[hidden],
.hs-brand-filter__empty[hidden] {
	display: none;
}

.hs-brand-filter__item a {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .25rem .4rem;
	border-radius: 8px;
	color: inherit;
	font-size: .875rem;
	text-decoration: none;
	transition: background-color .12s;
}

.hs-brand-filter__item a:hover,
.hs-brand-filter__item a:focus,
.hs-brand-filter__item a:focus-visible,
.hs-brand-filter__item a:active {
	background: var(--hs-bf-hover);
	color: inherit;
	text-decoration: none;
}

.hs-brand-filter__item a:focus-visible {
	outline: 2px solid var(--hs-bf-active);
	outline-offset: -2px;
}

.hs-brand-filter__logo {
	flex: none;
	width: 26px;
	height: 26px;
	object-fit: contain;
	border-radius: 6px;
	border: 1px solid var(--hs-bf-line);
	background: #fff;
}

.hs-brand-filter__logo--letter {
	display: grid;
	place-items: center;
	font-size: .7rem;
	font-weight: 600;
	color: #666;
}

.hs-brand-filter__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.2;
}

.hs-brand-filter__count {
	min-width: 1.5rem;
	padding: .2rem .4rem;
	border-radius: 999px;
	background: var(--hs-bf-hover);
	font-size: .7rem;
	line-height: 1.1;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.hs-brand-filter__item.is-active > a,
.hs-brand-filter__item.is-active > .hs-category-filter__row > a {
	background: rgba(0, 0, 0, .06);
}

.hs-brand-filter__item.is-active > a .hs-brand-filter__name,
.hs-brand-filter__item.is-active > .hs-category-filter__row > a .hs-brand-filter__name {
	font-weight: 500;
}

.hs-brand-filter__item.is-active > a .hs-brand-filter__count,
.hs-brand-filter__item.is-active > .hs-category-filter__row > a .hs-brand-filter__count {
	background: var(--hs-bf-active);
	color: #fff;
	font-weight: 600;
}

.hs-brand-filter__empty {
	margin: .5rem 0 0;
	font-size: .85rem;
	opacity: .65;
}

.hs-brand-filter__clear:hover {
	text-decoration: none;
}

.hs-brand-filter__clear {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	margin-top: .6rem;
	padding: .75rem 0 0;
	border: 0;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.1;
}

.hs-brand-filter__clear::before {
	content: "\00d7";
	font-size: 1.1em;
}

.hs-brand-filter__clear:hover {
	opacity: .7;
}

#primary.hs-filtering {
	opacity: .5;
	pointer-events: none;
	transition: opacity .15s;
}

@media (prefers-reduced-motion: reduce) {
	.hs-brand-filter__item a,
	#primary.hs-filtering {
		transition: none;
	}
}

.hs-stock-filter__dot {
	flex: none;
	width: 8px;
	height: 8px;
	margin: 0 9px;
	border-radius: 50%;
	background: #60b358;
}

.hs-stock-filter__item--outofstock .hs-stock-filter__dot {
	background: #d75852;
}

/* The theme underlines every widget link on hover (.widget-area .widget a:not(.button):hover). */
.widget-area .widget .hs-brand-filter a,
.widget-area .widget .hs-brand-filter a:hover,
.widget-area .widget .hs-brand-filter a:focus,
.widget-area .widget .hs-brand-filter__clear,
.widget-area .widget .hs-brand-filter__clear:hover {
	text-decoration: none !important;
}

.widget-area .widget .hs-brand-filter a,
.widget-area .widget .hs-brand-filter a:hover,
.widget-area .widget .hs-brand-filter a:focus {
	color: inherit !important;
}

.hs-stock-filter .hs-brand-filter__name {
	white-space: normal;
}

.hs-stock-filter__dot {
	margin: 0 5px 0 4px;
}

.hs-category-filter {
	max-height: 21rem;
}

.hs-category-filter__item a {
	padding: .38rem .5rem;
	padding-inline-start: calc(.5rem + var(--hs-depth, 0) * .9rem);
	gap: .4rem;
}

.hs-category-filter__item .hs-brand-filter__name {
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: 1.25;
}

.hs-category-filter__item .hs-brand-filter__count {
	min-width: 1.35rem;
	padding-inline: .3rem;
}

.hs-category-filter__item[style*="--hs-depth:0"] {
	margin-top: .15rem;
}

.hs-category-filter__item[style*="--hs-depth:0"]:first-child {
	margin-top: 0;
}

.hs-category-filter__item[style*="--hs-depth:0"] .hs-brand-filter__name {
	font-weight: 500;
}

.hs-category-filter__item:not([style*="--hs-depth:0"]) .hs-brand-filter__name {
	font-size: .85em;
	opacity: .8;
}

/* Arabic: keep the scrollbar on the right (LTR scroll container, RTL items) and no uppercase transform on widget titles. */
[dir="rtl"] .hs-brand-filter {
	direction: ltr;
	margin: 0;
	padding: 0;
}
[dir="rtl"] .hs-brand-filter > li {
	direction: rtl;
}
[dir="rtl"] #secondary .widget .widget-title,
[dir="rtl"] #secondary .widget .gamma {
	text-transform: none;
	letter-spacing: 0;
}
/* Price range label: isolate each amount so "20 EGP — 12,000 EGP" keeps its order in RTL. */
[dir="rtl"] .widget_price_filter .price_label .from,
[dir="rtl"] .widget_price_filter .price_label .to {
	unicode-bidi: isolate;
	direction: ltr;
	display: inline-block;
}

/* Category tree: collapsed parents with a plus/minus toggle; one branch open at a time. */
.hs-category-filter__row {
	display: flex;
	align-items: center;
	gap: .15rem;
}

.hs-category-filter__row > a {
	flex: 1;
	min-width: 0;
}

.hs-category-filter__children {
	display: none;
	list-style: none;
	margin: .1rem 0 .35rem;
	padding: 0;
}

.hs-category-filter__item.is-open > .hs-category-filter__children,
.is-searching .hs-category-filter__children {
	display: block;
}

.hs-category-filter__toggle {
	position: relative;
	order: -1; /* start side: left in English, right in Arabic */
	flex: none;
	width: 1.6rem;
	height: 1.6rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #555;
	box-shadow: none;
	cursor: pointer;
}

.hs-category-filter__toggle::before,
.hs-category-filter__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: .6rem;
	height: 1.5px;
	margin: -.75px 0 0 -.3rem;
	background: currentColor;
	border-radius: 1px;
	transition: transform .15s;
}

.hs-category-filter__toggle::after {
	transform: rotate(90deg);
}

.is-open > .hs-category-filter__row > .hs-category-filter__toggle::after {
	transform: rotate(0);
}

.hs-category-filter__toggle:hover,
.hs-category-filter__toggle:focus-visible {
	background: var(--hs-bf-hover);
	color: inherit;
}

.hs-category-filter__toggle:focus-visible {
	outline: 2px solid var(--hs-bf-active);
	outline-offset: -2px;
}

/* Rows without a toggle keep their names aligned with rows that have one. */
.hs-category-filter__item:not(.has-children) > .hs-category-filter__row {
	padding-inline-start: 1.75rem;
}
