.pe-header {
	--pe-header-green: #063d08;
	--pe-header-ink: #161416;
	--pe-header-gold: #f3bd16;
	--pe-header-blush: #faf5f4;
	position: relative;
	z-index: 100;
	background: #f8f8f6;
	box-shadow: none;
	color: var(--pe-header-ink);
}

/*
 * Let the homepage hero begin behind the header while retaining the opaque
 * menu shell and flyout surfaces. The negative flow offset matches the
 * header's rendered height so sticky positioning keeps working without
 * reserving a blank band above the hero.
 */
body.home {
	--pe-header-overlay-height: 137px;
}

.home .pe-header {
	margin-bottom: calc(var(--pe-header-overlay-height) * -1);
	background: transparent;
}

.pe-header__marquee {
	position: relative;
	height: 35px;
	overflow: hidden;
	background: var(--pe-header-green);
	color: #fff;
}

.pe-header__marquee-track {
	display: flex;
	width: max-content;
	height: 100%;
	animation: pe-header-marquee 28s linear infinite;
	will-change: transform;
}

.pe-header__marquee:hover .pe-header__marquee-track {
	animation-play-state: paused;
}

.pe-header__marquee-group {
	display: flex;
	flex: none;
	align-items: center;
	gap: clamp(34px, 3.8vw, 68px);
	min-width: max-content;
	padding-right: clamp(34px, 3.8vw, 68px);
}

.pe-header__marquee-item {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.pe-header__marquee-star {
	width: 8px;
	height: 8px;
	flex: none;
	fill: currentColor;
}

@keyframes pe-header-marquee {
	to { transform: translateX(-50%); }
}

.pe-header__shell-wrap {
	padding: 24px 36px 14px;
}

.pe-header__shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	width: min(100%, 1780px);
	min-height: 64px;
	padding: 7px 20px;
	margin-inline: auto;
	border: 1px solid rgb(21 19 21 / 8%);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 4px 9px rgb(0 0 0 / 16%);
}

.pe-header__left,
.pe-header__right {
	display: flex;
	gap: 18px;
	align-items: center;
}

.pe-header__left { justify-self: start; }
.pe-header__right { justify-self: end; }

