/* Cedar Hem homepage header and footer. */
#masthead.cedar-shop-masthead {
	display: block;
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #141512;
	color: #faf8ef;
	font-family: var(--ui);
}

#masthead.cedar-shop-masthead::before,
#masthead.cedar-shop-masthead::after { content: none; }

.cedar-shop-top, .cedar-shop-nav, .cedar-service-strip, .cedar-footer-columns, .cedar-copyright {
	width: min(calc(100% - 40px), 1140px);
	margin-inline: auto;
}

.cedar-shop-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: clamp(6rem, 9.7vw, 8.75rem);
}

.cedar-shop-masthead a { color: inherit; text-decoration: none; }
.cedar-shop-brand { grid-column: 2; grid-row: 1; }
.cedar-shop-brand .wordmark, .cedar-shop-footer .wordmark {
	font: italic 400 clamp(2.35rem, 3.1vw, 3.1rem)/1 var(--cedar-serif);
	letter-spacing: -.065em;
}
.cedar-shop-brand img { display: block; width: auto; max-height: 3rem; }
.cedar-desktop-search { grid-column: 1; grid-row: 1; width: min(100% - 1rem, 18rem); }
.cedar-shop-masthead .woocommerce-product-search {
	display: flex;
	align-items: stretch;
	margin: 0;
	border: 1px solid #73746c;
}
.cedar-shop-masthead .woocommerce-product-search input.search-field {
	flex: 1;
	width: 0;
	min-width: 0;
	margin: 0;
	padding: .65rem .75rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: 400 .875rem/1.3 var(--ui);
}
.cedar-shop-masthead input.search-field::placeholder { color: #b1b1a8; }
.cedar-shop-masthead .woocommerce-product-search button {
	position: relative;
	width: 2.75rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 0;
}
.cedar-shop-masthead .woocommerce-product-search button::before,
.cedar-shop-masthead .woocommerce-product-search button::after {
	position: absolute;
	content: "";
}
.cedar-shop-masthead .woocommerce-product-search button::before {
	top: calc(50% - 8px); left: calc(50% - 8px);
	width: 13px; height: 13px;
	border: 1.5px solid currentColor; border-radius: 50%;
}
.cedar-shop-masthead .woocommerce-product-search button::after {
	top: calc(50% + 5px); left: calc(50% + 2px);
	width: 8px; border-top: 1.5px solid currentColor; transform: rotate(46deg);
}

.cedar-shop-tools {
	grid-column: 3;
	grid-row: 1;
	display: flex;
	justify-self: end;
	align-items: center;
	gap: 1rem;
}
.cedar-currency { font-size: .78rem; letter-spacing: .05em; }
.cedar-shop-masthead svg { display: block; width: 1.5rem; height: 1.5rem; }
.cedar-account, .cedar-shop-tools .bag-link, .cedar-mobile-menu summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
}
.cedar-shop-tools .bag-link { position: relative; }
.cedar-shop-tools .bag-link > span:not(.bag-count) { display: none; }
.cedar-shop-tools .bag-count {
	position: absolute;
	top: 0; right: -2px;
	display: grid; place-items: center;
	min-width: 1.1rem; height: 1.1rem;
	padding-inline: .2rem;
	border-radius: 0;
	background: #e8dbb2; color: #212219;
	font: 600 .68rem/1 var(--ui);
}
.cedar-shop-nav .menu-list {
	display: flex;
	align-items: center;
	gap: clamp(1.6rem, 3.1vw, 3rem);
}
.cedar-shop-nav a {
	display: block;
	padding-block: 1.05rem;
	font: 500 .9375rem/1.3 var(--ui);
}
.cedar-shop-masthead .menu-list a:hover { text-decoration: underline; text-underline-offset: .3em; }
.cedar-mobile-menu { display: none; }

#colophon.cedar-shop-footer {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #faf9f6;
	color: #24251f;
	font-family: var(--ui);
}
.cedar-service-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-block: 1px solid #d8d8d1;
}
.cedar-service-strip a {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .7rem;
	padding: clamp(1.25rem, 2.6vw, 2.5rem) .5rem;
	font: 500 clamp(.88rem, 1.3vw, 1.08rem)/1.4 var(--ui);
}
.cedar-service-strip svg { flex: none; width: 1.55rem; height: 1.55rem; }
.cedar-footer-columns {
	display: grid;
	grid-template-columns: minmax(15rem, 1.7fr) repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 4vw, 4rem);
	padding-block: clamp(2.5rem, 5vw, 5rem);
}
.cedar-footer-columns .wordmark { margin-bottom: 1.1rem; font-size: 2rem; }
.cedar-footer-columns .footer-business { max-width: 33ch; margin: 0; font: 400 .875rem/1.6 var(--ui); }
.cedar-footer-columns .footer-business p + p { margin-top: .75rem; }
.cedar-footer-columns h2 { margin: .3rem 0 .9rem; font: 600 1.1rem/1.3 var(--ui); letter-spacing: -.02em; }
.cedar-footer-columns .menu-list { display: grid; gap: .2rem; font: 400 .875rem/1.5 var(--ui); }
.cedar-footer-columns .menu-list a { display: inline-flex; padding-block: .23rem; }
.cedar-shop-footer .cedar-copyright { margin-block: 0; padding: 1.15rem 0; border-top: 1px solid #d8d8d1; font-size: .8rem; }

@media (max-width: 767px) {
	.cedar-shop-top { min-height: 66px; }
	.cedar-desktop-search, .cedar-shop-nav, .cedar-shop-tools .cedar-account, .cedar-currency { display: none; }
	.cedar-shop-brand .wordmark { font-size: 2rem; }
	.cedar-mobile-menu { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
	.cedar-mobile-menu summary { margin-left: -.6rem; list-style: none; cursor: pointer; }
	.cedar-mobile-menu summary::-webkit-details-marker { display: none; }
	.cedar-menu-panel {
		position: absolute; inset: 100% 0 auto;
		display: grid; gap: 1rem;
		padding: .75rem 20px 1.25rem;
		background: #141512; border-top: 1px solid #50514a;
		box-shadow: 0 .75rem 1.5rem #0003;
	}
	.cedar-menu-panel .menu-list a, .cedar-menu-panel > a { display: block; padding-block: .65rem; font-size: .95rem; }
	.cedar-service-strip { grid-template-columns: 1fr; }
	.cedar-service-strip a { justify-content: start; padding: 1rem .25rem; }
	.cedar-service-strip a + a { border-top: 1px solid #d8d8d1; }
	.cedar-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .9rem; }
	.cedar-footer-columns > div:first-child { grid-column: 1 / -1; }
}
