/* Premium Storefront header. Owner: .bhs-storefront-header.
 * Visual system: calm white bar; the search pill is the hero control,
 * the cart is the single filled accent, navigation stays quiet text.
 */

.bhs-commerce-chrome--handoff {
	position: sticky;
	top: 0;
	z-index: 150;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.admin-bar .bhs-commerce-chrome--handoff {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .bhs-commerce-chrome--handoff {
		top: 46px;
	}
}

.bhs-storefront-header {
	--bhs-blue: #006bb6;
	--bhs-blue-deep: #00417d;
	--bhs-blue-soft: #eef7ff;
	--bhs-gold: #f1b51d;
	--bhs-green: #12845f;
	--bhs-ink: #10243d;
	--bhs-muted: #627089;
	--bhs-line: #dde6f0;
	--bhs-line-soft: rgba(221, 230, 240, 0.72);
	--bhs-surface: #ffffff;
	--bhs-field: #f2f5f9;
	--bhs-tint: #eef2f7;
	--bhs-control-height: 44px;
	--bhs-quiet-radius: 10px;
	--bhs-card-radius: 14px;
	position: sticky;
	top: 0;
	z-index: 150;
	color: var(--bhs-ink);
	font-family: inherit;
}

body.admin-bar .bhs-storefront-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .bhs-storefront-header {
		top: 46px;
	}
}

.bhs-commerce-chrome--handoff .bhs-storefront-header {
	position: static;
	top: auto;
}

.bhs-storefront-header *,
.bhs-storefront-header *::before,
.bhs-storefront-header *::after {
	box-sizing: border-box;
}

.bhs-storefront-header .bhs-home__inner {
	width: min(100% - 32px, 1280px);
	margin-inline: auto;
}

.bhs-storefront-header .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.bhs-storefront-header .bhs-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.bhs-storefront-header .bhs-home-header {
	position: relative;
	z-index: 1;
	margin: 0;
	border-bottom: 1px solid var(--bhs-line);
	background: var(--bhs-surface);
	color: var(--bhs-ink);
	/* Always-on soft shadow: keeps the white bar readable over hero slides
	 * whose artwork is also white at the top. Deepens on scroll below. */
	box-shadow: 0 6px 18px rgba(16, 36, 61, 0.09);
	transition: box-shadow 160ms ease;
}

.bhs-storefront-header.is-scrolled .bhs-home-header,
.bhs-commerce-chrome--handoff.is-scrolled .bhs-home-header {
	box-shadow: 0 8px 24px rgba(16, 36, 61, 0.1);
}

.bhs-storefront-header .bhs-home-header.is-search-focused,
.bhs-commerce-chrome--handoff.is-search-focused .bhs-storefront-header {
	z-index: 190;
}

/* Visual depth: dim the page while the search panel is open.
 * A real element rendered at the end of body (see render_search_veil):
 * fixed pseudo-elements inside `.bhs-home` paint unreliably under
 * Chromium once that ancestor clips its own stacking context.
 */
.bhs-search-veil {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 140;
	background: rgba(16, 36, 61, 0.4);
}

body.bhs-search-panel-open .bhs-search-veil {
	display: block;
}

.bhs-storefront-header .bhs-home-header__main {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr) auto;
	grid-template-areas: "logo departments search actions";
	align-items: center;
	gap: 6px;
	min-height: 68px;
	padding: 12px 0;
}

.bhs-storefront-header .bhs-home-header__main > * {
	min-width: 0;
}

/* Logo: unboxed wordmark. */
.bhs-storefront-header .bhs-logo {
	grid-area: logo;
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
	border-radius: var(--bhs-quiet-radius);
	color: inherit;
	text-decoration: none;
}

.bhs-storefront-header .bhs-logo__img {
	display: block;
	width: 168px;
	max-width: 100%;
	height: auto;
	max-height: 38px;
	object-fit: contain;
}