.pe-header .menu-toggle.pe-header__shop-toggle,
.pe-header__story-link {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: var(--pe-header-blush);
	color: #565056;
	font-family: var(--pe-body-font);
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.pe-header .menu-toggle.pe-header__shop-toggle {
	gap: 8px;
	width: auto;
	cursor: pointer;
}

.pe-header .menu-toggle.pe-header__shop-toggle:hover,
.pe-header .menu-toggle.pe-header__shop-toggle:focus-visible,
.pe-header .menu-toggle.pe-header__shop-toggle[aria-expanded="true"],
.pe-header__story-link:hover,
.pe-header__story-link:focus-visible {
	background: #f4ecea;
	color: #201d20;
	text-decoration: none;
	transform: translateY(-1px);
}

.pe-header__bone-icon {
	width: 29px;
	height: 21px;
	fill: var(--pe-header-gold);
}

.pe-header .site-branding {
	grid-column: 2;
	justify-self: center;
	line-height: 0;
}

.pe-header .custom-logo-link {
	display: block;
	line-height: 0;
}

.pe-header .custom-logo {
	display: block;
	width: auto;
	height: 40px;
	max-width: 136px;
	object-fit: contain;
}

.pe-header .site-title {
	display: block;
	max-width: 150px;
	color: var(--pe-header-ink);
	font-size: 18px;
	font-weight: 900;
	line-height: .92;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.pe-header__subscribe {
	color: #575157;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.pe-header__subscribe:hover,
.pe-header__subscribe:focus-visible {
	color: #111;
	text-decoration: underline;
}

.pe-header__search-toggle,
.pe-header__wishlist,
.pe-header .header-cart {
	display: inline-grid;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #050505;
	text-decoration: none;
	transition: background-color 180ms ease, transform 180ms ease;
}

.pe-header__wishlist {
	background: var(--pe-header-blush);
}

.pe-header__search-toggle:hover,
.pe-header__search-toggle:focus-visible,
.pe-header__wishlist:hover,
.pe-header__wishlist:focus-visible,
.pe-header .header-cart:hover,
.pe-header .header-cart:focus-visible {
	background: #f5efed;
	color: #050505;
	text-decoration: none;
	transform: translateY(-1px);
}

.pe-header__search-toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.pe-header__wishlist svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.pe-header__avatar {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.pe-header__cart-slot {
	display: flex;
	grid-column: auto;
	justify-self: auto;
}

.pe-header .header-cart-icon {
	display: block;
	width: 31px;
	height: 24px;
	object-fit: contain;
}

.pe-header .cart-count {
	top: -1px;
	right: -2px;
	border-color: #fff;
	background: var(--pe-header-green);
}

.pe-header .primary-navigation {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 90;
	display: block;
	width: 100%;
	max-height: 0;
	overflow: hidden;
	border-block: 1px solid #e2ded9;
	background: #fbfaf8;
	box-shadow: 0 22px 45px rgb(24 20 16 / 16%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: max-height 360ms cubic-bezier(.2, .7, .2, 1), opacity 180ms ease, visibility 180ms ease, transform 260ms ease;
}

.pe-header .primary-navigation.is-open {
	max-height: min(720px, calc(100vh - 120px));
	overflow-y: auto;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pe-header__nav-inner {
	width: min(100%, 1780px);
	margin-inline: auto;
}

.pe-header__mobile-search { display: none; }

.pe-mega-menu {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(0, 3fr);
	min-height: 470px;
}

.pe-mega-menu__products {
	min-width: 0;
	padding: clamp(28px, 3vw, 48px);
}

.pe-mega-menu__heading,
.pe-mega-menu__category-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.pe-mega-menu__heading h2,
.pe-mega-menu__category-heading h2 {
	margin: 0;
	color: #211e20;
	font-family: var(--pe-heading-font, Georgia, serif);
	font-size: clamp(25px, 2vw, 34px);
	font-weight: 500;
	line-height: 1.05;
}

.pe-mega-menu__eyebrow {
	margin: 0 0 7px;
	color: #776f72;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .18em;
	line-height: 1;
	text-transform: uppercase;
}

.pe-header .primary-navigation .pe-mega-menu__heading > a,
.pe-header .primary-navigation .pe-mega-menu__view-all {
	display: inline-flex;
	min-height: 0;
	padding: 3px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #373135;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
}

.pe-header .primary-navigation .pe-mega-menu__heading > a:hover,
.pe-header .primary-navigation .pe-mega-menu__heading > a:focus-visible,
.pe-header .primary-navigation .pe-mega-menu__view-all:hover,
.pe-header .primary-navigation .pe-mega-menu__view-all:focus-visible {
	background: transparent;
	color: var(--pe-header-gold);
}

.pe-mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 1.5vw, 24px);
}

.pe-header .primary-navigation .pe-mega-product {
	position: relative;
	display: grid;
	align-items: initial;
	min-width: 0;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #e4dfdb;
	border-radius: 0;
	background: #f1eeea;
	color: #fff;
	font-size: inherit;
	text-decoration: none;
	white-space: normal;
	isolation: isolate;
	border-radius: 28px;
}

.pe-mega-product__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 2.65;
	overflow: hidden;
	background: linear-gradient(145deg, #ebe5df, #dcd4cc);
}

.pe-mega-product__media::after {
	position: absolute;
	inset: 42% 0 0;
	background: linear-gradient(to bottom, transparent, rgb(12 10 11 / 76%));
	content: "";
}

.pe-mega-product__media.is-placeholder::before {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgb(65 58 61 / 34%);
	content: "♡";
	font-size: 38px;
}

.pe-mega-product img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 420ms cubic-bezier(.2, .7, .2, 1), filter 220ms ease;
}

.pe-mega-product__name {
	position: absolute;
	right: 16px;
	bottom: 15px;
	left: 16px;
	z-index: 1;
	font-family: var(--pe-heading-font, Georgia, serif);
	font-size: clamp(16px, 1.25vw, 22px);
	font-weight: 600;
	line-height: 1.12;
	text-align: center;
	text-wrap: balance;
}

.pe-mega-product:hover img,
.pe-mega-product:focus-visible img {
	filter: saturate(1.06);
	transform: scale(1.045);
}

.pe-mega-product:focus-visible {
	outline: 3px solid var(--pe-header-gold);
	outline-offset: 2px;
}

.pe-mega-menu__view-all {
	display: inline-flex;
	grid-column: 1 / -1;
	gap: 9px;
	align-items: center;
	justify-self: end;
	padding-block: 3px;
}

.pe-mega-menu__view-all span {
	font-size: 17px;
	transition: transform 180ms ease;
}

.pe-mega-menu__view-all:hover span,
.pe-mega-menu__view-all:focus-visible span {
	transform: translateX(3px);
}

.pe-mega-menu__empty {
	grid-column: 1 / -1;
	align-self: center;
	padding: 44px 20px;
	margin: 0;
	color: #70696c;
	text-align: center;
}

.pe-mega-menu__empty--loading::before {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 9px;
	border: 2px solid rgb(33 30 32 / 18%);
	border-top-color: var(--pe-header-gold);
	border-radius: 50%;
	vertical-align: -3px;
	content: "";
	animation: pe-search-spin .7s linear infinite;
}

.pe-mega-menu__categories {
	order: -1;
	padding: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 44px);
	border-right: 1px solid #ded9d4;
	background: #fffdfb;
}

.pe-mega-menu__category-heading {
	display: block;
}

.pe-mega-categories {
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none;
}

.pe-mega-categories[hidden] { display: none !important; }

.pe-mega-category { position: relative; }

.pe-mega-category__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;
	align-items: stretch;
	border-bottom: 1px solid #ded9d4;
}

.pe-mega-category__select,
.pe-mega-category__expand {
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #292528;
}

.pe-mega-category__select {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	min-height: 55px;
	padding: 9px 10px 9px 0;
	font-family: var(--pe-heading-font, Georgia, serif);
	font-size: clamp(17px, 1.45vw, 23px);
	font-weight: 500;
	line-height: 1.18;
	text-align: left;
	transition: color 180ms ease, padding-left 180ms ease;
}

.pe-mega-category__select:hover,
.pe-mega-category__select:focus-visible,
.pe-mega-category__select.is-active {
	padding-left: 7px;
	color: var(--pe-header-gold);
	background: none;
}

.pe-mega-category__select:focus-visible,
.pe-mega-category__expand:focus-visible {
	outline: 2px solid var(--pe-header-gold);
	outline-offset: -2px;
}

.pe-mega-category__count {
	color: #968f92;
	font-family: var(--pe-body-font);
	font-size: 10px;
	font-weight: 700;
}

.pe-mega-category__expand,
.pe-mega-category__arrow {
	display: grid;
	width: 42px;
	min-height: 42px;
	padding: 0;
	place-items: center;
}

.pe-mega-category__expand svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	transition: transform 180ms ease;
}

