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

/* ---- حاوية كل ودجت: بطاقة متسقة مع بطاقات المنتجات ---- */
.woocommece-shop-sidebar .widget {
	background: #ffffff;
	border: 1px solid #efe9eb;
	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: #5b142a !important;
	padding: 0 0 12px !important;
	margin: 0 0 12px !important;
	border-bottom: 1px solid #f3e9ed;
	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: #5b142a;
	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: #3a272c !important;
	border-radius: 10px;
	transition: background-color .22s ease, color .22s ease, padding .22s ease;
}

.widget_product_categories li > a:hover {
	background: #faf3f6;
	color: #5b142a !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: #f6eaef;
	color: #5b142a !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: #8a7a80 !important;
	background: #f6f1f3;
	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: #f0e0e6;
	color: #5b142a !important;
}

/* ---- سهم التوسيع (أيقونة الثيم) ----
   القائمة المنسدلة تُفتح لليسار في RTL، لذا نعكس السهم أفقياً ليشير لاتجاه الفتح
   (نحافظ على translateY الأصلي للثيم -15px). */
.widget_product_categories li.cat-parent > a::after {
	color: #c3adb5 !important;
	transition: color .22s ease;
	transform: translateY(-15px) scaleX(-1) !important;
}

.widget_product_categories li.cat-parent > a:hover::after {
	color: #5b142a !important;
}

/* ---- القائمة المنسدلة للأبناء: لوحة بيضاء أنيقة ---- */
.widget_product_categories ul.children {
	background: #ffffff !important;
	border: 1px solid #efe9eb !important;
	border-radius: 14px !important;
	box-shadow: 0 14px 34px rgba(91, 20, 42, .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: #5a4a4f !important;
}

.widget_product_categories ul.children li > a:hover {
	background: #faf3f6;
	color: #5b142a !important;
}

/* ---- ودجت تصفية السعر: بلون الهوية ---- */
.woocommece-shop-sidebar .widget_price_filter .price_slider_amount .button,
.woocommece-shop-sidebar .widget_price_filter button[type="submit"] {
	background: #5b142a !important;
	border: 1px solid #5b142a !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: #77203c !important;
	box-shadow: 0 6px 16px rgba(91, 20, 42, .25);
}

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

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

.woocommece-shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
	background: #ffffff !important;
	border: 2px solid #5b142a !important;
	box-shadow: 0 2px 6px rgba(91, 20, 42, .25);
}

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

/* ---- ودجت البحث ---- */
.woocommece-shop-sidebar .widget_product_search input[type="search"],
.woocommece-shop-sidebar .widget_product_search input[type="text"] {
	border: 1px solid #e8dde2 !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: #5b142a !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(91, 20, 42, .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;
	}
}
