/* ==========================================================================
   Bits & Bytes — front-end styles
   Brand tokens live in theme.json (Appearance → Editor → Styles); this file
   only references them. Spend-boldness-in-one-place: the split hero.
   ========================================================================== */

:root {
	--bb-ground: var(--wp--preset--color--ground, #000);
	--bb-surface: var(--wp--preset--color--surface, #111116);
	--bb-sunken: var(--wp--preset--color--surface-sunken, #1a1a21);
	--bb-line: var(--wp--preset--color--line, #26262e);
	--bb-line-strong: var(--wp--preset--color--line-strong, #6b6b78);
	--bb-ink: var(--wp--preset--color--ink, #fff);
	--bb-muted: var(--wp--preset--color--ink-muted, #a7a7b3);
	--bb-orange: var(--wp--preset--color--orange, #f6a033);
	--bb-orange-deep: var(--wp--preset--color--orange-deep, #f48d2b);
	--bb-blue: var(--wp--preset--color--blue, #4795f2);
	--bb-violet: var(--wp--preset--color--violet, #8a7bf1);
	--bb-display: var(--wp--preset--font-family--display);
	--bb-mono: var(--wp--preset--font-family--mono);
	--bb-ease: cubic-bezier(.16, 1, .3, 1);
	--bb-radius: 14px;
	--bb-accent: var(--bb-orange);
	color-scheme: dark;
}
.bb-line-bits { --bb-accent: var(--bb-blue); }
.bb-line-bytes { --bb-accent: var(--bb-orange); }

body { background: var(--bb-ground); -webkit-font-smoothing: antialiased; }
::selection { background: var(--bb-orange); color: #000; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--bb-blue);
	outline-offset: 2px;
}
kbd {
	font-family: var(--bb-mono);
	font-size: 11px;
	line-height: 1;
	padding: 3px 5px;
	border: 1px solid var(--bb-line-strong);
	border-bottom-width: 2px;
	border-radius: 5px;
	color: var(--bb-muted);
	background: var(--bb-sunken);
}
.bb-muted { color: var(--bb-muted); }
.bb-binary {
	font-family: var(--bb-mono);
	font-size: 11px;
	letter-spacing: .18em;
	color: var(--bb-violet);
}
.bb-kicker {
	font-family: var(--bb-mono);
	font-size: 13px;
	color: var(--bb-accent);
	margin: 0;
}

/* ---------- Header ---------- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bb-ground) 82%, transparent);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--bb-line);
}
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
.bb-header .bb-logo { margin: 0; flex: none; }
.bb-header .bb-logo img { display: block; height: auto; }
.bb-nav .wp-block-navigation-item__content { color: var(--bb-muted); padding-block: 6px; position: relative; }
.bb-nav .wp-block-navigation-item__content:hover,
.bb-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--bb-ink); }
.bb-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--bb-ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--bb-ease);
}
.bb-nav .bb-nav--bits .wp-block-navigation-item__content::after { background: var(--bb-blue); }
.bb-nav .bb-nav--bytes .wp-block-navigation-item__content::after { background: var(--bb-orange); }
.bb-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.bb-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--bb-ground);
	color: var(--bb-ink);
	padding: 24px;
}
.bb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--bb-display); font-size: 28px; color: var(--bb-ink); }

.bb-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 8px 0 12px;
	border: 1px solid var(--bb-line);
	border-radius: 10px;
	background: var(--bb-surface);
	color: var(--bb-muted);
	font: 500 14px/1 var(--wp--preset--font-family--sans);
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.bb-search-btn:hover { border-color: var(--bb-line-strong); color: var(--bb-ink); }
.bb-search-btn__keys { display: inline-flex; gap: 3px; }
@media (max-width: 781px) {
	.bb-search-btn { padding: 0 10px; }
	.bb-search-btn__label, .bb-search-btn__keys { display: none; }
	.bb-header .bb-logo img { width: 132px !important; }
	.bb-header__row { gap: 8px !important; }
	.bb-header__tools { gap: 4px !important; }
	.bb-search-btn { height: 36px; border-color: transparent; background: transparent; }
}
.bb-header .wc-block-mini-cart__button,
.bb-header .wc-block-customer-account a { color: var(--bb-ink); }
.bb-header .wc-block-mini-cart__badge {
	background: var(--bb-orange) !important;
	color: #000 !important;
	font-weight: 700;
	border: 0;
}
.bb-cart.is-pinged .wc-block-mini-cart__badge { animation: bb-ping .6s var(--bb-ease); }
@keyframes bb-ping {
	0% { transform: scale(1); }
	40% { transform: scale(1.5); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bb-orange) 35%, transparent); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Hero: the split board ---------- */
.bb-hero__title {
	max-width: 15ch;
	margin-bottom: clamp(20px, 3vw, 36px) !important;
	text-wrap: balance;
}
.bb-split {
	--bits-grow: 1;
	--bytes-grow: 1;
	position: relative;
	display: flex;
	height: clamp(460px, 64vh, 660px);
	border: 1px solid var(--bb-line);
	border-radius: 20px;
	overflow: hidden;
	background: var(--bb-surface);
	isolation: isolate;
}
.bb-split > .bb-board {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.bb-split__half {
	position: relative;
	z-index: 1;
	flex: var(--grow, 1) 1 0;
	min-width: 0;
	margin: 0 !important;
	padding: clamp(20px, 3vw, 36px);
	transition: flex-grow .7s var(--bb-ease);
	overflow: hidden;
}
.bb-split__half--bits { --grow: var(--bits-grow); --c: var(--bb-blue); }
.bb-split__half--bytes { --grow: var(--bytes-grow); --c: var(--bb-orange); border-left: 1px solid var(--bb-line); }
.bb-split__half::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(70% 60% at 62% 48%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%);
	opacity: .55;
	transition: opacity .6s var(--bb-ease);
}
.bb-split__half.is-active::before { opacity: 1; }

.bb-split__word {
	position: relative;
	margin: 0;
	font-family: var(--bb-display);
	font-weight: 700;
	font-size: clamp(64px, 11vw, 200px);
	line-height: .82;
	letter-spacing: -.035em;
	color: transparent;
	-webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 70%, transparent);
	transition: color .5s var(--bb-ease), -webkit-text-stroke-color .5s;
	white-space: nowrap;
	user-select: none;
}
.bb-split__half.is-active .bb-split__word { color: var(--c); -webkit-text-stroke-color: var(--c); }

.bb-split__art {
	position: absolute;
	right: -4%;
	top: 50%;
	width: min(62%, 520px);
	margin: 0 !important;
	transform: translate3d(var(--ax, 0px), calc(-50% + var(--ay, 0px)), 0) scale(var(--as, .94));
	transition: transform .8s var(--bb-ease);
	pointer-events: none;
}
.bb-split__half.is-active .bb-split__art { --as: 1; }
.bb-split__art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }

.bb-split__copy {
	position: absolute;
	left: clamp(20px, 3vw, 36px);
	bottom: clamp(20px, 3vw, 36px);
	max-width: 34ch;
	margin: 0 !important;
}
.bb-split__lead { margin: 0 0 16px; color: var(--bb-muted); font-size: var(--wp--preset--font-size--medium); }
.bb-split__half.is-active .bb-split__lead { color: var(--bb-ink); }
.bb-btn-bits .wp-block-button__link { background: var(--bb-blue); color: #000; }
.bb-btn-bits .wp-block-button__link:hover { background: color-mix(in srgb, var(--bb-blue) 85%, #fff); color: #000; }

.bb-split__seam {
	position: absolute;
	top: 0; bottom: 0;
	left: var(--seam-x, 50%);
	width: 0;
	z-index: 2;
	pointer-events: none;
}
.bb-split__seam::after {
	content: "";
	position: absolute;
	left: -7px;
	top: var(--seam-y, 50%);
	width: 14px; height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background: var(--bb-ground);
	border: 2px solid var(--bb-violet);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--bb-violet) 18%, transparent);
	transition: top .25s var(--bb-ease);
}

@media (max-width: 781px) {
	.bb-split { flex-direction: column; height: auto; }
	.bb-split__half { min-height: 380px; flex: none; }
	.bb-split__half--bytes { border-left: 0; border-top: 1px solid var(--bb-line); }
	.bb-split__word { font-size: clamp(56px, 20vw, 110px); color: var(--c); -webkit-text-stroke-color: var(--c); }
	.bb-split__half { display: flex; flex-direction: column; }
	.bb-split__art { position: relative; right: auto; top: auto; width: 72%; max-width: 340px; align-self: flex-end; margin: -12px -8% 0 0 !important; transform: none; }
	.bb-split__copy { position: relative; left: auto; bottom: auto; margin-top: auto !important; padding-top: 8px; }
	.bb-split__half::before { opacity: 1; }
	.bb-split__seam { display: none; }
}

/* ---------- Sections & rows ---------- */
.bb-section > .wp-block-heading { margin-bottom: 24px; }
.bb-row__head { margin-bottom: 24px !important; }
.bb-row__head h2 { margin: 0; }
.bb-row__head h2::before {
	content: "";
	display: inline-block;
	width: 10px; height: 10px;
	margin-right: 12px;
	vertical-align: .18em;
	border-radius: 50%;
	background: var(--bb-row-c, var(--bb-orange));
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bb-row-c, var(--bb-orange)) 22%, transparent);
}
.bb-row--bits { --bb-row-c: var(--bb-blue); }
.bb-row--bytes { --bb-row-c: var(--bb-orange); }
.bb-row__more { margin: 0; }
.bb-row__more a { color: var(--bb-muted); text-decoration: none; font-size: var(--wp--preset--font-size--small); }
.bb-row__more a:hover { color: var(--bb-ink); text-decoration: underline; }

/* ---------- Product cards ---------- */
.bb-collection .wc-block-product { margin: 0; }
.bb-card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 10px 14px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	background: var(--bb-surface);
	transition: border-color .25s, transform .4s var(--bb-ease);
}
.bb-card > * { margin: 0 !important; }
.wc-block-product:hover .bb-card { border-color: color-mix(in srgb, var(--bb-accent) 70%, transparent); }
.bb-card .wc-block-components-product-image {
	border-radius: 10px;
	overflow: hidden;
	background: var(--bb-sunken);
	margin-bottom: 4px !important;
}
.bb-card .wc-block-components-product-image img {
	transition: transform .7s var(--bb-ease);
	aspect-ratio: 1;
	object-fit: cover;
}
.wc-block-product:hover .bb-card .wc-block-components-product-image img { transform: scale(1.04); }
.bb-card .bb-info--line { position: absolute; top: 20px; left: 20px; z-index: 2; }
.bb-card__title { font-family: var(--bb-display); font-size: 18px !important; line-height: 1.25; padding-inline: 4px; }
.bb-card__title a { color: var(--bb-ink); text-decoration: none; }
.bb-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--bb-radius); }
.bb-card .bb-info--spec { padding-inline: 4px; }
.bb-card__buy { margin-top: auto !important; padding: 6px 4px 0; position: relative; z-index: 2; gap: 12px; }
.bb-card__buy .wc-block-components-product-price { font-size: 20px; margin: 0; }
.bb-card__buy .wp-block-button { margin: 0 !important; }
.bb-card__buy .wp-block-button.wc-block-components-product-button { align-items: flex-end; }
.bb-card .bb-card__buy .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	background: transparent;
	color: var(--bb-ink);
	box-shadow: inset 0 0 0 1px var(--bb-line-strong);
	border-radius: 9px;
	white-space: nowrap;
	transition: background .2s, color .2s, box-shadow .2s;
}
.bb-card .bb-card__buy .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:hover {
	background: var(--bb-accent);
	box-shadow: inset 0 0 0 1px var(--bb-accent);
	color: #000;
}
.wc-block-components-product-price del { color: var(--bb-muted); font-size: .72em; font-weight: 500; opacity: 1; }
.wc-block-components-product-price ins { text-decoration: none; }
.bb-card .wc-block-components-product-sale-badge,
.bb-feature .wc-block-components-product-sale-badge {
	border: 0;
	border-radius: 999px;
	background: var(--bb-violet);
	color: #000;
	font: 600 12px/1 var(--bb-mono);
	padding: 5px 10px;
}
.bb-collection .wc-block-components-product-button .wc-block-components-product-button__button { margin: 0; }
.bb-collection .added_to_cart { display: none; }

@media (max-width: 599px) {
	.bb-card { padding: 8px 8px 12px; }
	.bb-card .bb-info--line { top: 14px; left: 14px; }
	.bb-card__title { font-size: 16px !important; }
	.bb-card__buy { flex-wrap: wrap !important; }
	.bb-card__buy .wp-block-button.wc-block-components-product-button,
	.bb-card .bb-card__buy .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button { width: 100%; }
}

/* Badges + specs */
.bb-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font: 500 11px/1.2 var(--bb-mono);
	letter-spacing: .08em;
	color: #000;
	text-decoration: none;
}
.bb-badge--bits { background: var(--bb-blue); }
.bb-badge--bytes { background: var(--bb-orange); }
.bb-badge:hover { color: #000; filter: brightness(1.1); }
.bb-info--spec { font-family: var(--bb-mono); font-size: 12.5px; line-height: 1.5; color: var(--bb-muted); }
.bb-info--placeholder { padding: 6px 10px; border: 1px dashed var(--bb-line-strong); border-radius: 6px; font: 12px/1.4 var(--bb-mono); color: var(--bb-muted); }

.bb-datasheet { width: 100%; border-collapse: collapse; font-family: var(--bb-mono); font-size: 13px; }
.bb-datasheet th, .bb-datasheet td { padding: 9px 0; border-bottom: 1px dashed var(--bb-line); text-align: left; vertical-align: top; }
.bb-datasheet th { width: 42%; font-weight: 500; color: var(--bb-muted); padding-right: 16px; }
.bb-datasheet tr:last-child th, .bb-datasheet tr:last-child td { border-bottom: 0; }

/* ---------- Featured product ---------- */
.bb-feature .wc-block-product-template { display: block; }
.bb-feature .wc-block-product { margin: 0; }
.bb-feature .wc-block-components-product-image { border-radius: 20px; overflow: hidden; border: 1px solid var(--bb-line); }
.bb-feature__copy > * + * { margin-top: 16px; }
.bb-feature__copy .wp-block-post-title a { text-decoration: none; color: var(--bb-ink); }
.bb-feature__copy .wp-block-post-excerpt { color: var(--bb-muted); max-width: 52ch; }
.bb-feature .bb-info--datasheet { max-width: 460px; padding: 6px 16px; border: 1px solid var(--bb-line); border-radius: 12px; background: var(--bb-surface); }
.bb-feature .bb-card__buy .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button { padding: 13px 22px; font-size: 15px; font-weight: 600; background: var(--bb-orange); color: #000; border-radius: 10px; box-shadow: none; }
.bb-feature .bb-card__buy .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:hover { background: var(--bb-orange-deep); }

/* ---------- How it works: three pads on one trace ---------- */
.bb-steps__row { position: relative; counter-reset: bb-step; gap: clamp(20px, 4vw, 48px) !important; padding-top: 54px; }
.bb-steps__row::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 18px;
	right: 18px;
	height: 2px;
	background: linear-gradient(90deg, var(--bb-blue), var(--bb-violet) 50%, var(--bb-orange));
	opacity: .6;
}
.bb-step { position: relative; counter-increment: bb-step; }
.bb-step::before {
	content: counter(bb-step);
	position: absolute;
	top: -54px;
	left: 0;
	width: 38px; height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bb-ground);
	border: 2px solid var(--bb-violet);
	font: 600 15px/1 var(--bb-mono);
	color: var(--bb-ink);
}
.bb-step h3 { margin: 0 0 8px; font-size: var(--wp--preset--font-size--large); }
.bb-step p { margin: 0; color: var(--bb-muted); }
@media (max-width: 781px) {
	.bb-steps__row { padding-top: 0; padding-left: 56px; }
	.bb-steps__row::before { top: 18px; bottom: 18px; left: 18px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--bb-blue), var(--bb-violet), var(--bb-orange)); }
	.bb-step::before { top: 0; left: -56px; }
}

/* ---------- FAQ ---------- */
.bb-faq .wp-block-details { background: var(--bb-surface); margin-top: 10px !important; }
.bb-faq summary { cursor: pointer; font-family: var(--bb-display); font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: "+"; font-family: var(--bb-mono); color: var(--bb-orange); transition: transform .25s var(--bb-ease); }
.bb-faq details[open] summary::after { transform: rotate(45deg); }
.bb-faq details p { color: var(--bb-muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */
footer.wp-block-template-part { border-top: 1px solid var(--bb-line); margin-top: 0; }
.bb-footer__head { font-family: var(--bb-mono) !important; font-size: 13px !important; font-weight: 500 !important; color: var(--bb-muted); margin-bottom: 12px; }
.bb-footer__links { list-style: none; padding: 0; margin: 0; }
.bb-footer__links li { padding: 4px 0; }
.bb-footer__links a { text-decoration: none; color: var(--bb-ink); }
.bb-footer__links a:hover { color: var(--bb-orange); }
.bb-footer__base { margin-top: var(--wp--preset--spacing--50) !important; padding-top: 20px; border-top: 1px solid var(--bb-line); font-size: 13px; color: var(--bb-muted); }
.bb-footer__base p { margin: 0; }
.bb-footer__base a { color: var(--bb-muted); }

/* ---------- Shop archive ---------- */
.bb-archive-head { margin-bottom: 8px; }
.bb-archive-head .wp-block-query-title { margin: 8px 0; }
.bb-archive-head .wp-block-term-description { color: var(--bb-muted); max-width: 60ch; }
.bb-line-bits .bb-archive-head .wp-block-query-title { color: var(--bb-blue); }
.bb-line-bytes .bb-archive-head .wp-block-query-title { color: var(--bb-orange); }
.bb-toolbar { margin-bottom: 20px !important; padding-block: 12px; border-block: 1px solid var(--bb-line); gap: 16px; }
.bb-toolbar .woocommerce-result-count { margin: 0; color: var(--bb-muted); font-size: 14px; }
.bb-toolbar select,
.woocommerce-ordering select {
	background: var(--bb-surface);
	color: var(--bb-ink);
	border: 1px solid var(--bb-line-strong);
	border-radius: 8px;
	padding: 8px 10px;
	font: inherit;
	font-size: 14px;
}
.bb-switch { display: inline-flex; padding: 3px; border: 1px solid var(--bb-line); border-radius: 12px; background: var(--bb-surface); }
.bb-switch__item { padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--bb-muted); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.bb-switch__item:hover { color: var(--bb-ink); }
.bb-switch__item[aria-current="page"] { background: var(--bb-ink); color: #000; }
.bb-switch__item--bits[aria-current="page"] { background: var(--bb-blue); }
.bb-switch__item--bytes[aria-current="page"] { background: var(--bb-orange); }
.wp-block-query-pagination { margin-top: 32px; font-family: var(--bb-mono); }
.wp-block-query-pagination a { text-decoration: none; }
.wp-block-query-pagination .current { color: var(--bb-orange); }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { color: var(--bb-muted); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { color: var(--bb-muted); text-decoration: none; }

/* ---------- Single product ---------- */
.bb-pdp { margin-top: 16px !important; }
.bb-pdp__media .wp-block-woocommerce-product-image-gallery { max-width: none; width: 100%; }
.bb-pdp__media .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.bb-pdp__media .woocommerce-product-gallery img { width: 100%; height: auto; }
.bb-pdp__media .woocommerce-product-gallery__image,
.bb-pdp__media .woocommerce-product-gallery__wrapper img { border-radius: 18px; overflow: hidden; }
.bb-pdp__media .flex-control-thumbs { display: flex; gap: 10px; margin-top: 10px; padding: 0; list-style: none; }
.bb-pdp__media .flex-control-thumbs li { width: 72px; }
.bb-pdp__media .flex-control-thumbs img { border-radius: 10px; border: 1px solid var(--bb-line); opacity: .6; cursor: pointer; transition: opacity .2s, border-color .2s; }
.bb-pdp__media .flex-control-thumbs img.flex-active,
.bb-pdp__media .flex-control-thumbs img:hover { opacity: 1; border-color: var(--bb-accent); }
.bb-pdp__media .woocommerce-product-gallery__trigger { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: 50%; }
@media (min-width: 782px) {
	.bb-pdp__buy { position: sticky; top: 96px; align-self: flex-start; }
}
.bb-pdp__buy > * + * { margin-top: 14px !important; }
.bb-pdp__title { margin-top: 10px !important; }
.bb-pdp__summary { color: var(--bb-muted); }
.bb-pdp .wc-block-components-product-price, .bb-pdp .price { color: var(--bb-orange); }
.bb-line-bits .bb-pdp .wc-block-components-product-price { color: var(--bb-blue); }
.bb-pdp form.cart { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin: 6px 0 0; }
.bb-pdp form.cart .quantity input.qty,
.bb-pdp .quantity input {
	width: 72px;
	height: 100%;
	min-height: 48px;
	background: var(--bb-surface);
	color: var(--bb-ink);
	border: 1px solid var(--bb-line-strong);
	border-radius: 10px;
	font: 600 16px var(--bb-mono);
	text-align: center;
}
.bb-pdp .single_add_to_cart_button,
.bb-pdp .wc-block-components-product-add-to-cart-button {
	flex: 1;
	min-height: 48px;
	border-radius: 10px !important;
	background: var(--bb-orange) !important;
	color: #000 !important;
	font-weight: 600;
	font-size: 16px;
	border: 0;
	cursor: pointer;
}
.bb-line-bits .bb-pdp .single_add_to_cart_button { background: var(--bb-blue) !important; }
.bb-pdp .single_add_to_cart_button:hover { filter: brightness(1.08); }
.bb-pdp .stock { font-family: var(--bb-mono); font-size: 13px; color: var(--bb-muted); }
.bb-info--delivery { list-style: none; margin: 0; padding: 14px 16px; border: 1px solid var(--bb-line); border-radius: 12px; background: var(--bb-surface); font-size: 14px; }
.bb-info--delivery li { display: flex; gap: 10px; padding: 3px 0; }
.bb-info--delivery li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--bb-accent); }
.bb-pdp .bb-info--datasheet { padding-top: 6px; }
.bb-details { margin-top: var(--wp--preset--spacing--60) !important; }
.bb-details .wc-tabs, .bb-details .tabs { display: flex; gap: 24px; padding: 0; margin: 0 0 20px; list-style: none; border-bottom: 1px solid var(--bb-line); }
.bb-details .wc-tabs li a, .bb-details .tabs li a { display: block; padding: 12px 0; text-decoration: none; color: var(--bb-muted); border-bottom: 2px solid transparent; }
.bb-details .wc-tabs li.active a, .bb-details .tabs li.active a { color: var(--bb-ink); border-bottom-color: var(--bb-accent); }
.bb-details .woocommerce-Tabs-panel > h2:first-child { display: none; }
.bb-related { margin-top: var(--wp--preset--spacing--60) !important; }
.bb-related .wc-block-components-product-sale-badge { display: none; }

/* ---------- WooCommerce blocks (cart, checkout, notices, inputs) ---------- */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
	background: var(--bb-surface) !important;
	color: var(--bb-ink) !important;
	border: 1px solid var(--bb-line-strong) !important;
	border-radius: 10px !important;
}
.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label { color: var(--bb-muted) !important; }
.wc-block-components-text-input.is-active input:focus,
.wc-block-components-text-input input:focus { border-color: var(--bb-blue) !important; box-shadow: 0 0 0 1px var(--bb-blue) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { background: var(--bb-surface); border-color: var(--bb-line-strong); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #000; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--bb-orange); border-color: var(--bb-orange); }
.wc-block-components-radio-control__input { background: var(--bb-surface) !important; border-color: var(--bb-line-strong) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--bb-orange) !important; }
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--bb-orange) !important; }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--bb-orange) !important;
	color: #000 !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	border: 0 !important;
}
.wc-block-components-button:not(.is-link):hover { background: var(--bb-orange-deep) !important; }
.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th,
.wc-block-components-order-summary-item,
.wc-block-cart .wc-block-cart__totals-title { border-color: var(--bb-line) !important; }
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar {
	background: var(--bb-surface);
	border: 1px solid var(--bb-line);
	border-radius: 16px;
	padding: 16px 20px !important;
}
.wc-block-components-product-name { color: var(--bb-ink) !important; text-decoration: none; font-family: var(--bb-display); }
.wc-block-components-order-summary-item__quantity { background: var(--bb-orange) !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
.wc-block-components-quantity-selector { border-color: var(--bb-line-strong) !important; border-radius: 10px !important; }
.wc-block-components-quantity-selector input { color: var(--bb-ink) !important; background: transparent !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: var(--bb-ink) !important; }
.wc-block-components-notice-banner { border-radius: 12px; background: var(--bb-surface) !important; color: var(--bb-ink) !important; border-color: var(--bb-line-strong) !important; }
.wc-block-components-notice-banner.is-success { border-color: color-mix(in srgb, var(--bb-blue) 60%, transparent) !important; }
.wc-block-components-notice-banner.is-error { border-color: var(--bb-orange) !important; }
.wc-block-components-notice-banner > svg { background: var(--bb-orange); fill: #000; }
.wc-block-components-notice-banner.is-success > svg { background: var(--bb-blue); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--bb-surface); color: var(--bb-ink); border: 1px solid var(--bb-line-strong); border-radius: 12px; padding: 14px 18px; list-style: none; }
.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-mini-cart__drawer .wc-block-mini-cart__template-part,
.wc-block-components-drawer { background: var(--bb-ground) !important; color: var(--bb-ink); }
.wc-block-components-drawer__screen-overlay { background: rgba(0,0,0,.6); }
.wc-block-mini-cart__footer { border-top: 1px solid var(--bb-line); }
.wc-block-mini-cart__footer-actions .wc-block-components-button.outlined { background: transparent !important; color: var(--bb-ink) !important; box-shadow: inset 0 0 0 1px var(--bb-line-strong) !important; }
.wc-block-components-formatted-money-amount { font-variant-numeric: tabular-nums; }
.wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button { color: var(--bb-muted); }
.wc-block-components-checkout-step__title { font-family: var(--bb-display); }
.wc-block-components-checkout-step__container::after { border-color: var(--bb-line) !important; }
.wc-block-components-validation-error { color: var(--bb-orange); }

/* ---------- Command palette (Ctrl/⌘ K) ---------- */
.bb-palette {
	width: min(640px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 120px));
	margin: 12vh auto auto;
	padding: 0;
	border: 1px solid var(--bb-line-strong);
	border-radius: 16px;
	background: var(--bb-surface);
	color: var(--bb-ink);
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02);
	overflow: hidden;
}
.bb-palette::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.bb-palette[open] { animation: bb-pop .28s var(--bb-ease); }
@keyframes bb-pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.bb-palette__box { display: flex; flex-direction: column; max-height: inherit; }
.bb-palette__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--bb-line); color: var(--bb-muted); }
.bb-palette__field input[type=search] { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--bb-ink); font: 400 17px/1.4 var(--wp--preset--font-family--sans); }
.bb-palette__field input[type=search]::-webkit-search-cancel-button { display: none; }
.bb-palette__list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.bb-palette__group { padding: 10px 10px 6px; font: 500 12px var(--bb-mono); color: var(--bb-muted); }
.bb-palette__opt a { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--bb-ink); }
.bb-palette__opt img, .bb-palette__icon { width: 44px; height: 44px; border-radius: 8px; flex: none; object-fit: cover; background: var(--bb-sunken); }
.bb-palette__icon { display: grid; place-items: center; font: 600 15px var(--bb-mono); color: var(--bb-orange); }
.bb-palette__name { flex: 1; min-width: 0; }
.bb-palette__name small { display: block; color: var(--bb-muted); font: 12px var(--bb-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-palette__price { font: 600 15px var(--bb-display); color: var(--bb-orange); }
.bb-palette__opt[aria-selected="true"] a { background: var(--bb-sunken); box-shadow: inset 2px 0 0 var(--bb-orange); }
.bb-palette__empty { padding: 18px 10px; color: var(--bb-muted); }
.bb-palette__foot { display: flex; gap: 18px; margin: 0; padding: 10px 18px; border-top: 1px solid var(--bb-line); font-size: 12px; color: var(--bb-muted); }
.bb-palette__foot kbd { margin-right: 3px; }
.bb-palette mark { background: none; color: var(--bb-orange); }

/* ---------- Status bar ---------- */
.bb-statusbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 40;
	display: none;
	align-items: center;
	gap: 0;
	height: 28px;
	padding: 0 12px;
	background: color-mix(in srgb, var(--bb-surface) 92%, transparent);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--bb-line);
	font: 500 12px/1 var(--bb-mono);
	color: var(--bb-muted);
}
@media (min-width: 1024px) and (hover: hover) {
	.bb-statusbar { display: flex; }
	body:has(.bb-statusbar) { padding-bottom: 28px; }
}
.bb-statusbar__item { padding: 0 12px; border-right: 1px solid var(--bb-line); }
.bb-statusbar__online::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.18); }
.bb-statusbar__search { margin-left: auto; border-right: 0; background: none; border-top: 0; border-bottom: 0; color: var(--bb-muted); font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.bb-statusbar__search:hover { color: var(--bb-ink); }
.bb-statusbar kbd { font-size: 10px; padding: 1px 4px; }

/* ---------- Consent ---------- */
.bb-consent {
	position: fixed;
	left: 16px; bottom: 44px;
	z-index: 60;
	width: min(420px, calc(100vw - 32px));
	padding: 16px 18px;
	border: 1px solid var(--bb-line-strong);
	border-radius: 14px;
	background: var(--bb-surface);
	box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
	font-size: 14px;
}
.bb-consent p { margin: 0 0 12px; color: var(--bb-muted); }
.bb-consent a { color: var(--bb-ink); }
.bb-consent__actions { display: flex; gap: 8px; justify-content: flex-end; }
.bb-btn { padding: 9px 14px; border-radius: 9px; border: 0; background: var(--bb-orange); color: #000; font: 600 13px var(--wp--preset--font-family--sans); cursor: pointer; }
.bb-btn--ghost { background: transparent; color: var(--bb-ink); box-shadow: inset 0 0 0 1px var(--bb-line-strong); }
@media (max-width: 1023px) { .bb-consent { bottom: 16px; } }

/* ---------- Fly-to-cart signal ---------- */
.bb-signal {
	position: fixed;
	z-index: 100;
	width: 12px; height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	background: var(--bb-orange);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bb-orange) 30%, transparent), 0 0 18px var(--bb-orange);
	pointer-events: none;
}

