/* Site header – replaces the Porto header-builder header. */

.nnsl-hp .header-wrapper {
	display: none !important;
}

/* Porto clips .page-wrapper with overflow: hidden (on mobile), which turns it
   into a scroll container and stops the header from sticking. `clip` crops the
   same way without that side effect. */
@supports (overflow: clip) {
	.nnsl-hp .page-wrapper {
		overflow: clip;
	}
}

.nnsl-hp-header {
	--hp-ink: #241c18;
	--hp-muted: #7a6f69;
	--hp-red: #ff5b5b;
	--hp-red-dark: #e04343;
	--hp-cream: #fdf6f3;
	--hp-line: #f0e4df;
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1001;
	background: #fff;
	color: var(--hp-ink);
	font-size: 15px;
	line-height: 1.3;
	transition: transform .3s ease, box-shadow .3s ease;
}

.nnsl-hp-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(36, 28, 24, .08);
}

/* Any transform makes the header the containing block for the fixed mobile
   panel, so the visible state must stay `transform: none`. */
.nnsl-hp-header.is-hidden:not(.is-open) {
	transform: translateY(-100%);
}

.nnsl-hp-wrap {
	width: min(1320px, calc(100% - 40px));
	margin: 0 auto;
}

/* Top row: logo · search · account/cart */
.nnsl-hp-top__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 40px;
	min-height: 96px;
}

.nnsl-hp-logo img {
	display: block;
	width: 210px;
	height: auto;
}

.nnsl-hp-search {
	display: flex;
	max-width: 560px;
	width: 100%;
	justify-self: center;
	margin: 0;
	border: 1.5px solid var(--hp-line);
	border-radius: 999px;
	background: var(--hp-cream);
	transition: border-color .2s, background .2s;
}

.nnsl-hp-search:focus-within {
	border-color: var(--hp-red);
	background: #fff;
}

.nnsl-hp-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 8px 0 22px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hp-ink);
	font-size: 15px;
	outline: none;
}

.nnsl-hp-search button {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hp-red);
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}

.nnsl-hp-search button:hover {
	background: var(--hp-red-dark);
}

.nnsl-hp-icons {
	display: flex;
	gap: 26px;
}

.nnsl-hp-icons a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--hp-ink);
	font-size: 12px;
	text-decoration: none;
}

.nnsl-hp-icons a:hover {
	color: var(--hp-red);
}

.nnsl-hp-cart b {
	position: absolute;
	top: -6px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--hp-red);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

/* Nav row: one line of text links – brands, then sections */
.nnsl-hp-nav {
	border-top: 1px solid var(--hp-line);
	border-bottom: 1px solid var(--hp-line);
	background: var(--hp-cream);
}

.nnsl-hp-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 0;
}

