/**
 * Nexus header style presets
 */

/* Logo right */
body.nexus-header-logo-right .site-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

body.nexus-header-logo-right .site-branding {
	order: 3;
	margin-left: auto;
	text-align: right;
}

body.nexus-header-logo-right .header-actions {
	order: 2;
}

body.nexus-header-logo-right .nexus-wc-storefront-search {
	order: 1;
	flex: 1 1 100%;
}

/* Centered preset */
body.nexus-header-style-centered .site-header-inner {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.75rem;
}

body.nexus-header-style-centered .header-actions {
	justify-content: center;
	width: 100%;
}

/* Split: logo left, nav centered row below on wide screens */
@media (min-width: 992px) {
	body.nexus-header-style-split .site-header-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 1rem;
	}

	body.nexus-header-style-split .site-branding {
		justify-self: start;
	}

	body.nexus-header-style-split .header-actions {
		justify-self: end;
	}

	body.nexus-header-style-split .nexus-wc-storefront-search {
		grid-column: 1 / -1;
		justify-self: center;
		max-width: 36rem;
		width: 100%;
	}
}

/* Transparent overlay (hero pages) */
body.nexus-header-style-transparent:not(.nexus-dark-mode) .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: none;
	box-shadow: none;
}

body.nexus-header-style-transparent:not(.nexus-dark-mode) .site-header-inner {
	background: color-mix(in srgb, var(--nexus-surface, #fff) 82%, transparent);
	backdrop-filter: blur(10px);
	border-radius: 0 0 var(--nexus-radius-lg, 12px) var(--nexus-radius-lg, 12px);
	margin-top: 0.5rem;
	padding: 0.35rem 1rem;
}

body.nexus-header-style-transparent #page {
	padding-top: 0;
}

/* Compact density */
body.nexus-header-style-compact .site-header-inner {
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
	min-height: 0;
}

body.nexus-header-style-compact .site-branding .custom-logo,
body.nexus-header-style-compact .site-branding img {
	max-height: 40px;
	width: auto;
}

body.nexus-header-style-compact .header-actions .nexus-header-action {
	padding: 0.25rem;
}