/* ---------- 404 ---------- */
.bb-404__code { font: 700 clamp(96px, 18vw, 220px)/.85 var(--bb-display); color: transparent; -webkit-text-stroke: 1.5px var(--bb-violet); margin: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.bb-split__art { transform: translate3d(0, -50%, 0); }
}

/* ---------- Checkout header ---------- */
.bb-header--checkout { border-bottom: 1px solid var(--bb-line); }
.bb-secure { margin: 0; font: 500 13px var(--bb-mono); color: var(--bb-muted); display: inline-flex; align-items: center; gap: 8px; }
.bb-secure::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.18); }
.bb-feature .bb-card__buy .wp-block-button.wc-block-components-product-button { align-items: flex-start; }

/* ---------- Variable products + co-brand workwear ---------- */
.bb-pdp form.variations_form { display: block; }
.bb-pdp .variations { width: 100%; border-collapse: collapse; margin: 0 0 10px; }
.bb-pdp .variations th, .bb-pdp .variations td { display: block; padding: 0; text-align: left; border: 0; }
.bb-pdp .variations th label { display: block; margin: 12px 0 6px; font: 600 13px var(--bb-mono); color: var(--bb-muted); }
.bb-pdp .variations select {
	width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px;
	background: var(--bb-surface); color: var(--bb-ink); border: 1px solid var(--bb-line-strong); font: 500 16px inherit;
}
.bb-pdp .reset_variations { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--bb-muted); }
.bb-pdp .woocommerce-variation-price { margin: 8px 0; color: var(--bb-blue); font-weight: 700; }
.bb-pdp .woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.bb-cobrand { flex: 1 1 100%; display: grid; gap: 16px; margin: 6px 0 4px; }
.bb-tiers { width: 100%; border-collapse: collapse; font: 500 15px var(--bb-mono); }
.bb-tiers caption { text-align: left; margin-bottom: 6px; font-size: 13px; color: var(--bb-muted); }
.bb-tiers th, .bb-tiers td { padding: 8px 12px; border-top: 1px solid var(--bb-line); text-align: left; font-weight: 500; }
.bb-tiers td { text-align: right; color: var(--bb-ink); }
.bb-logo-field { display: grid; gap: 8px; padding: 16px; border: 1px dashed var(--bb-line-strong); border-radius: 12px; background: var(--bb-sunken); }
.bb-logo-field > label:first-child { font-weight: 700; }
.bb-logo-field input[type="file"] { color: var(--bb-ink); font-size: 15px; min-height: 44px; }
.bb-logo-field input[type="file"]::file-selector-button {
	margin-right: 12px; min-height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
	border: 1px solid var(--bb-line-strong); background: var(--bb-surface); color: var(--bb-ink); font-weight: 600;
}
.bb-logo-help { margin: 0; font-size: 14px; color: var(--bb-muted); }
.bb-logo-repeat { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
.bb-logo-repeat input { width: 20px; height: 20px; accent-color: var(--bb-blue); }
.bb-pdp .variations select { max-width: none; display: block; }
.bb-pdp table.variations, .bb-pdp .variations tbody, .bb-pdp .variations tr { display: block; width: 100%; }

/* Native dropdown lists: keep options readable on Windows/Chrome (the list
   otherwise opens white while the text stays white). */
select { color-scheme: dark; }
select option, select optgroup { background-color: var(--bb-surface, #15151c); color: var(--bb-ink, #e9e9f0); }
select option:checked { background-color: var(--bb-blue, #4795f2); color: #000; }

/* Motto under the hero headline */
.bb-hero__motto { margin-top: 10px !important; font-family: var(--bb-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); color: var(--bb-orange); letter-spacing: -0.01em; }
