/* =========================================================
   Allomed header — match target design (IMAGE 2)
   ========================================================= */

:root {
	--allomed-yellow: #ffc400;
	--allomed-yellow-hover: #f0b700;
	--allomed-navy: #071d3b;
	--allomed-navy-soft: #0a2744;
	--allomed-border: #e8ecf1;
	--allomed-muted: #667085;
	--allomed-bg: #ffffff;
	--allomed-container: 1520px;
	--allomed-radius: 18px;
}

/* Neutralize leftover parent header chrome if any leaks */
body .allomed-header + .medilove_header_area,
body header > .medilove_header_area {
	display: none !important;
}

.allomed-header {
	background: var(--allomed-bg);
	color: var(--allomed-navy);
	position: relative;
	z-index: 999;
	font-family: inherit;
}

.allomed-container {
	width: 100%;
	max-width: var(--allomed-container);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* ---------- ROW 1: Top bar ---------- */
.allomed-topbar {
	border-bottom: 1px solid var(--allomed-border);
	background: var(--allomed-bg);
	min-height: 50px;
}

.allomed-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 50px;
}

.allomed-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--allomed-navy);
	font-weight: 500;
	white-space: nowrap;
}

.allomed-topbar__item--left {
	justify-content: flex-start;
	flex: 1;
}

.allomed-topbar__item--center {
	justify-content: center;
	flex: 1;
}

.allomed-topbar__item--right {
	justify-content: flex-end;
	flex: 1;
}

.allomed-topbar__item a {
	color: var(--allomed-navy);
	text-decoration: none;
}

.allomed-topbar__item a:hover {
	color: var(--allomed-navy-soft);
}

.allomed-topbar__icon {
	display: inline-flex;
	color: var(--allomed-navy);
	flex-shrink: 0;
}

.allomed-topbar__icon svg {
	display: block;
}

/* ---------- ROW 2: Main bar ---------- */
.allomed-mainbar {
	background: var(--allomed-bg);
	padding: 28px 0 24px;
}

.allomed-mainbar__inner {
	display: flex;
	align-items: center;
	gap: 28px;
}

.allomed-hamburger {
	display: none;
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	padding: 8px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

.allomed-hamburger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--allomed-navy);
	border-radius: 2px;
}

.allomed-logo {
	flex: 0 0 auto;
	max-width: 240px;
}

.allomed-logo a,
.allomed-logo .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.allomed-logo img,
.allomed-logo .custom-logo {
	display: block;
	width: auto !important;
	max-width: 220px !important;
	height: auto !important;
	max-height: 72px !important;
	object-fit: contain;
}

/* Search */
.allomed-search {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
}

.allomed-search__form {
	display: flex;
	align-items: center;
	width: 100%;
	height: 76px;
	background: #fff;
	border: 1.5px solid var(--allomed-border);
	border-radius: 999px;
	padding: 7px 7px 7px 24px;
	box-sizing: border-box;
	position: relative;
	transition: border-color 0.2s ease;
}

.allomed-search__form:focus-within {
	border-color: #d0d5e0;
}

.allomed-search__icon {
	display: inline-flex;
	color: var(--allomed-muted);
	margin-right: 12px;
	flex-shrink: 0;
}

.allomed-search__input {
	flex: 1 1 auto;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	height: 100%;
	font-size: 16px;
	color: var(--allomed-navy);
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0;
	border-radius: 0 !important;
}

.allomed-search__input::placeholder {
	color: #a0a8b8;
	opacity: 1;
}

.allomed-search__input::-webkit-search-decoration,
.allomed-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.allomed-search__btn {
	flex: 0 0 152px;
	height: 100%;
	border: 0;
	border-radius: 999px;
	background: var(--allomed-yellow) !important;
	color: var(--allomed-navy) !important;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	padding: 0 18px;
	transition: background 0.2s ease;
	line-height: 1;
	box-shadow: none !important;
	text-transform: none;
}

.allomed-search__btn:hover {
	background: var(--allomed-yellow-hover);
}

/* Actions: Favoris / Panier */
.allomed-actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex: 0 0 auto;
}

.allomed-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	color: var(--allomed-navy) !important;
	min-width: 56px;
	gap: 6px;
}

.allomed-action__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--allomed-navy);
}

.allomed-action__icon svg {
	display: block;
}

.allomed-badge,
.allomed-action .wishlist-count,
.allomed-action .medilove_count_number {
	position: absolute !important;
	top: -8px !important;
	right: -10px !important;
	left: auto !important;
	min-width: 20px;
	height: 20px;
	padding: 0 5px !important;
	border-radius: 999px !important;
	background: var(--allomed-yellow) !important;
	color: var(--allomed-navy) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	text-align: center;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	border: 0 !important;
}

