body {
  position: relative !important;
  top: 0 !important;
}

.header.header--fixed {
  margin-top: 0 !important;
}

#shopify-section-header {
  position: fixed !important;
  top: 2.3rem;
  transition: all 0ms ease-in-out !important;
}

.pf-header-fix {
  top: 0 !important;
}

body.scroll-block,
html.scroll-block {
  overflow: hidden !important;
  touch-action: none !important;
}

@media (max-width: 800px) {
  html .header__mobile {
    padding-bottom: 7rem;
  }
}
.header-logo img,
body .header-logo img {
	width: 70px;
	height: 46px;
	max-width: 70px;
	max-height: 46px;
	object-fit: contain;
}

.header-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
}

/* ------------------------------------------------------------------
   Header sizing and the quiz call to action.
   ------------------------------------------------------------------ */

/*
 * Desktop only. Applied without a media query this turned the header into a
 * row flex container on phones too, which squeezed the promo strip into a
 * 75px column and pushed the hamburger off-screen.
 */
@media (min-width: 1024px) {
	/*
	 * Wrap so the nav row and the promo strip each take a full row; without
	 * this the strip becomes a flex item and collapses to ~194px wide.
	 */
	header.shopify-section.header {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	header.shopify-section.header > .width,
	header.shopify-section.header > .hfb-promo-bar {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.header-flex {
		display: flex;
		align-items: center;
	}
}

.header-flex {
	/* The storefront nav row is 72px, which keeps the whole header at 110px
	   once the promo strip is added. */
	min-height: 72px;
}

header.shopify-section.header .header-flex > * {
	align-self: center;
}

/* Menu spacing: tighter so the extra button still fits on one row. */
.header-nav-item {
	margin-inline: 20px;
}

/* Quiz button, sitting between the menu and the account/cart icons. */
.header-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 12px 40px;
	margin-right: 24px;
	background: #fff;
	border: 2px solid #d81b60;
	border-radius: 999px;
	color: #d81b60;
	font-family: var(--hfb-font-body);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 0 24px rgba(255, 77, 141, 0.25);
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.header-button:hover {
	background: #fff5f8;
	box-shadow: 0 0 30px rgba(255, 77, 141, 0.4);
	color: #d81b60;
}

/* The compact mobile label is only for narrow viewports. */
.header-button__advanced {
	display: inline;
}

.header-button__simple {
	display: none;
}

/* Cart count badge: purple disc, white numeral, hidden at zero. */
#cart-count-wrapper {
	position: absolute;
	inset: 0;
	display: block;
	overflow: visible;
	pointer-events: none;
}

.header-icons-anchor-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	bottom: auto;
	z-index: 2;
	background: #5b3fa0 !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	border-radius: 999px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.header-icons-anchor-cart-count--hide,
.header-icons-anchor-cart-count[data-count="0"] {
	display: none !important;
}

/*
 * Cart icon hover.
 * The storefront sheet faded the whole button and painted a teal block
 * behind it (its count wrapper carried the background colour), which read
 * as a broken state. Hover now only deepens the icon colour and lifts the
 * button a hair, with the badge keeping its own colour.
 */
#cart-count-wrapper,
.header-icons-anchor--cart:hover #cart-count-wrapper,
.header-icons-anchor--cart:focus #cart-count-wrapper {
	background: none !important;
}

.header-icons-anchor.header-icons-anchor--cart,
.header-icons-anchor.header-icons-anchor--cart:hover,
.header-icons-anchor.header-icons-anchor--cart:focus {
	opacity: 1;
}

.header-icons-anchor--cart {
	transition: transform 0.18s ease;
}

.header-icons-anchor--cart:hover {
	transform: translateY(-1px);
}

/* Soft pink disc behind the icon on hover. Children are lifted above it so
   the cart drawing and the count badge stay crisp. */
.header-icons-anchor--cart > svg,
.header-icons-anchor--cart > .b_yoni {
	position: relative;
	z-index: 1;
}

.header-icons-anchor--cart::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	background: rgba(201, 27, 94, 0);
	transition: background-color 0.18s ease;
	pointer-events: none;
}

