.hpet-header {
	background-color: var(--hpet-bg-band);
}

.hpet-header__grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--hpet-sp-4);
	min-height: var(--hpet-header-h);
}

.hpet-header__left {
	justify-self: start;
}

.hpet-header__brand {
	justify-self: center;
}

.hpet-header__right {
	justify-self: end;
}

.hpet-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.2em;
	font-family: var(--hpet-font-body);
	font-weight: var(--hpet-weight-semibold);
	font-size: clamp(1.5rem, 3.4vw, 3rem);
	line-height: 1;
	text-decoration: none;
}

.hpet-logo:hover,
.hpet-logo:focus {
	color: inherit;
}

.hpet-logo__name {
	color: var(--hpet-green);
}

.hpet-logo__kind {
	color: var(--hpet-gray);
	font-weight: var(--hpet-weight-normal);
}

.hpet-cart,
.hpet-back {
	display: inline-flex;
	align-items: center;
	gap: var(--hpet-sp-2);
	font-family: var(--hpet-font-body);
	font-weight: var(--hpet-weight-normal);
	font-size: clamp(0.875rem, 1.662vw, 2rem);
	color: var(--hpet-gray-on-band);
	text-decoration: none;
}

.hpet-cart:hover,
.hpet-cart:focus,
.hpet-back:hover,
.hpet-back:focus {
	color: var(--hpet-green-accessible);
	text-decoration: underline;
}

.hpet-back::before {
	content: "\2190";
	font-size: 1.1em;
	line-height: 1;
}

.hpet-cart__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	height: 1.6em;
	padding-inline: 0.35em;
	border-radius: 999px;
	background-color: var(--hpet-green-accessible);
	color: var(--hpet-white);
	font-size: 0.75em;
	font-weight: var(--hpet-weight-semibold);
	line-height: 1;
}

.hpet-cart__badge[hidden] {
	display: none;
}

.hpet-page__header {
	padding-block: var(--hpet-sp-8) var(--hpet-sp-4);
}

.hpet-page__title {
	font-size: var(--hpet-fs-2xl);
	font-weight: var(--hpet-weight-medium);
	text-transform: uppercase;
}

@media (max-width: 30rem) {
	.hpet-header__grid {
		grid-template-columns: 1fr auto;
		row-gap: var(--hpet-sp-2);
		padding-block: var(--hpet-sp-3);
	}

	.hpet-header__left {
		grid-column: 1 / -1;
		order: -1;
	}
}
