/* Bellora Header */

.bellora-header {
	position: sticky;
	top: 0;
	z-index: var(--bellora-z-header);
	background: var(--bellora-color-surface);
	color: var(--bellora-color-heading);
	transition: background var(--bellora-motion-base) var(--bellora-motion-easing),
		color var(--bellora-motion-base) var(--bellora-motion-easing),
		transform 0.5s var(--bellora-motion-easing);
}

/* Scrolling down tucks the header away; scrolling up brings it back. */
.bellora-header.is-hidden {
	transform: translateY(-100%);
}

.bellora-header--cream {
	background: var(--bellora-color-surface-cream);
}

.bellora-header--dark {
	background: var(--bellora-color-surface-invert);
	color: var(--bellora-color-on-invert);
}

/* Overlay: fixed over the first section, transparent with light text; turns
   solid once the page scrolls. */
.bellora-header--overlay {
	position: fixed;
	inset-inline: 0;
	top: 0;
	/* A soft scrim keeps the light text readable over bright imagery. */
	background: linear-gradient(to bottom, rgba(14, 14, 14, 0.42) 0%, rgba(14, 14, 14, 0.16) 60%, transparent 100%);
	color: #ffffff;
	text-shadow: 0 1px 22px rgba(0, 0, 0, 0.32);
}

.bellora-header--overlay.is-scrolled {
	background: var(--bellora-color-surface);
	color: var(--bellora-color-heading);
	box-shadow: var(--bellora-shadow-xs);
	text-shadow: none;
}

/* Pages without a full-bleed hero: the overlay would put light text on a
   light page, so the header falls back into the normal flow, solid. */
.bellora-header--overlay.is-static {
	position: relative;
	background: var(--bellora-color-surface);
	color: var(--bellora-color-heading);
	box-shadow: none;
	text-shadow: none;
}

/* Full-bleed: the header spans the viewport and only keeps an edge gutter,
   rather than being held inside the site container width. */
.bellora-header__inner {
	position: relative;
	/* Above the drawer, so the toggle stays reachable to close it. */
	z-index: calc(var(--bellora-z-header) + 1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 3vw, 2.5rem);
	width: 100%;
	padding: clamp(0.875rem, 2vh, 1.375rem) var(--bellora-layout-edge);
}

.bellora-header__brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.bellora-header__brand img {
	display: block;
	height: 34px;
	width: auto;
}

.bellora-header__brand-text {
	font-family: var(--bellora-font-display);
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 400;
	letter-spacing: 0.04em;
}

.bellora-header__nav {
	display: block;
}

.bellora-header__menu {
	display: flex;
	gap: clamp(1.25rem, 2.6vw, 2.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bellora-header__menu li {
	position: relative;
}

.bellora-header__menu a {
	font-family: var(--bellora-font-ui);
	font-size: var(--bellora-size-xs);
	font-weight: var(--bellora-weight-medium);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	opacity: 0.85;
	transition: opacity var(--bellora-motion-fast) var(--bellora-motion-easing);
}

/* Hover fades rather than recolours. The colour is pinned here because the
   stylesheet's generic `a:hover` carries the same specificity and would
   otherwise win on source order and turn the link ink-black. */
.bellora-header__menu a:hover,
.bellora-header__menu a:focus-visible {
	color: inherit;
	opacity: 0.5;
}

.bellora-header__menu .current-menu-item > a {
	opacity: 1;
}

/* Simple dropdown for one submenu level. */
.bellora-header__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	translate: -50% 0;
	min-width: 12rem;
	margin: 0;
	padding: 1.75rem 1.25rem 0.875rem;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	background: var(--bellora-color-surface);
	color: var(--bellora-color-heading);
	box-shadow: var(--bellora-shadow-md);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--bellora-motion-fast) var(--bellora-motion-easing);
}

.bellora-header__menu li:hover > .sub-menu,
.bellora-header__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.bellora-header__actions {
	display: flex;
	align-items: center;
	gap: clamp(0.875rem, 2vw, 1.5rem);
}

.bellora-header__cta {
	padding: 0.75rem 1.375rem;
}