.pe-mega-category__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.pe-mega-category__arrow { color: #777074; font-size: 17px; }

.pe-mega-categories--children {
	padding-left: 17px !important;
	border-left: 1px solid #e6e1dc;
}

.pe-mega-categories--children .pe-mega-category__select {
	min-height: 44px;
	font-family: var(--pe-body-font);
	font-size: 14px;
	font-weight: 700;
}

.pe-mega-menu__mobile-tools { display: none; }

@media (max-width: 900px) {
	body.home { --pe-header-overlay-height: 117px; }

	.pe-header__marquee { height: 31px; }
	.pe-header__marquee-track { animation-duration: 23s; }
	.pe-header__marquee-item { font-size: 9px; }
	.pe-header__shell-wrap { padding: 12px 14px; }

	.pe-header__shell {
		grid-template-columns: minmax(44px, 1fr) auto minmax(92px, 1fr);
		min-height: 62px;
		padding: 6px 9px;
		border-radius: 17px;
	}

	.pe-header__left,
	.pe-header__right { gap: 4px; }
	.pe-header__story-link,
	.pe-header__subscribe,
	.pe-header__combo-toggle { display: none !important; }

	.pe-header .pe-header__combo-navigation { display: none; }

	.pe-header .menu-toggle.pe-header__shop-toggle {
		display: inline-flex;
		width: 44px;
		padding: 0;
	}

	.pe-header__shop-label { display: none; }
	.pe-header__bone-icon { width: 25px; height: 18px; }
	.pe-header .custom-logo { height: 38px; max-width: 128px; }
	.pe-header__search-toggle { display: inline-grid; }

	.pe-header .primary-navigation {
		top: 100%;
		right: 14px;
		left: 14px;
		width: auto;
		border: 1px solid rgb(21 19 21 / 8%);
		border-radius: 16px;
	}

	.pe-header .primary-navigation.is-open { max-height: calc(100vh - 125px); }
	.pe-header__nav-inner { width: 100%; }

	.pe-mega-menu {
		grid-template-columns: minmax(250px, .85fr) minmax(0, 1.35fr);
		min-height: 0;
	}

	.pe-mega-menu__products { padding: 26px 22px; }
	.pe-mega-menu__categories { padding: 26px 20px; }
	.pe-mega-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pe-mega-product__name { right: 10px; bottom: 10px; left: 10px; font-size: 15px; }
	.pe-mega-menu__heading h2,
	.pe-mega-menu__category-heading h2 { font-size: 24px; }
	.pe-mega-category__select { min-height: 50px; font-size: 17px; }

	.pe-mega-menu__mobile-tools {
		display: block;
		padding: 14px;
		border-top: 1px solid #ded9d4;
		background: #fff;
	}

	.pe-header__mobile-search {
		display: block;
		margin-bottom: 12px;
	}

	.pe-header__mobile-search .search-form { gap: 0; }
	.pe-header__mobile-search .search-field { border-color: #d7ced0; border-radius: 10px 0 0 10px; }
	.pe-header__mobile-search .search-submit { min-width: 84px; border-radius: 0 10px 10px 0; background: var(--pe-header-green); }

	.pe-header .pe-mega-menu__mobile-tools > .menu,
	.pe-header .pe-mega-menu__mobile-tools ul {
		display: grid;
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 0;
		margin: 0;
		list-style: none;
	}

	.pe-header .pe-mega-menu__mobile-tools li { position: relative; }

	.pe-header .pe-mega-menu__mobile-tools a {
		display: flex;
		min-height: 44px;
		align-items: center;
		padding: 8px 10px;
		border-radius: 8px;
		color: #403b40;
		font-size: 14px;
		font-weight: 700;
		text-decoration: none;
	}

	.pe-header .pe-mega-menu__mobile-tools a:hover,
	.pe-header .pe-mega-menu__mobile-tools a:focus-visible {
		background: var(--pe-header-blush);
	}

	.pe-header .pe-mega-menu__mobile-tools .sub-menu {
		padding-left: 12px;
	}

	.pe-header__mobile-combo {
		padding-bottom: 10px;
		margin-bottom: 10px;
		border-bottom: 1px solid #ded9d4;
	}

	.pe-header__mobile-menu-title {
		margin: 0 10px 5px;
		color: #776f72;
		font-size: 10px;
		font-weight: 800;
		letter-spacing: .18em;
		text-transform: uppercase;
	}
}

@media (max-width: 520px) {
	.pe-header__shell { grid-template-columns: 48px minmax(105px, 1fr) 92px; }
	.pe-header__wishlist { display: none; }
	.pe-header .custom-logo { max-width: 122px; }
	.pe-header__marquee-group { gap: 28px; padding-right: 28px; }
	.pe-mega-menu { display: flex; flex-direction: column; }
	.pe-mega-menu__categories {
		order: -1;
		padding: 22px 18px 10px;
		border-right: 0;
		border-bottom: 1px solid #ded9d4;
		border-left: 0;
	}
	.pe-mega-menu__category-heading { margin-bottom: 10px; }
	.pe-mega-categories { max-height: 205px; overflow-y: auto; }
	.pe-mega-categories--children { max-height: none; overflow: visible; }
	.pe-mega-category__select { min-height: 46px; font-size: 17px; }
	.pe-mega-menu__products { padding: 22px 18px; }
	.pe-mega-menu__heading { align-items: center; margin-bottom: 17px; }
	.pe-mega-menu__heading h2 { font-size: 22px; }
	.pe-mega-menu__heading > a { font-size: 10px; }
	.pe-mega-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
	.pe-mega-product__media { aspect-ratio: 1 / 1; }
	.pe-mega-product__name { font-family: var(--pe-body-font); font-size: 12px; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
	.pe-header__marquee-track {
		animation-play-state: paused;
		transform: none;
	}

	.pe-header .primary-navigation,
	.pe-header a,
	.pe-header button { transition-duration: .01ms; }
}
