﻿
.header {
	margin: 0 0 0 0;
	pading-top: 20px !important;
	color: #fff !important;
}
#header-mobile{
	display:none;
}
.cart {
	position: relative;
	display: inline-block;
	top: 10px;
	right:310px;
}

#navOnePage .submenu {
	display: none; /* ẩn mặc định */
	position: absolute; /* để nổi lên */
	background: white;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 180px; /* đảm bảo submenu rộng */
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	z-index: 1000;
}
#navOnePage{
	display: flex;
	justify-content: space-around;
}
#navOnePage li {
	position: relative; /* cần cho absolute submenu */
	font-weight: bold;
	padding: 0 20px;
	color: black;
	font-size:20px;
}

	#navOnePage li:hover > .submenu {
		display: block; /* hiện khi hover */
	}

	#navOnePage .submenu li {
		color: #013263;
		padding: 0;
		transition: 0.5s;
		font-size: 15px;
	}

	#navOnePage .submenu li a {
		color: #013263;
		padding: 8px 15px;
		display: block;
		transition: 0.5s;
		text-decoration: none;
	}

	#navOnePage .submenu li:hover a {
		color: #fff;
		background: #2b62e3;
	}
	 Tam giác 
	.tamgiac {
		position: absolute;
		top: -8px;
		left: 285px;
		width: 0;
		height: 0;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-bottom: 10px solid rgba(0,0,0,0.15);
	}
.bar-search .search {
	border-radius: 15px 0 0 15px;
	padding: 8px 18px;
	border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #2ec7ff 0%, #7b5cff 100%) border-box;
	color: #333;
	border-width: 2px 0 2px 2px;
	padding-left: 20px;
	height: 30px;
	outline: none; /* bỏ viền mặc định trình duyệt */
}

	/* ✅ FIX: focus đúng cú pháp */
	.bar-search .search:focus {
		border-radius: 15px 0 0 15px;
		border: 2px solid blue;
		box-shadow: 0 0 0 2px rgba(0, 0, 255, 0.15);
		border-width: 2px 0 2px 2px;
		padding-left: 20px;
		outline: none; /* QUAN TRỌNG */
	}

.bar-search button {
	border-radius: 0 15px 15px 0;
	border: 0;
	position: relative;
	left: -5px;
	background: linear-gradient(90deg, #2ec7ff 0%, #7b5cff 100%);
	height: 30px;
	color: white;
}
	.cart-body {
		width: 320px;
		padding: 15px;
		border-radius: 8px;
		padding: 0 10px;
		background: #fff;
		box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
		clip-path: inset(-10px -10px 0px -10px);
	}

 Cart item 
 {
	display: grid;
	grid-template-columns: 50px 1fr auto;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid #eee;
	padding: 8px 20px;
}

.cart-item {
	display: flex;
	justify-content: space-evenly;
}
	.cart-item:last-child {
		border-bottom: none;
	}

.cart-img img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 4px;
}

.cart-name h5{
	font-weight: bold;
	color: black;
	margin: 0 !important;
}
.cart-name p {
	font-weight: bold;
	color: #333;
    font-size:12px;
	margin: 0 !important;
}

.cart-price {
	font-weight: bold;
	color: red;
	white-space: nowrap;
}

.cart-footer {
	text-align: center;
	margin-top: 10px;
}

.btn-view {
	background: #007bff;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
}

	.btn-view:hover {
		background: #0056b3;
	}

.cart-badge{
	position: absolute;
    top: -10px;
    right: -10px;
    background: #ff9500;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* Ẩn menu mobile mặc định */
@media (max-width: 437px) {
	#header-mobile {
		display: block;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		z-index: 1000;
		marin-bottom: 50px;
		width: 100%;
	}
	#header-pc{
		display:none;
	}
	.header-bar > .header-icon {
		position: relative;
		right: 25%;
	}

	.header-bar > .header-cart {
		position: relative;
		margin-right:10px;
	}

}
	@media (max-width: 767.98px) {
        #header-mobile {
            display: block;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            z-index: 1000;
            marin-bottom: 50px;
            width: 100%;
        }

		#header-pc {
			display: none;
		}
		.header-bar {
			position: relative;
			height: 60px;
			background: #013263;
			padding: 0 10px;
			display: flex;
			align-items: center;
			justify-content: space-between;
			overflow: visible;
		}
		.cart-badge {
	top: -1px;
			right: -1px;
			
		}

		.hamburger,
		.cart-wrapper {
			background: none;
			border: none;
			cursor: pointer;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 44px;
			height: 44px;
			color: #fff;
			font-size: 22px;
		}

		.header-bar > .header-icon {
			position: relative;
			right: 25%;
		}

		.header-bar > .header-cart {
			position: relative;
			left: 25%;
		}
		/* Logo nằm ở giữa tuyệt đối */
		.header-bar .header-logo {
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			z-index: 3;
			pointer-events: auto;
			text-align: center;
		}

			.header-bar .header-logo img {
				max-height: 40px; /* tuỳ chỉnh */
				display: block;
			}
	}

	@media (min-width: 768px) {
		.header-bar {
			position: static;
			display: flex;
			padding: 0;
			height: auto;
		}

			.header-bar .header-logo {
				position: static;
				transform: none;
			}

			.header-bar .header-icon,
			.header-bar .header-cart {
				width: auto;
				min-width: 0;
			}
	}

