/* ==========================================================================
   Beebah — base layer
   Tokens are injected as custom properties from inc/tokens.php.
   Everything here is written against those variables, never literal values.
   ========================================================================== */

/* --- Reset Hello Elementor's softer defaults -------------------------- */

:where(button, input, select, textarea, .bb-button, .elementor-button) {
	border-radius: var(--bb-layout-radius);
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

/* --- Document ---------------------------------------------------------- */

body {
	background: var(--bb-paper);
	color: var(--bb-color-ink-soft);
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	color: var(--bb-ink);
	font-family: var(--bb-font-sans);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0;
}

h1 { font-size: var(--bb-size-h1); }
h2 { font-size: var(--bb-size-h2); }
h3 { font-size: var(--bb-size-h3); }

p { margin: 0 0 var(--bb-space-sm); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* --- Section grounds ---------------------------------------------------- */

.bb-section {
	position: relative;
	padding-block: var(--bb-space-2xl);
	padding-inline: var(--bb-space-gut);
}

.bb-ground--paper { background: var(--bb-color-paper); }
.bb-ground--warm  { background: var(--bb-color-paper-warm); }
.bb-ground--none  { background: transparent; }

.bb-ground--ink {
	background: var(--bb-color-ink);
	color: rgba(247, 247, 246, 0.82);
}

.bb-ground--ink h1,
.bb-ground--ink h2,
.bb-ground--ink h3 { color: var(--bb-color-paper); }

/* Cyan is only legible as text on the dark ground. */
.bb-ground--ink .bb-eyebrow,
.bb-ground--ink .bb-link { color: var(--bb-cyan); }

/* --- Editorial primitives ---------------------------------------------- */

.bb-eyebrow {
	margin: 0 0 var(--bb-space-sm);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bb-color-quiet);
}

.bb-display {
	font-size: var(--bb-size-display);
	font-weight: 300;
	line-height: 0.94;
	letter-spacing: -0.02em;
}

/* Serif italic, used sparingly for a single editorial line. */
.bb-serif {
	font-family: var(--bb-font-display);
	font-style: italic;
	font-weight: 300;
	letter-spacing: 0;
}

.bb-measure { max-width: var(--bb-layout-max-text); }

.bb-rule {
	border: 0;
	border-top: var(--bb-layout-rule-width) solid var(--bb-color-rule);
	margin: 0;
}

.bb-ground--ink .bb-rule { border-top-color: var(--bb-color-rule-dark); }

/* --- Controls ----------------------------------------------------------- */

.bb-button {
	display: inline-block;
	padding: 0.9em 2.2em;
	border: 1px solid var(--bb-ink);
	background: var(--bb-ink);
	color: var(--bb-color-paper);
	font-size: var(--bb-size-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background var(--bb-motion-base) var(--bb-motion-ease),
	            color var(--bb-motion-base) var(--bb-motion-ease);
}

.bb-button:hover,
.bb-button:focus-visible {
	background: transparent;
	color: var(--bb-ink);
}

.bb-ground--ink .bb-button {
	border-color: var(--bb-cyan);
	background: var(--bb-cyan);
	color: var(--bb-ink);
}

.bb-ground--ink .bb-button:hover,
.bb-ground--ink .bb-button:focus-visible {
	background: transparent;
	color: var(--bb-cyan);
}

.bb-link {
	display: inline-block;
	color: var(--bb-cyan-deep);
	font-size: var(--bb-size-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.2em;
}

/* Visible focus everywhere — the square aesthetic must not cost keyboard users. */
:focus-visible {
	outline: 2px solid var(--bb-cyan-deep);
	outline-offset: 3px;
}

.bb-ground--ink :focus-visible { outline-color: var(--bb-cyan); }

/* --- Media -------------------------------------------------------------- */

.bb-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bb-image-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: repeating-linear-gradient(
		45deg,
		var(--bb-color-paper-warm) 0 12px,
		var(--bb-color-paper) 12px 24px
	);
	border: 1px dashed var(--bb-color-rule);
	color: var(--bb-color-quiet);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* --- Motion preference --------------------------------------------------- */

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

/* ==========================================================================
   Sections
   One block per widget, in homepage order.
   ========================================================================== */

/* Full-bleed helper. Elementor containers are padded; these sections are not.
   Place Cover, Spread and Statement in a full-width container with no
   padding, or this breaks them out of a constrained one. */
.bb-cover,
.bb-spread,
.bb-statement {
	position: relative;
	display: grid;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
}

.bb-cover > .bb-image,
.bb-cover > .bb-image-placeholder,
.bb-spread > .bb-image,
.bb-spread > .bb-image-placeholder,
.bb-statement > .bb-image,
.bb-statement > .bb-image-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.bb-cover__shade,
.bb-spread__shade,
.bb-statement__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* The widget's Shade control writes the background colour here. */
}

/* --- 1. Cover ------------------------------------------------------------ */

.bb-cover__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: var(--bb-space-sm);
	padding: var(--bb-space-xl) var(--bb-space-gut);
	color: var(--bb-color-paper);
}

.bb-cover__title {
	color: var(--bb-color-paper);
	text-transform: uppercase;
}

.bb-cover .bb-eyebrow { color: var(--bb-cyan); }

.bb-cover__subline {
	font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
	color: rgba(247, 247, 246, 0.9);
}

.bb-cover__content .bb-button { margin-top: var(--bb-space-md); }

/* Portrait crop swap. */
.bb-cover__media--portrait { display: none; }

@media (max-width: 767px) {
	.bb-cover--has-portrait .bb-cover__media--wide { display: none; }
	.bb-cover--has-portrait .bb-cover__media--portrait { display: block; }
}

/* --- 2. Story ------------------------------------------------------------ */

.bb-story {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	gap: 0;
	padding: 0;
}

.bb-story__media {
	min-height: clamp(20rem, 46vw, 38rem);
}

.bb-story__media > .bb-image,
.bb-story__media > .bb-image-placeholder {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.bb-story__content {
	display: grid;
	align-content: center;
	padding: var(--bb-space-2xl) var(--bb-space-gut);
}

.bb-story--right .bb-story__media { order: 2; }

.bb-story__text {
	font-size: clamp(1.125rem, 0.95rem + 0.9vw, 1.625rem);
	line-height: 1.4;
	margin-bottom: var(--bb-space-lg);
}

@media (max-width: 767px) {
	.bb-story { grid-template-columns: 1fr; }
	.bb-story--right .bb-story__media { order: 0; }
	.bb-story__media { min-height: 68vw; }
}

/* --- 3/5/7/9. Product row ------------------------------------------------ */

.bb-row__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--bb-space-md);
	padding-bottom: var(--bb-space-md);
	margin-bottom: var(--bb-space-lg);
	border-bottom: 1px solid var(--bb-color-rule);
}

.bb-row__title {
	font-size: var(--bb-size-h2);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.bb-row__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--bb-space-md);
}

/* --- Product card -------------------------------------------------------- */

/* The frame is the positioned box; the link and the quick-view button are
   siblings inside it, so the button is not trapped in an aria-hidden link. */
.bb-card__frame {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--bb-color-paper-warm);
}

.bb-card__media {
	position: absolute;
	inset: 0;
	display: block;
}

.bb-card__media .bb-image,
.bb-card__frame .bb-image {
	position: absolute;
	inset: 0;
}

.bb-card__back {
	opacity: 0;
	transition: opacity var(--bb-motion-slow) var(--bb-motion-ease);
}

.bb-card:hover .bb-card__back,
.bb-card:focus-within .bb-card__back {
	opacity: 1;
}

.bb-card__quick {
	position: absolute;
	inset-inline: var(--bb-space-2xs);
	bottom: var(--bb-space-2xs);
	z-index: 2;
	padding: 0.75em 1em;
	background: var(--bb-color-paper);
	color: var(--bb-ink);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity var(--bb-motion-base) var(--bb-motion-ease),
	            transform var(--bb-motion-base) var(--bb-motion-ease);
}

.bb-card:hover .bb-card__quick,
.bb-card:focus-within .bb-card__quick {
	opacity: 1;
	transform: translateY(0);
}

.bb-card__meta {
	padding-top: var(--bb-space-xs);
	display: grid;
	gap: var(--bb-space-3xs);
}

.bb-card__title {
	font-size: var(--bb-size-small);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-card__title a { text-decoration: none; }
.bb-card__title a:hover { text-decoration: underline; }

.bb-card__price {
	margin: 0;
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-small);
	color: var(--bb-color-quiet);
}

.bb-card__price del { opacity: 0.6; }
.bb-card__price ins { text-decoration: none; color: var(--bb-cyan-deep); }

