.top-strip {
	background: var(--brand-dark);
	color: #d8e3ef;
	font-size: 0.82rem;
	& a {
		color: #9fc5ff;
		font-weight: 600;
		text-decoration: none;
	}
	& a:hover,
	& a:focus-visible {
		color: #c7ddff;
		text-decoration: underline;
		text-underline-offset: 2px;
	}
}

.top-strip-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 0;
	& p {
		margin: 0;
	}
}

.score-pill {
	margin-left: auto !important;
	font-weight: 600;
}

.site-header {
	background: var(--surface);
	border-bottom: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: grid;
	grid-template-columns: auto minmax(340px, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	& img {
		height: 54px;
		width: auto;
	}
}

.header-search {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0;
	background: #f0efed;
	border-radius: var(--radius-pill);
	padding: 4px 4px 4px 18px;
	align-items: center;
	& input {
		border: none;
		border-radius: var(--radius-pill) 0 0 var(--radius-pill);
		padding: 9px 4px;
		background: transparent;
		font-size: 0.95rem;
		outline: none;
		width: 100%;
	}
	& button {
		border: 0;
		border-radius: var(--radius-pill);
		padding: 9px 20px;
		font-weight: 700;
		font-size: 0.9rem;
		color: #111;
		background: var(--accent);
		cursor: pointer;
		transition: background var(--transition);
		&:hover {
			background: var(--accent-dark);
		}
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.quote-link {
	border-radius: var(--radius-pill);
	border: 1.5px solid #d0cdc7;
	padding: 9px 16px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #1a1a1a;
	background: #fff;
	transition:
		border-color var(--transition),
		background var(--transition);
	&:hover {
		border-color: #aaa;
		text-decoration: none;
	}
}

/* ── User dropdown ──────────────────────────────────────────── */
.user-dropdown {
	position: relative;
}

.user-dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	background: #fff;
}

.user-dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 190px;
	background: #fff;
	border: 1px solid #eae9e5;
	border-radius: var(--radius);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	z-index: 200;
	padding: 6px 0;
}

/* Bridge the gap between toggle and menu so hover isn't lost */
.user-dropdown-menu::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 0;
	right: 0;
	height: 8px;
}

.user-dropdown:focus-within .user-dropdown-menu,
.user-dropdown:hover .user-dropdown-menu {
	display: block;
}

.user-dropdown-menu a,
.user-dropdown-menu button {
	display: block;
	width: 100%;
	padding: 9px 14px;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--brand-soft);
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
	background: #f4f5f7;
}

.cart-link {
	border-radius: var(--radius-pill);
	border: 1.5px solid var(--accent-dark);
	padding: 9px 18px;
	font-weight: 700;
	font-size: 0.9rem;
	color: #111;
	background: var(--accent);
	transition: background var(--transition);
	&:hover {
		text-decoration: none;
		background: var(--accent-dark);
		color: #000;
	}
}

.category-ribbon {
	border-top: 1px solid #eae9e5;
	border-bottom: 1px solid #eae9e5;
	background: #fff;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	& a {
		position: relative;
		padding: 4px 0;
		font-weight: 600;
		font-size: 0.93rem;
		color: #1a1a1a;
		letter-spacing: 0.01em;
	}
	& a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -6px;
		height: 2px;
		border-radius: 2px;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.2s ease;
		background: var(--accent);
	}
	& a:hover {
		text-decoration: none;
	}
	& a:hover::after {
		transform: scaleX(1);
	}
	& .sale-link {
		border-radius: var(--radius-pill);
		border: 1.5px solid var(--accent-dark);
		padding: 4px 12px;
		font-weight: 700;
		color: #111;
		background: var(--accent);
	}
	& .sale-link::after {
		display: none;
	}
}

