/* =========================================================================
   OXID Header — PHP-rendered, no WP block classes
   ========================================================================= */

:root {
	--oxid-header-height: 80px;
}

.oxid-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--oxid-header-height);
	display: flex;
	align-items: center;
	transition: box-shadow 300ms ease;
}

/* Frosted-glass backdrop, on its own layer rather than directly on
   .oxid-header. backdrop-filter (like transform/filter) makes the element
   carrying it a new containing block for any position:fixed descendant —
   .oxid-header__nav (the mobile slide-in panel, position:fixed with
   top+bottom set) was being sized against .oxid-header's own 80px height
   instead of the viewport, collapsing it to a sliver instead of a
   full-screen overlay. Confirmed live: removing backdrop-filter from
   .oxid-header restored the panel to its full height immediately.
   A ::before pseudo-element is its own box, not a fixed-position
   descendant of .oxid-header, so it can carry the same blur without
   creating that containing block. */
.oxid-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(13, 17, 23, 0.92);
	backdrop-filter: blur(12px) saturate(160%);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	transition: background 300ms ease;
}

/* Cyan accent line along the bottom edge */
.oxid-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(79, 190, 211, 0.55) 50%, transparent 100%);
	transition: opacity 300ms ease;
}

/* Scrolled state */
.oxid-header.is-scrolled {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.05),
		0 8px 32px rgba(0, 0, 0, 0.55);
}

.oxid-header.is-scrolled::before {
	background: rgba(13, 17, 23, 0.98);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
}

.oxid-header.is-scrolled::after {
	opacity: 0;
}

/* Non-hero pages: always solid */
.no-hero .oxid-header {
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.no-hero .oxid-header::before {
	background: rgba(13, 17, 23, 0.98);
}

.no-hero .oxid-header::after {
	opacity: 0;
}

/* Push page content below fixed header on non-hero pages */
.no-hero .wp-site-blocks {
	padding-top: var(--oxid-header-height);
}

/* Admin bar */
.admin-bar .oxid-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {

	.admin-bar .oxid-header {
		top: 46px;
	}
}


/* =========================================================================
   Inner / Row
   ========================================================================= */

.oxid-header__inner {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 2.5rem;
}

.oxid-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}


/* =========================================================================
   Logo
   ========================================================================= */

.oxid-header__logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	line-height: 1;
}

.oxid-header .oxid-header__logo-img {
	display: block;
	height: 40px;
	width: auto;
	max-width: none;
	transition: opacity 200ms ease;
}

.oxid-header .oxid-header__logo-link:hover .oxid-header__logo-img {
	opacity: 0.72;
}

.oxid-header__logo-text {
	font-family: var(--wp--preset--font-family--xolonium, "Xolonium", sans-serif);
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}


/* =========================================================================
   Actions group — nav + cart + burger, kept together so the cart icon
   stays snug against the burger once nav goes fixed on mobile.
   ========================================================================= */

.oxid-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}


/* =========================================================================
   Navigation — desktop
   ========================================================================= */

.oxid-header__nav {
	display: flex;
	align-items: center;
}

.oxid-header__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.oxid-header__nav-list > li > a {
	display: block;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--xolonium, "Xolonium", sans-serif);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	padding: 0.5rem 1rem;
	border-radius: 2px;
	position: relative;
	transition: color 200ms ease, background-color 200ms ease;
}

/* Animated sliding underline */
.oxid-header__nav-list > li > a::after {
	content: "";
	position: absolute;
	bottom: 4px;
	left: 1rem;
	right: 1rem;
	height: 1px;
	background: #4fbed3;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 220ms ease;
}

.oxid-header__nav-list > li > a:hover {
	color: #fff;
	background-color: rgba(79, 190, 211, 0.07);
}

.oxid-header__nav-list > li > a:hover::after {
	transform: scaleX(1);
}

/* Active / current page */
.oxid-header__nav-list > .current-menu-item > a,
.oxid-header__nav-list > .current-menu-ancestor > a,
.oxid-header__nav-list > .current-page-ancestor > a {
	color: #4fbed3;
}

.oxid-header__nav-list > .current-menu-item > a::after {
	transform: scaleX(1);
}


/* =========================================================================
   Cart icon
   ========================================================================= */

.oxid-header__cart {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 2px;
	color: rgba(255, 255, 255, 0.78);
	transition: color 200ms ease, background-color 200ms ease;
}

.oxid-header__cart:hover {
	color: #fff;
	background-color: rgba(79, 190, 211, 0.07);
}

.oxid-header__cart-icon {
	display: block;
}

.oxid-header__cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--wp--preset--color--oxid-cyan, #4fbed3);
	color: var(--wp--preset--color--oxid-black, #0d1117);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 200ms ease, transform 200ms ease;
}

.oxid-header__cart-count.is-visible {
	opacity: 1;
	transform: scale(1);
}


/* =========================================================================
   Hamburger button
   ========================================================================= */

.oxid-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	border-radius: 2px;
	transition: background-color 200ms ease;
}

.oxid-header__burger:hover {
	background-color: rgba(255, 255, 255, 0.06);
}

.oxid-header__burger-bar {
	display: block;
	width: 22px;
	height: 1.5px;
	background: #fff;
	border-radius: 1px;
	transition: transform 280ms ease, opacity 280ms ease, width 280ms ease;
	transform-origin: center;
}

/* Morphs to X when nav is open */
.oxid-header.is-nav-open .oxid-header__burger-bar:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.oxid-header.is-nav-open .oxid-header__burger-bar:nth-child(2) {
	opacity: 0;
	width: 0;
}

.oxid-header.is-nav-open .oxid-header__burger-bar:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}


/* =========================================================================
   Mobile nav overlay
   ========================================================================= */

@media (max-width: 992px) {

	.oxid-header__burger {
		display: flex;
	}

	.oxid-header__nav {
		position: fixed;
		top: var(--oxid-header-height);
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(13, 17, 23, 0.98);
		backdrop-filter: blur(20px) saturate(150%);
		-webkit-backdrop-filter: blur(20px) saturate(150%);
		flex-direction: column;
		align-items: stretch;
		padding: 1.5rem;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
		pointer-events: none;
	}

	.oxid-header__nav.is-open {
		transform: translateX(0);
		pointer-events: auto;
	}

	.oxid-header__nav-list {
		flex-direction: column;
		align-items: stretch;
	}

	.oxid-header__nav-list > li > a {
		font-size: 1.0625rem;
		letter-spacing: 0.1em;
		padding: 1rem 0.25rem;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
		color: rgba(255, 255, 255, 0.82);
	}

	.oxid-header__nav-list > li > a::after {
		display: none;
	}

	.oxid-header__nav-list > li > a:hover {
		color: #4fbed3;
		background-color: transparent;
	}

	/* Offset for WP admin bar on mobile */
	.admin-bar .oxid-header__nav {
		top: calc(var(--oxid-header-height) + 46px);
	}
}


/* =========================================================================
   Responsive layout
   ========================================================================= */

@media (max-width: 1024px) {

	.oxid-header__inner {
		padding-inline: 2rem;
	}
}

@media (max-width: 768px) {

	.oxid-header__inner {
		padding-inline: 1.5rem;
	}
}

@media (max-width: 480px) {

	.oxid-header__inner {
		padding-inline: 1rem;
	}

	.oxid-header .oxid-header__logo-img {
		height: 32px;
	}
}
