/* Bad Access Club header — all selectors are component-scoped. */
.bac-header {
	--bac-black: #080808;
	--bac-black-soft: #111111;
	--bac-white: #ffffff;
	--bac-red: #ed1c24;
	--bac-red-dark: #bd0f20;
	--bac-header-height: 86px;
	--bac-viewport-width: 100vw;
	position: relative;
	left: auto;
	z-index: 9990;
	width: var(--bac-viewport-width);
	max-width: var(--bac-viewport-width);
	margin-right: calc(50% - (var(--bac-viewport-width) / 2));
	margin-left: calc(50% - (var(--bac-viewport-width) / 2));
	background: var(--bac-black);
	color: var(--bac-white);
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.2;
	box-sizing: border-box;
}

.bac-header *,
.bac-header *::before,
.bac-header *::after { box-sizing: border-box; }

.bac-header--sticky { position: sticky; top: 0; }
.admin-bar .bac-header--sticky { top: 32px; }
.bac-header--sticky.bac-header--scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.bac-header--sticky.bac-header--scrolled .bac-header__bar { height: 74px; }
.bac-header--sticky.bac-header--scrolled .bac-header__brand .custom-logo { max-height: 46px; }

.bac-header--transparent {
	background: rgba(8, 8, 8, .88);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
}

.bac-header__bar {
	display: grid;
	grid-template-columns: minmax(105px, 160px) minmax(max-content, 1fr) max-content;
	align-items: center;
	column-gap: clamp(20px, 2.5vw, 40px);
	width: calc(100% - clamp(32px, 6vw, 96px));
	max-width: 1440px;
	height: var(--bac-header-height);
	margin: 0 auto;
	padding: 0;
}

.bac-header__brand { min-width: 0; max-width: 160px; justify-self: start; overflow: hidden; }
.bac-header__brand .custom-logo-link { display: inline-flex; align-items: center; }
.bac-header__brand .custom-logo { display: block; width: auto; max-width: min(120px, 100%); max-height: 54px; object-fit: contain; transition: max-height 160ms ease; }
.bac-header__site-name {
	color: var(--bac-white) !important;
	font-size: clamp(18px, 1.5vw, 24px);
	font-weight: 900;
	letter-spacing: .08em;
	text-decoration: none !important;
	text-transform: uppercase;
	white-space: nowrap;
}

.bac-header__desktop-nav { min-width: 0; justify-self: center; }
.bac-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.5vw, 22px); min-width: max-content; justify-self: end; }
.bac-header__desktop-cta { min-width: max-content; }
.bac-header__menu,
.bac-header__cta-menu,
.bac-header__mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bac-header__menu { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 1.8vw, 32px); flex-wrap: nowrap; }
.bac-header__menu > li { position: relative; margin: 0; padding: 0; }
.bac-header__menu > li > a {
	position: relative;
	display: block;
	padding: 13px 0;
	color: var(--bac-white) !important;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: .12em;
	text-decoration: none !important;
	text-transform: uppercase;
	white-space: nowrap;
}

.bac-header__menu > li > a::after {
	position: absolute;
	right: 0;
	bottom: 5px;
	left: 0;
	height: 2px;
	background: var(--bac-red);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 180ms ease;
}

.bac-header__menu > li > a:hover::after,
.bac-header__menu > li.current-menu-item > a::after,
.bac-header__menu > li > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.bac-header__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 12px;
	background: var(--bac-black-soft);
	box-shadow: 0 20px 50px rgba(0,0,0,.35);
	list-style: none;
}
.bac-header__menu li:hover > .sub-menu,
.bac-header__menu li:focus-within > .sub-menu { display: block; }
.bac-header__menu .sub-menu a { display: block; padding: 11px 12px; color: var(--bac-white) !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none !important; text-transform: uppercase; }
.bac-header__menu .sub-menu a:hover { color: var(--bac-red) !important; }

.bac-header__cta-menu { display: flex; gap: 10px; }
.bac-header__cta-menu li { margin: 0; padding: 0; }
.bac-header__cta-menu a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 28px 12px 22px;
	border: 2px solid var(--bac-red);
	background: var(--bac-red);
	color: var(--bac-white) !important;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .13em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
	clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}