.nnsl-hp-brands,
.nnsl-hp-sections {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nnsl-hp-sections {
	padding-left: 8px;
	border-left: 1px solid #e6d6cf;
}

.nnsl-hp-brands li,
.nnsl-hp-sections li {
	margin: 0;
}

.nnsl-hp-brands a,
.nnsl-hp-sections a {
	display: block;
	padding: 10px 13px;
	border-radius: 999px;
	color: var(--hp-ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.nnsl-hp-brands a:hover,
.nnsl-hp-sections a:hover,
.nnsl-hp-brands li.is-active a,
.nnsl-hp-sections li.is-active a {
	background: #fff;
	color: var(--hp-red);
}

/* Johny Bee & Gagu: one item, both names clickable */
.nnsl-hp-brands li.is-pair {
	display: flex;
	align-items: center;
}

.nnsl-hp-brands li.is-pair a + span {
	color: var(--hp-muted);
	font-weight: 600;
}

.nnsl-hp-brands li.is-pair a:first-child {
	padding-right: 6px;
}

.nnsl-hp-brands li.is-pair span + a {
	padding-left: 6px;
}

.nnsl-hp-sections li.is-highlight a {
	background: var(--hp-red);
	color: #fff;
}

.nnsl-hp-sections li.is-highlight a:hover {
	background: var(--hp-red-dark);
	color: #fff;
}

/* Laptop: tighter spacing so everything stays on one row */
@media (max-width: 1279px) {
	.nnsl-hp-brands a,
	.nnsl-hp-sections a {
		padding: 9px 9px;
		font-size: 14px;
		letter-spacing: 0;
	}
	.nnsl-hp-brands li.is-pair a:first-child {
		padding-right: 4px;
	}
	.nnsl-hp-brands li.is-pair span + a {
		padding-left: 4px;
	}
}

/* Mobile-only parts are hidden on desktop */
.nnsl-hp-burger,
.nnsl-hp-panel-head,
.nnsl-hp-label,
.nnsl-hp-backdrop {
	display: none;
}

/* Tablet / mobile: menu button opens a full-height panel with all brands visible */
@media (max-width: 991px) {
	.nnsl-hp-wrap {
		width: calc(100% - 32px);
	}
	.nnsl-hp-top__inner {
		grid-template-columns: 1fr auto 1fr;
		gap: 12px;
		min-height: 0;
		padding: 10px 0 12px;
	}
	.nnsl-hp-burger {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-self: start;
		gap: 2px;
		margin: 0;
		padding: 4px 6px;
		border: 0;
		background: none;
		color: var(--hp-ink);
		font-size: 11px;
		font-weight: 600;
		cursor: pointer;
	}
	.nnsl-hp-logo {
		justify-self: center;
	}
	.nnsl-hp-logo img {
		width: 130px;
	}
	.nnsl-hp-icons {
		justify-self: end;
		gap: 18px;
	}
	.nnsl-hp-icons span {
		display: none;
	}
	.nnsl-hp-search {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
	}
	.nnsl-hp-search input[type="search"] {
		height: 42px;
		padding-left: 18px;
	}
	.nnsl-hp-search button {
		width: 42px;
		height: 42px;
	}

	/* Panel */
	.nnsl-hp-nav {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100001;
		width: min(88vw, 380px);
		overflow-y: auto;
		border: 0;
		background: var(--hp-cream);
		box-shadow: 0 0 40px rgba(36, 28, 24, .2);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.nnsl-hp-header.is-open {
		z-index: 100000;
	}
	.nnsl-hp-header.is-open .nnsl-hp-nav {
		transform: none;
		visibility: visible;
		transition: transform .25s ease;
	}
	.nnsl-hp-backdrop {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: block;
		background: rgba(36, 28, 24, .45);
	}
	.nnsl-hp-backdrop[hidden] {
		display: none;
	}
	html.nnsl-hp-lock,
	html.nnsl-hp-lock body {
		overflow: hidden;
	}
	.nnsl-hp-panel-head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 12px 14px 20px;
		border-bottom: 1px solid var(--hp-line);
		background: #fff;
		font-size: 17px;
		font-weight: 700;
	}
	.nnsl-hp-close {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--hp-cream);
		color: var(--hp-ink);
		cursor: pointer;
	}
	.nnsl-hp-nav__inner {
		display: block;
		width: auto;
		padding: 6px 20px 28px;
	}
	.nnsl-hp-label {
		display: block;
		margin: 18px 0 10px;
		color: var(--hp-muted);
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
	}
	.nnsl-hp-brands,
	.nnsl-hp-sections {
		display: block;
		padding: 0;
		border: 0;
	}
	.nnsl-hp-brands li + li,
	.nnsl-hp-sections li + li {
		margin-top: 8px;
	}
	.nnsl-hp-brands a,
	.nnsl-hp-sections a,
	.nnsl-hp-brands li.is-pair {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		border-radius: 12px;
		background: #fff;
		font-size: 15px;
	}
	.nnsl-hp-brands li.is-pair {
		justify-content: flex-start;
		gap: 8px;
	}
	.nnsl-hp-brands li.is-pair a {
		padding: 0;
		background: none;
	}
	.nnsl-hp-brands li.is-pair a:first-child,
	.nnsl-hp-brands li.is-pair span + a {
		padding: 0;
	}
	.nnsl-hp-brands > li:not(.is-pair) > a::after,
	.nnsl-hp-sections a::after {
		content: "›";
		font-size: 22px;
		line-height: 1;
		opacity: .5;
	}
	.nnsl-hp-sections li.is-highlight a::after {
		opacity: .9;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nnsl-hp-header {
		transition: none;
	}
	.nnsl-hp-nav,
	.nnsl-hp-header.is-open .nnsl-hp-nav {
		transition: none;
	}
	.nnsl-hp-search,
	.nnsl-hp-brands a,
	.nnsl-hp-sections a {
		transition: none;
	}
}
