.hb-container {
	width: min(100% - 32px, var(--hb-container-width));
	margin-inline: auto;
}

.hb-container--narrow {
	width: min(100% - 2rem, 860px);
}

.hb-main {
	flex: 1 0 auto;
	min-width: 0;
	padding: 1.6rem 0;
}

.hb-site-header {
	position: relative;
	z-index: 80;
	background: var(--hb-color-surface);
	border-bottom: 1px solid var(--hb-color-border);
}

.hb-header-topbar {
	background: #f2f7f5;
	border-bottom: 1px solid var(--hb-color-border);
	color: var(--hb-color-muted);
	font-size: 0.78rem;
}

.hb-header-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 28px;
}

.hb-header-topbar__message {
	margin: 0;
	font-weight: 700;
}

.hb-header-topbar__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.hb-header-topbar__link {
	color: var(--hb-color-muted);
	font-weight: 700;
}

.hb-header-topbar__link:hover,
.hb-header-topbar__link:focus {
	color: var(--hb-color-primary-dark);
}

.hb-header-sticky {
	position: sticky;
	top: 0;
	z-index: 90;
	background: #ffffff;
	transition: box-shadow 180ms ease;
}

.hb-site-header--scrolled .hb-header-sticky {
	box-shadow: var(--hb-shadow-sm);
}

.admin-bar .hb-header-sticky {
	top: 32px;
}

.hb-header-main {
	background: var(--hb-color-surface);
}

.hb-header-main__inner {
	display: grid;
	grid-template-columns: minmax(185px, 220px) minmax(360px, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: 76px;
}

.hb-header-main__search {
	min-width: 0;
}

/*
 * Mobile-only header row + its own search bar (see responsive.css, max-width: 767px).
 * Desktop keeps its existing 3-column .hb-header-main__inner layout untouched;
 * these two are only ever shown on mobile, never alongside it.
 */
.hb-header-mobile-row,
.hb-header-main__search--mobile {
	display: none;
}

.hb-header-branding {
	display: grid;
	gap: 0.18rem;
	min-width: 0;
}

.hb-header-logo,
.hb-footer__brand-link {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.hb-header-logo__link,
.hb-footer__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--hb-color-text);
	font-weight: 800;
}

.hb-header-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 210px;
}

.hb-header-logo .custom-logo {
	max-width: 180px;
	max-height: 52px;
	width: auto;
}

.hb-header-logo__image {
	display: block;
	max-width: 180px;
	max-height: 32px;
	width: auto;
	height: auto;
}

.hb-footer__brand-image {
	display: block;
	max-width: 150px;
	max-height: 30px;
	width: auto;
	height: auto;
}

.hb-header-logo__mark,
.hb-footer__brand-mark {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 16px;
	background: var(--hb-color-primary);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0;
}

.hb-header-logo__name,
.hb-footer__brand-name {
	font-size: 1.35rem;
	letter-spacing: 0;
}

.hb-header-branding__tagline {
	margin: 0;
	color: var(--hb-color-muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.hb-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.7rem;
}

.hb-header-nav {
	background: #ffffff;
	border-top: 1px solid var(--hb-color-border);
	border-bottom: 1px solid var(--hb-color-border);
}

.hb-header-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.35rem;
	min-height: 44px;
}

.hb-header-nav__menu {
	min-width: 0;
	flex: 0 1 auto;
	width: 100%;
}

.hb-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 95;
	background: rgba(6, 51, 43, 0.46);
	opacity: 0;
	transition: opacity 180ms ease;
}

.hb-mobile-overlay:not([hidden]) {
	opacity: 1;
}

.hb-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 100;
	display: grid;
	grid-template-rows: auto 1fr;
	width: min(360px, 88vw);
	height: 100vh;
	background: var(--hb-color-surface);
	box-shadow: -24px 0 50px rgba(6, 51, 43, 0.18);
	transform: translateX(100%);
	transition: transform 220ms ease;
}