.header-icons-anchor--cart:hover::after,
.header-icons-anchor--cart:focus-visible::after {
	background: rgba(201, 27, 94, 0.08);
}

.header-icons-anchor--cart svg path {
	transition: fill 0.18s ease;
}

.header-icons-anchor--cart:hover svg path,
.header-icons-anchor--cart:focus-visible svg path {
	fill: #a91550 !important;
}

.header-icons-anchor--cart:hover .header-icons-anchor-cart-count {
	box-shadow: 0 0 0 3px rgba(91, 63, 160, 0.18);
}

.header-icons-anchor--cart:focus-visible {
	outline: 2px solid #c91b5e;
	outline-offset: 3px;
	border-radius: 8px;
}

@media (max-width: 1200px) {
	.header-flex {
		min-height: 104px;
	}

	.header-button {
		padding: 9px 22px;
		font-size: 15px;
		margin-right: 14px;
	}

	.header-nav-item {
		margin-inline: 10px;
	}
}

@media (max-width: 900px) {
	.header-button__advanced {
		display: none;
	}

	.header-button__simple {
		display: inline;
	}
}

/* Mobile header: keep the row compact and the quiz pill in proportion. */
@media (max-width: 900px) {
	.header-flex {
		min-height: 88px;
	}

	.header-button {
		padding: 8px 16px;
		font-size: 13px;
		margin-right: 10px;
		box-shadow: 0 0 16px rgba(255, 77, 141, 0.22);
	}

	.header-button__advanced {
		display: none;
	}

	.header-button__simple {
		display: inline;
	}
}

@media (max-width: 560px) {
	.header-flex {
		min-height: 72px;
	}

	.header-button {
		padding: 7px 12px;
		font-size: 11.5px;
		letter-spacing: 0;
	}
}

/* ------------------------------------------------------------------
   The header markup ships two duplicated collection category bars.
   They sit under the promo strip, overflow the viewport at narrow
   widths (their list is ~1136px wide) and duplicate the Shop By menu,
   so they are removed.
   ------------------------------------------------------------------ */
header.shopify-section.header > .collections-categories-menu,
header.shopify-section.header .collections-categories-menu,
.collections-categories-menu.collection-category-variant-1 {
	display: none !important;
}

/* ==================================================================
   Mobile header (< 768px)
   ================================================================== */
