/* =====================================================================
   لافين فاشن — الشريط الجانبي لصفحة المتجر (التصنيفات + الفلاتر)
   تصميم احترافي متوافق مع هوية البراند — العنّابي #90543c
   ملاحظة: قائمة الأبناء (ul.children) عبارة عن flyout مطلق التموضع
   يظهر عند المرور — لا نلمس position/visibility/opacity حتى لا يتعطل.
   ===================================================================== */

/* ---- حاوية كل ودجت: بطاقة متسقة مع بطاقات المنتجات ---- */
.woocommece-shop-sidebar .widget {
	background: #ffffff;
	border: 1px solid #efe5d8;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
	padding: 18px 18px 14px !important;
	margin-bottom: 20px !important;
}

/* ---- عنوان الودجت: لون الهوية + شريط تمييز أسفله ---- */
.woocommece-shop-sidebar .widget .widget-title {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: #90543c !important;
	padding: 0 0 12px !important;
	margin: 0 0 12px !important;
	border-bottom: 1px solid #f4ebdf;
	position: relative;
	text-align: right;
	line-height: 1.5;
}

.woocommece-shop-sidebar .widget .widget-title::after {
	content: "";
	position: absolute;
	bottom: -1px;
	inset-inline-start: 0;
	width: 44px;
	height: 2px;
	background: #90543c;
	border-radius: 2px;
}

/* ---- قائمة التصنيفات ---- */
.widget_product_categories ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.widget_product_categories li {
	list-style: none !important;
	border: 0 !important;
	position: relative;
}

/* إزالة النقطة الرمادية والخط الفاصل الافتراضيين من الثيم
   (التصميم الجديد يعتمد المسافات وحالة المرور بدلاً منهما).
   ملاحظة: سهم التوسيع على a::after وليس li::after فلا يتأثر. */
.widget_product_categories li::before,
.widget_product_categories li::after {
	content: none !important;
	display: none !important;
}

.widget_product_categories li > a {
	display: block;
	padding: 10px 12px !important;
	font-size: 14.5px !important;
	line-height: 1.6;
	color: #1f1b18 !important;
	border-radius: 10px;
	transition: background-color .22s ease, color .22s ease, padding .22s ease;
}

.widget_product_categories li > a:hover {
	background: #fbf7f1;
	color: #90543c !important;
	padding-inline-start: 16px !important;
}

/* التصنيف الحالي/المفتوح */
.widget_product_categories li.current-cat > a,
.widget_product_categories li.current-cat-parent > a,
.widget_product_categories li.current-cat-ancestor > a {
	background: #f6eee2;
	color: #90543c !important;
	font-weight: 700;
}

/* ---- العدّاد: حبة صغيرة هادئة (الأصفار تُحذف من PHP) ---- */
.widget_product_categories .count {
	float: none !important;
	display: inline-block;
	margin-inline-start: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: #7a6a5c !important;
	background: #f7f2ea;
	border-radius: 999px;
	padding: 1px 8px;
	vertical-align: middle;
	transition: background-color .22s ease, color .22s ease;
}

.widget_product_categories li > a:hover .count {
	background: #f2e5d8;
	color: #90543c !important;
}

/* ---- سهم التوسيع — RTL صحيح: على يسار الصف ويشير لليسار (‹) ----
   نتخلّص كلياً من أيقونة الثيم الغامضة (e802) ومن أي عكس/تحويل، ونستخدم رمز
   شيفرون يساري صريح (U+2039) لا لبس في اتجاهه. الموضع: يسار الصف (نهاية القراءة
   في RTL) لا يمينه. نُعرّفه بالكامل بأعلى أولوية فلا يتأثر بورقة الثيم أو RTL أو الكاش. */
.woocommece-shop-sidebar .widget_product_categories li.cat-parent > a,
.widget_product_categories li.cat-parent > a {
	position: relative !important;
	padding-left: 34px !important;
	padding-right: 14px !important;
}
.woocommece-shop-sidebar .widget_product_categories li.cat-parent > a::after,
.widget_product_categories li.cat-parent > a::after {
	content: '\2039' !important;      /* ‹ يشير لليسار */
	display: block !important;
	font-family: 'Tajawal', 'Inter', sans-serif !important;
	position: absolute !important;
	left: 14px !important;
	right: auto !important;
	top: 50% !important;
	width: auto !important;
	height: auto !important;
	line-height: 1 !important;
	text-align: center !important;
	font-size: 20px !important;
	color: #b7a695 !important;
	transition: color .22s ease, transform .2s ease;
	transform: translateY(-50%) !important;  /* بلا عكس — الرمز يساري أصلاً */
}
.woocommece-shop-sidebar .widget_product_categories li.cat-parent > a:hover::after,
.widget_product_categories li.cat-parent > a:hover::after {
	color: #90543c !important;
	transform: translateY(-50%) translateX(-2px) !important;
}

/* ---- القائمة المنسدلة للأبناء: لوحة بيضاء أنيقة ---- */
.widget_product_categories ul.children {
	background: #ffffff !important;
	border: 1px solid #efe5d8 !important;
	border-radius: 14px !important;
	box-shadow: 0 14px 34px rgba(144, 84, 60, .14) !important;
	padding: 8px !important;
	min-width: 215px;
	z-index: 60;
}

.widget_product_categories ul.children li > a {
	font-size: 13.5px !important;
	padding: 8px 12px !important;
	color: #55483e !important;
}

.widget_product_categories ul.children li > a:hover {
	background: #fbf7f1;
	color: #90543c !important;
}

/* ---- ودجت تصفية السعر: بلون الهوية ---- */
.woocommece-shop-sidebar .widget_price_filter .price_slider_amount .button,
.woocommece-shop-sidebar .widget_price_filter button[type="submit"] {
	background: #90543c !important;
	border: 1px solid #90543c !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 9px 26px !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	transition: background-color .22s ease, box-shadow .22s ease;
}

.woocommece-shop-sidebar .widget_price_filter .price_slider_amount .button:hover,
.woocommece-shop-sidebar .widget_price_filter button[type="submit"]:hover {
	background: #6c3018 !important;
	box-shadow: 0 6px 16px rgba(144, 84, 60, .25);
}

.woocommece-shop-sidebar .widget_price_filter .ui-slider {
	background: #f1e7db !important;
	border-radius: 999px;
}

.woocommece-shop-sidebar .widget_price_filter .ui-slider .ui-slider-range {
	background: #90543c !important;
	border-radius: 999px;
}

.woocommece-shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
	background: #ffffff !important;
	border: 2px solid #90543c !important;
	box-shadow: 0 2px 6px rgba(144, 84, 60, .25);
}

.woocommece-shop-sidebar .widget_price_filter .price_label {
	font-size: 13.5px !important;
	color: #1f1b18 !important;
}

/* ---- ودجت البحث ---- */
.woocommece-shop-sidebar .widget_product_search input[type="search"],
.woocommece-shop-sidebar .widget_product_search input[type="text"] {
	border: 1px solid #e8dfd3 !important;
	border-radius: 10px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	transition: border-color .22s ease, box-shadow .22s ease;
}

.woocommece-shop-sidebar .widget_product_search input[type="search"]:focus,
.woocommece-shop-sidebar .widget_product_search input[type="text"]:focus {
	border-color: #90543c !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(144, 84, 60, .10);
}

/* ---- الجوال: مسافات أنسب ---- */
@media only screen and (max-width: 991px) {
	.woocommece-shop-sidebar .widget {
		padding: 16px 14px 12px !important;
		margin-bottom: 16px !important;
	}
	.widget_product_categories ul.children {
		min-width: 190px;
	}
}
