/* Prevent horizontal scrollbar (clip keeps sticky header working) */
html {
	overflow-x: clip;
}

body {
	max-width: 100%;
}

/* Earth Innovation — Site Header (topbar + white nav) */
.ei-site-header {
	--ei-orange: #E85D04;
	--ei-blue: #1A6FD4;
	--ei-ink: #1a1a1a;
	--ei-muted: #555;
	--ei-topbar-bg: #f3f3f3;
	--ei-border: #ececec;
	position: sticky;
	top: 0;
	z-index: 1000;
	font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #fff;
	box-shadow: 0 1px 0 var(--ei-border);
}

/* ── Top announcement bar ── */
.ei-topbar {
	background: var(--ei-topbar-bg);
	border-bottom: 1px solid #ebebeb;
}

.ei-topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--ei-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.ei-topbar-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--ei-ink);
}

/* ── Main white header bar ── */
.ei-header-bar {
	background: #fff;
}

.ei-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: 78px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	position: relative;
}

.ei-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.ei-brand img {
	height: 52px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	display: block;
}

/* ── Center nav ── */
.ei-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
}

.ei-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ei-menu > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-menu a {
	display: block;
	position: relative;
	color: var(--ei-ink);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	padding: 10px 12px;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 0.2s;
}

.ei-menu a::after {
	content: '';
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 4px;
	height: 2.5px;
	background: var(--ei-orange);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.ei-menu a:hover {
	color: var(--ei-orange);
}

.ei-menu a:hover::after,
.ei-menu .current-menu-item > a::after,
.ei-menu .current_page_item > a::after,
.ei-menu a[aria-current="page"]::after {
	transform: scaleX(1);
}

.ei-menu .current-menu-item > a,
.ei-menu .current_page_item > a,
.ei-menu a[aria-current="page"] {
	color: var(--ei-ink);
	font-weight: 600;
}

/* ── Right icons ── */
.ei-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.ei-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--ei-ink);
	text-decoration: none;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
}

.ei-icon-btn:hover {
	color: var(--ei-orange);
	background: rgba(232, 93, 4, 0.06);
}

.ei-icon-btn svg {
	width: 22px;
	height: 22px;
}

.ei-cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--ei-orange);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.ei-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: var(--ei-ink);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ei-menu-toggle svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
}

/* ── Mobile ── */
@media (max-width: 1024px) {
	.ei-menu a {
		padding: 10px 8px;
		font-size: 13.5px;
	}

	.ei-menu a::after {
		left: 8px;
		right: 8px;
	}

	.ei-brand img {
		height: 50px;
	}
}

@media (max-width: 900px) {
	.ei-menu-toggle {
		display: inline-flex;
	}

	.ei-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		padding: 8px 16px 16px;
		border-bottom: 1px solid var(--ei-border);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
		justify-content: flex-start;
		z-index: 20;
	}

	.ei-site-header.is-open .ei-nav {
		display: block;
	}

	.ei-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.ei-menu a {
		padding: 14px 10px;
		font-size: 15px;
		border-bottom: 1px solid #f3f3f3;
	}

	.ei-menu a::after {
		display: none;
	}

	.ei-menu .current-menu-item > a,
	.ei-menu a:hover {
		color: var(--ei-orange);
	}

	.ei-header-inner {
		min-height: 68px;
	}
}

@media (max-width: 480px) {
	.ei-topbar-inner {
		font-size: 10.5px;
		padding: 7px 14px;
		letter-spacing: 0.04em;
	}

	.ei-brand img {
		height: 44px;
		max-width: 140px;
	}

	.ei-header-inner {
		padding: 0 14px;
		min-height: 62px;
	}
}