html,
body {
	overflow-x: hidden;
	max-width: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

@media (max-width: 1023px) {
	/* The header stacks: nav row on top, promo strip and quiz below. */
	header.shopify-section.header {
		display: block;
		overflow-x: hidden;
	}

	/* One compact row: hamburger, logo, account + cart. */
	header.shopify-section.header .width {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-height: 64px;
		padding: 0 16px;
		width: 100%;
		max-width: 100%;
	}

	/* Desktop menu and its pink outlined quiz button are not used here. */
	header.shopify-section.header .header-nav,
	header.shopify-section.header .header-button.header-button--outline,
	header.shopify-section.header .header-quiz-button {
		display: none !important;
	}

	header.shopify-section.header .header-hamburger {
		position: static !important;
		left: auto !important;
		right: auto !important;
		display: inline-flex !important;
		order: 1;
		flex: 0 0 auto;
	}

	header.shopify-section.header .header-logo {
		position: static !important;
		left: auto !important;
		transform: none !important;
		order: 2;
		flex: 1 1 auto;
		display: flex;
		justify-content: center;
		max-width: 110px;
		margin: 0 auto;
	}

	header.shopify-section.header .header-logo img {
		max-width: 110px;
		width: auto;
		height: auto;
	}

	header.shopify-section.header .header-icons {
		order: 3;
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		gap: 4px;
	}

	/* One quiz entry, full width, on its own row. */
	header.shopify-section.header .header-button {
		display: flex !important;
		width: calc(100% - 32px);
		margin: 0 16px 10px;
		min-height: 44px;
		padding: 0 16px;
		align-items: center;
		justify-content: center;
		background: #c91b5e;
		border: 2px solid #c91b5e;
		border-radius: 999px;
		color: #fff;
		font-size: 14px;
		font-weight: 700;
		text-align: center;
		box-shadow: none;
	}

	header.shopify-section.header .header-button__advanced {
		display: none;
	}

	header.shopify-section.header .header-button__simple {
		display: inline;
	}
}

/* ==================================================================
   Mobile header + promo strip (< 1024px) - rebuilt as a single row
   with three zones: logo, quiz, icons. Overrides the earlier pass.
   ================================================================== */
@media (max-width: 1023px) {
	header.shopify-section.header {
		background: #fdf6f0;
	}

	header.shopify-section.header .width {
		display: block;
		padding: 0;
		min-height: 0;
	}

	/* One flex row; nothing is allowed to push past the viewport. */
	header.shopify-section.header .header-flex {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 6px;
		width: 100%;
		max-width: 100%;
		min-height: 68px;
		padding: 6px 12px;
		box-sizing: border-box;
		overflow: hidden;
	}

	/* --- left: pink wordmark --- */
	header.shopify-section.header .header-logo {
		order: 1;
		position: static !important;
		left: auto !important;
		top: auto !important;
		transform: none !important;
		flex: 0 0 auto;
		max-width: 96px;
		margin: 0;
	}

	header.shopify-section.header .header-logo img {
		display: none;
	}

	header.shopify-section.header .header-logo::after {
		content: "HER\A FANTASY\A BOX";
		white-space: pre-line;
		display: block;
		color: #e0417a;
		font-family: var(--hfb-font-body);
		font-size: 11.5px;
		font-weight: 800;
		line-height: 1.08;
		letter-spacing: 0.02em;
		text-transform: uppercase;
	}

	/* --- centre: green quiz pill --- */
	header.shopify-section.header .header-button {
		order: 2;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 1 auto;
		width: auto;
		max-width: 46%;
		min-height: 40px;
		margin: 0;
		padding: 0 14px;
		background: #1fbf9c;
		border: 0;
		border-radius: 10px;
		color: #fff;
		font-size: 11.5px;
		font-weight: 800;
		line-height: 1.1;
		text-align: center;
		box-shadow: none;
		white-space: normal;
	}

	header.shopify-section.header .header-button__advanced {
		display: none;
	}

	header.shopify-section.header .header-button__simple {
		display: inline;
	}

	/* --- right: account, cart, hamburger --- */
	header.shopify-section.header .header-icons {
		order: 3;
		display: inline-flex;
		align-items: center;
		gap: 2px;
		flex: 0 0 auto;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	header.shopify-section.header .header-icons-item {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	header.shopify-section.header .header-icons-item[style*="display: none"] {
		display: none !important;
	}

	/* Pink line icons. */
	header.shopify-section.header .header-icons svg,
	header.shopify-section.header .header-hamburger svg {
		color: #e0417a;
		stroke: #e0417a;
		width: 22px;
		height: 22px;
	}

	header.shopify-section.header .header-hamburger {
		order: 4;
		position: static !important;
		left: auto !important;
		top: auto !important;
		right: auto !important;
		display: inline-flex !important;
		flex: 0 0 auto;
		width: 34px;
		height: 34px;
		padding: 0;
	}

	/* Desktop-only chrome stays out of the way. */
	header.shopify-section.header .header-nav,
	header.shopify-section.header .header-quiz-button {
		display: none !important;
	}

}

/* No white seam between the promo strip and the hero. */
@media (max-width: 1023px) {
	header.shopify-section.header + *,
	.hfb-main {
		background-color: transparent;
	}
}

/* ==================================================================
   Mobile menu panel contents (< 1024px).
   Mirrors the live site: two collapsible groups plus a short list of
   standalone links.
   ================================================================== */
@media (max-width: 1023px) {
	#hfb-mobile-menu.hfb-mmenu,
	#hfb-mobile-menu .hfb-mmenu {
		width: 343px;
		max-width: calc(100vw - 32px);
	}

	#hfb-mobile-menu .hfb-mmenu {
		list-style: none;
		margin: 0;
		padding: 8px 0 24px;
		display: block;
	}

	#hfb-mobile-menu .hfb-mmenu__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 52px;
		padding: 0 4px;
		background: transparent;
		border: 0;
		border-bottom: 1px solid #efe6e0;
		color: #1f1f1f;
		font-family: var(--hfb-font-body);
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		text-align: left;
		cursor: pointer;
	}

	#hfb-mobile-menu .hfb-mmenu__chev {
		width: 8px;
		height: 8px;
		border-right: 2px solid #1f1f1f;
		border-bottom: 2px solid #1f1f1f;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
		margin-right: 6px;
	}

	#hfb-mobile-menu .hfb-mmenu__toggle[aria-expanded='true'] .hfb-mmenu__chev {
		transform: rotate(-135deg);
	}

	#hfb-mobile-menu .hfb-mmenu__sub {
		list-style: none;
		margin: 0;
		padding: 6px 0 10px;
	}

	#hfb-mobile-menu .hfb-mmenu__sub[hidden] {
		display: none;
	}

	#hfb-mobile-menu .hfb-mmenu__sub a {
		display: block;
		padding: 11px 4px;
		text-decoration: none;
		color: #1f1f1f;
	}

	#hfb-mobile-menu .hfb-mmenu__label {
		display: block;
		font-size: 16px;
		font-weight: 400;
		line-height: 1.25;
	}

	#hfb-mobile-menu .hfb-mmenu__desc {
		display: block;
		font-size: 12.5px;
		color: #8a7d75;
		line-height: 1.3;
		margin-top: 2px;
	}

	#hfb-mobile-menu .hfb-mmenu__plain a {
		display: block;
		min-height: 46px;
		padding: 14px 4px;
		border-bottom: 1px solid #f3ece8;
		color: #1f1f1f;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		text-decoration: none;
	}
}

