:root {
	--primary-purple: #2a154b;
	--accent-blue: #0b63ce;
	--font-main: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--lr-surface: #ffffff;
	--lr-text: #172033;
	--lr-muted: #5f6b7a;
	--lr-border: #dfe4eb;
	--lr-focus: #f5c542;
}

html {
	scroll-behavior: smooth;
}

body {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: #f6f7fb;
	color: var(--lr-text);
	font-family: var(--font-main);
}

img,
svg,
iframe {
	max-width: 100%;
}

.lr-visually-hidden {
	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;
	white-space: nowrap !important;
	border: 0 !important;
}

.lr-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	min-height: 44px;
	padding: 11px 16px;
	border: 2px solid var(--lr-focus);
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
	color: #15112a;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 0.16s ease;
}

.lr-skip-link:focus {
	transform: translateY(0);
}

.lr-top-bar {
	position: relative;
	z-index: 1001;
	display: flex;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	padding: 6px 16px;
	background: var(--primary-purple);
	color: #ffffff;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lr-top-bar p {
	margin: 0;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.075em;
	line-height: 1;
	text-transform: uppercase;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: flex;
	min-height: 82px;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--primary-purple);
	box-shadow: 0 8px 30px rgba(19, 10, 37, 0.14);
	color: #ffffff;
}

body.admin-bar .site-header {
	top: 32px;
}

.nh-container {
	position: relative;
	display: flex;
	width: min(100% - 32px, 1240px);
	min-width: 0;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0 auto;
}

.nh-logo-box {
	display: inline-flex;
	min-width: 0;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: #ffffff;
	text-decoration: none;
}

.nh-logo-img {
	display: block;
	width: auto;
	height: 48px;
	object-fit: contain;
}

.nh-nav {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 22px;
}

.nh-nav-link {
	position: relative;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 0 2px;
	border-radius: 4px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.045em;
	text-decoration: none;
	text-transform: uppercase;
	padding-top: 4px; /* Optical center alignment */
}

.nh-nav-link::after {
	position: absolute;
	right: 0;
	bottom: 5px;
	left: 0;
	height: 2px;
	border-radius: 999px;
	background: #ffffff;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s ease;
}

.nh-nav-link:hover::after,
.nh-nav-link.is-current::after {
	transform: scaleX(1);
}

.nh-actions-wrapper {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

.nh-search-wrapper,
.nh-cat-menu {
	position: relative;
}

.nh-nav-search-container {
	display: flex;
	align-items: center;
}

.nh-nav-search-btn,
.nh-search-btn,
.nh-menu-btn,
.nh-cat-expand,
.nh-cat-menu-toggle {
	-webkit-tap-highlight-color: transparent;
}

.nh-nav-search-btn,
.nh-menu-btn {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.16s ease, border-color 0.16s ease;
}

.nh-nav-search-btn:hover,
.nh-nav-search-btn[aria-expanded="true"],
.nh-menu-btn:hover,
.nh-menu-btn[aria-expanded="true"] {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.2);
}

.nh-menu-btn {
	display: none;
}

.nh-search-form {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 10003;
	display: flex;
	width: min(360px, calc(100vw - 32px));
	align-items: center;
	gap: 4px;
	padding: 6px;
	border: 1px solid var(--lr-border);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.nh-search-form[hidden] {
	display: none;
}

.nh-search-input {
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #20283a;
	font: inherit;
	font-size: 14px;
	outline: 0;
}

.nh-search-input::placeholder {
	color: #697386;
}

.nh-search-btn {
	display: inline-flex;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--accent-blue);
	color: #ffffff;
	cursor: pointer;
	font-size: 15px;
}

.nh-search-btn:hover {
	background: #084faa;
}

.nh-live-results {
	position: absolute;
	top: calc(100% + 66px);
	right: 0;
	z-index: 10004;
	display: none;
	width: min(520px, calc(100vw - 32px));
	max-height: min(430px, calc(100vh - 160px));
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--lr-border);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.22);
	color: var(--lr-text);
}