/* --- 4. Pair -------------------------------------------------------------- */

.bb-pair__label {
	text-align: center;
	margin-bottom: var(--bb-space-lg);
}

.bb-pair__photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--bb-space-md);
}

.bb-pair__photos > .bb-image,
.bb-pair__photos > .bb-image-placeholder {
	aspect-ratio: 3 / 4;
}

@media (max-width: 599px) {
	.bb-pair__photos { grid-template-columns: 1fr; }
}

/* --- 6. Spread ------------------------------------------------------------ */

.bb-spread__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: var(--bb-space-md);
	padding: var(--bb-space-xl) var(--bb-space-gut);
}

.bb-spread__caption {
	font-size: clamp(1.25rem, 1rem + 1.2vw, 2.25rem);
	color: var(--bb-color-paper);
	max-width: 18ch;
}

.bb-spread__product {
	display: inline-grid;
	gap: var(--bb-space-3xs);
	padding: var(--bb-space-sm) var(--bb-space-md);
	background: rgba(18, 20, 20, 0.7);
	backdrop-filter: blur(6px);
	border: 1px solid var(--bb-color-rule-dark);
	text-decoration: none;
}

.bb-spread__product-name {
	color: var(--bb-color-paper);
	font-size: var(--bb-size-small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bb-spread__product-price {
	color: var(--bb-cyan);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-small);
}

/* --- 8. Statement --------------------------------------------------------- */

.bb-statement__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--bb-space-lg);
	padding: var(--bb-space-xl) var(--bb-space-gut);
	text-align: center;
}

.bb-statement__text {
	max-width: 22ch;
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem);
	line-height: 1.12;
	color: var(--bb-color-paper);
}

/* --- 10. Also from -------------------------------------------------------- */

.bb-also__grid {
	display: grid;
	grid-template-columns: repeat(var(--bb-also-count, 2), minmax(0, 1fr));
	gap: var(--bb-space-md);
}

.bb-also__card {
	display: grid;
	gap: var(--bb-space-sm);
	text-decoration: none;
}

.bb-also__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bb-color-paper-warm);
}

.bb-also__media .bb-image {
	transition: transform var(--bb-motion-slow) var(--bb-motion-ease);
}

.bb-also__card:hover .bb-also__media .bb-image,
.bb-also__card:focus-visible .bb-also__media .bb-image {
	transform: scale(1.03);
}

.bb-also__meta { display: grid; gap: var(--bb-space-3xs); }

.bb-also__title {
	font-size: var(--bb-size-h3);
	color: var(--bb-ink);
}

.bb-also__sub {
	font-size: var(--bb-size-small);
	color: var(--bb-color-quiet);
}

.bb-also__cta { margin-top: var(--bb-space-2xs); justify-self: start; }

@media (max-width: 599px) {
	.bb-also__grid { grid-template-columns: 1fr; }
}

/* --- Editor-only notices --------------------------------------------------- */

.bb-notice {
	padding: var(--bb-space-md);
	border: 1px dashed var(--bb-color-rule);
	background: var(--bb-color-paper-warm);
	color: var(--bb-color-quiet);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-small);
	text-align: center;
}

/* A placeholder standing in for a missing image must fill the frame its
   real image would have filled, not add its own height on top of it. */
.bb-card__frame .bb-image-placeholder,
.bb-also__media .bb-image-placeholder,
.bb-story__media > .bb-image-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.bb-story__media { position: relative; }

/* A placeholder on a dark section must stay dark, or white caption text
   sits on light striping and the section cannot be judged at all until
   real photography lands. */
.bb-ground--ink .bb-image-placeholder,
.bb-spread .bb-image-placeholder,
.bb-statement .bb-image-placeholder,
.bb-cover .bb-image-placeholder {
	background: repeating-linear-gradient(
		45deg,
		#1B1E1E 0 12px,
		#131616 12px 24px
	);
	border-color: var(--bb-color-rule-dark);
	color: rgba(247, 247, 246, 0.45);
}

/* ==========================================================================
   Chrome — announcement, header, drawer, search, footer
   ========================================================================== */

:root {
	--bb-header-h: 76px;
}

@media (max-width: 767px) {
	:root { --bb-header-h: 60px; }
}

/* --- Accessibility helpers ------------------------------------------------ */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.bb-skip {
	position: absolute;
	left: -9999px;
	z-index: 200;
	padding: var(--bb-space-xs) var(--bb-space-md);
	background: var(--bb-ink);
	color: var(--bb-color-paper);
	font-size: var(--bb-size-label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.bb-skip:focus {
	left: var(--bb-space-sm);
	top: var(--bb-space-sm);
}

/* --- Announcement --------------------------------------------------------- */

.bb-announce {
	padding: 0.7em var(--bb-space-gut);
	background: var(--bb-ink);
	color: var(--bb-color-paper);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.16em;
	text-align: center;
	text-transform: uppercase;
}

.bb-announce a { color: var(--bb-cyan); text-decoration: none; }
.bb-announce a:hover { text-decoration: underline; }

/* --- Header --------------------------------------------------------------- */

.bb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bb-paper);
	border-bottom: 1px solid var(--bb-color-rule);
	transition: background var(--bb-motion-base) var(--bb-motion-ease),
	            border-color var(--bb-motion-base) var(--bb-motion-ease);
}

.bb-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--bb-space-sm);
	min-height: var(--bb-header-h);
	padding-inline: var(--bb-space-gut);
}

.bb-header__left  { justify-self: start; }
.bb-header__right { justify-self: end; display: flex; align-items: center; gap: var(--bb-space-md); }
.bb-header__brand { justify-self: center; }

/* Wordmark: ink on paper, cyan over a dark cover. */
.bb-brand { display: block; line-height: 0; }

.bb-brand__mark {
	display: block;
	width: auto;
	height: calc(var(--bb-header-h) * 0.46);
}

.bb-brand__mark--cyan { display: none; }

/* --- Transparent over the cover ------------------------------------------- */

.bb-has-cover .bb-main { margin-top: calc(-1 * var(--bb-header-h)); }

.bb-has-cover .bb-header {
	background: transparent;
	border-bottom-color: transparent;
}

.bb-has-cover .bb-header:not(.is-stuck) .bb-brand__mark--ink  { display: none; }
.bb-has-cover .bb-header:not(.is-stuck) .bb-brand__mark--cyan { display: block; }

.bb-has-cover .bb-header:not(.is-stuck) .bb-menu > li > a,
.bb-has-cover .bb-header:not(.is-stuck) .bb-util {
	color: var(--bb-color-paper);
}

.bb-has-cover .bb-header:not(.is-stuck) .bb-burger__bars,
.bb-has-cover .bb-header:not(.is-stuck) .bb-burger__bars::before,
.bb-has-cover .bb-header:not(.is-stuck) .bb-burger__bars::after {
	background: var(--bb-color-paper);
}

.bb-header.is-stuck {
	background: var(--bb-paper);
	border-bottom-color: var(--bb-color-rule);
}

/* --- Navigation ------------------------------------------------------------ */

.bb-menu {
	display: flex;
	gap: var(--bb-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-menu > li > a,
.bb-util {
	display: inline-block;
	padding: 0.4em 0;
	background: none;
	border: 0;
	color: var(--bb-ink);
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-label);
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: color var(--bb-motion-fast) var(--bb-motion-ease);
}

.bb-menu > li > a:hover,
.bb-util:hover { color: var(--bb-cyan-deep); }

.bb-has-cover .bb-header:not(.is-stuck) .bb-menu > li > a:hover,
.bb-has-cover .bb-header:not(.is-stuck) .bb-util:hover { color: var(--bb-cyan); }

.bb-util__count { font-family: var(--bb-font-mono); margin-left: 0.25em; }

.bb-menu--stack { flex-direction: column; gap: var(--bb-space-2xs); }
.bb-menu--quiet > li > a { color: var(--bb-color-quiet); }

/* --- Second level: a full-width panel under the header ------------------- */

/* The items are static so the panel resolves against .bb-header, which is
   sticky and therefore a containing block, rather than against the narrow
   list item it belongs to. */
.bb-nav--primary .bb-menu > li { position: static; }

.bb-nav--primary .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, max-content));
	gap: var(--bb-space-sm) var(--bb-space-2xl);
	width: 100%;
	margin: 0;
	padding: var(--bb-space-xl) var(--bb-space-gut);
	background: var(--bb-color-paper);
	border-top: 1px solid var(--bb-color-rule);
	border-bottom: 1px solid var(--bb-color-rule);
	list-style: none;

	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.5rem);
	pointer-events: none;
	transition: opacity var(--bb-motion-base) var(--bb-motion-ease),
	            transform var(--bb-motion-base) var(--bb-motion-ease),
	            visibility var(--bb-motion-base);
}