/* ==================================================================
   Mobile menu panel: off-canvas drawer that actually opens.
   An earlier rule hid every .header-nav on mobile, which also caught
   #mobile-menu-dialog. This re-enables the dialog specifically and
   gives it open/close behaviour.
   ================================================================== */
@media (max-width: 1023px) {
	/* Hide the desktop nav bar only - never the mobile dialog. */
	header.shopify-section.header nav.header-nav:not(#mobile-menu-dialog) {
		display: none !important;
	}

	#hfb-mobile-menu.hfb-mobile-nav {
		display: block !important;
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 343px;
		max-width: 86vw;
		height: 100%;
		margin: 0;
		padding: 14px 20px 40px;
		background: #fff;
		box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		z-index: 10000;
		transform: translateX(-102%);
		transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
		pointer-events: none;
		visibility: hidden;
		box-sizing: border-box;
	}

	#hfb-mobile-menu.hfb-mobile-nav.is-open {
		transform: translateX(0);
		pointer-events: auto;
		visibility: visible;
	}

	/* Dim the page behind the drawer. */
	.hfb-mmenu-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(24, 24, 28, 0.45);
		opacity: 0;
		transition: opacity 0.3s ease;
		z-index: 9999;
		pointer-events: none;
	}

	.hfb-mmenu-backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	body.hfb-mmenu-open {
		overflow: hidden;
	}

	/* Swap the hamburger glyph for an X while open. */
	header.shopify-section.header .header-hamburger-close {
		display: none;
	}

	header.shopify-section.header .header-hamburger.is-active .header-hamburger-open {
		display: none;
	}

	header.shopify-section.header .header-hamburger.is-active .header-hamburger-close {
		display: inline-flex;
	}
}

/* ------------------------------------------------------------------
   The mobile menu container must be hidden by default. Its drawer rules
   live inside the max-width media query, so without this it rendered as
   a plain block inside the desktop header and leaked its text there.
   ------------------------------------------------------------------ */
#hfb-mobile-menu,
#hfb-mobile-menu.hfb-mobile-nav {
	display: none !important;
}

@media (max-width: 1023px) {
	#hfb-mobile-menu.hfb-mobile-nav {
		display: block !important;
	}
}