.bellora-header--overlay:not(.is-scrolled) .bellora-header__cta {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

/* With the drawer open the CTA overlaps its light surface, so it takes the
   drawer's ink instead of the overlay header's light text. */
.bellora-header--overlay.is-open .bellora-header__cta,
.bellora-header.is-open .bellora-header__cta {
	background: transparent;
	border-color: var(--bellora-color-heading);
	color: var(--bellora-color-heading);
}

/* Hamburger — two lines that become a cross. */
.bellora-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.bellora-header__toggle span {
	display: block;
	width: 1.5rem;
	height: 1px;
	margin-inline: auto;
	background: currentColor;
	transition: transform var(--bellora-motion-base) var(--bellora-motion-easing);
}

/* Once the drawer is open the toggle sits over its light surface, so it takes
   the drawer's ink rather than the overlay header's light text. */
.bellora-header.is-open .bellora-header__toggle {
	color: var(--bellora-color-heading);
}

.bellora-header.is-open .bellora-header__toggle span:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

.bellora-header.is-open .bellora-header__toggle span:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile panel — a drawer that slides in from the right. */
.bellora-header__scrim {
	position: fixed;
	inset: 0;
	z-index: calc(var(--bellora-z-header) - 1);
	background: rgba(11, 11, 11, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--bellora-motion-easing), visibility 0.4s;
}

.bellora-header.is-open .bellora-header__scrim {
	opacity: 1;
	visibility: visible;
}

.bellora-header__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: var(--bellora-z-header);
	width: min(84vw, 22rem);
	overflow-y: auto;
	padding: clamp(4.5rem, 12vh, 6rem) 0 2rem;
	background: var(--bellora-color-surface);
	color: var(--bellora-color-heading);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.5s var(--bellora-motion-easing), visibility 0.5s;
}

.bellora-header.is-open .bellora-header__panel {
	transform: translateX(0);
	visibility: visible;
}

.bellora-header__panel-menu,
.bellora-header__panel .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bellora-header__panel-menu > li {
	border-bottom: 1px solid var(--bellora-color-border);
}

.bellora-header__panel-menu a {
	display: block;
	padding: 1.125rem var(--bellora-layout-container-pad);
	font-family: var(--bellora-font-ui);
	font-size: var(--bellora-size-sm);
	font-weight: var(--bellora-weight-medium);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	transition: opacity var(--bellora-motion-fast) var(--bellora-motion-easing);
}

.bellora-header__panel-menu a:hover,
.bellora-header__panel-menu a:focus-visible {
	color: inherit;
	opacity: 0.5;
}

/* A parent row pairs its label with a toggle that opens the children. */
.bellora-header__panel-menu .menu-item-has-children > .bellora-header__submenu-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.bellora-header__panel-menu .menu-item-has-children > .bellora-header__submenu-row > a {
	flex: 1;
}

.bellora-header__subtoggle {
	flex-shrink: 0;
	width: 3.25rem;
	align-self: stretch;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.bellora-header__subtoggle::before,
.bellora-header__subtoggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 11px;
	height: 1px;
	background: currentColor;
	transition: transform 0.35s var(--bellora-motion-easing);
}

.bellora-header__subtoggle {
	position: relative;
}

.bellora-header__subtoggle::before {
	transform: translate(-50%, -50%);
}

/* The upright stroke collapses, turning the plus into a minus when open. */
.bellora-header__subtoggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.bellora-header__subtoggle[aria-expanded="true"]::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.bellora-header__panel .sub-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--bellora-motion-easing);
}

.bellora-header__panel .menu-item-has-children.is-open > .sub-menu {
	max-height: 24rem;
}

.bellora-header__panel .sub-menu a {
	padding-left: calc(var(--bellora-layout-container-pad) + 1rem);
	font-size: var(--bellora-size-xs);
	opacity: 0.75;
}

@media (max-width: 991px) {
	.bellora-header__nav {
		display: none;
	}

	.bellora-header__toggle {
		display: flex;
	}
}

/* -------------------------------------------------- cart icon
 *
 * A bag glyph beside the CTA, with the item count riding its top-right
 * corner. Inherits the header's colour so it works in every scheme.
 */

.bellora-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: inherit;
	text-decoration: none;
	transition: opacity var(--bellora-motion-fast) var(--bellora-motion-easing);
}

.bellora-header__cart:hover,
.bellora-header__cart:focus-visible {
	color: inherit;
	opacity: 0.5;
}

.bellora-header__cart-icon {
	width: 26px;
	height: 26px;
}

.bellora-header__cart-count {
	position: absolute;
	top: -1px;
	right: -3px;
	display: grid;
	place-items: center;
	min-width: 1.05rem;
	height: 1.05rem;
	padding-inline: 3px;
	border-radius: var(--bellora-radius-full);
	background: var(--bellora-color-accent);
	color: #fff;
	font-family: var(--bellora-font-ui);
	font-size: 10px;
	font-weight: var(--bellora-weight-medium);
	line-height: 1;
}

.bellora-header.is-open .bellora-header__cart {
	color: var(--bellora-color-heading);
}

@media (max-width: 480px) {
	.bellora-header__cta {
		display: none;
	}
}