/* Shared focus treatment. */
.bhs-storefront-header .bhs-logo:focus-visible,
.bhs-storefront-header .bhs-header-action:focus-visible,
.bhs-storefront-header .bhs-departments-trigger:focus-visible,
.bhs-storefront-header .bhs-search button[type="submit"]:focus-visible,
.bhs-storefront-header .bhs-search-result__link:focus-visible,
.bhs-storefront-header .bhs-search-result__add:focus-visible,
.bhs-storefront-header .bhs-search-result__view:focus-visible,
.bhs-storefront-header .bhs-search-suggestion:focus-visible,
.bhs-storefront-header .bhs-search-panel__all-link:focus-visible,
.bhs-storefront-header .bhs-search-results__term-remove:focus-visible,
.bhs-storefront-header .bhs-departments-drawer__close:focus-visible,
.bhs-storefront-header .bhs-departments-link:focus-visible,
.bhs-storefront-header .bhs-departments-utilities a:focus-visible {
	outline: 2px solid rgba(0, 107, 182, 0.85);
	outline-offset: -2px;
}

/* Quiet navigation buttons: Departamentos y Cuenta. */
.bhs-storefront-header .bhs-departments-trigger {
	grid-area: departments;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: var(--bhs-control-height);
	border: 0;
	border-radius: var(--bhs-quiet-radius);
	padding: 0 12px;
	background: transparent;
	color: var(--bhs-ink);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 680;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.bhs-storefront-header .bhs-departments-trigger .bhs-icon--chevron-down {
	width: 14px;
	height: 14px;
	color: var(--bhs-muted);
	transition: transform 140ms ease;
}

.bhs-storefront-header .bhs-departments-trigger:hover {
	background: var(--bhs-tint);
}

.bhs-storefront-header .bhs-departments-trigger[aria-expanded="true"] {
	background: var(--bhs-blue-soft);
	color: var(--bhs-blue-deep);
}

.bhs-storefront-header .bhs-departments-trigger[aria-expanded="true"] .bhs-icon--chevron-down {
	color: currentColor;
	transform: rotate(180deg);
}

/* Search pill: the hero control. */
.bhs-storefront-header .bhs-search {
	position: relative;
	z-index: 20;
	grid-area: search;
	display: block;
	justify-self: center;
	width: 100%;
	max-width: 640px;
	height: var(--bhs-control-height);
	margin: 0 8px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--bhs-field);
	transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.bhs-storefront-header .bhs-search:hover {
	background: #ecf1f6;
}

.bhs-storefront-header .bhs-search:focus-within,
.bhs-storefront-header .bhs-search.has-query,
.bhs-storefront-header .bhs-search.has-results,
.bhs-storefront-header .bhs-search.has-empty,
.bhs-storefront-header .bhs-search.is-searching {
	z-index: 190;
	border-color: rgba(0, 107, 182, 0.55);
	background: var(--bhs-surface);
	/* Inset ring only: stays inside the pill's rounded edge so the focus
	 * reads as part of the control, never a halo floating outside it. */
	box-shadow: inset 0 0 0 1px rgba(0, 107, 182, 0.35);
}

.bhs-storefront-header .bhs-search__lead-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	z-index: 2;
	display: inline-flex;
	color: var(--bhs-muted);
	pointer-events: none;
	transform: translateY(-50%);
}

.bhs-storefront-header .bhs-search:focus-within .bhs-search__lead-icon {
	color: var(--bhs-blue);
}

.bhs-storefront-header .bhs-search__icon,
.bhs-storefront-header .bhs-search-cancel {
	display: none !important;
}

