.site-header,
.site-footer {
	background: #fff;
	color: #111;
}

.site-header {
	border-bottom: 1px solid #e7ece8;
}

.fm-header-inner,
.fm-footer-inner {
	width: min(100% - 2rem, var(--fanmatcher-wide-width));
	margin-inline: auto;
}

.fm-header-main {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	min-height: 5.5rem;
}

.fm-brand {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.4rem, 2vw, 1.8rem);
	font-weight: 600;
	letter-spacing: -.035em;
	text-decoration: none;
	white-space: nowrap;
}

.fm-brand img {
	width: 2.625rem;
	height: 2.625rem;
}

.fm-primary-nav {
	margin-inline: auto;
}

.fm-link-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-link-list a,
.fm-header-utility a,
.fm-mobile-utility a,
.fm-footer-account a {
	display: inline-block;
	padding-block: .6rem;
	text-decoration: none;
}

.fm-link-list a:hover,
.fm-header-utility a:hover,
.fm-mobile-utility a:hover,
.fm-footer-account a:hover {
	text-decoration: underline;
}

.fm-header-utility {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	white-space: nowrap;
}

.fm-header-cart {
	flex: 0 0 auto;
	color: #111;
}

.fm-header-cart .wc-block-mini-cart__button {
	min-height: 2.75rem;
	padding: .4rem;
	border: 1px solid var(--fanmatcher-accent);
	border-radius: 999px;
	background: #fff;
	color: #111;
}

.fm-header-cart .wc-block-mini-cart__icon {
	fill: currentColor;
}

.fm-header-cart .wc-block-mini-cart__badge {
	border: 1px solid var(--fanmatcher-accent);
	background: #fff;
	color: #111;
}

.fm-mobile-menu {
	display: none;
}

.fm-search-row {
	padding-block: .75rem 1rem;
	border-top: 1px solid #edf1ed;
}

.fm-search-row form {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.fm-search-row label {
	font-weight: 600;
	white-space: nowrap;
}

.fm-search-controls {
	position: relative;
	display: flex;
	width: min(100%, 38rem);
}

.fm-search-controls input[type="search"] {
	min-width: 0;
	flex: 1;
	min-height: 2.75rem;
	padding: .5rem .75rem;
	border: 1px solid var(--fanmatcher-accent);
	border-right: 0;
	border-radius: .8rem 0 0 .8rem;
}

.fm-search-controls button {
	padding-inline: 1.25rem;
	border-radius: 0 999px 999px 0;
}

.fm-product-suggestions {
	position: absolute;
	z-index: 30;
	top: calc(100% + .5rem);
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #dce6dc;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 14px 36px rgb(24 53 39 / 14%);
}

.fm-product-suggestions[hidden] {
	display: none;
}

.fm-product-suggestion {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) auto;
	align-items: center;
	gap: .8rem;
	min-width: 0;
	padding: .65rem .85rem;
	color: #171b18;
	text-decoration: none;
}

.fm-product-suggestion + .fm-product-suggestion {
	border-top: 1px solid #edf1eb;
}

.fm-product-suggestion:hover,
.fm-product-suggestion:focus-visible,
.fm-product-suggestion[aria-selected="true"] {
	background: #f4f7f2;
	color: #171b18;
}

.fm-product-suggestion:focus-visible {
	position: relative;
	outline: 2px solid #315b43;
	outline-offset: -2px;
}

.fm-product-suggestion-image {
	width: 3rem;
	height: 3rem;
	border-radius: .65rem;
	background: #f4f7f2;
	object-fit: contain;
}

.fm-product-suggestion-details {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: .15rem;
}

.fm-product-suggestion-name {
	overflow: hidden;
	font-size: .9rem;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-product-suggestion-brand {
	color: #42624d;
	font-size: .7rem;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.fm-product-suggestion-price {
	font-size: .86rem;
	font-weight: 650;
	white-space: nowrap;
}

.site-footer {
	border-top: 1px solid #dce6dc;
}

.fm-footer-inner {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 2fr) auto;
	gap: 2rem;
	padding-block: 3rem;
}

.fm-footer-inner p {
	margin: 0 0 .5rem;
}

.fm-footer-brand {
	font-size: 1.25rem;
	font-weight: 700;
}

@media (max-width: 55rem) {
	.fm-primary-nav,
	.fm-header-utility {
		display: none;
	}

	.fm-mobile-menu {
		display: block;
		margin-left: auto;
		position: relative;
	}

	.fm-mobile-menu summary {
		min-height: 2.75rem;
		padding: .5rem 1rem;
		border: 1px solid var(--fanmatcher-accent);
		cursor: pointer;
	}

	.fm-mobile-menu nav {
		position: absolute;
		z-index: 10;
		right: 0;
		min-width: min(17rem, calc(100vw - 2rem));
		padding: 1rem;
		border: 1px solid var(--fanmatcher-accent);
		background: #fff;
	}

	.fm-mobile-menu .fm-link-list,
	.fm-mobile-utility {
		display: grid;
		gap: 0;
	}

	.fm-mobile-utility {
		border-top: 1px solid var(--fanmatcher-accent);
		padding-top: .5rem;
	}

	.fm-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 38rem) {
	.fm-search-row form {
		align-items: stretch;
		flex-direction: column;
		gap: .4rem;
	}

	.fm-search-controls {
		width: 100%;
	}

	.fm-footer-inner {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding-block: 2rem;
	}
}

@media (max-width: 24rem) {
	.fm-header-main {
		gap: .5rem;
	}

	.fm-brand {
		gap: .35rem;
		font-size: 1.1rem;
	}

	.fm-brand img {
		width: 2rem;
		height: 2rem;
	}

	.fm-mobile-menu summary {
		padding-inline: .65rem;
	}
}