/* Mobile nav reset */
.header-menu-mobile {
	background: #013263;
	padding: 10px;
}

	.header-menu-mobile ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

		.header-menu-mobile ul li {
			border-bottom: 1px solid #eee;
		}

			.header-menu-mobile ul li a {
				display: block;
				padding: 10px;
				color: #fff;
				text-decoration: none;
			}

				.header-menu-mobile ul li a:hover {
					background: rgba(255,255,255,0.1);
				}

/* Submenu ẩn mặc định */
.submenu {
	display: none;
	background: #024280;
	padding-left: 15px;
}

/* Khi active thì hiện submenu */
.has-submenu.active > .submenu {
	display: block;
}

/* mũi tên chỉ xuống */
.has-submenu .arrow {
	float: right;
	transition: transform 0.3s;
}

/* khi mở submenu thì xoay mũi tên */
.has-submenu.active .arrow {
	transform: rotate(180deg);
}

/* Tổng thể header */
.new-header {
	background: #ffffff; /* nền trắng */
	box-shadow: 0 2px 5px rgba(0,0,0,0.08); /* bóng nhẹ */
	padding: 8px 40px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Logo */
.new-header-logo img {
	max-height: 50px;
}

/* Menu chính */
.new-header-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

/* Thanh biểu tượng trên cùng (search, cart, phone, cờ) */
.bar-1 {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 10px;
}

	.bar-1 a {
		color: #333;
		font-weight: 500;
		text-decoration: none;
		display: flex;
		align-items: center;
	}

		.bar-1 a:hover {
			color: #007bff; /* màu hover */
		}

	.bar-1 i {
		font-size: 18px;
		margin-right: 5px;
	}

	.bar-1 span {
		font-weight: 600;
		color: #fff;
	}
	.bar-1 > .bar-phone {
		border-radius: 50px;
		padding: 5px;
		color: white;
		background-image: linear-gradient(to right, #14e3e3, #00cfef, #00b9f9, #00a0fa, #0083ee, #2077eb, #366ae6, #4a5ce0, #645ee8, #7c5fef, #935ff5, #a95ffb);
	}
	 .bar-phone  i {
		color: white;
	}

/* Menu dòng dưới */
.bar-2 nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	gap: 25px;
	
}

	.bar-2 nav ul li {
		position: relative;
	}

		.bar-2 nav ul li a {
			color: #333;
			font-weight: bold;
			font-size: 18px;
			text-decoration: none;
			padding: 8px 0;
		}

			.bar-2 nav ul li a:hover {
				color: #007bff;
			}

		/* Dropdown submenu */
		.bar-2 nav ul li ul.submenu {
			display: none;
			position: absolute;
			top: 100%;
			left: 0;
			background: #fff;
			min-width: 180px;
			box-shadow: 0 4px 10px rgba(0,0,0,0.1);
			border-radius: 6px;
			z-index: 999;
		}

			.bar-2 nav ul li ul.submenu li {
				display: block;
				padding: 0;
				color: black !important;
			}

				.bar-2 nav ul li ul.submenu li a {
					display: block;
					padding: 8px 15px;
					color: black;
					font-weight: 500;
					font-size: 15px;
				}

					.bar-2 nav ul li ul.submenu li a:hover {
						background: #f8f9fa;
						color: #007bff;
					}

		.bar-2 nav ul li:hover ul.submenu {
			display: block;
		}

/* Cờ quốc gia */
.bar-1 img {
	max-height: 20px;
	border-radius: 3px;
}

/* Responsive (mobile) */
@media (max-width: 991px) {
	.new-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.bar-1, .bar-2 {
		width: 100%;
		justify-content: space-between;
	}

		.bar-2 nav ul {
			flex-wrap: wrap;
			justify-content: center;
		}
}
/* ====== Header mobile ====== */
#mobile-menu {
	background: #fff;
	border-bottom: 1px solid #eaeaea;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	position: relative;
	z-index: 1000;
	display:flex;
	justify-content: space-between;
}

.new-mobile-menu{
	display: flex;
	margin-top: 00px;
	justify-content: end;
}
/* Logo + text */
.new-mobile-logo a span {
	font-size: 16px;
	letter-spacing: 0.5px;
}

/* Icon bar */
.new-mobile-menu i {
	font-size: 20px;
	color: #000;
	transition: color 0.2s ease;
}

	.new-mobile-menu i:hover {
		color: #e60000;
	}