.allomed-action__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--allomed-navy);
	line-height: 1;
}

/* ---------- ROW 3: Navigation ---------- */
.allomed-nav {
	border-top: 1px solid var(--allomed-border);
	border-bottom: 1px solid var(--allomed-border);
	background: var(--allomed-bg);
}

.allomed-nav__inner {
	display: flex;
	align-items: stretch;
	min-height: 84px;
}

.allomed-nav__menu {
	width: 100%;
}

/* Off-screen clone used only as meanmenu source */
.allomed-meanmenu-source {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

.allomed-header .allomed-nav__menu > ul,
.allomed-header .allomed-nav__menu ul.navbar-nav,
.allomed-header nav#allomed-primary-menu > ul {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	gap: 0;
}

.allomed-header .allomed-nav__menu > ul > li,
.allomed-header nav#allomed-primary-menu > ul > li {
	position: relative;
	flex: 1 1 0;
	display: flex !important;
	align-items: stretch;
	justify-content: center;
	margin: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
}

.allomed-header .allomed-nav__menu > ul > li:not(:last-child)::after,
.allomed-header nav#allomed-primary-menu > ul > li:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 22px;
	background: var(--allomed-border);
	pointer-events: none;
	z-index: 1;
}

.allomed-header .allomed-nav__menu > ul > li > a,
.allomed-header nav#allomed-primary-menu > ul > li > a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 84px;
	padding: 10px 8px !important;
	margin: 0 !important;
	color: var(--allomed-navy) !important;
	font-size: 13px;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase !important;
	text-decoration: none !important;
	background: transparent !important;
	border: 0 !important;
	white-space: nowrap;
	position: relative;
	line-height: 1.25;
	text-align: center;
	float: none !important;
}

/* Hide any category icons injected by theme/walker */
.allomed-nav__menu > ul > li > a img,
.allomed-nav__menu > ul > li > a i,
.allomed-nav__menu > ul > li > a .menu-icon,
.allomed-nav__menu > ul > li > a::before {
	display: none !important;
}

/* Active / hover underline via ::before (caret uses ::after) */
.allomed-header .allomed-nav__menu > ul > li > a::before {
	content: "" !important;
	position: absolute !important;
	left: 18% !important;
	right: 18% !important;
	bottom: 18px !important;
	height: 2px !important;
	width: auto !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 2px;
	transition: background 0.2s ease;
	display: block !important;
	margin: 0 !important;
	float: none !important;
}

.allomed-header .allomed-nav__menu > ul > li:hover > a::before,
.allomed-header .allomed-nav__menu > ul > li.current-menu-item > a::before,
.allomed-header .allomed-nav__menu > ul > li.current-menu-ancestor > a::before,
.allomed-header .allomed-nav__menu > ul > li.active > a::before,
.allomed-header .allomed-nav__menu > ul > li.current_page_item > a::before {
	background: var(--allomed-yellow) !important;
}

.allomed-header .allomed-nav__menu > ul > li:hover > a,
.allomed-header .allomed-nav__menu > ul > li.current-menu-item > a,
.allomed-header .allomed-nav__menu > ul > li.current-menu-ancestor > a,
.allomed-header .allomed-nav__menu > ul > li.active > a {
	color: var(--allomed-navy) !important;
}

/* Dropdown caret for items with children — replace parent FA caret */
.allomed-header .allomed-nav__menu > ul > li.menu-item-has-children > a .caret,
.allomed-header .allomed-nav__menu > ul > li.menu-item-has-children > a .dropdown-btn,
.allomed-header .allomed-nav__menu > ul > li.has-dropdown > a .caret {
	display: none !important;
}

.allomed-header .allomed-nav__menu > ul > li.has-dropdown > a::after,
.allomed-header .allomed-nav__menu > ul > li.menu-item-has-children > a::after {
	content: "" !important;
	font-family: inherit !important;
	display: inline-block !important;
	width: 0 !important;
	height: 0 !important;
	border-left: 4px solid transparent !important;
	border-right: 4px solid transparent !important;
	border-top: 5px solid var(--allomed-navy) !important;
	margin-left: 6px !important;
	float: none !important;
	position: static !important;
	background: transparent !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	top: auto !important;
}

