/**
 * Header UI refresh — desktop + top bar + main nav.
 * Scoped under #header so other layouts are unaffected.
 */

#header {
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

/* ----- Top utility bar ----- */
#header .top-bar {
	background: linear-gradient(180deg, #f9fafb 0%, #f1f3f6 100%);
	border-bottom: 1px solid #e2e6ec;
}

#header .top-bar .navbar-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	float: none !important;
	padding: 6px 0 !important;
}

#header .top-bar .col-left .navbar-nav,
#header .top-bar .col-right .navbar-nav {
	justify-content: flex-start;
}

#header .top-bar .col-right .navbar-nav {
	justify-content: flex-end;
}

#header .top-bar .navbar-nav .nav-item {
	float: none !important;
	margin-right: 0 !important;
	padding-right: 0 !important;
	min-height: auto;
	font-size: 13px;
	color: #4b5563;
	white-space: nowrap;
}

#header .top-bar-promo {
	list-style: none;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #b91c1c !important;
	background: #fee2e2;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid #fecaca;
	white-space: nowrap;
}

#header .top-bar .navbar-nav .nav-item a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #374151 !important;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.2s ease;
	white-space: nowrap;
}

#header .top-bar .navbar-nav .nav-item a:hover {
	color: #be185d !important;
}

#header .top-bar-note {
	color: #6b7280 !important;
	font-size: 12px;
	white-space: nowrap;
}

@media (max-width: 991px) {
	#header .top-bar-note {
		white-space: normal;
	}
}

#header .top-bar-flags .nav-item a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px 3px 8px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-weight: 600;
	font-size: 12px;
	color: #1f2937 !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#header .top-bar-flags .nav-item a:hover {
	border-color: #f9a8d4;
	box-shadow: 0 2px 8px rgba(233, 30, 140, 0.12);
	color: #be185d !important;
}

#header .top-bar-flag-img {
	width: 18px;
	height: auto;
	vertical-align: middle;
	border-radius: 2px;
}

#header .top-bar .row {
	align-items: center;
}

#header .top-bar .mobile-menu .nav {
	justify-content: center;
	padding: 4px 0 8px;
}

#header .top-bar .mobile-menu select[name="myselect"] {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	background: #fff;
}

/* ----- Main row: logo + search + utilities ----- */
#header .nav-top {
	padding: 16px 0 14px;
	background: #fff;
	border-bottom: 1px solid #f0f1f4;
}

#header .nav-top .nav-top-left .logo {
	width: 200px;
	margin-right: 12px;
}

#header .nav-top .nav-top-left .logo a img {
	max-height: 64px;
	object-fit: contain;
}

#header .top-search-bar {
	margin-left: 0;
	width: calc(100% - 220px);
	max-width: 560px;
}

#header .top-search-bar .input-search {
	border: 1px solid #e5e7eb !important;
	border-right: 0 !important;
	border-radius: 12px 0 0 12px !important;
	padding: 10px 16px !important;
	min-height: 46px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: #111827;
	background: #fafafa;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#header .top-search-bar .input-search:focus {
	background: #fff;
	border-color: #f9a8d4 !important;
	box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12);
	outline: none !important;
}

#header .top-search-bar .btn-search {
	top: 0;
	right: 0;
	height: 100%;
	min-width: 52px;
	width: auto;
	padding: 0 16px;
	border-radius: 0 12px 12px 0 !important;
	background: linear-gradient(135deg, #e91e8c 0%, #c2185b 100%) !important;
	border: 1px solid #be185d !important;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: filter 0.2s, transform 0.15s;
}

#header .top-search-bar .btn-search:hover {
	filter: brightness(1.06);
}

#header .top-search-bar .btn-search:active {
	transform: scale(0.98);
}

#header .top-search-bar .btn-search i {
	color: #fff !important;
	font-size: 18px;
}

#header .nav-top-right .nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px 8px;
	float: none !important;
	padding-right: 0 !important;
}

#header .nav-top-right .nav > li {
	margin: 0;
}

#header .nav-top-right .profile-dropdown form {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #4b5563;
	font-weight: 500;
}

