.header-nav-main ul.sub-menu {
	display: none;
	position: absolute;
	background-color: var(--color-white);
	min-width: 240px;
	padding: 0;
	margin: 0;
	list-style: none;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	z-index: 9999;
	border: 1px solid #eeeeee;
}

.header-nav-main li:hover > ul.sub-menu {
	display: block;
	min-width:110px;
}

.header-nav-main ul.sub-menu li {
	position: relative;
	background: var(--color-white);
}
.header-nav a,
.header-nav span{
		color: #000 !important;
}
.menu-menu-doc-container a{
	color: var(--color-black);
}

.header-nav-main ul.sub-menu li:last-child {
	border-bottom: none;
}

.header-nav-main ul.sub-menu li:hover {
	background-color: #ebebeb;
}

.header-nav-main ul.sub-menu li a {
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--color-black); 
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	line-height: 1.4;
}
.header-nav-main ul.sub-menu li a:hover{
	color:var(--color-chinh);
}

.header-nav-main > li > ul.sub-menu {
	top: 100%;
	left: 0;
}

.header-nav-main ul.sub-menu li > ul.sub-menu {
	top: 2px;
	left: 100%;
	margin-top: -1px;
}

.header-nav-main ul.sub-menu .menu-item-has-children > a:after {
	content: "\f105";
	font-family: "fl-icons";
	font-size: 14px;
	color: #1d428a;
}

.nav-dropdown, .nav-dropdown-default {
	border: none;
	box-shadow: none;
	background: transparent;
	max-height: none;
}
.menu-menu-doc-container .ux-nav-vertical-menu .menu-item a{
	padding:13px 15px !important;
}
.menu-menu-doc-container .ux-nav-vertical-menu .menu-item a:hover{
	color: var(--color-phu) !important;
}
.menu-menu-doc-container .ux-nav-vertical-menu .menu-item .sub-menu a{
	padding: 0px;
	color: #000;
}
.menu-menu-doc-container .ux-nav-vertical-menu .menu-item .sub-menu{
	padding: 0px !important;
}

.header-nav-main ul.sub-menu li:before {
	content: "";
	position: absolute;
	right: -15px;
	top: 0;
	width: 15px;
	height: 100%;
	z-index: -1;
}
.header-bottom .flex-row.container{
	display:flex;
}
.header-bottom .flex-row.container{
	display:flex;
}

.header-bottom .flex-row.container .flex-col:nth-child(1) {
	flex: 1;
}
.header-bottom .flex-row.container .flex-col:nth-child(2) {
	flex: 3;
}
.header-bottom .flex-row.container .flex-col:nth-child(2) ul{
	justify-content: space-around !important;
}
.header-bottom .flex-row.container .flex-col:nth-child(3) {
	display:none;
}

@media (max-width: 991px) {
	/* --- CSS CLONE GIAO DIỆN MOBILE MENU --- */

	/* Ẩn menu mặc định bị lỗi của theme */
	.mobile-sidebar .sidebar-menu > ul:not(.kl-perfect-menu) { display: none !important; }

	/* Reset Menu */
	.kl-perfect-menu { list-style: none !important; padding: 0 !important; margin: 0 !important; width: 100%; border-top: 1px solid #eee; }
	.kl-perfect-menu li { position: relative; border-bottom: 1px solid #eee; }
	.kl-perfect-menu a { display: block; padding: 15px 20px; color: #444; text-decoration: none; font-size: 15px; width: 85%; transition: 0.2s; }

	/* --- LOGIC QUAN TRỌNG: CẤP 0 TỰ SỔ --- */
	.level-0 > .sub-menu { 
		display: block !important; /* Luôn hiện con của Sản phẩm */
		margin:5px;
	}

	/* Mặc định ẩn sub-menu của các cấp khác (Cấp 1) */
	.level-1 > .sub-menu { display: none !important; }

	/* Logic mở Menu con khi click (Áp dụng cho Cấp 1) */
	.m-chk:checked ~ .sub-menu { 
		display: block !important; 
		margin: 5px !important; 
		margin-left: 15px !important;
	}

	/* Nút bấm (+) và (-) - Chỉ hiện ở Level 1 */
	.m-toggle {
		position: absolute; right: 0; top: 0; width: 35px; height: 40px;
		display: flex; align-items: center; justify-content: center;
		cursor: pointer; z-index: 5;
	}

	/* Ẩn nút bấm ở level 0 (Sản phẩm) vì nó đã tự sổ */
	.level-0 > .m-toggle { display: none !important; }

	.m-toggle::before, .m-toggle::after {
		content: ""; position: absolute; background-color: #666; transition: 0.3s;
	}
	.m-toggle::before { width: 12px; height: 1.5px; } 
	.m-toggle::after { width: 1.5px; height: 12px; }  

	/* Khi mở: Biến + thành - */
	.m-chk:checked ~ .m-toggle::after { transform: rotate(90deg); opacity: 0; }
	.m-chk:checked ~ .m-toggle::before { background-color: #333; }

	/* --- ĐỊNH DẠNG TỪNG CẤP ĐỘ --- */
	.level-0 > a { font-weight: 600; }

	/* CẤP 1 (PHỤ TÙNG GẦM, PHỤ TÙNG DI CHUYỂN...) */
	.level-1 > a { 
		font-weight: 800 !important; 
		text-transform: uppercase !important; 
		font-size: 14px !important; 
		color: #333 !important;
	}

	/* CẤP 2 (Cụm mô tơ di chuyển, Bánh răng...) */
	.level-2 { background: #f4f4f4; border-bottom: 1px solid #e9e9e9; }
	.level-2 > a { 
		font-weight: normal !important; 
		text-transform: none !important; 
		font-size: 14px !important;
		padding-left: 25px !important; 
		color: #666 !important;
	}

	.mobile-sidebar { overflow-x: hidden !important; }
	.kl-perfect-menu li input { display: none; }
	/* Bỏ sạch dấu chấm đầu dòng và các icon giả của theme */
	.kl-perfect-menu, 
	.kl-perfect-menu ul, 
	.kl-perfect-menu li {
		list-style: none !important;
		list-style-type: none !important;
	}

	.kl-perfect-menu li::before, 
	.kl-perfect-menu a::before {
		content: none !important;
		display: none !important;
	}
}