.hb-mobile-drawer:not([hidden]) {
	transform: translateX(0);
}

.admin-bar .hb-mobile-drawer {
	top: 32px;
	height: calc(100vh - 32px);
}

.hb-mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	border-bottom: 1px solid var(--hb-color-border);
}

.hb-mobile-drawer__close {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hb-color-border);
	border-radius: var(--hb-radius-md);
	background: var(--hb-color-background);
	color: var(--hb-color-text);
}

.hb-mobile-drawer__content {
	display: grid;
	align-content: start;
	gap: 1.2rem;
	overflow-y: auto;
	padding: 1rem;
}

.hb-mobile-drawer__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.hb-mobile-drawer__cart {
	grid-column: 1 / -1;
}

.hb-mobile-drawer__section {
	display: grid;
	gap: 0.75rem;
}

.hb-mobile-drawer__title {
	margin: 0;
	font-size: 0.95rem;
}

.hb-mobile-drawer__quicklinks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.hb-footer {
	margin-top: 1rem;
	background: var(--hb-color-ink);
	border-top: 0;
	color: #bcd4cb;
}

.hb-footer__accordion {
	border: 0;
}

.hb-footer__accordion > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}

.hb-footer__accordion > summary::-webkit-details-marker {
	display: none;
}

.hb-footer__accordion > summary::after {
	content: "+";
	flex: 0 0 auto;
	color: #ffffff;
	font-size: 1.1rem;
}

.hb-footer__accordion[open] > summary::after {
	content: "\2212";
}

.hb-footer__accordion .hb-footer__title {
	margin: 0;
}

.hb-footer__grid {
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(130px, 1fr));
	align-items: start;
	gap: 0.9rem;
	padding: 0.9rem 0;
}

.hb-footer__brand-mark {
	width: 22px;
	height: 22px;
	border-radius: 12px;
	font-size: 0.6rem;
}

.hb-footer .custom-logo-link {
	display: inline-flex;
}

.hb-footer .custom-logo {
	max-width: 170px;
	max-height: 44px;
	width: auto;
	height: auto;
}

.hb-footer__brand-name {
	font-size: 0.92rem;
}

.hb-footer__description {
	max-width: 25rem;
	margin: 0.4rem 0 0;
	color: #93aaa1;
	font-size: 0.82rem;
}

.hb-footer__title {
	margin: 0 0 0.45rem;
	color: #ffffff;
	font-size: 0.86rem;
}

.hb-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.45rem 0;
	color: #93aaa1;
	font-size: 0.78rem;
}

.hb-footer__legal {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.hb-shop-layout {
	display: grid;
	grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
	align-items: start;
	gap: 20px;
	width: 100%;
	max-width: 100%;
	margin-top: 1rem;
}

.hb-shop-layout__content {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.hb-shop-layout--full {
	display: block;
}

.hb-filter-overlay {
	position: fixed;
	inset: 0;
	z-index: 115;
	background: rgba(6, 51, 43, 0.46);
	opacity: 0;
	transition: opacity 180ms ease;
}

.hb-filter-overlay:not([hidden]) {
	opacity: 1;
}

.hb-filter-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 120;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(360px, 88vw);
	height: 100vh;
	height: 100dvh;
	background: var(--hb-color-surface);
	box-shadow: -20px 0 44px rgba(6, 51, 43, 0.18);
	transform: translateX(100%);
	transition: transform 220ms ease;
}

.hb-filter-drawer:not([hidden]) {
	transform: translateX(0);
}

.hb-promo-banners {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.admin-bar .hb-filter-drawer {
	top: 32px;
	height: calc(100vh - 32px);
}

@media (max-width: 782px) {
	.admin-bar .hb-header-sticky {
		top: 46px;
	}

	.admin-bar .hb-mobile-drawer,
	.admin-bar .hb-filter-drawer {
		top: 46px;
		height: calc(100vh - 46px);
	}
}
