:root {
	--aoe-nav-height: 180px;
	--aoe-marquee-height: 26px;

	--aoe-pearl: #ffffff;
	--aoe-mist: #dae9f7;
	--aoe-slate: #b9c8d3;
	--aoe-ink: #3a4d60;
	--aoe-indigo: #3E50B6;
}

/* ═══════════════════════════════════════════════════════
   SENTINEL — holds layout space when header goes sticky
═══════════════════════════════════════════════════════ */
.aoe-top-nav__sentinel {
	height: 0;
}

/* Zero out WP global block-gap margin on every element we render as a sibling outside <header> */
.aoe-top-nav,
.aoe-top-nav__drawer,
.aoe-top-nav__backdrop,
.aoe-top-nav__sentinel {
	margin-block-start: 0;
}

/* ═══════════════════════════════════════════════════════
   HEADER SHELL
═══════════════════════════════════════════════════════ */
.aoe-top-nav {
	position: relative;
	display: flex;
	flex-direction: column;
	background: transparent;
	overflow: visible;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* ── Sticky: collapses to marquee pull-tab ── */
.aoe-top-nav.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10000;
	transform: translateY(calc(-100% + var(--aoe-marquee-height)));
}

.aoe-top-nav.is-sticky.is-animated {
	transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Admin bar offsets */
body.admin-bar .aoe-top-nav.is-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .aoe-top-nav.is-sticky {
		top: 46px;
	}
}

/* ═══════════════════════════════════════════════════════
   LOGO ZONE — full-width, logo sets the height naturally
═══════════════════════════════════════════════════════ */
.aoe-top-nav__logo-zone {
	position: relative;
	width: 100%;
	height: auto;
	background: #dae9f7;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aoe-top-nav__logo-wrap {
	display: block;
	line-height: 0;
	text-decoration: none;
	width: 100%;
}

.aoe-top-nav__logo {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 0 6px rgba(218, 233, 247, 0.7));
	transition: filter 0.3s ease;
}

.aoe-top-nav__logo:hover {
	filter: drop-shadow(0 0 14px rgba(185, 200, 211, 0.9));
}

/* Text fallback when no logo image is set */
.aoe-top-nav__logo-text {
	font-family: 'Continuum', monospace;
	font-size: 48px;
	font-weight: 700;
	letter-spacing: 6px;
	text-transform: lowercase;
	background: linear-gradient(180deg, #63bdff 0%, #ffffff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 1.5px #1d7a93;
	paint-order: stroke fill;
}

/* ═══════════════════════════════════════════════════════
   OVERLAY NAV — centered pill floating over logo bottom
═══════════════════════════════════════════════════════ */
.aoe-top-nav__nav-overlay {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	/* Prevent layout from shrinking zone width */
	white-space: nowrap;
}

/* ── Shared pill container ── */
.aoe-top-nav__pill {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1.5px solid transparent;

	background-image:
		linear-gradient(90deg,
			rgba(255, 255, 255, 0.92) 0%,
			rgba(218, 233, 247, 0.95) 30%,
			rgba(185, 200, 211, 0.90) 50%,
			rgba(218, 233, 247, 0.95) 70%,
			rgba(255, 255, 255, 0.92) 100%),
		linear-gradient(90deg, #b9c8d3, #dae9f7, #ffffff, #dae9f7, #b9c8d3);
	background-origin: padding-box, border-box;
	background-clip: padding-box, border-box;
	background-size: 300% 100%;
	background-position: 0% center;
	animation: aoe-pill-shimmer 8s ease infinite;

	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.18),
		0 1px 0 rgba(255, 255, 255, 0.7) inset;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

@keyframes aoe-pill-shimmer {

	0%,
	100% {
		background-position: 0% center;
	}

	50% {
		background-position: 100% center;
	}
}

/* ═══════════════════════════════════════════════════════
   NAV LINKS — chrome gradient text + indigo stroke
═══════════════════════════════════════════════════════ */
.aoe-top-nav__link {
	font-family: 'Continuum', monospace;
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
	white-space: nowrap;
	padding: 5px 16px;
	border-radius: 999px;
	position: relative;
	z-index: 1;

	background: linear-gradient(180deg, #63bdff 0%, #ffffff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 1.5px #1d7a93;
	paint-order: stroke fill;

	transition: filter 0.2s ease;
}

.aoe-top-nav__link::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: transparent;
	transition: background 0.2s ease;
	z-index: -1;
}

.aoe-top-nav__link:hover::before,
.aoe-top-nav__link:focus::before {
	background: rgba(255, 255, 255, 0.35);
}

.aoe-top-nav__link:hover,
.aoe-top-nav__link:focus {
	filter: brightness(1.2);
	outline: none;
}

.aoe-top-nav__link.is-active::before {
	background: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════
   CART
═══════════════════════════════════════════════════════ */
.aoe-top-nav__cart {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	text-decoration: none;
	transition: background 0.2s ease;
	margin-left: 4px;
	margin-right: 8px;
	flex-shrink: 0;
}

.aoe-top-nav__cart:hover {
	background: rgba(218, 233, 247, 0.6);
}

.aoe-top-nav__cart-icon {
	width: 30px;
	height: 30px;
	display: block;
	color: #63bdff;
	flex-shrink: 0;
}

.aoe-top-nav__cart-count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var( --aoe-indigo );
	color: #ffffff;
	font-family: 'Continuum', monospace;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 4px rgba(185, 200, 211, 0.6);
}

/* ═══════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════ */
.aoe-top-nav__marquee {
	height: var(--aoe-marquee-height);
	overflow: hidden;
	background: linear-gradient(90deg, #b9c8d3 0%, #dae9f7 30%, #ffffff 50%, #dae9f7 70%, #b9c8d3 100%);
	display: flex;
	align-items: center;
}

.aoe-top-nav__marquee-track {
	display: flex;
	white-space: nowrap;
	animation: aoe-marquee-scroll 16.5s linear infinite;
}

.aoe-top-nav__marquee-track span {
	font-family: 'Continuum', monospace;
	font-size: 13px;
	color: var(--aoe-ink);
	letter-spacing: 3px;
	padding-right: 120px;
}

@keyframes aoe-marquee-scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(calc(-100% / 6));
	}
}

/* ═══════════════════════════════════════════════════════
   BURGER BARS — shared by floating burger
═══════════════════════════════════════════════════════ */
.aoe-top-nav__burger-bar {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #3E50B6, #4EA5D9);
	transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
		opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   RIGHT-SIDE DRAWER
   Lives outside <header> so sticky transform doesn't move it
═══════════════════════════════════════════════════════ */
.aoe-top-nav__drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 260px;
	height: 100dvh;
	z-index: 9001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);

	/* Metallic silver with a soft light catch from top-centre — static, zero repaint cost */
	background: linear-gradient( 175deg,
		#ffffff 0%,
		#dae9f7 25%,
		#b9c8d3 50%,
		#dae9f7 75%,
		#ffffff 100%
	);

	box-shadow: -6px 0 40px rgba( 0, 0, 0, 0.28 );
	border-left: 1.5px solid rgba( 255, 255, 255, 0.5 );
	transition: transform 0.38s cubic-bezier( 0.23, 1, 0.32, 1 );
	overflow-y: auto;
}