/* Hover and focus-within keep it working with no JavaScript at all;
   .is-open is what the script adds so it can also dim the page and
   solidify a transparent header. */
.bb-nav--primary .bb-menu > li:hover > .sub-menu,
.bb-nav--primary .bb-menu > li:focus-within > .sub-menu,
.bb-nav--primary .bb-menu > li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.bb-nav--primary .sub-menu li a {
	display: block;
	padding: 0.3em 0;
	color: var(--bb-ink);
	font-size: var(--bb-size-h3);
	font-weight: 300;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	transition: color var(--bb-motion-fast) var(--bb-motion-ease);
}

.bb-nav--primary .sub-menu li a:hover,
.bb-nav--primary .sub-menu li a:focus-visible { color: var(--bb-cyan-deep); }

/* A parent whose panel is open stays marked while the pointer is in it. */
.bb-nav--primary .bb-menu > li.is-open > a { color: var(--bb-cyan-deep); }

/* The page behind the panel recedes. */
.bb-navscrim {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgba(10, 12, 12, 0.28);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--bb-motion-base) var(--bb-motion-ease);
}

body.bb-nav-open .bb-navscrim { opacity: 1; }

/* While a panel is open the header is always solid, even over the cover,
   or white nav sits on a paper panel. */
body.bb-nav-open .bb-header,
.bb-has-cover body.bb-nav-open .bb-header {
	background: var(--bb-color-paper);
	border-bottom-color: transparent;
}

body.bb-nav-open .bb-header .bb-brand__mark--ink  { display: block; }
body.bb-nav-open .bb-header .bb-brand__mark--cyan { display: none; }

body.bb-nav-open .bb-header .bb-menu > li > a,
body.bb-nav-open .bb-header .bb-util { color: var(--bb-ink); }

body.bb-nav-open .bb-header .bb-burger__bars,
body.bb-nav-open .bb-header .bb-burger__bars::before,
body.bb-nav-open .bb-header .bb-burger__bars::after { background: var(--bb-ink); }

/* --- Burger ---------------------------------------------------------------- */

.bb-burger {
	display: none;
	width: 28px;
	height: 28px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.bb-burger__bars,
.bb-burger__bars::before,
.bb-burger__bars::after {
	display: block;
	width: 22px;
	height: 1px;
	background: var(--bb-ink);
	content: '';
	transition: background var(--bb-motion-fast) var(--bb-motion-ease);
}

.bb-burger__bars { position: relative; margin: 0 auto; }
.bb-burger__bars::before { position: absolute; top: -7px; }
.bb-burger__bars::after  { position: absolute; top: 7px; }

@media (max-width: 1023px) {
	.bb-burger { display: block; }
	.bb-nav--primary { display: none; }
	.bb-util--account { display: none; }
}

/* --- Drawer and search overlay --------------------------------------------- */

.bb-drawer,
.bb-search {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.bb-drawer[hidden],
.bb-search[hidden] { display: none; }

.bb-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 12, 0.5);
}

.bb-drawer__panel {
	position: relative;
	z-index: 1;
	width: min(84vw, 360px);
	height: 100%;
	padding: var(--bb-space-xl) var(--bb-space-lg);
	background: var(--bb-paper);
	overflow-y: auto;
}

.bb-drawer__close,
.bb-search__close {
	position: absolute;
	top: var(--bb-space-sm);
	right: var(--bb-space-sm);
	width: 40px;
	height: 40px;
	background: none;
	border: 0;
	color: inherit;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.bb-drawer__nav { display: grid; gap: var(--bb-space-lg); margin-top: var(--bb-space-lg); }
.bb-drawer__nav .bb-menu > li > a { font-size: var(--bb-size-h3); letter-spacing: 0.06em; }

.bb-search__panel {
	position: relative;
	display: grid;
	place-content: center;
	height: 100%;
	padding: var(--bb-space-gut);
	background: var(--bb-paper);
}

.bb-search__form {
	display: grid;
	gap: var(--bb-space-md);
	width: min(92vw, 40rem);
}

.bb-search__field {
	width: 100%;
	padding: var(--bb-space-sm) 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--bb-color-rule);
	color: var(--bb-ink);
	font-family: var(--bb-font-sans);
	font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	font-weight: 300;
}

.bb-search__field:focus { outline: none; border-bottom-color: var(--bb-cyan-deep); }
.bb-search__submit { justify-self: start; }

body.bb-locked { overflow: hidden; }

/* --- Footer ----------------------------------------------------------------- */

.bb-footer {
	padding: var(--bb-space-2xl) var(--bb-space-gut) var(--bb-space-lg);
	background: var(--bb-color-paper-warm);
	border-top: 1px solid var(--bb-color-rule);
}

.bb-footer__signup {
	padding-bottom: var(--bb-space-xl);
	margin-bottom: var(--bb-space-xl);
	border-bottom: 1px solid var(--bb-color-rule);
}

.bb-signup { display: grid; gap: var(--bb-space-sm); max-width: 34rem; }

.bb-signup__label {
	font-size: var(--bb-size-h3);
	font-weight: 300;
	color: var(--bb-ink);
}

.bb-signup__row { display: flex; gap: var(--bb-space-2xs); }

.bb-signup__field {
	flex: 1;
	padding: 0.9em var(--bb-space-sm);
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	color: var(--bb-ink);
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-small);
}

.bb-footer__columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--bb-space-lg);
}

.bb-footer__col .bb-menu > li > a,
.bb-footer__line a,
.bb-footer__address {
	font-size: var(--bb-size-small);
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--bb-color-ink-soft);
}

.bb-footer__address { font-style: normal; line-height: 1.7; margin: 0 0 var(--bb-space-2xs); }
.bb-footer__line { margin: 0 0 var(--bb-space-3xs); font-size: var(--bb-size-small); }

.bb-footer__base {
	margin-top: var(--bb-space-xl);
	padding-top: var(--bb-space-md);
	border-top: 1px solid var(--bb-color-rule);
}

.bb-footer__copy {
	margin: 0;
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.12em;
	color: var(--bb-color-quiet);
	text-transform: uppercase;
}

@media (max-width: 899px) {
	.bb-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
	.bb-footer__columns { grid-template-columns: 1fr; }
	.bb-signup__row { flex-direction: column; }
}

/* --- Undoing Hello Elementor ---------------------------------------------- */

/* Hello's reset gives every bare <button> a #c36 border and fills it pink on
   hover or focus. Nothing in Beebah is pink; these are icon buttons. */
.bb-burger,
.bb-drawer__close,
.bb-search__close,
.bb-util--search {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	color: inherit;
}

.bb-burger:hover,
.bb-burger:focus,
.bb-drawer__close:hover,
.bb-drawer__close:focus,
.bb-search__close:hover,
.bb-search__close:focus,
.bb-util--search:hover,
.bb-util--search:focus {
	background-color: transparent;
	text-decoration: none;
}

/* --- Drawer submenus ------------------------------------------------------- */

/* Inside the drawer a second level stacks under its parent; the hovering
   dropdown of the desktop header has nothing to hover on a phone. */
.bb-drawer .bb-menu .sub-menu {
	display: block;
	position: static;
	padding: var(--bb-space-2xs) 0 0 var(--bb-space-sm);
}

.bb-drawer .bb-menu .sub-menu li a {
	padding: 0.35em 0;
	background: none;
	border: 0;
	color: var(--bb-color-quiet);
	font-size: var(--bb-size-small);
}

.bb-drawer .bb-menu > li { margin-bottom: var(--bb-space-xs); }

/* Hello styles inputs by attribute selector, which outranks a bare class.
   Match its specificity so the search field keeps its single rule. */
input[type="search"].bb-search__field {
	padding-inline: 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--bb-color-rule);
	border-radius: 0;
}

input[type="search"].bb-search__field:focus {
	border-bottom-color: var(--bb-cyan-deep);
	box-shadow: none;
}

input[type="email"].bb-signup__field {
	border-radius: 0;
}

/* ==========================================================================
   WooCommerce
   The archive reuses .bb-card, so most of this is layout around it plus
   taming Woo's and Hello's own defaults.
   ========================================================================== */

.bb-shop { max-width: var(--bb-layout-max); margin-inline: auto; }

.bb-shop__head {
	padding-bottom: var(--bb-space-md);
	margin-bottom: var(--bb-space-lg);
	border-bottom: 1px solid var(--bb-color-rule);
}