.bhs-storefront-header .bhs-search input[type="search"],
.bhs-storefront-header .bhs-search.has-query input[type="search"] {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: calc(var(--bhs-control-height) - 2px);
	border: 0;
	padding: 0 52px 0 42px !important;
	background: transparent;
	color: var(--bhs-ink);
	font-size: 0.95rem;
	font-weight: 620;
	outline: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-search input[type="search"]::placeholder {
	color: #7c8aa0;
	opacity: 1;
	font-weight: 560;
}

.bhs-storefront-header .bhs-search button[type="submit"],
.bhs-storefront-header .bhs-search.has-query button[type="submit"] {
	position: absolute;
	top: 3px;
	right: 3px;
	bottom: auto;
	left: auto !important;
	z-index: 2;
	display: grid;
	place-items: center;
	width: calc(var(--bhs-control-height) - 8px) !important;
	min-width: 0 !important;
	height: calc(var(--bhs-control-height) - 8px) !important;
	min-height: 0 !important;
	margin: 0 !important;
	border: 0;
	border-radius: 999px;
	padding: 0 !important;
	background: var(--bhs-blue);
	color: #ffffff;
	box-shadow: none;
	cursor: pointer;
	transform: none !important;
}

.bhs-storefront-header .bhs-search button[type="submit"]:hover,
.bhs-storefront-header .bhs-search button[type="submit"]:focus-visible {
	background: var(--bhs-blue-deep);
	color: #ffffff;
}

.bhs-storefront-header .bhs-search button[type="submit"] .bhs-icon {
	width: 17px;
	height: 17px;
}

/* Header actions: Cuenta stays quiet, the cart is the accent. */
.bhs-storefront-header .bhs-header-actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 4px;
	min-height: var(--bhs-control-height);
}

.bhs-storefront-header .bhs-header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: var(--bhs-control-height);
	height: var(--bhs-control-height);
	border: 0;
	border-radius: var(--bhs-quiet-radius);
	padding: 0 12px;
	background: transparent;
	color: var(--bhs-ink);
	font-size: 0.9rem;
	font-weight: 680;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-header-action--account:hover,
.bhs-storefront-header .bhs-header-action--account:focus-visible {
	background: var(--bhs-tint);
	color: var(--bhs-ink);
}

.bhs-storefront-header .bhs-header-action--cart {
	margin-left: 4px;
	border-radius: 999px;
	padding: 0 14px;
	background: var(--bhs-blue);
	color: #ffffff;
}

.bhs-storefront-header .bhs-header-action--cart:hover,
.bhs-storefront-header .bhs-header-action--cart:focus-visible {
	background: var(--bhs-blue-deep);
	color: #ffffff;
}

.bhs-storefront-header .bhs-cart-count {
	display: inline-block;
	min-width: 1ch;
	color: #ffffff;
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1;
}

.bhs-storefront-header .bhs-cart-count[hidden] {
	display: none !important;
}

/* Departments dropdown card (desktop/tablet). */
.bhs-storefront-header .bhs-departments-panel {
	position: absolute;
	top: calc(100% + 1px);
	left: max(16px, calc((100% - min(100% - 32px, 1280px)) / 2));
	right: auto;
	z-index: 180;
	width: min(780px, calc(100% - 32px));
	border: 1px solid var(--bhs-line);
	border-top: 0;
	border-radius: 0 0 var(--bhs-card-radius) var(--bhs-card-radius);
	background: var(--bhs-surface);
	box-shadow: 0 24px 44px rgba(16, 36, 61, 0.16);
}

.bhs-storefront-header .bhs-departments-panel[hidden] {
	display: none !important;
}

.bhs-storefront-header .bhs-departments-panel__inner {
	width: 100%;
	padding: 12px;
}

.bhs-storefront-header .bhs-departments-list {
	display: grid;
	gap: 2px;
	margin: 0;
}

.bhs-storefront-header .bhs-departments-list--panel {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.bhs-storefront-header .bhs-departments-link {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 48px;
	border-radius: var(--bhs-quiet-radius);
	padding: 6px 8px;
	color: var(--bhs-ink);
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: none;
}

.bhs-storefront-header .bhs-departments-link .bhs-icon {
	width: 36px;
	height: 36px;
	border-radius: var(--bhs-quiet-radius);
	padding: 9px;
	background: var(--bhs-blue-soft);
	color: var(--bhs-blue-deep);
}

.bhs-storefront-header .bhs-departments-link:hover {
	background: var(--bhs-tint);
}

.bhs-storefront-header .bhs-departments-link:focus-visible {
	background: var(--bhs-tint);
	outline-offset: -2px;
}

.bhs-storefront-header .bhs-departments-link.is-current {
	background: var(--bhs-blue-soft);
	color: var(--bhs-blue-deep);
}

.bhs-storefront-header .bhs-nav-label-short {
	display: none;
}

/* Search dropdown panel. */
.bhs-storefront-header .bhs-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 200;
	max-height: min(560px, calc(100vh - 100px));
	overflow: auto;
	border: 1px solid var(--bhs-line);
	border-radius: var(--bhs-card-radius);
	padding: 6px;
	background: #ffffff;
	box-shadow: 0 24px 48px rgba(16, 36, 61, 0.16);
	color: var(--bhs-ink);
}