/* Submenus */
.allomed-nav__menu > ul > li > .sub-menu,
.allomed-nav__menu > ul > li > ul {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--allomed-border);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(27, 42, 74, 0.08);
	padding: 10px 0;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 1000;
	display: block !important;
	float: none !important;
}

.allomed-nav__menu > ul > li:hover > .sub-menu,
.allomed-nav__menu > ul > li:hover > ul,
.allomed-nav__menu > ul > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.allomed-nav__menu .sub-menu li {
	display: block !important;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.allomed-nav__menu .sub-menu li a {
	display: block !important;
	padding: 10px 18px !important;
	color: var(--allomed-navy) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	min-height: 0 !important;
	white-space: normal;
}

.allomed-nav__menu .sub-menu li a::after,
.allomed-nav__menu .sub-menu li a::before {
	display: none !important;
}

.allomed-nav__menu .sub-menu li a:hover {
	background: #fafbfd;
	color: var(--allomed-navy) !important;
}

/* Nested submenu */
.allomed-nav__menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	transform: none;
}

.allomed-nav__menu .sub-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

/* Screen reader */
.allomed-header .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
	.allomed-container {
		padding-left: 18px;
		padding-right: 18px;
	}

	.allomed-mainbar {
		padding: 20px 0 18px;
	}

	.allomed-mainbar__inner {
		gap: 16px;
	}

	.allomed-logo img,
	.allomed-logo .custom-logo {
		max-width: 170px !important;
		max-height: 58px !important;
	}

	.allomed-search__form {
		height: 64px;
		padding-left: 16px;
	}

	.allomed-search__btn {
		flex-basis: 130px;
		font-size: 15px;
	}

	.allomed-nav__inner {
		min-height: 70px;
	}

	.allomed-header .allomed-nav__menu > ul > li > a {
		min-height: 70px;
		font-size: 11px;
		padding: 8px 4px !important;
	}

	.allomed-header .allomed-nav__menu > ul > li > a::before {
		bottom: 12px !important;
		left: 12% !important;
		right: 12% !important;
	}

	.allomed-topbar__item {
		font-size: 12px;
	}
}

@media (max-width: 1024px) {
	.allomed-topbar__item--center {
		display: none;
	}

	.allomed-nav__menu > ul,
	nav#mobile-menu > ul {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		justify-content: flex-start;
		gap: 0;
	}

	.allomed-nav__menu > ul > li,
	nav#mobile-menu > ul > li {
		flex: 0 0 auto;
	}

	.allomed-nav__menu > ul > li > a,
	nav#mobile-menu > ul > li > a {
		padding: 0 14px !important;
		min-height: 64px;
	}

	.allomed-nav__menu > ul > li:not(:last-child)::after {
		display: none;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	.allomed-topbar {
		min-height: 40px;
	}

	.allomed-topbar__inner {
		min-height: 40px;
		justify-content: center;
	}

	.allomed-topbar__item--left,
	.allomed-topbar__item--center {
		display: none;
	}

	.allomed-topbar__item--right {
		flex: none;
		font-size: 12px;
		justify-content: center;
	}

	.allomed-mainbar {
		padding: 14px 0 12px;
	}

	.allomed-mainbar__inner {
		display: grid;
		grid-template-columns: 42px 1fr auto;
		grid-template-areas:
			"hamburger logo actions"
			"search search search";
		gap: 12px 10px;
		align-items: center;
	}

	.allomed-hamburger {
		display: inline-flex;
		grid-area: hamburger;
	}

	.allomed-logo {
		grid-area: logo;
		justify-self: start;
		max-width: 160px;
	}

	.allomed-logo img,
	.allomed-logo .custom-logo {
		max-width: 150px !important;
		max-height: 48px !important;
	}

	.allomed-actions {
		grid-area: actions;
		gap: 14px;
	}

	.allomed-search {
		grid-area: search;
		width: 100%;
	}

	.allomed-search__form {
		height: 54px;
		border-radius: 14px;
		padding: 4px 4px 4px 14px;
	}

	.allomed-search__input {
		font-size: 14px;
	}

	.allomed-search__btn {
		flex-basis: 110px;
		font-size: 13px;
		border-radius: 12px;
	}

	.allomed-action__label {
		font-size: 11px;
	}

	/* Desktop category row hidden on small phones — use hamburger drawer */
	.allomed-nav {
		display: none;
	}
}

@media (max-width: 390px) {
	.allomed-search__btn {
		flex-basis: 96px;
		padding: 0 10px;
		font-size: 12px;
	}

	.allomed-logo img,
	.allomed-logo .custom-logo {
		max-width: 130px !important;
	}
}