.bb-shop__title {
	margin: 0;
	font-size: var(--bb-size-h1);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.bb-shop__intro { margin-top: var(--bb-space-sm); color: var(--bb-color-quiet); }

/* --- Archive grid ---------------------------------------------------------- */

.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--bb-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.products::before,
ul.products::after { content: none; }

ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

/* These must carry the same compound selector as the rule above, or
   `.woocommerce ul.products` outranks them and the grid never responds. */
@media (max-width: 1023px) {
	.woocommerce ul.products,
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.woocommerce ul.products,
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Stock and sale flag on the card. */
.bb-card__flag {
	position: absolute;
	top: var(--bb-space-2xs);
	left: var(--bb-space-2xs);
	z-index: 2;
	padding: 0.4em 0.8em;
	background: var(--bb-ink);
	color: var(--bb-color-paper);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --- Result count and ordering ---------------------------------------------- */

.woocommerce-result-count,
.woocommerce-ordering {
	display: inline-block;
	margin-bottom: var(--bb-space-md);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.1em;
	color: var(--bb-color-quiet);
	text-transform: uppercase;
}

.woocommerce-ordering { float: right; }

.woocommerce-ordering select {
	padding: 0.5em 2em 0.5em 0.6em;
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	text-transform: uppercase;
}

/* --- Pagination -------------------------------------------------------------- */

.woocommerce-pagination {
	margin-top: var(--bb-space-xl);
	padding-top: var(--bb-space-md);
	border-top: 1px solid var(--bb-color-rule);
}

.woocommerce-pagination ul {
	display: flex;
	gap: var(--bb-space-2xs);
	margin: 0;
	padding: 0;
	border: 0 !important;
	list-style: none;
}

.woocommerce-pagination ul li { border: 0 !important; }

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.6em;
	border: 1px solid var(--bb-color-rule);
	background: none;
	color: var(--bb-ink);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-small);
	text-decoration: none;
}

.woocommerce-pagination span.page-numbers.current {
	background: var(--bb-ink);
	border-color: var(--bb-ink);
	color: var(--bb-color-paper);
}

/* --- Buttons ------------------------------------------------------------------ */

/* Woo and Hello both ship their own button colours; neither is Beebah's. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	padding: 0.9em 2.2em;
	background: var(--bb-ink);
	border: 1px solid var(--bb-ink);
	border-radius: 0;
	color: var(--bb-color-paper);
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-label);
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background var(--bb-motion-base) var(--bb-motion-ease),
	            color var(--bb-motion-base) var(--bb-motion-ease);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover {
	background: transparent;
	color: var(--bb-ink);
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled {
	background: var(--bb-color-rule);
	border-color: transparent;
	color: var(--bb-color-quiet);
}

/* --- Single product ------------------------------------------------------------ */

.bb-shop--single div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: var(--bb-space-2xl);
	align-items: start;
}

.bb-shop--single div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; }
.bb-shop--single div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; position: sticky; top: calc(var(--bb-header-h) + var(--bb-space-md)); }

.bb-shop--single .product_title {
	margin: 0 0 var(--bb-space-sm);
	font-size: var(--bb-size-h1);
	font-weight: 300;
	text-transform: uppercase;
}

.bb-shop--single .summary .price {
	display: block;
	margin-bottom: var(--bb-space-md);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-h3);
	color: var(--bb-ink);
}

.bb-shop--single .summary .price del { opacity: 0.5; margin-right: 0.5em; }
.bb-shop--single .summary .price ins { text-decoration: none; color: var(--bb-cyan-deep); }

.bb-shop--single .woocommerce-product-details__short-description {
	margin-bottom: var(--bb-space-lg);
	color: var(--bb-color-ink-soft);
}

.bb-shop--single form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bb-space-2xs);
	margin-bottom: var(--bb-space-lg) !important;
}

.bb-shop--single form.cart .button { flex: 1; min-width: 12rem; }

.quantity input.qty {
	width: 4.5rem;
	height: 100%;
	min-height: 3rem;
	padding: 0.5em;
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
	font-family: var(--bb-font-mono);
	text-align: center;
}

.product_meta {
	padding-top: var(--bb-space-md);
	border-top: 1px solid var(--bb-color-rule);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.08em;
	color: var(--bb-color-quiet);
	text-transform: uppercase;
}

.product_meta > span { display: block; margin-bottom: var(--bb-space-3xs); }

/* Gallery */
.woocommerce-product-gallery__image img { width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--bb-space-2xs);
	margin-top: var(--bb-space-2xs);
	padding: 0;
	list-style: none;
}

/* Tabs */
.woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: var(--bb-space-xl);
	padding-top: var(--bb-space-lg);
	border-top: 1px solid var(--bb-color-rule);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	gap: var(--bb-space-lg);
	margin: 0 0 var(--bb-space-md);
	padding: 0 !important;
	list-style: none;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after { content: none !important; }

.woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { content: none !important; }

.woocommerce-tabs ul.tabs li a {
	padding: 0 0 var(--bb-space-2xs) !important;
	border-bottom: 1px solid transparent;
	color: var(--bb-color-quiet) !important;
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	font-weight: 400 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--bb-ink);
	color: var(--bb-ink) !important;
}

/* Related */
.related.products {
	grid-column: 1 / -1;
	margin-top: var(--bb-space-xl);
	padding-top: var(--bb-space-lg);
	border-top: 1px solid var(--bb-color-rule);
}

.related.products > h2 {
	margin-bottom: var(--bb-space-lg);
	font-size: var(--bb-size-h2);
	text-transform: uppercase;
}

@media (max-width: 899px) {
	.bb-shop--single div.product { grid-template-columns: 1fr; gap: var(--bb-space-lg); }
	.bb-shop--single div.product .summary { position: static; }
}

/* --- Cart ------------------------------------------------------------------------ */

.woocommerce table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: var(--bb-space-sm) var(--bb-space-2xs);
	border: 0;
	border-bottom: 1px solid var(--bb-color-rule);
	text-align: left;
	vertical-align: middle;
}

.woocommerce table.shop_table th {
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	font-weight: 400;
	letter-spacing: 0.12em;
	color: var(--bb-color-quiet);
	text-transform: uppercase;
}

.woocommerce table.shop_table td.product-thumbnail img { width: 72px; height: auto; }

.woocommerce table.shop_table td.product-name a {
	color: var(--bb-ink);
	font-size: var(--bb-size-small);
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce .cart_totals {
	max-width: 26rem;
	margin-left: auto;
	margin-top: var(--bb-space-xl);
}

.woocommerce .cart_totals h2 {
	margin-bottom: var(--bb-space-sm);
	font-size: var(--bb-size-h3);
	text-transform: uppercase;
}

.woocommerce .cart-collaterals .cross-sells { margin-top: var(--bb-space-xl); }

/* --- Checkout and account --------------------------------------------------------- */

.woocommerce-checkout .bb-shop { max-width: 72rem; }

.woocommerce form .form-row { margin-bottom: var(--bb-space-sm); padding: 0; }

.woocommerce form .form-row label {
	display: block;
	margin-bottom: var(--bb-space-3xs);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.1em;
	color: var(--bb-color-quiet);
	text-transform: uppercase;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-container .select2-selection,
.woocommerce form .form-row select {
	width: 100%;
	padding: 0.85em var(--bb-space-sm);
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-small);
	color: var(--bb-ink);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	outline: none;
	border-color: var(--bb-cyan-deep);
}

.woocommerce-checkout h3,
.woocommerce-account h2,
.woocommerce-billing-fields h3 {
	margin-bottom: var(--bb-space-md);
	font-size: var(--bb-size-h3);
	font-weight: 300;
	text-transform: uppercase;
}

.woocommerce-checkout #order_review_heading { margin-top: var(--bb-space-xl); }

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--bb-color-rule);
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--bb-color-rule);
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: var(--bb-space-xs) 0;
	color: var(--bb-color-ink-soft);
	font-size: var(--bb-size-label);
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce-MyAccount-navigation li.is-active a { color: var(--bb-ink); }

/* --- Notices ----------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: var(--bb-space-sm) var(--bb-space-md);
	margin-bottom: var(--bb-space-lg);
	background: var(--bb-color-paper-warm);
	border: 0;
	border-left: 2px solid var(--bb-cyan-deep);
	border-radius: 0;
	color: var(--bb-color-ink-soft);
	font-size: var(--bb-size-small);
	list-style: none;
}

.woocommerce-error { border-left-color: #A3301F; }

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { content: none; }

.woocommerce-message .button,
.woocommerce-info .button { float: right; }

/* --- Empty cart --------------------------------------------------------------------- */

.cart-empty,
.woocommerce-info.cart-empty {
	font-size: var(--bb-size-h3);
	font-weight: 300;
}