.aoe-top-nav__drawer.is-open {
	transform: translateX(0);
}

.aoe-top-nav__drawer-close {
	position: absolute;
	top: 18px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(185, 200, 211, 0.5);
	background: rgba(255, 255, 255, 0.4);
	color: var( --aoe-ink );
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	line-height: 1;
}

.aoe-top-nav__drawer-close:hover {
	background: rgba( 255, 255, 255, 0.6 );
}

.aoe-top-nav__drawer nav {
	display: flex;
	flex-direction: column;
	padding: 52px 0 40px;
}

.aoe-top-nav__drawer-link {
	display: block;
	text-align: left;
	font-size: 28px;
	padding: 12px 24px;
	border-radius: 0;
	transition: filter 0.2s ease;
}

/* Embossed divider between every pair of links — white highlight visible anywhere on the gradient */
.aoe-top-nav__drawer-link + .aoe-top-nav__drawer-link {
	border-top: 1px solid rgba( 255, 255, 255, 0.7 );
	box-shadow: 0 -1px 0 rgba( 100, 130, 150, 0.18 );
}

/* ═══════════════════════════════════════════════════════
   BACKDROP — also outside <header>
═══════════════════════════════════════════════════════ */
.aoe-top-nav__backdrop {
	position: fixed;
	inset: 0;
	z-index: 8000;
	background: rgba(0, 0, 0, 0);
	pointer-events: none;
	transition: background 0.3s ease;
}

.aoe-top-nav__backdrop.is-open {
	background: rgba(10, 18, 40, 0.45);
	pointer-events: all;
}

/* ═══════════════════════════════════════════════════════
   LARGE (≤ 1250px) — tighten nav link font
═══════════════════════════════════════════════════════ */
@media (max-width: 1250px) {

	.aoe-top-nav__link {
		font-size: 25px;
	}
}

/* ═══════════════════════════════════════════════════════
   TABLET / MOBILE (≤ 900px) — hide overlay nav.
   The floating burger (appended to <body> in JS) handles
   the menu icon — always fixed, no transform gap.
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {

	.aoe-top-nav__nav-overlay {
		display: none;
	}
}

/* ═══════════════════════════════════════════════════════
   MOBILE (≤ 540px) — smaller drawer links
═══════════════════════════════════════════════════════ */
@media (max-width: 540px) {

	.aoe-top-nav__drawer-link {
		font-size: 22px;
		padding: 8px 16px;
	}
}

/* ═══════════════════════════════════════════════════════
   FLOATING BURGER — fixed, only visible when sticky on
   tablet/mobile so the burger stays reachable after scroll
═══════════════════════════════════════════════════════ */
/* Sits just below the sticky marquee strip */
.aoe-top-nav__floating-burger {
	position: fixed;
	top: calc(var(--aoe-marquee-height) + 8px);
	right: 14px;
	z-index: 9002;
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 10px;
	border: 2px solid rgba(62, 80, 182, 0.55);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow:
		0 4px 20px rgba(62, 80, 182, 0.28),
		0 1px 0 rgba(255, 255, 255, 0.9) inset;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.aoe-top-nav__floating-burger.is-visible {
	display: flex;
}

.aoe-top-nav__floating-burger.is-drawer-open {
	display: none;
}

body.admin-bar .aoe-top-nav__floating-burger {
	top: calc(32px + var(--aoe-marquee-height) + 8px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .aoe-top-nav__floating-burger {
		top: calc(46px + var(--aoe-marquee-height) + 8px);
	}
}

.aoe-top-nav__floating-burger:hover {
	background: rgba(218, 233, 247, 0.99);
	border-color: rgba(62, 80, 182, 0.8);
	box-shadow:
		0 6px 24px rgba(62, 80, 182, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.aoe-top-nav__floating-burger.is-drawer-open .aoe-top-nav__burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.aoe-top-nav__floating-burger.is-drawer-open .aoe-top-nav__burger-bar:nth-child(2) {
	opacity: 0;
}

.aoe-top-nav__floating-burger.is-drawer-open .aoe-top-nav__burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}