.nav-dropdown {
	position: relative;
	& > a::after {
		content: " ▾";
		font-size: 0.7em;
		vertical-align: middle;
	}
	& .nav-dropdown-menu {
		display: none;
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		z-index: 200;
		min-width: 420px;
		width: var(--dropdown-menu-width, 460px);
		max-width: min(96vw, 1180px);
		background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
		border: 1px solid #dbe3ee;
		border-radius: 20px;
		box-shadow:
			0 22px 48px rgba(15, 23, 42, 0.16),
			0 6px 18px rgba(15, 23, 42, 0.08);
		padding: 14px;
		&::before {
			content: "";
			position: absolute;
			top: -10px;
			left: 0;
			right: 0;
			height: 10px;
		}
		& a {
			display: block;
			padding: 11px 13px;
			font-weight: 600;
			color: #223754;
			border: 1px solid transparent;
			border-radius: 14px;
			white-space: normal;
			line-height: 1.35;
			transition:
				background 0.18s ease,
				border-color 0.18s ease,
				transform 0.18s ease,
				color 0.18s ease;
		}
		& a::after {
			display: none;
		}
		& a:hover,
		& a:focus-visible {
			background: #fff7ed;
			border-color: #ffd6ab;
			color: #9a5300;
			transform: translateY(-1px);
			text-decoration: none;
			outline: none;
		}
	}
	& .nav-dropdown-overview {
		margin-bottom: 10px;
		padding: 11px 14px;
		font-size: 0.9rem;
		font-weight: 700;
		color: #183458;
		background: linear-gradient(180deg, #eef4fb 0%, #e8f0fb 100%);
		border: 1px solid #d6e1ef;
	}
	& .nav-dropdown-list {
		display: grid;
		grid-template-columns: repeat(var(--dropdown-cols, 2), minmax(0, 1fr));
		gap: 8px 10px;
		overflow: visible;
	}
	& .nav-dropdown-list a {
		margin: 0;
		min-height: 52px;
		display: flex;
		align-items: center;
	}
	& .nav-dropdown-brand-link {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	& .nav-dropdown-brand-badge {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 18px;
		flex: 0 0 28px;
		overflow: hidden;
		font-size: 0;
		line-height: 0;
	}
	& .nav-dropdown-brand-logo {
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		display: block;
		flex-shrink: 0;
	}
	& .nav-dropdown-brand-name {
		min-width: 0;
	}
	&:hover .nav-dropdown-menu,
	&:focus-within .nav-dropdown-menu {
		display: block;
	}
}

.service-strip {
	border-bottom: 1px solid #eae9e5;
	background: #f8f8f5;
}

.service-strip-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 7px 0;
	overflow-x: auto;
	& p {
		margin: 0;
		white-space: nowrap;
		font-size: 0.82rem;
		color: #495a73;
	}
}

.promo-strip {
	border-bottom: 1px solid #2a2a2a;
	background: #1e1e1e;
}

.promo-strip-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px 10px;
	padding: 8px 0;
	& a {
		display: inline-flex;
		align-items: center;
		gap: 5px;
		padding: 4px 13px;
		border: 1.5px solid rgba(240, 244, 251, 0.35);
		border-radius: 20px;
		font-size: 0.78rem;
		font-weight: 600;
		letter-spacing: 0.02em;
		color: #f0f4fb;
		text-decoration: none;
		transition:
			background 0.18s,
			color 0.18s,
			border-color 0.18s;
	}
	& a:hover {
		background: #fff;
		color: #1e1e1e;
		border-color: #fff;
		text-decoration: none;
	}
}

/* ── Mobile nav toggle group ───────────────────────────────── */
.nav-toggle-group {
	display: none;
	align-items: center;
	gap: 8px;
}

.cart-link-mobile {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent);
	color: #111;
	text-decoration: none;
	flex-shrink: 0;
}

.cart-link-mobile-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--brand-dark);
	color: #d8e3ef;
	font-size: 0.68rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	pointer-events: none;
}

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 9px 8px;
	background: #fff;
	border: 1.5px solid #d0cdc7;
	border-radius: var(--radius-pill);
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: #1a1a1a;
	border-radius: 2px;
	transition:
		transform 0.22s ease,
		opacity 0.22s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav panel ──────────────────────────────────────── */
.mobile-nav {
	position: fixed;
	inset: 0 auto 0 0;
	width: 82%;
	max-width: 340px;
	height: 100dvh;
	z-index: 310;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow-y: hidden;
	overscroll-behavior: none;
	transform: translateX(-100%);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.16);
}