/* Hello's reset and woocommerce-layout.css both set `img { height: auto }`
   and load after this file, so the wordmark needs the extra class to win. */
.bb-brand .bb-brand__mark {
	height: calc(var(--bb-header-h) * 0.46);
	width: auto;
}

/* --- Pages Woo renders through the normal page template --------------------- */

/* Cart, checkout and My Account are ordinary pages, so they never fire
   woocommerce_before_main_content and never get .bb-shop. Give their page
   title and measure the same treatment. */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
	margin: 0 0 var(--bb-space-lg);
	padding-bottom: var(--bb-space-md);
	border-bottom: 1px solid var(--bb-color-rule);
	font-size: var(--bb-size-h1);
	font-weight: 300;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.woocommerce-cart :is(.entry-content, .page-content),
.woocommerce-checkout :is(.entry-content, .page-content),
.woocommerce-account :is(.entry-content, .page-content) {
	max-width: var(--bb-layout-max);
	margin-inline: auto;
}

/* --- Orphans left by dequeuing woocommerce-general -------------------------- */

/* The password-visibility toggle is a bare <button>, so Hello's #c36 border
   shows through as an empty pink box next to the field. */
.woocommerce form .password-input,
.woocommerce-page form .password-input {
	position: relative;
	display: block;
}

.woocommerce .show-password-input,
.woocommerce-page .show-password-input {
	position: absolute;
	top: 50%;
	right: var(--bb-space-sm);
	width: 1.25rem;
	height: 1.25rem;
	padding: 0;
	transform: translateY(-50%);
	background: none;
	border: 0 !important;
	border-radius: 0;
	cursor: pointer;
}

.woocommerce .show-password-input::after,
.woocommerce-page .show-password-input::after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background: var(--bb-color-quiet);
	/* An eye, drawn rather than fetched. */
	mask: radial-gradient(circle at 50% 50%, #000 22%, transparent 23%) center / 100% 100% no-repeat,
	      radial-gradient(ellipse 50% 32% at 50% 50%, transparent 56%, #000 57%, #000 70%, transparent 71%) center / 100% 100% no-repeat;
	-webkit-mask: radial-gradient(circle at 50% 50%, #000 22%, transparent 23%) center / 100% 100% no-repeat,
	              radial-gradient(ellipse 50% 32% at 50% 50%, transparent 56%, #000 57%, #000 70%, transparent 71%) center / 100% 100% no-repeat;
}

.woocommerce .show-password-input.display-password::after { background: var(--bb-ink); }

/* Required marker, remember-me row, lost password link. */
.woocommerce .required { color: var(--bb-cyan-deep); text-decoration: none; border: 0; }

.woocommerce-form-login__rememberme,
.woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: var(--bb-space-2xs);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bb-color-quiet);
}

.woocommerce-form-login__rememberme input,
.woocommerce-form__label-for-checkbox input { width: auto; margin: 0; accent-color: var(--bb-cyan-deep); }

.woocommerce-LostPassword {
	margin-top: var(--bb-space-sm);
	font-size: var(--bb-size-small);
}

.woocommerce-LostPassword a { color: var(--bb-cyan-deep); }

/* --- WooCommerce Cart and Checkout blocks ------------------------------------ */

/* This install uses the block cart and checkout. These are the shared
   primitives; the design-level pass depends on which path we keep. */
.wc-block-components-button:not(.is-link) {
	background: var(--bb-ink);
	border: 1px solid var(--bb-ink);
	border-radius: 0;
	color: var(--bb-color-paper);
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-label);
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wc-block-components-button:not(.is-link):hover {
	background: transparent;
	color: var(--bb-ink);
}

.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"] {
	border-radius: 0;
	border-color: var(--bb-color-rule);
	background: var(--bb-color-paper);
}

.wc-block-components-product-name {
	color: var(--bb-ink);
	font-size: var(--bb-size-small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount { font-family: var(--bb-font-mono); }

/* Woo prints the result count and the sort dropdown as bare siblings before
   the grid, with the dropdown floated. At narrow widths the float lands on
   top of the first row of products. */
.woocommerce ul.products,
ul.products { clear: both; }

@media (max-width: 767px) {
	.woocommerce-ordering {
		float: none;
		display: block;
		margin-bottom: var(--bb-space-md);
	}

	.woocommerce-ordering select { width: 100%; }
}

/* --- Classic cart ------------------------------------------------------------ */

/* Hello tints every other table cell. The cart is a list of things someone
   is about to buy, not a spreadsheet. */
.woocommerce table.shop_table td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table tr:nth-child(even) td,
.woocommerce table.shop_table tr:nth-child(even) th,
.woocommerce table.shop_table tbody td,
.woocommerce table.shop_table tbody th { background: transparent; }

.woocommerce table.cart td.actions {
	padding-top: var(--bb-space-md);
	border-bottom: 0;
}

/* The coupon field and the cart buttons share one table cell, laid out by
   a stylesheet this theme dequeues. Without this the input goes full width
   and the buttons stack underneath it. */
.woocommerce table.cart td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bb-space-sm);
}

.woocommerce table.cart td.actions .coupon {
	display: flex;
	gap: var(--bb-space-2xs);
	float: none;
}

.woocommerce table.cart td.actions .coupon label { display: none; }

.woocommerce table.cart td.actions .coupon .input-text {
	width: 14rem;
	padding: 0.85em var(--bb-space-sm);
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-small);
}

.woocommerce table.cart td.actions > .button { margin-left: auto; }

.woocommerce .cart-collaterals { display: flow-root; }

.woocommerce .cart_totals table.shop_table th { width: 40%; }

.woocommerce .cart_totals table.shop_table td,
.woocommerce .cart_totals table.shop_table th { padding-inline: 0; }

.woocommerce .cart_totals .order-total .amount {
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-h3);
}

.woocommerce .wc-proceed-to-checkout { margin-top: var(--bb-space-md); }
.woocommerce .wc-proceed-to-checkout .checkout-button { display: block; text-align: center; }

.woocommerce .product-remove a.remove {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 0;
	background: none;
	color: var(--bb-color-quiet) !important;
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
}

.woocommerce .product-remove a.remove:hover {
	background: none;
	color: var(--bb-ink) !important;
}

@media (max-width: 767px) {
	.woocommerce table.cart td.actions { flex-direction: column; align-items: stretch; }
	.woocommerce table.cart td.actions .coupon { flex-direction: column; }
	.woocommerce table.cart td.actions .coupon .input-text { width: 100%; }
	.woocommerce table.cart td.actions > .button { margin-left: 0; }
	.woocommerce .cart_totals { max-width: none; }
}

/* --- Classic checkout --------------------------------------------------------- */

.woocommerce .col2-set,
.woocommerce-page .col2-set {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bb-space-lg);
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 { width: auto; float: none; }

#customer_details { margin-bottom: var(--bb-space-xl); }

.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
	padding-top: var(--bb-space-lg);
	border-top: 1px solid var(--bb-color-rule);
}

.woocommerce-checkout #payment {
	background: var(--bb-color-paper-warm);
	border-radius: 0;
	padding: var(--bb-space-md);
	margin-top: var(--bb-space-md);
}

.woocommerce-checkout #payment ul.payment_methods {
	margin: 0 0 var(--bb-space-md);
	padding: 0;
	border-bottom: 1px solid var(--bb-color-rule);
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
	margin-bottom: var(--bb-space-xs);
	font-size: var(--bb-size-small);
}

.woocommerce-checkout #payment div.payment_box {
	background: var(--bb-color-paper);
	border-radius: 0;
	font-size: var(--bb-size-small);
}

.woocommerce-checkout #payment div.payment_box::before { display: none; }

.woocommerce-checkout #place_order { width: 100%; }

@media (min-width: 900px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		column-gap: var(--bb-space-2xl);
		align-items: start;
	}

	.woocommerce-checkout form.checkout #customer_details { grid-column: 1; margin-bottom: 0; }
	.woocommerce-checkout form.checkout > h3#order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; padding-top: 0; border-top: 0; }
	.woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 2; padding-top: var(--bb-space-md); border-top: 0; }
	.woocommerce .col2-set { grid-template-columns: 1fr; }
}

/* --- Cart table on a phone ------------------------------------------------------ */

/* woocommerce-smallscreen.css restacks the cart table at narrow widths, and
   this theme dequeues it. Without a replacement a six-column table simply
   runs off the side of the screen. Woo puts a data-title on each cell, so
   the labels come from the markup rather than being duplicated here. */
