/* ==========================================================================
   GoGlow header styles — loaded only when a style other than the default is picked in
   Customize > GoGlow Theme Options > Header > Header style. The markup is always the same
   (announcement bar, logo, menu with its mega menu, search / account / wishlist / cart / points chip,
   mobile menu), so every style keeps all of the theme's header sections. Colours come from the
   theme's Customizer variables.
   ========================================================================== */

/* ---- 1. Floating glass bar ------------------------------------------------ */
.goglow-header-style-glass .goglow-site-header {
	padding-top: 12px;
	border-bottom: 0;
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.goglow-header-style-glass .goglow-header-inner {
	min-height: 68px;
	padding-inline: 24px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.74);
	box-shadow: var(--goglow-shadow-md);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
}

@media (max-width: 991px) {
	.goglow-header-style-glass .goglow-header-inner {
		min-height: 60px;
		padding-inline: 14px;
		border-radius: 30px;
	}
}

/* ---- 2. Classic full-width bar: logo + icons on top, the menu on its own row --- */
.goglow-header-style-bar .goglow-site-header {
	background: #ffffff;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.goglow-header-style-bar .goglow-header-inner {
	display: grid;
	min-height: 0;
	padding-top: 14px;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"brand actions"
		"nav nav";
	align-items: center;
	gap: 0 18px;
}

.goglow-header-style-bar .goglow-site-branding {
	grid-area: brand;
}

.goglow-header-style-bar .goglow-header-actions {
	grid-area: actions;
	justify-self: end;
}

.goglow-header-style-bar .goglow-primary-navigation {
	grid-area: nav;
	margin-top: 12px;
	border-top: 1px solid var(--goglow-border);
}

.goglow-header-style-bar .goglow-primary-navigation > ul {
	gap: 8px;
}

.goglow-header-style-bar .goglow-primary-navigation > ul > li > a {
	min-height: 50px;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
}

.goglow-header-style-bar .goglow-primary-navigation > ul > li > a:hover,
.goglow-header-style-bar .goglow-primary-navigation > ul > li.current-menu-item > a,
.goglow-header-style-bar .goglow-primary-navigation > ul > li.current-menu-ancestor > a {
	border-bottom-color: var(--goglow-primary);
	background: transparent;
	color: var(--goglow-primary);
}

@media (max-width: 991px) {
	.goglow-header-style-bar .goglow-header-inner {
		padding-block: 0;
		grid-template-areas: "brand actions";
	}
}

/* ---- 3. Logo + hamburger, with a full-screen menu ------------------------------ */
.goglow-header-style-overlay .goglow-primary-navigation {
	display: none;
}

.goglow-header-style-overlay .goglow-mobile-menu-toggle {
	display: inline-flex;
}

.goglow-header-style-overlay #goglow-mobile-menu.goglow-drawer,
[dir="rtl"] .goglow-header-style-overlay #goglow-mobile-menu.goglow-drawer {
	inset: 0;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	border-radius: 0;
	background: rgba(255, 249, 251, 0.985);
	opacity: 0;
	visibility: hidden;
	transform: none;
	transition:
		opacity var(--goglow-transition),
		visibility var(--goglow-transition);
}

.goglow-header-style-overlay #goglow-mobile-menu.goglow-drawer.is-active,
[dir="rtl"] .goglow-header-style-overlay #goglow-mobile-menu.goglow-drawer.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.goglow-header-style-overlay #goglow-mobile-menu .goglow-drawer-header {
	width: min(720px, 100%);
	margin-inline: auto;
	padding-inline: 24px;
}

.goglow-header-style-overlay .goglow-mobile-menu-list,
.goglow-header-style-overlay .goglow-mobile-menu-panel {
	padding-inline: max(24px, calc((100% - 720px) / 2));
}

.goglow-header-style-overlay .goglow-mobile-menu-list > li > a,
.goglow-header-style-overlay .goglow-mobile-menu-panel > li > a {
	font-size: clamp(1.25rem, 3.4vw, 1.75rem);
	font-weight: 600;
}

/* ---- 4. GoGlow default + a second menu bar under the header ------------------------
   The header above is the normal GoGlow header, untouched (and still the only part that sticks; this bar
   scrolls away). The bar holds one more menu (Appearance > Menus > "Header Bar Menu"; until none is assigned,
   editors see a "Create a navigation menu" link), as items in a row or behind one "All categories" button. It is built like the main
   menu, so its drop-downs are the same full-width panels as the Shop menu. Hidden on phones, where the
   mobile menu is used. */
.goglow-header-bar {
	position: relative;
	z-index: 99;
	border-bottom: 1px solid var(--goglow-border);
	background: var(--goglow-background, #fff9fb);
}

.goglow-header-bar--horizontal .goglow-header-bar-nav > ul {
	justify-content: center;
}

.goglow-header-bar--hamburger .goglow-header-bar-nav > ul {
	justify-content: flex-start;
	padding-block: 8px;
}

.goglow-bar-hamburger-toggle {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	gap: 10px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--goglow-radius-pill, 999px);
	background: linear-gradient(135deg, var(--goglow-primary), var(--goglow-secondary));
	color: #ffffff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.goglow-bar-hamburger-toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 991px) {
	.goglow-header-bar {
		display: none;
	}
}