.bhs-storefront-header .bhs-search-panel[hidden] {
	display: none !important;
}

.bhs-storefront-header .bhs-search-hint {
	position: absolute;
	top: calc(100% + 10px);
	left: 16px;
	z-index: 195;
	display: none;
	max-width: min(100%, 360px);
	border: 1px solid var(--bhs-line);
	border-radius: var(--bhs-quiet-radius);
	padding: 9px 12px;
	background: #ffffff;
	color: var(--bhs-muted);
	font-size: 0.78rem;
	font-weight: 620;
	box-shadow: 0 12px 28px rgba(16, 36, 61, 0.12);
}

.bhs-storefront-header .bhs-search.has-search-hint .bhs-search-hint,
.bhs-storefront-header .bhs-search:focus-within:not(.has-query):not(.has-results):not(.has-empty):not(.has-multi-search):not(.is-search-hint-suppressed) .bhs-search-hint {
	display: block;
}

.bhs-storefront-header .bhs-search-results {
	display: grid;
	gap: 2px;
}

.bhs-storefront-header .bhs-search-results__heading {
	padding: 9px 10px 4px;
	color: var(--bhs-muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Multisearch groups: the heading carries the term and its remove control. */
.bhs-storefront-header .bhs-search-result-group {
	display: grid;
	gap: 2px;
}

.bhs-storefront-header .bhs-search-result-group + .bhs-search-result-group {
	margin-top: 4px;
	border-top: 1px solid var(--bhs-line-soft);
	padding-top: 4px;
}

.bhs-storefront-header .bhs-search-results__heading--term {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-right: 4px;
}

.bhs-storefront-header .bhs-search-results__term-count {
	color: var(--bhs-muted);
	font-weight: 650;
	letter-spacing: 0;
	text-transform: none;
}

.bhs-storefront-header .bhs-search-results__term-remove {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: auto;
	border: 0;
	border-radius: 999px;
	padding: 0;
	background: transparent;
	color: var(--bhs-muted);
	cursor: pointer;
}

.bhs-storefront-header .bhs-search-results__term-remove:hover {
	background: var(--bhs-tint);
	color: var(--bhs-ink);
}

.bhs-storefront-header .bhs-search-results__term-remove .bhs-icon {
	width: 13px;
	height: 13px;
}

.bhs-storefront-header .bhs-search-result {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	border-radius: var(--bhs-quiet-radius);
	padding: 6px 8px;
	background: #ffffff;
}

.bhs-storefront-header .bhs-search-result:hover,
.bhs-storefront-header .bhs-search-result:focus-within {
	background: #f5f8fb;
}

.bhs-storefront-header .bhs-search-result__link {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.bhs-storefront-header .bhs-search-result__image {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bhs-line-soft);
	border-radius: var(--bhs-quiet-radius);
	background: #ffffff;
}

.bhs-storefront-header .bhs-search-result__image img {
	max-width: 38px;
	max-height: 38px;
	object-fit: contain;
}

.bhs-storefront-header .bhs-search-result__body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.bhs-storefront-header .bhs-search-result__body strong {
	overflow: hidden;
	color: var(--bhs-ink);
	font-size: 0.88rem;
	font-weight: 680;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-search-result__category {
	overflow: hidden;
	color: var(--bhs-muted);
	font-size: 0.74rem;
	font-weight: 560;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-search-result__side {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.bhs-storefront-header .bhs-search-result__price {
	color: var(--bhs-ink);
	font-size: 0.88rem;
	font-weight: 780;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-search-result__add.bhs-add-to-cart {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	background: var(--bhs-blue);
	color: #ffffff;
	text-decoration: none;
}

.bhs-storefront-header .bhs-search-result__add.bhs-add-to-cart:hover,
.bhs-storefront-header .bhs-search-result__add.bhs-add-to-cart:focus-visible {
	background: var(--bhs-blue-deep);
}

.bhs-storefront-header .bhs-search-result__add .bhs-icon--check,
.bhs-storefront-header .bhs-search-result__add.is-loading .bhs-icon--check,
.bhs-storefront-header .bhs-search-result__add.is-added .bhs-icon--plus,
.bhs-storefront-header .bhs-search-result__add.added .bhs-icon--plus {
	display: none;
}

.bhs-storefront-header .bhs-search-result__add.is-added .bhs-icon--check,
.bhs-storefront-header .bhs-search-result__add.added .bhs-icon--check {
	display: block;
}

/* Context suggestions: name + type chip + count. */
.bhs-storefront-header .bhs-search-suggestion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 42px;
	border-radius: var(--bhs-quiet-radius);
	padding: 6px 10px;
	color: var(--bhs-ink);
	font-size: 0.86rem;
	font-weight: 650;
	text-decoration: none;
}

.bhs-storefront-header .bhs-search-suggestion:hover {
	background: var(--bhs-tint);
}

.bhs-storefront-header .bhs-search-suggestion__main {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.bhs-storefront-header .bhs-search-suggestion__label {
	overflow: hidden;
	color: var(--bhs-ink);
	font-weight: 520;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-search-suggestion__label strong {
	font-weight: 780;
}

.bhs-storefront-header .bhs-search-suggestion__type {
	flex: 0 0 auto;
	border-radius: 999px;
	padding: 3px 8px;
	background: var(--bhs-field);
	color: var(--bhs-muted);
	font-size: 0.68rem;
	font-weight: 720;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bhs-storefront-header .bhs-search-suggestion__count {
	flex: 0 0 auto;
	color: var(--bhs-muted);
	font-size: 0.78rem;
	font-weight: 650;
}

/* View-product and footer links. */
.bhs-storefront-header .bhs-search-result__view {
	display: inline-flex;
	align-items: center;
	border-radius: var(--bhs-quiet-radius);
	padding: 8px 10px;
	color: var(--bhs-blue-deep);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-search-result__view:hover {
	background: var(--bhs-blue-soft);
}

.bhs-storefront-header .bhs-search-panel__all-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 4px;
	border-radius: var(--bhs-quiet-radius);
	padding: 11px 12px;
	background: var(--bhs-blue-soft);
	color: var(--bhs-blue-deep);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}

.bhs-storefront-header .bhs-search-panel__all-link::after {
	content: "→";
	font-weight: 700;
}

.bhs-storefront-header .bhs-search-panel__all-link:hover {
	background: #e2f0fd;
}

.bhs-storefront-header .bhs-search-panel__state,
.bhs-storefront-header .bhs-search-group-empty {
	display: grid;
	gap: 6px;
	padding: 14px 10px;
	color: var(--bhs-muted);
	font-size: 0.86rem;
}

.bhs-storefront-header .bhs-search-panel__state strong {
	color: var(--bhs-ink);
	font-size: 0.95rem;
}

.bhs-storefront-header .bhs-search-skeleton {
	display: block;
	height: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, #edf3f8 0%, #f7fafc 48%, #edf3f8 100%);
}

.bhs-storefront-header .bhs-search-skeleton--heading {
	width: 42%;
}

.bhs-storefront-header .bhs-search-skeleton--context {
	width: 70%;
}

.bhs-storefront-header .bhs-search-skeleton--short {
	width: 48%;
}

.bhs-storefront-header .bhs-search-skeleton--product {
	height: 48px;
	border-radius: var(--bhs-quiet-radius);
}

.bhs-storefront-header mark {
	background: transparent;
	color: inherit;
	font-weight: inherit;
}

/* Checkout header: focused and minimal; the cart stays reachable but quiet. */
.bhs-storefront-header--checkout .bhs-home-header__main {
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo checkout actions";
}

.bhs-storefront-header .bhs-home-header__checkout-copy {
	grid-area: checkout;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	color: var(--bhs-muted);
	font-size: 0.84rem;
	font-weight: 560;
}

.bhs-storefront-header .bhs-home-header__checkout-copy .bhs-icon {
	width: 17px;
	height: 17px;
	color: var(--bhs-green);
}

.bhs-storefront-header .bhs-home-header__checkout-copy strong {
	color: var(--bhs-ink);
	font-size: 0.92rem;
	font-weight: 750;
	white-space: nowrap;
}

.bhs-storefront-header .bhs-home-header__checkout-copy span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhs-storefront-header--checkout .bhs-header-actions {
	justify-self: end;
}

.bhs-storefront-header--checkout .bhs-header-action--cart {
	margin-left: 0;
	border: 1px solid var(--bhs-line);
	background: transparent;
	color: var(--bhs-blue-deep);
}

.bhs-storefront-header--checkout .bhs-header-action--cart:hover,
.bhs-storefront-header--checkout .bhs-header-action--cart:focus-visible {
	border-color: rgba(0, 107, 182, 0.45);
	background: var(--bhs-blue-soft);
	color: var(--bhs-blue-deep);
}

.bhs-storefront-header--checkout .bhs-cart-count {
	color: var(--bhs-blue-deep);
}

/* Departments drawer (mobile navigation). */
.bhs-storefront-header .bhs-departments-backdrop {
	position: fixed;
	inset: 0;
	z-index: 210;
	background: rgba(15, 31, 53, 0.4);
	opacity: 0;
	transition: opacity 180ms ease;
}

.bhs-storefront-header .bhs-departments-backdrop.is-open {
	opacity: 1;
}

.bhs-storefront-header .bhs-departments-backdrop[hidden],
.bhs-storefront-header .bhs-departments-drawer[hidden] {
	display: none !important;
}

.bhs-storefront-header .bhs-departments-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 220;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(88vw, 380px);
	background: #ffffff;
	color: var(--bhs-ink);
	box-shadow: -18px 0 36px rgba(16, 36, 61, 0.18);
	transform: translateX(100%);
	transition: transform 190ms ease;
}

body.admin-bar .bhs-storefront-header .bhs-departments-drawer {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .bhs-storefront-header .bhs-departments-drawer {
		top: 46px;
	}
}

.bhs-storefront-header .bhs-departments-drawer.is-open {
	transform: translateX(0);
}

body.bhs-departments-drawer-open {
	overflow: hidden;
}

.bhs-storefront-header .bhs-departments-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--bhs-line);
	padding: 14px 16px;
}

.bhs-storefront-header .bhs-departments-drawer__header strong {
	color: var(--bhs-ink);
	font-size: 1rem;
	font-weight: 780;
}

.bhs-storefront-header .bhs-departments-drawer__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	background: var(--bhs-field);
	color: var(--bhs-ink);
	cursor: pointer;
	line-height: 1;
}

.bhs-storefront-header .bhs-departments-drawer__close:hover {
	background: var(--bhs-tint);
}

.bhs-storefront-header .bhs-departments-list--drawer {
	align-content: start;
	overflow: auto;
	padding: 10px 12px;
}

.bhs-storefront-header .bhs-departments-list--drawer .bhs-departments-link {
	min-height: 52px;
}

.bhs-storefront-header .bhs-departments-utilities {
	display: grid;
	gap: 2px;
	border-top: 1px solid var(--bhs-line);
	padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
}

.bhs-storefront-header .bhs-departments-utilities a {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 44px;
	border-radius: var(--bhs-quiet-radius);
	padding: 6px 8px;
	color: var(--bhs-ink);
	font-size: 0.88rem;
	font-weight: 620;
	text-decoration: none;
}

.bhs-storefront-header .bhs-departments-utilities a .bhs-icon {
	color: var(--bhs-muted);
}

.bhs-storefront-header .bhs-departments-utilities a:hover,
.bhs-storefront-header .bhs-departments-utilities a:focus-visible {
	background: var(--bhs-tint);
	color: var(--bhs-ink);
}

/* Mid: one row, icon-only quiet navigation. */
@media (min-width: 641px) and (max-width: 960px) {
	.bhs-storefront-header .bhs-home__inner {
		width: min(100% - 24px, 1280px);
	}

	.bhs-storefront-header .bhs-home-header__main {
		gap: 4px;
		min-height: 62px;
		padding: 9px 0;
	}

	.bhs-storefront-header .bhs-logo {
		margin-right: 6px;
	}

	.bhs-storefront-header .bhs-logo__img {
		width: 132px;
		max-height: 30px;
	}

	.bhs-storefront-header .bhs-departments-trigger {
		width: var(--bhs-control-height);
		padding: 0;
	}

	.bhs-storefront-header .bhs-departments-trigger span,
	.bhs-storefront-header .bhs-departments-trigger .bhs-icon--chevron-down,
	.bhs-storefront-header .bhs-header-action--account span {
		display: none;
	}

	.bhs-storefront-header .bhs-header-action--account {
		width: var(--bhs-control-height);
		padding: 0;
	}

	.bhs-storefront-header .bhs-search {
		margin: 0 6px;
	}
}

/* Mobile: one calm row; the search pill owns the middle, brand lives in home/drawer. */
@media (max-width: 640px) {
	.bhs-storefront-header .bhs-home__inner {
		width: min(100% - 20px, 1280px);
	}

	.bhs-storefront-header--public .bhs-home-header__main {
		grid-template-columns: var(--bhs-control-height) minmax(0, 1fr) auto;
		grid-template-areas: "departments search actions";
		grid-template-rows: var(--bhs-control-height);
		gap: 6px;
		min-height: 60px;
		padding: 8px 0;
	}

	.bhs-storefront-header--public .bhs-logo {
		display: none;
	}

	.bhs-storefront-header .bhs-departments-trigger {
		width: var(--bhs-control-height);
		padding: 0;
	}

	.bhs-storefront-header .bhs-departments-trigger span,
	.bhs-storefront-header .bhs-departments-trigger .bhs-icon--chevron-down {
		display: none;
	}

	.bhs-storefront-header .bhs-header-actions {
		gap: 2px;
	}

	.bhs-storefront-header .bhs-header-action--account {
		width: var(--bhs-control-height);
		padding: 0;
	}

	.bhs-storefront-header .bhs-header-action--account span {
		display: none;
	}

	.bhs-storefront-header--public .bhs-search {
		max-width: none;
		margin: 0;
	}

	.bhs-storefront-header--public .bhs-home-header.is-search-editing .bhs-home-header__main {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "search";
		gap: 0;
	}

	.bhs-storefront-header--public .bhs-home-header.is-search-editing .bhs-departments-trigger,
	.bhs-storefront-header--public .bhs-home-header.is-search-editing .bhs-header-actions {
		display: none;
	}

	.bhs-storefront-header .bhs-search__lead-icon {
		left: 12px;
	}

	.bhs-storefront-header .bhs-search input[type="search"],
	.bhs-storefront-header .bhs-search.has-query input[type="search"] {
		padding: 0 48px 0 38px !important;
		font-size: 16px;
	}

	.bhs-storefront-header .bhs-search-hint {
		display: none !important;
	}

	/* The one-row header leaves the form narrow; the panel takes the viewport width. */
	.bhs-storefront-header .bhs-search-panel {
		position: fixed;
		top: 66px;
		right: 10px;
		left: 10px;
		max-height: min(60vh, calc(100vh - 130px));
	}

	body.admin-bar .bhs-storefront-header .bhs-search-panel {
		top: 112px;
	}

	.bhs-storefront-header .bhs-departments-panel {
		display: none !important;
	}

	.bhs-storefront-header--checkout .bhs-home-header__main {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "logo checkout actions";
		grid-template-rows: var(--bhs-control-height);
		min-height: 64px;
		padding: 10px 0;
	}

	.bhs-storefront-header--checkout .bhs-home-header__checkout-copy span {
		display: none;
	}
}

@media (max-width: 370px) {
	.bhs-storefront-header .bhs-home__inner {
		width: min(100% - 16px, 1280px);
	}

	.bhs-storefront-header--public .bhs-home-header__main {
		gap: 6px 4px;
	}

	.bhs-storefront-header .bhs-logo__img {
		width: 106px;
		max-height: 24px;
	}

	.bhs-storefront-header .bhs-header-action--cart {
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhs-storefront-header *,
	.bhs-storefront-header *::before,
	.bhs-storefront-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