@media (max-width: 767px) {

	.woocommerce table.woocommerce-cart-form__contents thead { display: none; }

	.woocommerce table.woocommerce-cart-form__contents,
	.woocommerce table.woocommerce-cart-form__contents tbody { display: block; width: 100%; }

	.woocommerce table.woocommerce-cart-form__contents tr.woocommerce-cart-form__cart-item {
		position: relative;
		display: grid;
		grid-template-columns: 84px minmax(0, 1fr);
		column-gap: var(--bb-space-sm);
		padding: var(--bb-space-md) 0;
		border-bottom: 1px solid var(--bb-color-rule);
	}

	.woocommerce table.woocommerce-cart-form__contents td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: var(--bb-space-sm);
		padding: 0.3em 0;
		border: 0;
		text-align: right;
	}

	.woocommerce table.woocommerce-cart-form__contents td[data-title]::before {
		content: attr(data-title);
		flex: none;
		font-family: var(--bb-font-mono);
		font-size: var(--bb-size-label);
		letter-spacing: 0.12em;
		color: var(--bb-color-quiet);
		text-transform: uppercase;
	}

	/* Thumbnail spans both rows of the grid, down the left. */
	.woocommerce table.woocommerce-cart-form__contents td.product-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 4;
		display: block;
		padding: 0;
	}

	.woocommerce table.woocommerce-cart-form__contents td.product-thumbnail img { width: 84px; }

	.woocommerce table.woocommerce-cart-form__contents td.product-name,
	.woocommerce table.woocommerce-cart-form__contents td.product-price,
	.woocommerce table.woocommerce-cart-form__contents td.product-quantity,
	.woocommerce table.woocommerce-cart-form__contents td.product-subtotal {
		grid-column: 2;
	}

	/* The product name reads as a heading, not a labelled field. */
	.woocommerce table.woocommerce-cart-form__contents td.product-name {
		justify-content: flex-start;
		text-align: left;
		padding-right: 2rem;
	}

	.woocommerce table.woocommerce-cart-form__contents td.product-name::before { display: none; }

	/* Remove sits top right, out of the flow. */
	.woocommerce table.woocommerce-cart-form__contents td.product-remove {
		position: absolute;
		top: var(--bb-space-md);
		right: 0;
		padding: 0;
	}

	.woocommerce table.woocommerce-cart-form__contents td.product-quantity .quantity { margin-left: auto; }

	.woocommerce table.woocommerce-cart-form__contents tr:last-child td.actions {
		display: flex;
		grid-column: 1 / -1;
		padding-top: var(--bb-space-md);
	}

	/* Totals stay a two-column table but lose their side padding. */
	.woocommerce .cart_totals table.shop_table th,
	.woocommerce .cart_totals table.shop_table td { padding-inline: 0; }
}

/* ==========================================================================
   Quick view
   ========================================================================== */

.bb-qv {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: var(--bb-space-gut);
}

.bb-qv[hidden] { display: none; }

.bb-qv__scrim {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 12, 0.55);
}

.bb-qv__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 60rem);
	max-height: min(86vh, 44rem);
	overflow-y: auto;
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
}

.bb-qv__close {
	position: absolute;
	top: var(--bb-space-2xs);
	right: var(--bb-space-2xs);
	z-index: 2;
	width: 42px;
	height: 42px;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--bb-ink);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.bb-qv__close:hover,
.bb-qv__close:focus { background: none; color: var(--bb-cyan-deep); }

.bb-qv__content {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	min-height: 18rem;
}

.bb-qv__media {
	position: relative;
	background: var(--bb-color-paper-warm);
	aspect-ratio: 3 / 4;
}

.bb-qv__media .bb-image,
.bb-qv__media .bb-image-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.bb-qv__body {
	display: flex;
	flex-direction: column;
	gap: var(--bb-space-sm);
	padding: var(--bb-space-xl) var(--bb-space-lg) var(--bb-space-lg);
}

.bb-qv__title {
	margin: 0;
	font-size: var(--bb-size-h2);
	font-weight: 300;
	text-transform: uppercase;
}

.bb-qv__price {
	margin: 0;
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-h3);
	color: var(--bb-ink);
}

.bb-qv__price del { opacity: 0.5; margin-right: 0.4em; }
.bb-qv__price ins { text-decoration: none; color: var(--bb-cyan-deep); }

.bb-qv__excerpt { color: var(--bb-color-ink-soft); font-size: var(--bb-size-small); }

.bb-qv__stock {
	margin: 0;
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.12em;
	color: var(--bb-color-quiet);
	text-transform: uppercase;
}

.bb-qv__actions {
	display: grid;
	gap: var(--bb-space-sm);
	margin-top: auto;
	padding-top: var(--bb-space-md);
	border-top: 1px solid var(--bb-color-rule);
}

.bb-qv__buy { display: flex; gap: var(--bb-space-2xs); }

.bb-qv__qty {
	width: 4.5rem;
	padding: 0.85em 0.5em;
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
	font-family: var(--bb-font-mono);
	text-align: center;
}

.bb-qv__buy .bb-button { flex: 1; text-align: center; }

/* Woo marks the button while its request is in flight. */
.bb-qv__buy .bb-button.loading { opacity: 0.6; pointer-events: none; }
.bb-qv__buy .bb-button.added::after { content: ' \2713'; }

.bb-qv__full { justify-self: start; }

.bb-qv__status {
	grid-column: 1 / -1;
	display: grid;
	place-items: center;
	min-height: 18rem;
	margin: 0;
	padding: var(--bb-space-lg);
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.14em;
	color: var(--bb-color-quiet);
	text-transform: uppercase;
	text-align: center;
}

.bb-qv__status--error { color: var(--bb-ink); }

@media (max-width: 767px) {
	.bb-qv { padding: 0; }

	.bb-qv__panel {
		width: 100%;
		max-height: 92vh;
		border: 0;
		align-self: end;
	}

	.bb-qv__content { grid-template-columns: 1fr; }

	.bb-qv__media { aspect-ratio: 4 / 3; }

	.bb-qv__body { padding: var(--bb-space-lg) var(--bb-space-gut); }
}

/* The card's quick-view button is always reachable by keyboard, not only
   on hover — a hover-only control does not exist for a keyboard user. */
.bb-card__quick:focus-visible {
	opacity: 1;
	transform: translateY(0);
}

/* The quick-view trigger is a real <button>, so Hello Elementor tries to
   paint it pink like all the others. */
.bb-card__quick {
	border: 0;
	border-radius: 0;
	cursor: pointer;
	font-family: var(--bb-font-mono);
}

.bb-card__quick:hover,
.bb-card__quick:focus {
	background: var(--bb-ink);
	color: var(--bb-color-paper);
}

/* Hello sets inputs to full width by attribute selector, which outranks a
   bare class, so the quantity box swallowed the row and squeezed the
   button into three wrapped lines. */
input[type="number"].bb-qv__qty {
	flex: 0 0 4.5rem;
	width: 4.5rem;
	min-width: 0;
}

.bb-qv__buy .bb-button {
	flex: 1 1 auto;
	white-space: nowrap;
}

/* --- Cart icon ------------------------------------------------------------ */

.bb-util--bag {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding-block: 0.2em;
}

.bb-util__icon {
	display: block;
	width: 20px;
	height: 20px;
	flex: none;
}

.bb-util__count {
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0;
	line-height: 1;
	color: var(--bb-color-quiet);
	font-variant-numeric: tabular-nums;
	transition: color var(--bb-motion-fast) var(--bb-motion-ease);
}

/* An empty bag should not shout. A full one is the brand colour. */
.bb-util__count.is-filled { color: var(--bb-cyan-deep); }

.bb-has-cover .bb-header:not(.is-stuck) .bb-util__count { color: rgba(247, 247, 246, 0.6); }
.bb-has-cover .bb-header:not(.is-stuck) .bb-util__count.is-filled { color: var(--bb-cyan); }

/* ==========================================================================
   Alignment, spacing and depth pass
   ========================================================================== */

:root {
	/* A near-black pulled toward the brand hue rather than neutral grey, so
	   the footer reads as deliberate colour rather than absence of it. */
	--bb-color-deep: #0E1514;
}

/* --- One measure for everything ------------------------------------------- */

/* The footer was running edge to edge while shop content sat inside a
   1680px measure, so the two never lined up down the left. */
.bb-shop,
.bb-footer__signup,
.bb-footer__columns,
.bb-footer__base,
.woocommerce-cart :is(.entry-content, .page-content) > .woocommerce,
.woocommerce-checkout :is(.entry-content, .page-content) > .woocommerce,
.woocommerce-account :is(.entry-content, .page-content) > .woocommerce {
	width: 100%;
	max-width: var(--bb-layout-max);
	margin-inline: auto;
}

/* --- Cart: items left, totals right ---------------------------------------- */