#header .nav-top-right select[name="myselect"] {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 7px 28px 7px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#header .nav-top-right select[name="myselect"]:focus {
	border-color: #f9a8d4;
	box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
	outline: none;
}

#header .nav-top-right .nav-item-cart a,
#header .nav-top-right .nav-item-login a,
#header .nav-top-right .li-main-nav-right > a {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 8px 12px !important;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	color: #1f2937 !important;
	transition: background 0.2s, color 0.2s;
}

#header .nav-top-right .nav-item-cart a:hover,
#header .nav-top-right .nav-item-login a:hover,
#header .nav-top-right .li-main-nav-right > a:hover {
	background: #fdf2f8;
	color: #be185d !important;
}

#header .nav-top-right .nav-item-cart .notification {
	position: absolute !important;
	top: 2px !important;
	left: auto !important;
	right: 4px !important;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#header .nav-top-right .nav-item-cart a {
	position: relative;
	padding-right: 22px !important;
}

#header .nav-top-right .profile-dropdown .a-profile {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 6px 12px !important;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: background 0.2s, border-color 0.2s;
}

#header .nav-top-right .profile-dropdown .a-profile:hover {
	background: #f9fafb;
	border-color: #e5e7eb;
}

#header .nav-top-right .profile-dropdown .a-profile img {
	width: 34px;
	height: 34px;
	border: 2px solid #fce7f3;
}

#header .nav-top-right .profile-dropdown .dropdown-menu {
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	border: 1px solid #ebeef2;
	overflow: hidden;
}

#header .nav-top-right .profile-dropdown .dropdown-menu li a {
	border-radius: 0;
}

/* ----- Pink navigation strip ----- */
#header .nav-main,
#header .nav-main .navbar {
	background: linear-gradient(105deg, #f8c9d8 0%, #f2c2cd 42%, #ebb6cf 100%) !important;
	border-top: none !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px rgba(190, 24, 93, 0.08);
}

#header .nav-main .navbar {
	padding-top: 2px;
	padding-bottom: 2px;
}

#header .nav-main .navbar ul .nav-item .nav-link {
	color: #1a1a1a !important;
	font-weight: 600;
	font-size: 14px;
	padding: 14px 12px !important;
	letter-spacing: 0.01em;
	transition: background 0.2s, color 0.2s;
	border-radius: 10px 10px 0 0;
}

#header .nav-main .navbar > .navbar-nav > .nav-item:hover .nav-link {
	background: rgba(255, 255, 255, 0.55);
	color: #111 !important;
}

#header .nav-main .navbar > .navbar-nav > .nav-item:hover .nav-link:before {
	height: 3px;
	bottom: 4px;
	left: 10px;
	right: 10px;
	border-radius: 2px;
	background: #e91e8c;
}

#header .nav-main .dropdown-menu-more-items {
	border-radius: 0 12px 12px 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
	border: 1px solid #e8eaef;
	margin-top: 0;
	padding: 12px 16px;
}

/* ----- Mobile strip under header ----- */
#header .mobile-menu.header {
	border-bottom: 1px solid #eef0f3;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

#header .mobile-search-form {
	background: #f9fafb !important;
	border-top: 1px solid #eef0f3;
}

#header .mobile-search-form .input-search {
	border-radius: 12px 0 0 12px !important;
	border: 1px solid #e5e7eb !important;
}

#header .mobile-search-form .btn-search {
	border-radius: 0 12px 12px 0 !important;
	background: linear-gradient(135deg, #e91e8c 0%, #c2185b 100%) !important;
	border: 1px solid #be185d !important;
}

@media (max-width: 991px) {
	#header .top-bar .col-left .navbar-nav,
	#header .top-bar .col-right .navbar-nav {
		justify-content: center;
	}

	#header .top-bar .navbar-nav {
		gap: 6px 10px;
	}

	#header .top-bar-promo {
		font-size: 11px !important;
		padding: 4px 10px;
	}

	#header .top-search-bar {
		width: 100%;
		max-width: none;
		margin-top: 10px;
	}
}
