/**
 * B2C storefront header (reference: MY-DATA/html/references/droxauto.html).
 * Variables set on .site-header--drox via Customizer.
 */

.site-header--drox .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.site-header--drox {
	--header-off-white: #f7f7f5;
	--header-light-gray: #f0f0ee;
	--header-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
	font-family: "Barlow", system-ui, sans-serif;
	color: var(--header-text, #1c1c1c);
	background: var(--header-bg, #fff);
	box-shadow: var(--header-shadow);
}

.site-header--drox.site-header--sticky {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header__bar-inner,
.site-header__nav-inner {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 12px;
	padding-right: 12px;
}

.site-header__bar {
	padding-top: var(--header-bar-pad-top, 0px);
	padding-bottom: var(--header-bar-pad-bot, 0px);
	border-bottom: var(--header-border-w, 1.5px) solid var(--header-border, #e5e5e3);
}

.site-header__bar-inner {
	/* min-height: row can grow when search wraps (mobile). */
	min-height: var(--header-bar-min-h, 76px);
	display: flex;
	align-items: center;
	gap: 24px;
	box-sizing: border-box;
	transform: translateY(var(--header-bar-offset-y, 0px));
}

/* Reference droxauto.html uses fixed height: 76px — flex + min-height alone lets the row grow to the tallest child (e.g. a tall image logo). */
@media (min-width: 992px) {
	.site-header__bar-inner {
		height: var(--header-bar-min-h, 76px);
		min-height: var(--header-bar-min-h, 76px);
	}
}

.site-header__menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--header-border, #e5e5e3);
	border-radius: 8px;
	background: var(--header-off-white, #f7f7f5);
	cursor: pointer;
	flex-shrink: 0;
}

.site-header__menu-toggle-bar {
	display: block;
	height: 2px;
	width: 20px;
	margin: 0 auto;
	background: var(--header-text, #1c1c1c);
	border-radius: 1px;
}

.site-header__logo-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.site-header__logo--image .custom-logo-link {
	display: flex;
	align-items: center;
	height: var(--header-logo-max-h, 52px) !important;
	max-width: var(--header-logo-max-w, 220px) !important;
}

.site-header__logo--image .custom-logo {
	height: 100% !important;
	max-height: var(--header-logo-max-h, 52px) !important;
	max-width: var(--header-logo-max-w, 220px) !important;
	width: auto !important;
	display: block;
	object-fit: contain;
}

@media (min-width: 992px) {
	.site-header__logo--image .custom-logo-link {
		height: min(
			var(--header-logo-max-h, 52px),
			calc(var(--header-bar-min-h, 76px) - 16px)
		) !important;
	}
	.site-header__logo--image .custom-logo {
		max-height: min(
			var(--header-logo-max-h, 52px),
			calc(var(--header-bar-min-h, 76px) - 16px)
		) !important;
	}
}

.site-header__logo--text {
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -1px;
	text-decoration: none;
	color: var(--header-text, #111);
	display: inline-flex;
	align-items: flex-end;
	gap: 0;
	line-height: 1;
}

.site-header__logo-part--primary {
	color: var(--header-text, #111);
}

.site-header__logo-part--accent {
	color: var(--header-accent, #f5700a);
}

.site-header__logo-dot {
	width: 7px;
	height: 7px;
	background: var(--header-accent, #f5700a);
	border-radius: 50%;
	margin-left: 2px;
	margin-bottom: 14px;
	flex-shrink: 0;
}

.site-header__search {
	flex: 1;
	max-width: 520px;
	position: relative;
}

.site-header__search-input {
	width: 100%;
	background: var(--header-off-white, #f7f7f5);
	border: 1.5px solid var(--header-border, #e5e5e3);
	border-radius: 8px;
	padding: 12px 52px 12px 20px;
	color: var(--header-text, #1c1c1c);
	font-family: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.site-header__search-input::placeholder {
	color: var(--header-text-muted, #aaa);
}

.site-header__search-input:focus {
	border-color: var(--header-accent, #f5700a);
	box-shadow: 0 0 0 3px var(--header-accent-glow, rgba(245, 112, 10, 0.15));
	background: var(--header-bg, #fff);
}

.site-header__search-submit {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 50px;
	background: var(--header-accent, #f5700a);
	border: none;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.site-header__search-submit:hover {
	background: var(--header-accent-hover, #e06000);
}

.site-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.site-header__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--header-accent, #f5700a);
	border-radius: 8px;
	padding: 9px 18px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
}

.site-header__phone:hover {
	background: var(--header-accent-hover, #e06000);
	color: #fff;
	transform: translateY(-1px);
}

.site-header__phone-icon {
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.site-header__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-align: left;
}

.site-header__phone-text small {
	font-size: 10px;
	font-weight: 400;
	opacity: 0.85;
}

.site-header__phone-text strong {
	font-size: 13px;
}

.site-header__b2b {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--header-off-white, #f7f7f5);
	border: 1.5px solid var(--header-border, #e5e5e3);
	border-radius: 8px;
	color: var(--header-text, #1c1c1c);
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.site-header__b2b:hover {
	border-color: var(--header-accent, #f5700a);
	background: var(--header-accent-glow, rgba(245, 112, 10, 0.15));
	color: var(--header-accent, #f5700a);
}

.site-header__cart {
	position: relative;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--header-off-white, #f7f7f5);
	border: 1.5px solid var(--header-border, #e5e5e3);
	border-radius: 8px;
	color: var(--header-text, #1c1c1c);
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}

.site-header__cart:hover {
	border-color: var(--header-accent, #f5700a);
	background: var(--header-accent-glow, rgba(245, 112, 10, 0.15));
}

.site-header__search-toggle,
.site-header__nav-close,
.site-header__mobile-extras,
.site-header__nav-overlay,
.site-header__drawer-utilities {
	display: none;
}

.site-header__cart-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--header-accent, #f5700a);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-sizing: border-box;
	line-height: 1;
}

/* Nav row */
.site-header__nav {
	background: var(--nav-bg, var(--header-bg, #fff));
	border-bottom: var(--nav-border-w, var(--header-border-w, 1.5px)) solid var(--nav-border-color, var(--header-border, #e5e5e3));
}

/* No desktop menu — hide the nav row entirely on desktop; mobile drawer CSS overrides below */
.site-header__nav--drawer-only {
	display: none;
}

.site-header__nav-inner {
	display: flex;
	align-items: stretch;
	min-height: var(--nav-row-h, var(--header-nav-row-h, 50px));
	box-sizing: border-box;
}

/* Fixed height so the Customizer value matches the visible strip (min-height alone was too loose with flex). */
@media (min-width: 992px) {
	.site-header__nav-inner {
		height: var(--nav-row-h, var(--header-nav-row-h, 50px));
		min-height: var(--nav-row-h, var(--header-nav-row-h, 50px));
	}
}

.site-header__nav-row {
	display: flex;
	align-items: stretch;
	flex: 1;
	gap: 0;
}

.site-header__nav-item {
	position: relative;
	display: flex;
	align-items: stretch;
	height: 100%;
}

.site-header__nav-link {
	padding: 0 20px;
	height: var(--nav-row-h, var(--header-nav-row-h, 50px));
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	/* Scale type with row height so short rows (e.g. 32–40px) still fit. */
	font-size: clamp(11px, calc(var(--nav-row-h, var(--header-nav-row-h, 50px)) * 0.26), 13.5px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--nav-link-color, var(--header-nav-muted, #777));
	text-decoration: none;
	transition: color 0.2s;
	border-bottom: var(--nav-underline-w, 2px) solid transparent;
	white-space: nowrap;
	box-sizing: border-box;
}

.site-header__nav-chevron {
	width: 10px;
	height: 6px;
	flex-shrink: 0;
	opacity: 0.6;
	transition: transform 0.2s;
}

.site-header__nav-item:hover > .site-header__nav-link {
	color: var(--nav-link-hover-color, var(--header-accent, #f5700a));
	border-bottom-color: var(--nav-link-hover-color, var(--header-accent, #f5700a));
	border-bottom-width: var(--nav-underline-w, 2px);
}

.site-header__nav-item:hover .site-header__nav-chevron {
	transform: rotate(180deg);
}

/* Featured "origine" item — accent color, nothing else */
.site-header__nav-item.nav-item--origine > .site-header__nav-link {
	color: var(--header-accent, #f5700a);
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-bottom-color 0.2s;
}

.site-header__nav-item.nav-item--origine:hover > .site-header__nav-link {
	color: var(--header-text, #1c1c1c);
	border-bottom-color: var(--header-text, #1c1c1c);
}

.site-header__nav-item.nav-item--origine > .site-header__nav-link .site-header__nav-chevron {
	display: none;
}

.site-header__nav-item.nav-item--origine > .site-header__nav-link::before {
	content: "✦";
	margin-right: 4px;
	font-size: 8px;
}

.site-header__nav-item.nav-item--origine > .site-header__nav-link::after {
	display: none;
}

/* Dropdown */
.site-header__dropdown {
	position: absolute;
	top: calc(100% + 1px);
	left: 0;
	min-width: 240px;
	background: var(--nav-dd-bg, #fff);
	border: 1.5px solid var(--header-border, #e5e5e3);
	border-top: var(--nav-dd-accent-w, 3px) solid var(--nav-dd-accent-color, var(--header-accent, #f5700a));
	border-radius: var(--nav-dd-radius, 0 0 10px 10px);
	box-shadow: var(--nav-dd-shadow, 0 8px 30px rgba(0,0,0,0.18));
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 999;
	overflow: hidden;
}

.site-header__nav-item:hover .site-header__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-header__dropdown-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	font-size: 13.5px;
	color: var(--nav-dd-link-color, var(--header-text, #1c1c1c));
	text-decoration: none;
	font-weight: 500;
	transition: background 0.15s, color 0.15s, padding-left 0.15s;
	border-bottom: 1px solid var(--header-light-gray, #f0f0ee);
}

.site-header__dropdown-link:last-child {
	border-bottom: none;
}

.site-header__dropdown-link::before {
	display: none;
}

.site-header__dropdown-link:hover {
	background: var(--nav-dd-link-hover-bg, var(--header-off-white, #f7f7f5));
	color: var(--nav-dd-link-hover-color, var(--header-accent, #f5700a));
	padding-left: 26px;
}

.site-header__dropdown-link:hover::before {
	display: none;
}

/* Tablet + mobile (< 992px): minimal bar — burger left, logo centered, everything else in drawer */
@media (max-width: 991px) {
	.site-header__bar {
		position: relative;
	}

	.site-header__bar-inner {
		position: relative;
		flex-wrap: nowrap;
		gap: 0;
		min-height: auto;
		padding: 10px 16px;
		justify-content: flex-start;
	}

	/* Burger: left side */
	.site-header__menu-toggle {
		display: flex;
		flex: 0 0 auto;
		order: 1;
	}

	/* Logo: absolutely centered in the bar */
	.site-header__logo-wrap {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		max-width: calc(100% - 100px);
	}

	/* Actions (cart): right side */
	.site-header__actions {
		order: 2;
	}

	.site-header__logo--image .custom-logo-link {
		max-width: 120px !important;
		height: 34px !important;
	}

	.site-header__logo--image .custom-logo {
		max-width: 120px !important;
		max-height: 34px !important;
	}

	.site-header__logo--text {
		font-size: 20px;
	}

	/* Hide search bar from the bar — it lives in the drawer */
	.site-header__search {
		display: none !important;
	}

	/* Actions: only cart stays in the bar */
	.site-header__actions {
		display: flex !important;
		margin-left: auto;
		gap: 0;
	}

	/* Hide phone, B2B, search-toggle from bar — they live in the drawer */
	.site-header__phone,
	.site-header__b2b,
	.site-header__search-toggle {
		display: none !important;
	}

	.site-header__cart {
		width: 40px;
		height: 40px;
	}

	/* Nav: left-side slide-in drawer */
	.site-header__nav {
		display: block !important;
		position: fixed;
		top: 0;
		left: 0;
		width: var(--nav-drawer-w, 320px);
		max-width: 85vw;
		height: 100vh;
		overflow-y: auto;
		overflow-x: hidden;
		background: var(--header-bg, #fff);
		z-index: 1100;
		transform: translateX(-100%);
		transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		            box-shadow 0.32s cubic-bezier(0.4, 0, 0.2, 1);
		border-bottom: none;
		border-right: 1.5px solid var(--header-border, #e5e5e3);
		box-shadow: none;
	}

	.site-header__nav.is-open {
		transform: translateX(0);
		box-shadow: 6px 0 32px rgba(0, 0, 0, 0.18);
	}

	.site-header__nav-inner {
		display: flex;
		flex-direction: column;
		min-height: 100%;
		padding: 0;
	}

	/* Drawer close button */
	.site-header__nav-close {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 14px 16px;
		background: var(--header-off-white, #f7f7f5);
		border: none;
		border-bottom: 1.5px solid var(--header-border, #e5e5e3);
		cursor: pointer;
		color: var(--header-text, #1c1c1c);
		font-family: inherit;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 1px;
		text-transform: uppercase;
		box-sizing: border-box;
		flex-shrink: 0;
		transition: background 0.15s;
	}

	.site-header__nav-close:hover {
		background: var(--header-light-gray, #f0f0ee);
	}

	/* Drawer utilities: search + cart inside the drawer */
	.site-header__drawer-utilities {
		display: flex;
		flex-direction: column;
		border-bottom: 1.5px solid var(--header-border, #e5e5e3);
		flex-shrink: 0;
	}

	.site-header__drawer-utilities .site-header__search {
		display: block !important;
		position: relative !important;
		box-shadow: none !important;
		border: none !important;
		border-bottom: 1px solid var(--header-light-gray, #f0f0ee) !important;
		border-radius: 0 !important;
		padding: 12px 16px !important;
		max-width: none;
		flex: none;
		box-sizing: border-box;
	}

	.site-header__drawer-utilities .site-header__search-input {
		width: 100%;
		border: 1.5px solid var(--header-border, #e5e5e3);
		border-radius: 8px;
		padding: 11px 44px 11px 14px;
		background: var(--header-off-white, #f7f7f5);
		font-size: 14px;
		box-sizing: border-box;
		outline: none;
	}

		.site-header__drawer-utilities .site-header__search-input:focus {
		border-color: var(--header-accent, #f5700a);
		background: var(--header-bg, #fff);
	}

	.site-header__drawer-utilities .site-header__search-submit {
		position: absolute;
		right: 24px;
		top: 50%;
		transform: translateY(-50%);
		background: none !important;
		border: none;
		padding: 8px;
		color: var(--header-text-muted, #888);
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-header__drawer-utilities .site-header__search-submit svg path {
		stroke: currentColor;
	}

	.site-header__drawer-cart {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 14px 16px;
		text-decoration: none;
		color: var(--header-text, #1c1c1c);
		font-size: 14px;
		font-weight: 600;
		transition: background 0.15s;
	}

	.site-header__drawer-cart:hover {
		background: var(--header-off-white, #f7f7f5);
	}

	.site-header__drawer-cart-badge {
		margin-left: auto;
		background: var(--header-accent, #f5700a);
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		min-width: 20px;
		height: 20px;
		border-radius: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 5px;
	}

	/* Accordion nav list */
	.site-header__nav-row {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 0;
	}

	.site-header__nav-item {
		flex-direction: column;
		height: auto;
		border-bottom: 1px solid var(--header-border, #e5e5e3);
	}

	.site-header__nav-link {
		height: auto;
		min-height: 48px;
		border-bottom: none;
		font-size: 13px;
	}

	.site-header__dropdown {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		border-top: 1px solid var(--header-light-gray, #f0f0ee);
		display: none;
	}

	.site-header__nav-item.is-open > .site-header__dropdown,
	.site-header__nav-item:hover > .site-header__dropdown {
		display: block;
	}

	/* Overlay — dims content behind the open drawer */
	.site-header__nav-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: var(--nav-drawer-overlay, rgba(0, 0, 0, 0.45));
		z-index: 1099;
		cursor: pointer;
	}

	.site-header__nav-overlay.is-visible {
		display: block;
	}

	/* Mobile extras: phone + B2B pinned to bottom of drawer */
	.site-header__mobile-extras {
		display: flex;
		flex-direction: column;
		margin-top: auto;
		border-top: 2px solid var(--header-border, #e5e5e3);
		padding-bottom: env(safe-area-inset-bottom, 16px);
	}

	.site-header__phone-drawer {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 14px 20px;
		text-decoration: none;
		color: var(--header-text, #1c1c1c);
		border-bottom: 1px solid var(--header-light-gray, #f0f0ee);
		font-size: 14px;
		transition: background 0.15s;
	}

	.site-header__phone-drawer:hover {
		background: var(--header-off-white, #f7f7f5);
	}

	.site-header__phone-drawer-icon {
		width: 38px;
		height: 38px;
		border-radius: 50%;
		background: var(--header-accent, #f5700a);
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	.site-header__phone-drawer-text {
		display: flex;
		flex-direction: column;
		line-height: 1.35;
	}

	.site-header__phone-drawer-text small {
		font-size: 11px;
		color: #999;
	}

	.site-header__phone-drawer-text strong {
		font-size: 15px;
		font-weight: 700;
		color: var(--header-text, #1c1c1c);
	}

	.site-header__b2b-drawer {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 14px 20px;
		text-decoration: none;
		color: var(--header-text, #1c1c1c);
		border-bottom: 1px solid var(--header-light-gray, #f0f0ee);
		font-size: 14px;
		font-weight: 600;
		transition: background 0.15s;
	}

	.site-header__b2b-drawer:hover {
		background: var(--header-off-white, #f7f7f5);
	}

	.site-header__b2b-drawer svg {
		flex-shrink: 0;
		color: var(--header-accent, #f5700a);
	}
}

/* B2B bar: store link only */
.site-header__bar--b2b .site-header__bar-inner {
	justify-content: space-between;
}

.site-header__actions--b2b {
	margin-left: auto;
}

.site-header__b2b-shop {
	padding: 9px 18px;
	border-radius: 8px;
	border: 1.5px solid var(--header-border, #e5e5e3);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	color: var(--header-text, #1c1c1c);
	transition: border-color 0.2s, color 0.2s;
}

.site-header__b2b-shop:hover {
	border-color: var(--header-accent, #f5700a);
	color: var(--header-accent, #f5700a);
}