@media (min-width: 900px) {
	.woocommerce-cart :is(.entry-content, .page-content) > .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr);
		column-gap: var(--bb-space-2xl);
		align-items: start;
	}

	.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; }

	.woocommerce-cart .cart-collaterals {
		grid-column: 2;
		margin-top: 0;
	}

	.woocommerce .cart_totals {
		max-width: none;
		margin: 0;
		position: sticky;
		top: calc(var(--bb-header-h) + var(--bb-space-md));
	}
}

/* Explicit column widths. Left to itself the table gave the remove and
   thumbnail cells most of the width and squeezed the product name. */
.woocommerce table.cart th.product-remove,
.woocommerce table.cart td.product-remove { width: 2.25rem; padding-left: 0; }

.woocommerce table.cart td.product-thumbnail { width: 92px; }
.woocommerce table.cart th.product-thumbnail { width: 92px; }

.woocommerce table.cart th.product-name,
.woocommerce table.cart td.product-name { width: auto; text-align: left; }

.woocommerce table.cart th.product-price,
.woocommerce table.cart td.product-price,
.woocommerce table.cart th.product-subtotal,
.woocommerce table.cart td.product-subtotal { width: 8rem; text-align: right; }

.woocommerce table.cart th.product-quantity,
.woocommerce table.cart td.product-quantity { width: 7rem; text-align: right; }

.woocommerce table.cart td.product-quantity .quantity { display: inline-block; }

.woocommerce table.cart td.product-price,
.woocommerce table.cart td.product-subtotal { font-family: var(--bb-font-mono); }

.woocommerce table.cart td.product-thumbnail img {
	width: 92px;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: var(--bb-color-paper-warm);
}

/* --- Form rhythm ------------------------------------------------------------ */

.woocommerce form .form-row {
	display: block;
	margin: 0 0 var(--bb-space-md);
	padding: 0;
}

.woocommerce form .form-row label {
	margin-bottom: var(--bb-space-2xs);
	line-height: 1.4;
}

.woocommerce-input-wrapper { display: block; width: 100%; }

.woocommerce form .form-row-first,
.woocommerce form .form-row-last { width: 100%; float: none; }

@media (min-width: 600px) {
	.woocommerce form .woocommerce-billing-fields__field-wrapper,
	.woocommerce form .woocommerce-shipping-fields__field-wrapper {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: var(--bb-space-sm);
	}

	.woocommerce form .form-row-wide,
	.woocommerce form .form-row:not(.form-row-first):not(.form-row-last) {
		grid-column: 1 / -1;
	}
}

/* --- Select, native and enhanced -------------------------------------------- */

/* WooCommerce replaces the country and state selects with select2, whose
   container rendered 24px tall and unstyled — which is what was pushing the
   next label on top of the field. */
.woocommerce .select2-container { width: 100% !important; }

.woocommerce .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
	min-height: 3.1rem;
	padding: 0.4em var(--bb-space-sm);
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 1.4;
	color: var(--bb-ink);
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-small);
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: var(--bb-space-xs);
	height: 100%;
	width: 1rem;
}

.woocommerce .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--bb-cyan-deep);
}

.select2-dropdown {
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	padding: 0.65em var(--bb-space-xs);
	background: var(--bb-color-paper);
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-small);
}

.select2-container--default .select2-results__option {
	padding: 0.55em var(--bb-space-sm);
	font-size: var(--bb-size-small);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--bb-ink);
	color: var(--bb-color-paper);
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
	background: var(--bb-color-paper-warm);
	color: var(--bb-ink);
}

/* Native selects get the same frame and a drawn chevron, since the browser
   default arrow does not belong next to hairline borders. */
.woocommerce form .form-row select,
.woocommerce-ordering select,
select.bb-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0.85em 2.4em 0.85em var(--bb-space-sm);
	background-color: var(--bb-color-paper);
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
	                  linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
	background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
	background-repeat: no-repeat;
	border: 1px solid var(--bb-color-rule);
	border-radius: 0;
	color: var(--bb-ink);
	line-height: 1.4;
}

/* --- Footer ------------------------------------------------------------------ */

.bb-footer {
	padding: var(--bb-space-2xl) var(--bb-space-gut);
	background: var(--bb-color-deep);
	border-top: 0;
	color: rgba(247, 247, 246, 0.7);
}

.bb-footer__signup {
	padding-bottom: var(--bb-space-xl);
	margin-bottom: var(--bb-space-xl);
	border-bottom: 1px solid var(--bb-color-rule-dark);
}

.bb-signup__label { color: var(--bb-color-paper); }

.bb-signup__field {
	background: transparent;
	border-color: var(--bb-color-rule-dark);
	color: var(--bb-color-paper);
}

.bb-signup__field::placeholder { color: rgba(247, 247, 246, 0.45); }

.bb-footer .bb-button {
	background: var(--bb-cyan);
	border-color: var(--bb-cyan);
	color: var(--bb-ink);
}

.bb-footer .bb-button:hover,
.bb-footer .bb-button:focus-visible {
	background: transparent;
	color: var(--bb-cyan);
}

.bb-footer__columns {
	gap: var(--bb-space-xl) var(--bb-space-lg);
}

/* Column headings are the one place the full-strength cyan gets to appear
   at small size — it clears 14.6:1 on this ground. */
.bb-footer .bb-eyebrow {
	margin-bottom: var(--bb-space-md);
	color: var(--bb-cyan);
}

.bb-footer__col .bb-menu { gap: var(--bb-space-xs); }

.bb-footer__col .bb-menu > li > a,
.bb-footer__line a,
.bb-footer__address {
	color: rgba(247, 247, 246, 0.72);
	transition: color var(--bb-motion-fast) var(--bb-motion-ease);
}

.bb-footer__col .bb-menu > li > a:hover,
.bb-footer__col .bb-menu > li > a:focus-visible,
.bb-footer__line a:hover,
.bb-footer__line a:focus-visible { color: var(--bb-cyan); }

.bb-footer__base {
	margin-top: var(--bb-space-2xl);
	padding-top: var(--bb-space-md);
	border-top: 1px solid var(--bb-color-rule-dark);
}

.bb-footer__copy { color: rgba(247, 247, 246, 0.4); }

.bb-footer :focus-visible { outline-color: var(--bb-cyan); }

/* Column widths are only suggestions under automatic table layout, which
   is why the remove cell was still taking 398px of a 1440px row. */
@media (min-width: 768px) {
	.woocommerce table.cart { table-layout: fixed; }
}

/* ==========================================================================
   One page measure
   Hello constrains main.site-main to Elementor's 1140px content width while
   the header and footer run to the gutter, so nothing lined up down the
   left. These three rules are the whole alignment model:

     1. site-main is the page container — max measure, centred, gutters.
     2. anything inside it is full width with no gutters of its own.
     3. the header and footer keep full-bleed backgrounds, and their inner
        blocks sit at the measure minus those gutters, so their content
        lands on the same left edge as the page.
   ========================================================================== */

/* Hello sets this inside media queries as
   `body:not([class*="elementor-page-"]) .site-main`, which outranks a
   plain `main.site-main`. This matches that specificity and wins on
   order. It only applies to non-Elementor pages; the homepage is laid
   out by Elementor containers and is already at the same measure. */
.bb-main main.site-main {
	width: 100%;
	max-width: var(--bb-layout-max);
	margin-inline: auto;
	padding-inline: var(--bb-space-gut);
}

/* Cart, checkout and account are ordinary pages inside site-main, which
   already supplies the measure and gutters. */
.woocommerce-cart :is(.entry-content, .page-content) > .woocommerce,
.woocommerce-checkout :is(.entry-content, .page-content) > .woocommerce,
.woocommerce-account :is(.entry-content, .page-content) > .woocommerce {
	max-width: none;
	padding-inline: 0;
}

/* Shop and category archives have no site-main at all — the theme opens
   its own wrapper in woocommerce_before_main_content — so .bb-shop is
   the page container there and carries the measure itself. */
.bb-shop {
	width: 100%;
	max-width: var(--bb-layout-max);
	margin-inline: auto;
	padding-inline: var(--bb-space-gut);
}

.bb-header__inner,
.bb-footer__signup,
.bb-footer__columns,
.bb-footer__base {
	width: 100%;
	max-width: calc(var(--bb-layout-max) - (2 * var(--bb-space-gut)));
	margin-inline: auto;
}

/* The header already carries the gutter; its inner block must not add one. */
.bb-header__inner { padding-inline: 0; }
.bb-header { padding-inline: var(--bb-space-gut); }

/* The full-width nav panel spans the header, so it needs its own gutter
   back and its contents aligned to the same measure. */
