/* Header: template-part layout and responsive navigation chrome. */

/* Header */
.wedset-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: env(safe-area-inset-top) max(var(--wp--custom--component--chrome--inline-padding), env(safe-area-inset-right)) 0 max(var(--wp--custom--component--chrome--inline-padding), env(safe-area-inset-left));
	background: color-mix(in srgb, var(--wp--preset--color--porcelain) 98%, transparent);
	border-bottom: var(--wp--custom--border--soft);
	backdrop-filter: blur(var(--wp--custom--component--chrome--backdrop-blur));
}

.wedset-header-inner {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--wp--custom--component--chrome--header-height);
	gap: var(--wp--custom--component--chrome--header-gap);
	align-items: center;
}

.wedset-header-brand {
	flex: 1 1 clamp(8rem, 16vw, 14rem);
	min-width: 0;
	max-width: max-content;
}

.wedset-brand-title,
.wedset-brand-title a,
.wedset-header .wp-block-site-title,
.wedset-header .wp-block-site-title a {
	font-size: clamp(var(--wp--preset--font-size--medium), 1.05rem + 0.45vw, var(--wp--preset--font-size--large));
	line-height: var(--wp--custom--line-height--heading);
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--pine);
	text-decoration: none;
	white-space: nowrap;
}

.wedset-header-nav {
	flex: 999 1 auto;
	min-width: 0;
	justify-content: center;
}

.wedset-header-nav .wp-block-navigation__container,
.wedset-header-nav .wp-block-page-list {
	column-gap: var(--wp--custom--component--chrome--menu-gap);
	row-gap: var(--wp--custom--spacing--2-xs);
	justify-content: center;
	flex-wrap: nowrap;
}

.wedset-header .wp-block-navigation,
.wedset-header .wp-block-navigation a {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--wp--custom--component--label--font-weight);
	letter-spacing: var(--wp--custom--component--label--letter-spacing);
	line-height: var(--wp--custom--line-height--compact);
	text-transform: uppercase;
}

.wedset-header .wp-block-navigation a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--component--chrome--icon-target);
	padding-inline: var(--wp--custom--component--action--padding-inline-text);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--wp--custom--transition--standard);
	touch-action: manipulation;
}

.wedset-header .wp-block-navigation a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: var(--wp--custom--spacing--2-xs);
	width: 100%;
	height: var(--wp--custom--component--label--rule-height);
	background: var(--wp--preset--color--clay);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--wp--custom--transition--standard);
}

.wedset-header .wp-block-navigation a:hover,
.wedset-header .wp-block-navigation a:focus-visible {
	color: var(--wp--preset--color--pine);
}

.wedset-header .wp-block-navigation a:hover::after,
.wedset-header .wp-block-navigation a:focus-visible::after {
	transform: scaleX(1);
}

.wedset-header-utilities {
	flex: 1 1 clamp(7.25rem, 16vw, 14rem);
	min-width: min-content;
	gap: var(--wp--custom--spacing--xs);
	align-items: center;
	justify-content: flex-end;
}

.wedset-header-icon,
.wedset-header-icon a,
.wedset-header-icon button,
.wc-block-mini-cart__button,
.wc-block-customer-account__account-icon,
.wedset-header .wp-block-navigation__responsive-container-open,
.wedset-header .wp-block-navigation__responsive-container-close {
	min-width: var(--wp--custom--component--chrome--icon-target);
	min-height: var(--wp--custom--component--chrome--icon-target);
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--pine);
}

.wedset-header-action {
	flex: 0 1 auto;
	min-width: 0;
}

.wedset-mobile-shop-link {
	display: none;
}

/* Native cascade hardening after force removal: mobile utility is hidden by default. */
.wedset-header .wedset-mobile-shop-link {
	display: none;
}
