/* lls-shop — header, ported verbatim from the lls2 site.
   Source: ~/Developer/sites/lls2 → public/styles.css (.site-header block) and
   src/render.js (renderHeader). Values are copied literally so the shop header
   is identical to the main site's. Don't "improve" these numbers — change them
   in lls2 first, then re-port.

   Fonts are the same self-hosted Sofia Pro woff2 files lls2 ships. */

@font-face {
	font-family: "Sofia Pro Web";
	src: url("../fonts/sofia-pro-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Sofia Pro Web";
	src: url("../fonts/sofia-pro-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Sofia Pro Web";
	src: url("../fonts/sofia-pro-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

/* ---------- header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	/* hello-elementor caps <header> at 1140px, which made the bottom hairline
	   stop short of both viewport edges. lls2's bar spans the full width; the
	   .container inside still centres content at 1024px, so nothing shifts. */
	/* !important because the parent theme's cap could not be located in the
	   CSSOM (it also forces display:flex and auto side margins on <header>) and
	   a plain override lost. */
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
	display: block !important;
	font-family: var(--lls-font);
	color: #000;
	/* hello-elementor pads the <header> element by 16px block; lls2's bar gets
	   its height from .header-inner alone (20 + 46.8 + 20 = 86.8). */
	padding: 0;
	margin: 0;
	border: 0;
}

.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: rgba(0, 0, 0, 0.1);
	opacity: 1;
	transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
	pointer-events: none;
}

.site-header.no-divider::after {
	opacity: 0;
}

/* lls2's .container: 1024px max, 24px inline padding. */
.site-header .container {
	width: 100%;
	max-width: 1024px;
	margin-inline: auto;
	padding-inline: 24px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.brand img {
	width: 31px;
	height: 46.8px;
	display: block;
	max-width: 100%;
}

.brand-name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-nav {
	display: flex;
	align-items: center;
	position: relative;
}

/* lls2 emits bare <a> children; wp_nav_menu wraps them in a <ul>, so the flex
   row lives on the list and the nav stays the positioning context. */
.site-nav__list {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 12px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0.85;
	border-bottom: 1px solid transparent;
	transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.3, 1),
		border-bottom-color 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	opacity: 1;
	color: #000;
}

.site-nav a[aria-current="page"] {
	border-bottom-color: #000;
}

.site-nav.has-slider a[aria-current="page"] {
	border-bottom-color: transparent;
}

.nav-underline {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: #000;
	opacity: 0;
	pointer-events: none;
	transition: left 320ms cubic-bezier(0.2, 0.8, 0.3, 1),
		width 320ms cubic-bezier(0.2, 0.8, 0.3, 1),
		opacity 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

@media (max-width: 900px) {
	.nav-underline {
		display: none;
	}

	.site-nav.has-slider a[aria-current="page"] {
		border-bottom-color: #000;
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* lls2's .btn / .btn--orange, used by the Donate button. */
.site-header .btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	line-height: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 200ms cubic-bezier(0.2, 0.8, 0.3, 1),
		opacity 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.site-header .btn:hover {
	transform: translateY(-1px);
	opacity: 0.9;
}

.site-header .btn:active {
	transform: translateY(0) scale(0.97);
	transition-duration: 100ms;
}

.site-header .btn:focus-visible {
	box-shadow: inset 0 0 0 2px #ff9100;
	outline: none;
}

.site-header .btn--orange,
.site-header .btn--orange:hover,
.site-header .btn--orange:visited {
	background: #ff9100;
	color: #fff;
}

.site-header .btn svg {
	flex: none;
}

.nav-toggle {
	display: none;
}

/* ---------- mobile ---------- */

@media (max-width: 800px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		background: #fff;
		border-top: 1px solid #eee;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.site-nav li {
		width: 100%;
	}

	.site-nav a {
		width: 100%;
		padding: 14px 24px;
	}

	.nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		width: 40px;
		height: 40px;
		padding: 10px;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.nav-toggle span {
		display: block;
		height: 2px;
		width: 100%;
		background: #000;
		border-radius: 2px;
	}
}

/* Skip link — not in lls2, but the header is the first thing on the page. */
.lls-skip {
	position: absolute;
	left: -9999px;
}

.lls-skip:focus {
	left: 24px;
	top: 24px;
	z-index: 100;
	padding: 12px;
	background: #000;
	color: #fff;
	border-radius: 8px;
	font: 700 14px / 1 var(--lls-font);
}


/* ---------- cart link ----------
   Not part of lls2's header — added because the shop needs a route to the cart.
   Sized to sit quietly next to the Donate button rather than compete with it. */

.header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #000;
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.header-cart:hover {
	opacity: 1;
}

.header-cart svg {
	width: 18px;
	height: 18px;
	display: block;
}

.header-cart__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ff9100;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

/* ---------- footer, ported from lls2 ----------
   Source: public/styles.css (.site-footer / .footer-inner / .footer-col) and
   src/render.js renderFooter. Values copied literally. */

.site-footer {
	padding-block: 40px 80px;
	background: #fff;
	font-family: var(--lls-font);
	color: #000;
}

.site-footer .container {
	width: 100%;
	max-width: 1024px;
	margin-inline: auto;
	padding-inline: 24px;
}

.footer-inner {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: space-between;
	gap: 40px;
}

.footer-col h3 {
	font-family: var(--lls-font);
	font-size: 20px;
	font-weight: 500;
	line-height: 23px;
	margin: 0 0 40px;
	color: #000;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-col li {
	margin: 0;
}

.footer-col a,
.footer-col a:visited {
	font-size: 14px;
	line-height: 20px;
	color: #000;
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.footer-col a:hover {
	opacity: 1;
	color: #000;
}

@media (max-width: 800px) {
	.footer-inner {
		grid-template-columns: 1fr;
	}

	.footer-col h3 {
		margin-bottom: 20px;
	}
}


/* ---------- cart in the nav ----------
   Not part of lls2's header: the shop needs a route to the cart, and the design
   places it as the last nav item — trolley plus the word "Cart", with the same
   underline the current page gets. */

.lls-nav-cart > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lls-nav-cart__icon {
	width: 16px;
	height: 16px;
	display: block;
	flex: none;
}

.lls-nav-cart__count {
	margin-left: 2px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
	background: none;
}


/* ---------- bag button, beside Donate ----------
   Outlined rather than filled: two solid buttons side by side would fight, and
   Donate is the one that should win. */

.site-header .btn--bag,
.site-header .btn--bag:hover,
.site-header .btn--bag:visited {
	background: #fff;
	color: #000;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.site-header .btn--bag svg {
	width: 14px;
	height: 14px;
}

/* Just the number — no pill behind it. */
.site-header .btn__count {
	margin-left: 2px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
	background: none;
}