.mobile-nav.is-open {
	transform: translateX(0);
}

.mobile-nav.is-scrollable {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mobile-nav-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 309;
	background: rgba(0, 0, 0, 0.45);
	border: none;
	padding: 0;
	cursor: pointer;
}

.mobile-nav-backdrop.is-open {
	display: block;
}

.mobile-nav-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #eae9e5;
	flex-shrink: 0;
	& img {
		height: 40px;
		width: auto;
	}
}

.mobile-nav-close {
	background: none;
	border: none;
	font-size: 1.7rem;
	line-height: 1;
	color: #555;
	cursor: pointer;
	padding: 4px 6px;
}

.mobile-nav-search {
	display: grid;
	grid-template-columns: 1fr auto;
	margin: 14px 16px;
	background: #f0efed;
	border-radius: var(--radius-pill);
	padding: 4px 4px 4px 14px;
	flex-shrink: 0;
	& input {
		border: none;
		background: transparent;
		font-size: 0.93rem;
		padding: 8px 4px;
		outline: none;
		width: 100%;
		font-family: inherit;
	}
	& button {
		border: none;
		border-radius: var(--radius-pill);
		padding: 8px 16px;
		background: var(--accent);
		font-weight: 700;
		font-size: 0.88rem;
		cursor: pointer;
		color: #111;
		font-family: inherit;
		white-space: nowrap;
	}
}

.mobile-nav-links {
	display: flex;
	flex-direction: column;
	border-top: 1px solid #eae9e5;
	& > a {
		display: block;
		padding: 13px 16px;
		font-size: 1rem;
		font-weight: 600;
		color: #1a1a1a;
		border-bottom: 1px solid #f0efed;
		text-decoration: none;
	}
	& > a:hover {
		background: #f8f8f5;
	}
	& .mobile-nav-sale {
		color: #111;
		background: var(--accent);
	}
	& .mobile-nav-sale:hover {
		background: var(--accent-dark);
	}
}

.mobile-nav-details {
	border-bottom: 1px solid #f0efed;
	& summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 13px 16px;
		font-size: 1rem;
		font-weight: 600;
		color: #1a1a1a;
		cursor: pointer;
		list-style: none;
		user-select: none;
		background: #fff;
	}
	& summary::after {
		content: "›";
		font-size: 1.3rem;
		line-height: 1;
		transition: transform 0.2s;
		color: #888;
	}
	&[open] summary::after {
		transform: rotate(90deg);
	}
	& summary::-webkit-details-marker {
		display: none;
	}
	&[open] summary {
		background: #f8f8f5;
	}
}

.mobile-nav-sub {
	background: #f8f8f5;
	padding: 6px 8px 8px;
	& a {
		display: block;
		padding: 10px 12px 10px 20px;
		font-size: 0.93rem;
		font-weight: 500;
		color: #333;
		border-radius: 8px;
		text-decoration: none;
	}
	& a + a {
		margin-top: 2px;
	}
	& a:hover,
	& a:focus-visible {
		background: #efefeb;
		outline: none;
	}
}

.mobile-nav-account {
	display: flex;
	flex-direction: column;
	border-top: 2px solid #eae9e5;
	margin-top: 4px;
	& a,
	& button {
		display: block;
		padding: 12px 16px;
		font-size: 0.95rem;
		font-weight: 600;
		color: var(--brand-soft);
		border-bottom: 1px solid #f0efed;
		text-decoration: none;
		background: none;
		border-left: none;
		border-right: none;
		border-top: none;
		cursor: pointer;
		font-family: inherit;
		text-align: left;
		width: 100%;
	}
	& form {
		border-bottom: 1px solid #f0efed;
	}
	& a:hover,
	& button:hover {
		background: #f8f8f5;
	}
}

.mobile-nav-usp {
	padding: 6px 16px;
	margin: 0;
	font-size: 0.82rem;
	color: #666;
	background: #f8f8f5;
	&:first-of-type {
		margin-top: auto;
		border-top: 1px solid #eae9e5;
		padding-top: 12px;
	}
	&:last-of-type {
		padding-bottom: 20px;
	}
}