.bac-header__cta-menu a::after { margin-left: 10px; content: "\2192"; font-size: 16px; line-height: 1; transition: transform 160ms ease; }
.bac-header__cta-menu a:hover { border-color: var(--bac-red-dark); background: var(--bac-red-dark); transform: translateY(-2px); }
.bac-header__cta-menu a:hover::after { transform: translateX(3px); }

.bac-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--bac-white) !important;
	text-decoration: none !important;
	transition: color 160ms ease, transform 160ms ease;
}
.bac-header__cart:hover { color: var(--bac-red) !important; transform: translateY(-1px); }
.bac-header__cart-count {
	position: absolute;
	top: 1px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border: 2px solid var(--bac-black);
	border-radius: 999px;
	background: var(--bac-red);
	color: var(--bac-white);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}
.bac-header__cart-count[hidden] { display: none; }

.bac-header a:focus-visible,
.bac-header button:focus-visible {
	outline: 3px solid var(--bac-white);
	outline-offset: 4px;
}

.bac-header__toggle { display: none; }
.bac-header__overlay[hidden] { display: none; }
.bac-header__overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(22px, 5vw, 48px);
	overflow-y: auto;
	background: var(--bac-black);
	color: var(--bac-white);
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 200ms ease, transform 200ms ease;
}
.bac-header__overlay.is-open { opacity: 1; transform: translateY(0); }
.bac-header__overlay-top { display: flex; align-items: center; justify-content: space-between; }
.bac-header__overlay-title { color: var(--bac-white); font-size: 14px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.bac-header__close {
	position: relative;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255,255,255,.24);
	background: transparent;
	color: var(--bac-white);
	cursor: pointer;
}
.bac-header__close span { position: absolute; top: 24px; left: 13px; width: 25px; height: 2px; background: currentColor; transform: rotate(45deg); }
.bac-header__close span:last-child { transform: rotate(-45deg); }
.bac-header__overlay-content { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: center; width: min(100%, 720px); padding: 54px 0; }
.bac-header__mobile-menu > li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.bac-header__mobile-menu > li > a { display: block; padding: clamp(12px, 2.3vh, 24px) 0; color: var(--bac-white) !important; font-size: clamp(28px, 7vw, 58px); font-weight: 900; letter-spacing: -.025em; line-height: .98; text-decoration: none !important; text-transform: uppercase; transition: color 150ms ease, padding-left 150ms ease; }
.bac-header__mobile-menu > li > a:hover { padding-left: 10px; color: var(--bac-red) !important; }
.bac-header__mobile-menu .sub-menu { margin: 0 0 14px; padding: 0 0 0 18px; list-style: none; }
.bac-header__mobile-menu .sub-menu a { display: block; padding: 8px 0; color: #d5d5d5 !important; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-decoration: none !important; text-transform: uppercase; }
.bac-header__mobile-cta { margin-top: clamp(28px, 5vh, 48px); }
.bac-header__mobile-cta .bac-header__cta-menu a { min-height: 54px; padding: 15px 28px; font-size: 14px; }
.bac-header__overlay-mark { position: fixed; right: -3vw; bottom: -5vw; color: transparent; font-size: clamp(130px, 35vw, 430px); font-weight: 950; letter-spacing: -.1em; line-height: .7; pointer-events: none; -webkit-text-stroke: 1px rgba(226,27,45,.2); }
body.bac-menu-is-open { overflow: hidden; }

.bac-header.bac-header--mobile .bac-header__bar { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; width: calc(100% - 40px); height: 74px; padding: 0; }
.bac-header.bac-header--mobile .bac-header__desktop-nav,
.bac-header.bac-header--mobile .bac-header__desktop-cta { display: none; }
.bac-header.bac-header--mobile .bac-header__brand .custom-logo { max-width: 120px; max-height: 46px; }
.bac-header.bac-header--mobile .bac-header__actions { gap: 8px; min-width: 0; }
.bac-header.bac-header--mobile .bac-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 48px;
	height: 48px;
	padding: 11px;
	border: 1px solid rgba(255,255,255,.22);
	background: transparent;
	color: var(--bac-white);
	cursor: pointer;
}
.bac-header__toggle span { display: block; width: 100%; height: 2px; background: currentColor; }
.bac-header__toggle span:nth-child(2) { width: 70%; margin-left: auto; background: var(--bac-red); }

@media (max-width: 782px) { .admin-bar .bac-header--sticky { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	.bac-header *, .bac-header *::before, .bac-header *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
