/* ==========================================================================
   BrandShelf — header, navigation, footer
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgb(11 11 14 / 0.72);
	backdrop-filter: saturate(160%) blur(18px);
	-webkit-backdrop-filter: saturate(160%) blur(18px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
		transform 0.4s var(--ease);
}

.site-header.is-stuck {
	border-bottom-color: var(--line-soft);
	background: rgb(11 11 14 / 0.9);
}

.site-header.is-hidden {
	transform: translateY(-101%);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	min-height: 74px;
}

/* --------------------------------------------------------- logo */

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--fg);
	flex: none;
}

.brand__mark {
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 8px;
	background: var(--accent);
	display: grid;
	place-items: center;
	overflow: hidden;
	transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark {
	transform: rotate(-8deg) scale(1.06);
}

.brand__mark svg {
	width: 18px;
	height: 18px;
}

.brand__name {
	font-family: var(--font-display);
	font-size: 1.4rem;
	letter-spacing: -0.02em;
	line-height: 1;
}

.brand__name em {
	font-style: italic;
	color: var(--accent);
}

.brand img {
	max-height: 40px;
	width: auto;
}

/* --------------------------------------------------------- primary nav */

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

.nav-primary ul {
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 1.6vw, 1.6rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-primary li {
	position: relative;
}

.nav-primary a {
	display: block;
	padding: 0.5rem 0.25rem;
	font-size: var(--fs-sm);
	color: var(--fg-dim);
	text-decoration: none;
	transition: color 0.25s var(--ease);
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a,
.nav-primary .current-menu-ancestor > a {
	color: var(--fg);
}

/* dropdown */
.nav-primary .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 50%;
	translate: -50% 0;
	min-width: 220px;
	padding: 0.5rem;
	display: block;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav-primary .sub-menu a {
	padding: 0.55rem 0.75rem;
	border-radius: var(--r-sm);
}

.nav-primary .sub-menu a:hover {
	background: rgb(246 243 238 / 0.06);
}

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

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: none;
	margin-left: auto;
}

.icon-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--fg-dim);
	cursor: pointer;
	text-decoration: none;
	transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.icon-btn:hover {
	color: var(--fg);
	background: rgb(246 243 238 / 0.07);
	border-color: var(--line);
}

.icon-btn svg {
	width: 19px;
	height: 19px;
}

.cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	line-height: 1;
	transform: scale(0);
	transition: transform 0.35s var(--ease);
}

.cart-count.is-visible {
	transform: scale(1);
}

.nav-toggle {
	display: none;
}

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

	.nav-toggle {
		display: grid;
	}

	.header-actions .btn {
		display: none;
	}
}

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

.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--ink);
	padding: 0 var(--gutter) var(--gutter);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-nav.is-open {
	opacity: 1;
	visibility: visible;
}

.mobile-nav__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
}

.mobile-nav__body {
	overflow-y: auto;
	padding-block: 2rem;
}

.mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav > .mobile-nav__body > ul > li {
	border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a {
	display: block;
	padding: 0.9rem 0;
	font-family: var(--font-display);
	font-size: 1.9rem;
	line-height: 1.15;
	text-decoration: none;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s var(--ease);
}

.mobile-nav.is-open a {
	opacity: 1;
	transform: none;
}

.mobile-nav a:hover {
	color: var(--accent);
}

.mobile-nav .sub-menu a {
	font-family: var(--font-sans);
	font-size: 1rem;
	color: var(--fg-dim);
	padding: 0.4rem 0 0.4rem 1rem;
}

.mobile-nav__foot {
	display: grid;
	gap: 0.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-soft);
}

.mobile-nav__foot .btn {
	width: 100%;
}

/* --------------------------------------------------------- announcement bar */

.announce {
	position: relative;
	z-index: 101;
	background: var(--lime);
	color: #14140a;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	overflow: hidden;
}

.announce__track {
	display: flex;
	width: max-content;
	gap: 3rem;
	padding-block: 0.6rem;
	animation: bs-marquee 38s linear infinite;
}

.announce__track span {
	display: inline-flex;
	align-items: center;
	gap: 3rem;
	white-space: nowrap;
}

.announce:hover .announce__track {
	animation-play-state: paused;
}

@keyframes bs-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* --------------------------------------------------------- footer */

.site-footer {
	position: relative;
	background: var(--ink-1);
	border-top: 1px solid var(--line-soft);
	padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
}

.footer-top {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 900px) {
	.footer-top {
		grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
	}
}

.footer-brand p {
	max-width: 34ch;
	color: var(--fg-dim);
	font-size: var(--fs-sm);
	margin-top: 1.1rem;
}

.footer-col h3 {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-mute);
	margin-bottom: 1.15rem;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.footer-col a {
	font-size: var(--fs-sm);
	color: var(--fg-dim);
	text-decoration: none;
	transition: color 0.25s var(--ease);
}

.footer-col a:hover {
	color: var(--fg);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	font-size: var(--fs-xs);
	color: var(--fg-mute);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-legal a {
	color: inherit;
	text-decoration: none;
}

.footer-legal a:hover {
	color: var(--fg-dim);
}

.pay-marks {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	opacity: 0.55;
}

.pay-marks svg {
	height: 20px;
	width: auto;
}

/* --------------------------------------------------------- newsletter */

.newsletter {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
	max-width: 420px;
}

.newsletter input {
	flex: 1;
	border-radius: var(--r-pill);
	padding-inline: 1.15rem;
}

.newsletter .btn {
	flex: none;
}

/* --------------------------------------------------------- page hero (inner pages) */

.page-hero {
	padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--line-soft);
	position: relative;
	overflow: hidden;
}

.page-hero::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 46vw;
	height: 46vw;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(255 77 45 / 0.16), transparent 68%);
	pointer-events: none;
}

.page-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1.25rem;
	max-width: 820px;
}

.breadcrumbs {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-mute);
}

.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--fg-dim);
}

.breadcrumbs .sep {
	margin-inline: 0.5rem;
	opacity: 0.5;
}