.bb-nav--primary .sub-menu {
	left: calc(-1 * var(--bb-space-gut));
	width: 100vw;
	padding-inline: max(var(--bb-space-gut), calc((100vw - var(--bb-layout-max)) / 2 + var(--bb-space-gut)));
}

/* --- Nav panel: anchoring and rhythm ---------------------------------------- */

/* An absolutely positioned child resolves against the header's padding box,
   which already starts at the viewport edge — so no negative offset, and
   100% rather than 100vw (which ignores the scrollbar). */
.bb-nav--primary .sub-menu {
	left: 0;
	width: 100%;
	padding-block: var(--bb-space-2xl);

	/* Pack the links from the left at the page measure instead of spreading
	   them thinly across the whole width. */
	display: flex;
	flex-wrap: wrap;
	gap: var(--bb-space-md) var(--bb-space-2xl);
	align-items: baseline;
}

.bb-nav--primary .sub-menu li a {
	font-size: clamp(1.25rem, 1rem + 0.9vw, 1.875rem);
	line-height: 1.2;
}

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

/* Hello also pins `.page-header .entry-title` to 1140px with auto margins,
   separately from .site-main, which left page titles indented past their
   own content. */
.bb-main .page-header .entry-title {
	max-width: none;
	margin-inline: 0;
}

.bb-main .page-header {
	padding-bottom: var(--bb-space-md);
	margin-bottom: var(--bb-space-xl);
	border-bottom: 1px solid var(--bb-color-rule);
}

.bb-main .page-header .entry-title {
	font-size: var(--bb-size-h1);
	font-weight: 300;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* Running text at the full page measure is unreadable — roughly 170
   characters a line. Prose gets a sane measure; tables and grids keep
   the full width. */
body:not(.woocommerce-page) .page-content > :where(p, h2, h3, h4, h5, ul, ol, blockquote, dl) {
	max-width: 68ch;
}

body:not(.woocommerce-page) .page-content > * + * {
	margin-top: var(--bb-space-sm);
}

/* The Woo page-title rule and the .page-header rule were both drawing a
   hairline and adding their own margin, giving two rules and a dead band
   between the heading and the content. The wrapper owns it. */
.bb-main .page-header .entry-title {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

/* ==========================================================================
   Mega panel
   The walker wraps a top-level item's children in .bb-mega, so the panel —
   not the <ul> — is what opens and closes.
   ========================================================================== */

/* Undo the earlier treatment: the inner list is now a plain stacked column
   inside the panel, with no positioning or padding of its own. */
.bb-nav--primary .sub-menu {
	position: static;
	display: grid;
	gap: var(--bb-space-xs);
	width: auto;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.bb-mega {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 2;
	width: 100%;
	padding-inline: var(--bb-space-gut);
	background: var(--bb-color-paper);
	border-top: 1px solid var(--bb-color-rule);

	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.4rem);
	pointer-events: none;
	transition: opacity var(--bb-motion-base) var(--bb-motion-ease),
	            transform var(--bb-motion-base) var(--bb-motion-ease),
	            visibility var(--bb-motion-base);
}

.bb-nav--primary .bb-menu > li:hover > .bb-mega,
.bb-nav--primary .bb-menu > li:focus-within > .bb-mega,
.bb-nav--primary .bb-menu > li.is-open > .bb-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.bb-mega__inner {
	display: grid;
	grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.4fr);
	gap: var(--bb-space-2xl);
	align-items: start;
	width: 100%;
	max-width: calc(var(--bb-layout-max) - (2 * var(--bb-space-gut)));
	margin-inline: auto;
	padding-block: var(--bb-space-xl) var(--bb-space-2xl);
}

.bb-mega__heading {
	margin: 0 0 var(--bb-space-md);
	font-family: var(--bb-font-sans);
	font-size: var(--bb-size-small);
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--bb-color-quiet);
	text-transform: none;
}

.bb-nav--primary .bb-mega .sub-menu li a {
	display: block;
	padding: 0.15em 0;
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
	font-weight: 300;
	letter-spacing: 0;
	color: var(--bb-ink);
	text-transform: none;
	white-space: nowrap;
}

.bb-nav--primary .bb-mega .sub-menu li a:hover,
.bb-nav--primary .bb-mega .sub-menu li a:focus-visible {
	color: var(--bb-cyan-deep);
}

/* --- Feature cards ----------------------------------------------------------- */

.bb-mega__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--bb-space-md);
	justify-self: end;
	width: 100%;
	max-width: 36rem;
}

.bb-mega__card { display: grid; gap: var(--bb-space-2xs); text-decoration: none; }

.bb-mega__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--bb-color-paper-warm);
}

.bb-mega__media .bb-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--bb-motion-slow) var(--bb-motion-ease);
}

.bb-mega__card:hover .bb-image,
.bb-mega__card:focus-visible .bb-image { transform: scale(1.03); }

.bb-mega__caption {
	font-size: var(--bb-size-small);
	color: var(--bb-color-ink-soft);
}

/* Without feature cards the links should not be stranded in a narrow
   column on a very wide panel. */
.bb-mega__inner:not(:has(.bb-mega__features)) {
	grid-template-columns: minmax(0, 1fr);
}

/* --- Open state -------------------------------------------------------------- */

/* The script puts the header into .is-stuck while a panel is open, which
   switches off every `:not(.is-stuck)` transparent rule at once. All that
   is left to say here is that the seam between header and panel goes. */
body.bb-nav-open .bb-header { border-bottom-color: transparent; }

/* Lighter than a modal scrim — this is a menu, not a dialog. */
.bb-navscrim { background: rgba(10, 12, 12, 0.18); }

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

/* An earlier auto-fit grid is still on .sub-menu from when it was the
   panel itself; inside .bb-mega it must be a single stacked column. */
.bb-nav--primary .bb-mega .sub-menu {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bb-space-2xs);
}

/* ==========================================================================
   Full-bleed pair
   ========================================================================== */

.bb-pair--bleed {
	padding-inline: 0;
}

.bb-pair--bleed .bb-pair__photos {
	gap: 0;
}

/* The caption still needs the gutter even when the photographs do not. */
.bb-pair--bleed .bb-pair__label {
	padding-inline: var(--bb-space-gut);
}

.bb-pair--bleed .bb-pair__photos > .bb-image,
.bb-pair--bleed .bb-pair__photos > .bb-image-placeholder {
	aspect-ratio: 4 / 5;
	border: 0;
}

@media (max-width: 599px) {
	.bb-pair--bleed .bb-pair__photos > .bb-image,
	.bb-pair--bleed .bb-pair__photos > .bb-image-placeholder {
		aspect-ratio: 3 / 4;
	}
}

/* ==========================================================================
   Header right: membership link, currency, icons
   ========================================================================== */

.bb-header__right {
	display: flex;
	align-items: center;
	gap: var(--bb-space-md);
}

.bb-nav--right .bb-menu { gap: var(--bb-space-md); }

/* --- Currency ---------------------------------------------------------------- */

.bb-currency {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.bb-currency__code,
.bb-currency__select {
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
	letter-spacing: 0.12em;
	color: var(--bb-ink);
	text-transform: uppercase;
}

.bb-currency--static .bb-currency__code {
	padding: 0.4em 0;
	color: var(--bb-color-quiet);
}

/* Narrow enough to sit in a header, and drawn with the same chevron as
   every other select on the site. */
select.bb-currency__select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0.4em 1.5em 0.4em 0;
	background-color: transparent;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
	                  linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 0.55rem) 55%, calc(100% - 0.25rem) 55%;
	background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
	background-repeat: no-repeat;
	border: 0;
	cursor: pointer;
}

.bb-currency__go {
	margin-left: var(--bb-space-2xs);
	background: none;
	border: 0;
	font-family: var(--bb-font-mono);
	font-size: var(--bb-size-label);
}

/* Over the dark cover everything in the header inherits paper. */
.bb-has-cover .bb-header:not(.is-stuck) .bb-currency__code,
.bb-has-cover .bb-header:not(.is-stuck) .bb-currency__select {
	color: var(--bb-color-paper);
}

.bb-has-cover .bb-header:not(.is-stuck) .bb-currency--static .bb-currency__code {
	color: rgba(247, 247, 246, 0.7);
}

/* --- Icon buttons -------------------------------------------------------------- */

.bb-util--search {
	display: inline-flex;
	align-items: center;
	padding: 0.2em;
}

@media (max-width: 1023px) {
	/* The membership link and currency move into the drawer; the header
	   keeps the burger, the wordmark, search and the bag. */
	.bb-nav--right,
	.bb-header__right .bb-currency { display: none; }

	.bb-header__right { gap: var(--bb-space-sm); }
}