.hero-search-container,
.hero-search-container .nh-search-wrapper {
	overflow: visible;
}

.hero-search-container .nh-live-results {
	top: calc(100% + 12px);
	left: 50%;
	right: auto;
	width: min(760px, calc(100vw - 32px));
	max-height: min(430px, calc(100vh - 190px));
	transform: translateX(-50%);
}

.nh-live-results::-webkit-scrollbar,
.nh-cat-menu-panel::-webkit-scrollbar {
	width: 9px;
}

.nh-live-results::-webkit-scrollbar-thumb,
.nh-cat-menu-panel::-webkit-scrollbar-thumb {
	border: 2px solid #ffffff;
	border-radius: 999px;
	background: #aab4c3;
}

.nh-search-item {
	display: flex;
	min-height: 76px;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-bottom: 1px solid #edf0f4;
	color: var(--lr-text);
	text-decoration: none;
}

.nh-search-item:last-child {
	border-bottom: 0;
}

.nh-search-item:hover {
	background: #f5f7fb;
}

.nh-search-item img {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border: 1px solid #e5e9ef;
	border-radius: 9px;
	background: #ffffff;
	object-fit: contain;
}

.nh-search-item-info {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
}

.nh-search-item-title {
	display: -webkit-box;
	overflow: hidden;
	color: #20283a;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nh-search-item-price {
	color: #084f9e;
	font-size: 13px;
	font-weight: 850;
}

.nh-cart-btn {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 9px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease;
}

.nh-cart-btn:hover {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.2);
}

.nh-cart-count {
	display: inline-flex;
	min-width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	border-radius: 999px;
	background: #ffffff;
	color: var(--primary-purple);
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
}

.nh-cat-menu-toggle {
	display: inline-flex;
	width: 190px;
	min-height: 44px;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.nh-cat-menu-toggle:hover,
.nh-cat-menu-toggle[aria-expanded="true"] {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.2);
}

.nh-cat-menu-toggle i,
.nh-cat-expand i {
	font-size: 11px;
	transition: transform 0.18s ease;
}

.nh-cat-menu-toggle[aria-expanded="true"] i,
.nh-cat-expand[aria-expanded="true"] i {
	transform: rotate(180deg);
}

.nh-cat-menu-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 10002;
	width: min(350px, calc(100vw - 32px));
	max-height: min(520px, calc(100vh - 130px));
	overflow-y: auto;
	padding: 8px;
	border: 1px solid var(--lr-border);
	border-radius: 15px;
	background: #ffffff;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.22);
}

.nh-cat-menu-panel[hidden],
.nh-cat-children[hidden] {
	display: none;
}

.nh-cat-parent {
	border-bottom: 1px solid #edf0f4;
}

.nh-cat-parent:last-child {
	border-bottom: 0;
}

.nh-cat-parent-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: center;
	gap: 4px;
}

.nh-cat-parent-link,
.nh-cat-child-link {
	display: flex;
	min-height: 44px;
	align-items: center;
	padding: 9px 10px;
	border-radius: 9px;
	color: #20283a;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: none;
}

.nh-cat-parent-link:hover,
.nh-cat-child-link:hover {
	background: #f2f5fa;
	color: #084f9e;
}

.nh-cat-expand {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #4c5869;
	cursor: pointer;
}

.nh-cat-expand:hover {
	background: #edf1f6;
}

.nh-cat-children {
	margin: 0 0 8px 14px;
	padding: 2px 0 2px 10px;
	border-left: 2px solid #dce2ea;
}

.nh-cat-child-link {
	min-height: 40px;
	padding: 7px 10px;
	color: #4c5869;
	font-weight: 650;
}

.nh-cat-mobile-only {
	display: none;
}