/* Icon container */
.mobile-bar-icon {
	margin:5px;
	cursor: pointer;
}

	.mobile-bar-icon img {
		border-radius: 2px;
	}
.bar-icon i {

	font-size: 25px; /* thu nhỏ icon */
	color: #1890ff;
	cursor: pointer;
	
	transition: color 0.2s ease;
}

	.bar-icon i:hover {
		color: #096dd9;
	}
/* Hamburger */
.hamburger-btn i {
	font-size: 22px;
}

/* Responsive nhỏ */
@media (max-width: 768px) {
	#mobile-menu {
		padding: 10px 15px;
	}

	.new-mobile-logo span {
		font-size: 14px;
	}
}
/* ===== MENU TRƯỢT BÊN PHẢI ===== */
.mobile-slide-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 85%; /* nhỏ gọn hơn */
	max-width: 340px;
	height: 100vh;
	background: #fff;
	box-shadow: -5px 0 25px rgba(0,0,0,0.2);
	transition: all 0.35s ease;
	z-index: 2000;
	overflow-y: auto;
	border-radius: 12px 0 0 12px;
}

	.mobile-slide-menu.active {
		right: 0;
	}

/* Overlay làm nền mờ */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.45);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1500;
}

	.overlay.active {
		opacity: 1;
		visibility: visible;
	}

/* ===== HEADER DANH MỤC ===== */
.mobile-header {
	background: linear-gradient(90deg, #005bea, #00c6fb);
	display:flex;
	justify-content: space-between;
	color: #fff;
	padding: 15px 20px;
	border-bottom: none;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 10;
	border-radius: 12px 0 0 0;
}

	.mobile-header h5 {
		font-size: 18px;
		font-weight: 700;
		margin: 0;
		letter-spacing: 0.5px;
	}

	.mobile-header .close-menu {
		font-size: 22px;
		cursor: pointer;
		color: #fff;
		transition: transform 0.2s ease;
	}

		.mobile-header .close-menu:hover {
			transform: rotate(90deg);
			color: #ffeb3b;
		}

/* ===== MENU CHÍNH ===== */
#mobile-nav {
	padding: 10px 0;
	margin: 0;
}

	#mobile-nav li {
		list-style: none;
		border-bottom: 1px solid #f2f2f2;
	}

	#mobile-nav > li > a,
	.dropdown-toggle > a {
		display: block;
		padding: 14px 20px;
		color: #222;
		font-size: 15.5px;
		font-weight: 600;
		text-decoration: none;
		transition: all 0.25s ease;
	}

		#mobile-nav > li > a:hover,
		.dropdown-toggle:hover a {
			background: #f5f8ff;
			color: #0078ff;
		}

/* ===== ICON + MỞ MENU CON ===== */
.toggle-icon {
	font-size: 20px;
	padding-right: 20px;
	color: #888;
	transition: all 0.25s ease;
}

.mobile-dropdown {
	position: relative;
	
}

.dropdown-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}
	.dropdown-toggle:hover {
		color: #0078ff;
		background: #f1f6ff;
	}
	.mobile-dropdown.open .toggle-icon {
		transform: rotate(45deg);
		color: #0078ff;
	}

/* ===== SUBMENU ===== */
.mobile-submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
	background: #fafafa;
	border-left: 3px solid #0078ff1a;
}

.mobile-dropdown.open .mobile-submenu {
	max-height: 300px;
}

.mobile-submenu li a {
	display: block;
	padding: 10px 25px;
	color: #444;
	font-size: 14.5px;
	text-decoration: none;
	transition: all 0.2s ease;
}

	.mobile-submenu li a:hover {
		color: #0078ff;
		background: #f1f6ff;
		border-left: 3px solid #0078ff;
	}

/* ===== SCROLLBAR NHẸ ===== */
.mobile-slide-menu::-webkit-scrollbar {
	width: 6px;
}

.mobile-slide-menu::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

	.mobile-slide-menu::-webkit-scrollbar-thumb:hover {
		background: #999;
	}


@media (max-width: 768px) {
	.bar-search .search {
		width: 150px;
	}
	.bar-search .searchBtn {
		top:1px;
		color:white;
	}
		.bar-search .searchBtn i {
			color: white;
		}
}
@media (max-width: 440px) {
	.bar-search .search {
		width: 100px;
	}
	.bar-search .searchBtn {
		top:1px;
		color:white;
	}
}
/* ===== ANIMATION TRƯỢT VÀO MƯỢT ===== */
@keyframes slideInRight {
	from {
		right: -100%;
		opacity: 0;
	}

	to {
		right: 0;
		opacity: 1;
	}
}

@keyframes slideOutRight {
	from {
		right: 0;
		opacity: 1;
	}

	to {
		right: -100%;
		opacity: 0;
	}
}