/* ==================================================================
   Desktop header: menu labels must stay on one line.
   The nav only gets ~947px because the quiz pill and icons take the
   rest; flex items then shrank below their text width and wrapped.
   ================================================================== */
@media (min-width: 1024px) {
	/* Never break a menu label across two lines. */
	header.shopify-section.header .header-nav-anchor,
	header.shopify-section.header .header-nav-anchor span,
	header.shopify-section.header .header-nav-item > a,
	header.shopify-section.header .header-nav-item > button {
		white-space: nowrap !important;
		word-break: keep-all;
	}

	/* Stop the items from being squeezed below their content width. */
	header.shopify-section.header .header-nav-item {
		flex: 0 0 auto !important;
	}

	/* The storefront uses a 30px gap between menu items. */
	header.shopify-section.header .header__menu--desktop {
		gap: 30px !important;
	}

	/* Match the storefront pill: 38px tall, 18px label. */
	header.shopify-section.header .header-button {
		padding: 5px 25px !important;
		font-size: 18px !important;
		margin-right: 16px !important;
		box-shadow: 0 0 16px rgba(255, 77, 141, 0.22) !important;
	}

	header.shopify-section.header .header-button__advanced {
		font-size: inherit;
	}
}

/* ------------------------------------------------------------------
   Desktop header gutters.
   The live header row is inset 40px on each side, which puts the logo
   at x=40 instead of flush against the viewport edge. Desktop only -
   the mobile header keeps its own 12px padding.
   ------------------------------------------------------------------ */
@media (min-width: 1024px) {
	header.shopify-section.header .header-flex {
		padding-left: 40px !important;
		padding-right: 40px !important;
		box-sizing: border-box;
	}
}

/* ------------------------------------------------------------------
   Cart drawer must sit above the fixed header (z-index 9996), otherwise
   the header covers the top of the panel and swallows clicks on the
   close button.
   ------------------------------------------------------------------ */
.hfb-cd-overlay {
	z-index: 10010 !important;
}

.hfb-cd {
	z-index: 10011 !important;
}

/* ==================================================================
   Promo bar: two slide carousel.
   Copy is editable under Appearance > Customize > Promo bar.
   ================================================================== */
.hfb-promo-bar {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 52px;
	overflow: hidden;
	background-color: #6640aa;
	color: #fff;
	font-family: Poppins, var(--body_font), sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	z-index: 0;
}

.hfb-promo-bar__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hfb-promo-bar__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.hfb-promo-bar__slide {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transform: translateX(100%);
	opacity: 0;
	transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
	will-change: transform;
}

.hfb-promo-bar__slide.is-active {
	transform: translateX(0);
	opacity: 1;
}

.hfb-promo-bar__slide.is-leaving {
	transform: translateX(-100%);
	opacity: 0;
}

.hfb-promo-bar__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-family: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.18s ease, background-color 0.18s ease;
}

.hfb-promo-bar__nav:hover,
.hfb-promo-bar__nav:focus-visible {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.14);
}

.hfb-promo-bar__nav--prev {
	left: 10px;
}

.hfb-promo-bar__nav--next {
	right: 10px;
}

@media (max-width: 768px) {
	.hfb-promo-bar {
		height: 44px;
		/* Narrower gutters so the longer message still fits on one line. */
		padding: 0 16px;
		font-size: 13px;
	}

	.hfb-promo-bar__nav {
		width: 20px;
		height: 20px;
		font-size: 16px;
	}

	.hfb-promo-bar__nav--prev {
		left: 2px;
	}

	.hfb-promo-bar__nav--next {
		right: 2px;
	}
}

/* Very narrow phones: keep the longer message on a single line. */
@media (max-width: 374px) {
	.hfb-promo-bar {
		font-size: 12px;
	}
}

@media (max-width: 340px) {
	.hfb-promo-bar {
		padding: 0 12px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hfb-promo-bar__slide {
		transform: none;
		transition: opacity 0.3s ease;
	}

	.hfb-promo-bar__slide.is-active {
		transform: none;
		opacity: 1;
	}

	.hfb-promo-bar__slide.is-leaving {
		transform: none;
		opacity: 0;
	}
}