@keyframes lrDropIn {
	from {
		opacity: 0;
		transform: translateY(-7px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nh-search-form:not([hidden]),
.nh-cat-menu-panel:not([hidden]),
.nh-live-results.lr-results-visible {
	animation: lrDropIn 0.16s ease-out;
}

@media (max-width: 1100px) and (min-width: 960px) {
	.nh-container {
		gap: 12px;
	}

	.nh-nav {
		gap: 14px;
	}

	.nh-cat-menu-toggle {
		width: 158px;
	}

	.nh-cart-btn > span:not(.nh-cart-count) {
		display: none;
	}
}

@media (max-width: 959px) {
	.site-header {
		min-height: 74px;
		position: sticky;
		top: 0;
		z-index: 99999;
	}

	.nh-container {
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px 0;
	}

	.nh-logo-img {
		height: 42px;
	}

	.nh-nav {
		display: none;
		width: 100%;
		max-height: calc(100vh - 110px);
		flex-direction: column;
		align-items: stretch;
		order: 3;
		gap: 2px;
		overflow-y: auto;
		padding: 12px 0 4px;
		border-top: 1px solid rgba(255, 255, 255, 0.16);
	}

	.nh-nav.is-open {
		display: flex;
	}

	.nh-nav-link {
		width: 100%;
		padding: 0 12px;
	}

	.nh-nav-link::after {
		display: none;
	}

	.nh-nav-link:hover,
	.nh-nav-link.is-current {
		background: rgba(255, 255, 255, 0.1);
	}

	.nh-menu-btn {
		display: inline-flex;
	}

	.nh-cat-desktop-only {
		display: none;
	}

	.nh-cat-mobile-only {
		display: block;
		width: 100%;
	}

	.nh-cat-menu-mobile .nh-cat-menu-toggle {
		width: 100%;
	}

	.nh-cat-menu-mobile .nh-cat-menu-panel {
		position: static;
		width: 100%;
		max-height: none;
		margin-top: 5px;
		border-color: rgba(255, 255, 255, 0.15);
		background: rgba(255, 255, 255, 0.07);
		box-shadow: none;
	}

	.nh-cat-menu-mobile .nh-cat-parent {
		border-bottom-color: rgba(255, 255, 255, 0.12);
	}

	.nh-cat-menu-mobile .nh-cat-parent-link,
	.nh-cat-menu-mobile .nh-cat-child-link,
	.nh-cat-menu-mobile .nh-cat-expand {
		color: #ffffff;
	}

	.nh-cat-menu-mobile .nh-cat-parent-link:hover,
	.nh-cat-menu-mobile .nh-cat-child-link:hover,
	.nh-cat-menu-mobile .nh-cat-expand:hover {
		background: rgba(255, 255, 255, 0.1);
		color: #ffffff;
	}

	.nh-cat-menu-mobile .nh-cat-children {
		border-left-color: rgba(255, 255, 255, 0.22);
	}

	.nh-search-wrapper {
		position: static;
	}

	.nh-search-form {
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		width: 100%;
	}

	.nh-nav-search-container .nh-live-results {
		top: calc(100% + 70px);
		left: 0;
		right: 0;
		width: 100%;
		max-height: min(430px, calc(100vh - 180px));
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 560px) {
	.lr-top-bar p {
		font-size: 10px;
		letter-spacing: 0.045em;
	}

	.nh-container {
		width: min(100% - 24px, 1240px);
	}

	.nh-logo-img {
		height: 38px;
	}

	.nh-actions-wrapper {
		gap: 8px;
	}

	.nh-cart-btn {
		min-width: 52px;
		justify-content: center;
		gap: 5px;
		padding: 7px 9px;
	}

	.nh-cart-btn > span:not(.nh-cart-count) {
		display: none;
	}

	.nh-live-results,
	.hero-search-container .nh-live-results {
		width: calc(100vw - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.lr-skip-link,
	.nh-nav-link::after,
	.nh-cat-menu-toggle i,
	.nh-cat-expand i {
		transition: none;
	}

	.nh-search-form:not([hidden]),
	.nh-cat-menu-panel:not([hidden]),
	.nh-live-results.lr-results-visible {
		animation: none;
	}
}
