/* ------------------------------------------- /
/  WooCommerce Category Tree Styling           /
/  This is for the left column in the catalog  /
/ ------------------------------------------- */

/* Base styling for the main menu wrapper */
.custom-category-menu-wrapper {
	width: 100%;
	padding: 0px 0;
}

/* Base list styling (for the primary ULs) */
.custom-category-menu-wrapper > ul {
	list-style: none!important;
	margin: 0 0 0 -10px!important;
	padding: 0px!important;
}

/* Base list styling (for all sub ULs) */
.custom-category-menu-wrapper > ul ul {
	list-style: none!important;
	margin: 0 0 0 0px!important;
	padding: 0px!important;
}

/* Indentation for nested sub-lists */
.custom-category-menu-wrapper .wc-category-list-children {
	margin-left: 0px;
}

/* HIDE SUB-LISTS BY DEFAULT (FIXED) */
.custom-category-menu-wrapper .wc-cat-item > .wc-category-list-children {
	display: none; 	
}

/* SHOW sub-lists when the parent LI is marked as expanded */
.custom-category-menu-wrapper .wc-cat-item.is-expanded > .wc-category-list-children {
	display: block;
}

/* Individual list item styling */
.custom-category-menu-wrapper .wc-cat-item {
	list-style: none!important;
	position: relative;
	padding-left: 10px;
	margin: 0 0 5px 0;
	line-height: 1.5;
}

/* Link styling */
.custom-category-menu-wrapper .wc-cat-item a {
	display: inline-block;
	padding: 5px 10px;
	text-decoration: none;
	color: #00245d!important;
	font-weight: 400!important;
	border-radius: 4px;
	transition: background-color 0.2s;
	width: calc(100% - 25px);
}

/* Hover effect */
.custom-category-menu-wrapper .wc-cat-item a:hover {
	background-color: #f0f0f0;
	color: #95c93d!important;
}

/* CURRENT CATEGORY HIGHLIGHTING */
.custom-category-menu-wrapper .current-cat > a {
	background-color: #f0f0f0;
	color: #95c93d!important;
	font-weight: bold;
}

/* TOGGLE ICON STYLING */
.custom-category-menu-wrapper .toggle-icon {
	position: absolute;
	right: 5px;
	top: 5px;
	width: 20px;
	height: 20px;
	cursor: pointer;
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	color: #007bff;
	user-select: none;
	z-index: 10;
}

/* Default state: Collapsed (Show right-pointing arrow) */
	.custom-category-menu-wrapper .wc-cat-item.is-collapsed > .toggle-icon:before {
	color: #00245d!important;
	content: "+"
}

/* Expanded state: Show down-pointing arrow */
	.custom-category-menu-wrapper .wc-cat-item.is-expanded > .toggle-icon:before {
	color: #00245d!important;
	content: "-";
}

/* Hide uncategorised */
.wc-cat-item.uncategorised {
	display: none;
}
