/* TMTI Blunor Support — main stylesheet
   Single source of truth. Token-driven. Minimal-tech preset.
   ===========================================================*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
	/* Brand colours — overridable via Customizer per install */
	--tbs-blue:           #1f94d3;
	--tbs-blue-600:       #0a73c6;
	--tbs-blue-700:       #075ea2;
	--tbs-blue-800:       #054a80;
	--tbs-blue-50:        #eaf2fa;
	--tbs-blue-100:       #d5e8f8;

	/* Neutrals */
	--tbs-ink:            #1a2433;
	--tbs-ink-muted:      #5b6a7d;
	--tbs-ink-subtle:     #8a97a8;
	--tbs-line:           #dbe4ee;
	--tbs-line-soft:      #ecf0f5;
	--tbs-bg:             #ffffff;
	--tbs-bg-soft:        #f6f9fc;
	--tbs-bg-sunken:      #eef3f8;
	--tbs-cream:          #fbf6ea;

	/* Semantic */
	--tbs-success:        #1a8f5a;
	--tbs-warning:        #c47a00;
	--tbs-danger:         #c0392b;

	/* Spacing scale (rem-based, 4px increments) */
	--tbs-sp-1: 0.25rem;  /*  4px */
	--tbs-sp-2: 0.5rem;   /*  8px */
	--tbs-sp-3: 0.75rem;  /* 12px */
	--tbs-sp-4: 1rem;     /* 16px */
	--tbs-sp-5: 1.25rem;  /* 20px */
	--tbs-sp-6: 1.5rem;   /* 24px */
	--tbs-sp-8: 2rem;     /* 32px */
	--tbs-sp-10: 2.5rem;  /* 40px */
	--tbs-sp-12: 3rem;    /* 48px */
	--tbs-sp-16: 4rem;    /* 64px */
	--tbs-sp-20: 5rem;    /* 80px */
	--tbs-sp-24: 6rem;    /* 96px */

	/* Radii */
	--tbs-r-sm:   6px;
	--tbs-r:      10px;
	--tbs-r-lg:   14px;
	--tbs-r-xl:   20px;
	--tbs-r-pill: 999px;

	/* Shadows — layered, premium feel (Tidii / Boujee pattern). */
	--tbs-shadow-sm:    0 1px 2px rgba(15, 30, 50, .05), 0 1px 1px rgba(15, 30, 50, .03);
	--tbs-shadow:       0 6px 16px -6px rgba(15, 30, 50, .12), 0 2px 4px rgba(15, 30, 50, .05);
	--tbs-shadow-lg:    0 14px 32px -10px rgba(15, 30, 50, .18), 0 6px 10px -4px rgba(15, 30, 50, .06);
	--tbs-shadow-xl:    0 28px 56px -18px rgba(15, 30, 50, .26), 0 10px 20px -6px rgba(15, 30, 50, .08);
	--tbs-shadow-brand: 0 8px 22px -6px rgba(10, 115, 198, .35), 0 2px 4px rgba(10, 115, 198, .12);

	/* Typography */
	--tbs-font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--tbs-font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--tbs-fs-12: 0.75rem;
	--tbs-fs-13: 0.8125rem;
	--tbs-fs-14: 0.875rem;
	--tbs-fs-15: 0.9375rem;
	--tbs-fs-16: 1rem;
	--tbs-fs-17: 1.0625rem;
	--tbs-fs-18: 1.125rem;
	--tbs-fs-20: 1.25rem;
	--tbs-fs-22: 1.375rem;
	--tbs-fs-26: 1.625rem;
	--tbs-fs-32: 2rem;
	--tbs-fs-40: 2.5rem;
	--tbs-fs-48: 3rem;
	--tbs-fs-56: 3.5rem;

	--tbs-lh-tight: 1.15;
	--tbs-lh-snug:  1.3;
	--tbs-lh-body:  1.55;

	--tbs-fw-regular:  400;
	--tbs-fw-medium:   500;
	--tbs-fw-semibold: 600;
	--tbs-fw-bold:     700;
	--tbs-fw-black:    800;

	/* Motion */
	--tbs-dur:        .2s;
	--tbs-dur-fast:   .12s;
	--tbs-dur-slow:   .35s;
	--tbs-ease:       cubic-bezier(.4, 0, .2, 1);
	--tbs-ease-out:   cubic-bezier(0, 0, .2, 1);

	/* Layout */
	--tbs-container:       1240px;
	--tbs-container-narrow: 900px;
	--tbs-gutter:          24px;
	--tbs-gutter-mobile:   16px;
	--tbs-header-h:        96px;
}

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

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
/* `overflow-x: clip` kills any stray horizontal scroll without creating a
   scroll container (so the sticky header keeps working — `overflow: hidden`
   would break it). Pairs with the break-word rules below. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* iOS Safari is stricter than Chrome's device emulation about long unbreakable
   strings — model numbers like CFG09EH80/W-UK and bare URLs would push past
   their container and overlap neighbouring text. Force them to wrap. */
body, .tbs-content, .tbs-card__title, .tbs-faq__title, .tbs-faq__btn,
.tbs-product-summary__meta, .tbs-product-summary h1,
.tbs-sp-banner__title, .tbs-live-search__title,
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-break: break-word; }
body {
	margin: 0;
	font-family: var(--tbs-font-body);
	font-size: var(--tbs-fs-15);
	line-height: var(--tbs-lh-body);
	color: var(--tbs-ink);
	background: var(--tbs-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a {
	color: var(--tbs-blue-700);
	text-decoration: none;
	transition: color var(--tbs-dur) var(--tbs-ease);
}
a:hover { color: var(--tbs-blue-800); }
button {
	font: inherit; cursor: pointer; border: 0; background: none; padding: 0;
}
:focus-visible {
	outline: 2px solid var(--tbs-blue-600);
	outline-offset: 2px;
	border-radius: var(--tbs-r-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--tbs-font-display);
	color: var(--tbs-ink);
	line-height: var(--tbs-lh-snug);
	margin: 0 0 var(--tbs-sp-4);
	letter-spacing: -.01em;
	font-weight: var(--tbs-fw-bold);
}
h1 { font-size: clamp(2rem, 4.5vw, var(--tbs-fs-48)); line-height: var(--tbs-lh-tight); letter-spacing: -.02em; font-weight: var(--tbs-fw-black); }
h2 { font-size: clamp(1.5rem, 3vw, var(--tbs-fs-32)); }
h3 { font-size: var(--tbs-fs-20); font-weight: var(--tbs-fw-semibold); }
h4 { font-size: var(--tbs-fs-17); font-weight: var(--tbs-fw-semibold); }
p  { margin: 0 0 var(--tbs-sp-4); }
small, .tbs-small { font-size: var(--tbs-fs-13); color: var(--tbs-ink-muted); }
.tbs-eyebrow {
	font-size: var(--tbs-fs-12);
	font-weight: var(--tbs-fw-semibold);
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--tbs-ink-muted);
	margin: 0 0 var(--tbs-sp-3);
}

/* ============================================================
   3. LAYOUT PRIMITIVES
   ============================================================ */
.tbs-container {
	max-width: var(--tbs-container);
	margin: 0 auto;
	padding: 0 var(--tbs-gutter);
}
.tbs-container--narrow { max-width: var(--tbs-container-narrow); }
.tbs-stack > * + * { margin-top: var(--tbs-sp-4); }
.tbs-section {
	padding: var(--tbs-sp-16) 0;
	background: var(--tbs-bg);
}
.tbs-section--soft  { background: var(--tbs-bg-soft); }
.tbs-section--cream { background: var(--tbs-cream); }
.tbs-section--sunken { background: var(--tbs-bg-sunken); }
.tbs-section-head {
	text-align: left;
	margin-bottom: var(--tbs-sp-10);
}
.tbs-section-head--centered { text-align: center; }
.tbs-section-head h2 { margin-bottom: var(--tbs-sp-3); }

/* ============================================================
   4. HEADER + NAV
   ============================================================ */
.tbs-site-header {
	background: var(--tbs-bg);
	border-bottom: 1px solid var(--tbs-line-soft);
	position: sticky;
	top: 0;
	z-index: 50;
	transition: box-shadow var(--tbs-dur) var(--tbs-ease);
}
.tbs-site-header.is-scrolled { box-shadow: var(--tbs-shadow); }
.tbs-header-row {
	display: flex;
	align-items: center;
	gap: var(--tbs-sp-6);
	padding: var(--tbs-sp-3) 0;
	min-height: 72px;
}
.tbs-header-logo img { max-height: var(--tbs-logo-height, 56px); width: auto; }
.tbs-header-search {
	flex: 1;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	gap: var(--tbs-sp-2);
	padding: 10px 18px;
	background: var(--tbs-bg);
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-pill);
	transition: border-color var(--tbs-dur) var(--tbs-ease), box-shadow var(--tbs-dur) var(--tbs-ease);
}
/* No focus chrome on the search bars — neither the pill container nor the
   inner input/button. Suppress `:focus`, `:focus-within`, and `:focus-visible`
   explicitly so modern Chromium's keyboard-trigger of `:focus-visible` on
   typing into a text input doesn't sneak the blue outline back in. */
.tbs-header-search,
.tbs-header-search:focus-within,
.tbs-hero__search,
.tbs-hero__search:focus-within {
	border-color: var(--tbs-line);
	box-shadow: none;
}
/* Beat the Blunor design-overrides mu-plugin (`body:not(.wp-admin) input:focus-visible {…!important}`)
   by prefixing `body:not(.wp-admin)` here too — specificity 0,3,2 vs the mu-plugin's 0,2,2. */
body:not(.wp-admin) .tbs-header-search input,
body:not(.wp-admin) .tbs-header-search input:focus,
body:not(.wp-admin) .tbs-header-search input:focus-visible,
body:not(.wp-admin) .tbs-header-search button,
body:not(.wp-admin) .tbs-header-search button:focus,
body:not(.wp-admin) .tbs-header-search button:focus-visible,
body:not(.wp-admin) .tbs-hero__search input,
body:not(.wp-admin) .tbs-hero__search input:focus,
body:not(.wp-admin) .tbs-hero__search input:focus-visible,
body:not(.wp-admin) .tbs-hero__search button,
body:not(.wp-admin) .tbs-hero__search button:focus,
body:not(.wp-admin) .tbs-hero__search button:focus-visible,
body:not(.wp-admin) .tbs-archive-search input,
body:not(.wp-admin) .tbs-archive-search input:focus,
body:not(.wp-admin) .tbs-archive-search input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.tbs-header-search input {
	flex: 1; border: 0; background: transparent; font: inherit; color: var(--tbs-ink);
}
.tbs-header-search input:focus { outline: none; }
.tbs-header-cta {
	display: inline-flex;
	align-items: center;
	gap: var(--tbs-sp-2);
	padding: 9px 18px;
	border-radius: var(--tbs-r-pill);
	border: 1px solid var(--tbs-line);
	color: var(--tbs-blue-700);
	background: var(--tbs-bg);
	font-weight: var(--tbs-fw-semibold);
	font-size: var(--tbs-fs-14);
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-header-cta:hover { background: var(--tbs-blue-50); border-color: var(--tbs-blue); transform: translateY(-1px); }

.tbs-site-nav { background: var(--tbs-blue); }
.tbs-nav-row { display: flex; align-items: center; }
.tbs-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--tbs-sp-2); }
.tbs-nav-menu > li { position: relative; }
.tbs-nav-menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: var(--tbs-sp-4) var(--tbs-sp-5);
	color: #fff;
	font-weight: var(--tbs-fw-medium);
	font-size: var(--tbs-fs-15);
	transition: background-color var(--tbs-dur) var(--tbs-ease);
}
.tbs-nav-menu > li > a:hover,
.tbs-nav-menu > li.is-current > a,
.tbs-nav-menu > li.is-ancestor > a {
	background: rgba(255,255,255,.08);
	color: #fff;
}

/* Dropdown */
.tbs-nav-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-top: 3px solid var(--tbs-blue-600);
	border-radius: 0 0 var(--tbs-r-lg) var(--tbs-r-lg);
	box-shadow: var(--tbs-shadow-lg);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 60;
}
.tbs-nav-menu > li:hover > .tbs-nav-submenu,
.tbs-nav-menu > li:focus-within > .tbs-nav-submenu,
.tbs-nav-submenu li:hover > .tbs-nav-submenu,
.tbs-nav-submenu li:focus-within > .tbs-nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.tbs-nav-submenu li { position: relative; }
.tbs-nav-submenu a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 22px;
	color: var(--tbs-ink);
	font-size: var(--tbs-fs-14);
	font-weight: var(--tbs-fw-medium);
	transition: all .15s ease;
}
.tbs-nav-submenu a:hover { background: var(--tbs-blue-50); color: var(--tbs-blue-700); padding-left: 26px; }
.tbs-nav-submenu .tbs-nav-submenu {
	top: -1px;
	left: 100%;
	margin-left: 2px;
	border-top: 1px solid var(--tbs-line);
	border-left: 3px solid var(--tbs-blue-600);
	border-radius: 0 var(--tbs-r-lg) var(--tbs-r-lg) var(--tbs-r-lg);
}
/* Right-pointing chevron on items that have children inside a submenu */
.tbs-nav-submenu li.menu-item-has-children > a {
	padding-right: 14px;
}
.tbs-nav-submenu li.menu-item-has-children > a span[aria-hidden="true"] {
	display: inline-block;
	transform: rotate(-90deg);
	margin-left: 6px;
}

.tbs-nav-toggle { display: none; margin-left: auto; padding: 10px; background: var(--tbs-blue-50); color: var(--tbs-blue-700); border-radius: var(--tbs-r); }
@media (max-width: 920px) {
	.tbs-nav-menu { display: none; }
	.tbs-nav-toggle { display: inline-flex; }
}

/* Mobile / collapsed header (matches the nav-collapse breakpoint). Clean
   three-part layout: logo hard left, menu toggle hard right, search bar on its
   own full-width row below. The single desktop flex row (logo + search + CTA +
   toggle) used to overflow on narrow viewports — worst on real iOS Safari,
   which doesn't shrink flex items the way Chrome devtools emulation does — and
   pushed the logo + toggle off-screen. The external CTA is hidden in this mode
   to keep row one to just logo + toggle; it returns at desktop. */
/* Selectors are scoped under .tbs-site-header (specificity 0,2,0) so they beat
   the base `.tbs-live-search { flex: 1; max-width: 560px; margin: auto }` rule
   defined later in the file — without this, search keeps its centred desktop
   sizing and never drops to its own row. */
@media (max-width: 920px) {
	.tbs-site-header .tbs-header-row { flex-wrap: wrap; gap: var(--tbs-sp-3) var(--tbs-sp-4); }
	.tbs-site-header .tbs-header-logo { order: 1; flex: 0 0 auto; }
	.tbs-site-header .tbs-header-logo img { max-height: 40px; max-width: 160px; }
	.tbs-site-header .tbs-header-cta { display: none; }
	.tbs-site-header .tbs-nav-toggle { order: 2; margin-left: auto; }
	.tbs-site-header .tbs-live-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
}
@media (max-width: 420px) {
	.tbs-site-header .tbs-header-logo img { max-width: 130px; }
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.tbs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-size: var(--tbs-fs-15);
	font-weight: var(--tbs-fw-semibold);
	border-radius: var(--tbs-r);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--tbs-dur) var(--tbs-ease);
	line-height: 1.2;
}
.tbs-btn--primary {
	background: var(--tbs-blue-600);
	color: #fff;
	box-shadow: var(--tbs-shadow-brand);
}
.tbs-btn--primary:hover {
	background: var(--tbs-blue-700);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -6px rgba(10,115,198,.45), 0 4px 8px rgba(10,115,198,.18);
}
.tbs-btn--primary:active { transform: translateY(0); }
.tbs-btn--ghost {
	background: transparent;
	color: var(--tbs-blue-700);
	border-color: var(--tbs-line);
}
.tbs-btn--ghost:hover { background: var(--tbs-bg-soft); border-color: var(--tbs-blue); }
.tbs-btn--lg { padding: 14px 26px; font-size: var(--tbs-fs-16); }
.tbs-btn--pill { border-radius: var(--tbs-r-pill); }

/* ============================================================
   6. HERO
   ============================================================ */
.tbs-hero {
	position: relative;
	min-height: 540px;
	display: flex;
	align-items: center;
	color: #fff;
	/* Overflow stays visible so the live-search dropdown can extend below the hero;
	   the bg image is sized via object-fit and won't overflow anyway. */
	overflow: visible;
	isolation: isolate;
	z-index: 5;
}
.tbs-hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	border-radius: inherit;
}
.tbs-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.tbs-hero__overlay {
	position: absolute;
	inset: 0;
	/* Darker overlay so the white heading + search remain readable over a busy photo. */
	background: linear-gradient(180deg, rgba(10,25,45,.55) 0%, rgba(10,25,45,.75) 100%);
	z-index: -1;
}
.tbs-hero__inner {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	padding: var(--tbs-sp-16) var(--tbs-gutter);
}
.tbs-hero h1 { color: #fff; margin-bottom: var(--tbs-sp-6); }
/* Beat the Blunor design-overrides mu-plugin's body:not(.wp-admin) h1 colour rule. */
body:not(.wp-admin) .tbs-hero h1 { color: #fff !important; }
.tbs-hero__search {
	background: #fff;
	border-radius: var(--tbs-r-pill);
	display: flex;
	align-items: center;
	gap: var(--tbs-sp-2);
	padding: 14px 24px;
	box-shadow: var(--tbs-shadow-lg);
}
.tbs-hero__search input {
	flex: 1; border: 0; font: inherit; font-size: var(--tbs-fs-16); color: var(--tbs-ink); background: transparent;
}
.tbs-hero__search input:focus { outline: none; }
.tbs-hero__search button { color: var(--tbs-blue-700); }

/* ============================================================
   7. CARDS — PRODUCT GRID
   ============================================================ */
.tbs-grid {
	display: grid;
	gap: var(--tbs-sp-6);
}
/* Product grid — auto-fill at desktop (3+ depending on container), forced
   2-up on phones so visitors never have to thumb-scroll one tall card at a
   time. Drops to 1-up only on very narrow viewports (<360 px). */
.tbs-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 720px) { .tbs-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tbs-sp-4); } }
@media (max-width: 360px) { .tbs-grid--3 { grid-template-columns: 1fr; } }

/* Posts grid — exact 3-up at desktop (no overflow to 4 on wide screens),
   2-up at tablet AND phone. */
.tbs-grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .tbs-grid--posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .tbs-grid--posts { grid-template-columns: 1fr; } }

/* Term grid (categories + brands landing) — 4-up at desktop, 3-up at tablet,
   2-up at phone. */
.tbs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .tbs-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tbs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tbs-sp-4); } }
@media (max-width: 360px) { .tbs-grid--4 { grid-template-columns: 1fr; } }

/* Each term card — square hero image, bold name, subtle count below. Lifts
   on hover and the photo slightly zooms (same micro-interaction as product cards). */
.tbs-term-card {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-lg);
	overflow: hidden;
	color: inherit; text-decoration: none;
	transition: all var(--tbs-dur) var(--tbs-ease);
	box-shadow: var(--tbs-shadow-sm);
}
.tbs-term-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tbs-shadow-xl);
	border-color: var(--tbs-blue-100);
	color: inherit;
}
.tbs-term-card__media {
	aspect-ratio: 1 / 1;
	background: #fff;
	border-bottom: 1px solid var(--tbs-line-soft);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.tbs-term-card__media img {
	max-width: 80%; max-height: 80%;
	object-fit: contain;
	transition: transform .4s var(--tbs-ease);
}
.tbs-term-card:hover .tbs-term-card__media img { transform: scale(1.06); }
.tbs-term-card__media-placeholder,
.tbs-term-card .tbs-card__media-placeholder {
	width: 100%; height: 100%;
	background: #fff;
}
.tbs-term-card__body {
	padding: var(--tbs-sp-4) var(--tbs-sp-5);
	display: flex; flex-direction: column; gap: 2px;
}
.tbs-term-card__title {
	font-size: var(--tbs-fs-16);
	font-weight: var(--tbs-fw-semibold);
	color: var(--tbs-ink);
	margin: 0;
	line-height: var(--tbs-lh-snug);
}
.tbs-term-card__count {
	font-size: var(--tbs-fs-13);
	color: var(--tbs-ink-muted);
	font-weight: var(--tbs-fw-medium);
}
.tbs-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.tbs-card {
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-lg);
	padding: var(--tbs-sp-5);
	display: flex;
	flex-direction: column;
	gap: var(--tbs-sp-3);
	transition: all var(--tbs-dur) var(--tbs-ease);
	box-shadow: var(--tbs-shadow);
}
.tbs-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tbs-shadow-xl);
	border-color: var(--tbs-blue-100);
}
.tbs-card a { color: inherit; text-decoration: none; display: contents; }
.tbs-card__media {
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--tbs-line-soft);
	border-radius: var(--tbs-r);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.tbs-card__media img {
	max-height: 90%;
	max-width: 90%;
	object-fit: contain;
	transition: transform .4s var(--tbs-ease);
}
.tbs-card:hover .tbs-card__media img { transform: scale(1.04); }
.tbs-card__title {
	font-size: var(--tbs-fs-15);
	font-weight: var(--tbs-fw-semibold);
	color: var(--tbs-ink);
	margin: 0;
	line-height: var(--tbs-lh-snug);
}
.tbs-card__meta { font-size: var(--tbs-fs-13); color: var(--tbs-ink-muted); }

/* Video card */
.tbs-video-card {
	border-radius: var(--tbs-r-lg);
	overflow: hidden;
	background: var(--tbs-bg-sunken);
	box-shadow: var(--tbs-shadow);
}
.tbs-video-card__media { aspect-ratio: 16 / 9; position: relative; background: #000; }
.tbs-video-card__media iframe,
.tbs-video-card__media img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.tbs-video-card__title { padding: var(--tbs-sp-4); font-weight: var(--tbs-fw-semibold); }

/* Click-to-play facade — replaces the live YouTube/Vimeo iframe until first
   interaction. Saves hundreds of KB of third-party JS on initial page load. */
.tbs-video-facade {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	padding: 0; margin: 0; border: 0;
	background: #000;
	cursor: pointer;
	display: block;
}
.tbs-video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s ease, transform .4s ease; }
.tbs-video-facade__bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--tbs-blue), var(--tbs-blue-700, #1471a8)); }
.tbs-video-facade__play {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
	transition: transform .2s ease;
}
.tbs-video-facade:hover img,
.tbs-video-facade:focus-visible img { opacity: 1; transform: scale(1.02); }
.tbs-video-facade:hover .tbs-video-facade__play,
.tbs-video-facade:focus-visible .tbs-video-facade__play { transform: translate(-50%, -50%) scale(1.08); }

/* Card slider: 3 cards per row baseline. When count > 3 (`.is-slider`), the
   track turns into a horizontal scroll-snap row with prev/next nav buttons.
   Shared by Popular Videos (homepage), single-product Videos, and Recent Posts. */
.tbs-card-slider { position: relative; }
.tbs-card-slider__track {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--tbs-sp-6);
}
@media (max-width: 960px) {
	.tbs-card-slider__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tbs-card-slider__track { grid-template-columns: 1fr; }
}
.tbs-card-slider.is-slider .tbs-card-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: var(--tbs-sp-2) 0;
	margin: 0 calc(var(--tbs-sp-2) * -1);
	scrollbar-width: thin;
}
.tbs-card-slider.is-slider .tbs-card-slider__track::-webkit-scrollbar { height: 6px; }
.tbs-card-slider.is-slider .tbs-card-slider__track::-webkit-scrollbar-thumb { background: var(--tbs-line); border-radius: 3px; }
.tbs-card-slider.is-slider .tbs-card-slider__track > * {
	flex: 0 0 calc(33.333% - var(--tbs-sp-4));
	scroll-snap-align: start;
	margin: 0 var(--tbs-sp-2);
}
@media (max-width: 960px) {
	.tbs-card-slider.is-slider .tbs-card-slider__track > * { flex-basis: calc(50% - var(--tbs-sp-3)); }
}
@media (max-width: 600px) {
	.tbs-card-slider.is-slider .tbs-card-slider__track > * { flex-basis: calc(100% - var(--tbs-sp-4)); }
}
.tbs-card-slider__nav {
	position: absolute;
	top: 35%; transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--tbs-line);
	box-shadow: var(--tbs-shadow);
	color: var(--tbs-ink);
	font-size: 20px; font-weight: var(--tbs-fw-semibold);
	cursor: pointer; display: none;
	transition: all var(--tbs-dur) var(--tbs-ease);
	z-index: 5;
}
.tbs-card-slider.is-slider .tbs-card-slider__nav { display: inline-flex; align-items: center; justify-content: center; }
.tbs-card-slider__nav:hover { background: var(--tbs-blue-600); color: #fff; border-color: var(--tbs-blue-600); }
.tbs-card-slider__nav--prev { left: calc(var(--tbs-sp-4) * -1); }
.tbs-card-slider__nav--next { right: calc(var(--tbs-sp-4) * -1); }
@media (max-width: 720px) {
	.tbs-card-slider__nav--prev { left: 4px; }
	.tbs-card-slider__nav--next { right: 4px; }
}

/* Alternation: ONLY kick in when the previous section's bg actually matches
   THIS one (modifier === modifier). The old "any plain follows any section"
   rule was inadvertently forcing every unmodified section to bg-soft — which
   made Videos look identical to the soft Support Contact above it, etc. */
.tbs-section--soft + .tbs-section--soft { background: var(--tbs-bg-sunken); }
.tbs-section--cream + .tbs-section--cream { background: var(--tbs-bg-soft); }

/* Section head with a trailing "View all" link, used by Recent Posts. */
.tbs-section-head--with-link {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: var(--tbs-sp-4); flex-wrap: wrap;
}
.tbs-section-head__link {
	font-size: var(--tbs-fs-14); font-weight: var(--tbs-fw-semibold);
	color: var(--tbs-blue-700); white-space: nowrap;
}
.tbs-section-head__link:hover { color: var(--tbs-blue-800); }

/* Post card variant — full body padding with date meta + excerpt. */
.tbs-card--post a { display: block; }
.tbs-card--post .tbs-card__media {
	aspect-ratio: 16 / 10;
	padding: 0;          /* let the image cover edge-to-edge */
	background: var(--tbs-bg-soft);
}
/* Post photos cover the full media box (cropped to fit) — product photos
   `contain` so they read as catalogue shots; posts want editorial framing. */
.tbs-card--post .tbs-card__media img {
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tbs-card--post .tbs-card__body {
	display: flex; flex-direction: column; gap: var(--tbs-sp-2);
	padding-top: var(--tbs-sp-3);
}
.tbs-card--post .tbs-card__meta {
	font-size: var(--tbs-fs-12);
	color: var(--tbs-ink-subtle);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: var(--tbs-fw-semibold);
}
.tbs-card--post .tbs-card__title { font-size: var(--tbs-fs-18); line-height: var(--tbs-lh-snug); }
.tbs-card--post .tbs-card__excerpt {
	font-size: var(--tbs-fs-14); line-height: 1.55;
	color: var(--tbs-ink-muted);
	margin: 0;
}

/* Make sure the inline-played oembed iframe (homepage videos) sits cleanly
   inside the 16:9 media box. wp_oembed_get returns a fixed-width iframe by
   default — coerce it to fluid. */
.tbs-video-card__media .wp-embedded-content,
.tbs-video-card__media iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
}

/* ============================================================
   8. SINGLE PRODUCT TEMPLATE
   ============================================================ */
.tbs-product-hero {
	background: var(--tbs-bg-soft);
	padding: var(--tbs-sp-12) 0;
}
.tbs-product-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--tbs-sp-12);
	align-items: flex-start;
}
@media (max-width: 880px) {
	.tbs-product-hero__grid { grid-template-columns: 1fr; }
}
.tbs-product-gallery,
.tbs-gallery {
	background: #fff;
	border-radius: var(--tbs-r-lg);
	padding: var(--tbs-sp-6);
	border: 1px solid var(--tbs-line);
	box-shadow: var(--tbs-shadow-lg);
}
.tbs-gallery__main {
	position: relative;
	background: #fff;
	border: 1px solid var(--tbs-line-soft);
	border-radius: var(--tbs-r);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tbs-gallery__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8%;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s var(--tbs-ease);
}
.tbs-gallery__slide.is-active { opacity: 1; pointer-events: auto; }
.tbs-gallery__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.tbs-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--tbs-ink);
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--tbs-shadow-lg);
	transition: all var(--tbs-dur) var(--tbs-ease);
	z-index: 2;
}
.tbs-gallery__nav:hover { background: var(--tbs-blue-600); color: #fff; transform: translateY(-50%) scale(1.05); }
.tbs-gallery__nav--prev { left: 12px; }
.tbs-gallery__nav--next { right: 12px; }

.tbs-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: var(--tbs-sp-2);
	margin-top: var(--tbs-sp-4);
}
.tbs-gallery__thumb {
	aspect-ratio: 1 / 1;
	background: var(--tbs-bg-soft);
	border: 2px solid var(--tbs-line);
	border-radius: var(--tbs-r-sm);
	padding: 4px;
	cursor: pointer;
	transition: all var(--tbs-dur) var(--tbs-ease);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.tbs-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tbs-gallery__thumb:hover { border-color: var(--tbs-blue-100); }
.tbs-gallery__thumb.is-active { border-color: var(--tbs-blue); box-shadow: 0 0 0 3px var(--tbs-blue-50); }

.tbs-gallery-placeholder {
	aspect-ratio: 1 / 1;
	background: var(--tbs-bg-soft);
	border-radius: var(--tbs-r);
}
.tbs-product-summary h1 { color: var(--tbs-blue-700); margin-bottom: var(--tbs-sp-4); }
.tbs-product-summary__meta {
	display: flex; flex-wrap: wrap; gap: var(--tbs-sp-3);
	font-size: var(--tbs-fs-14); color: var(--tbs-ink-muted);
	margin-bottom: var(--tbs-sp-6);
}
.tbs-product-summary__meta b { color: var(--tbs-ink); }
.tbs-product-summary__actions { display: flex; flex-wrap: wrap; gap: var(--tbs-sp-3); margin-top: var(--tbs-sp-6); }

/* Buy CTA — sits between the manual button and the share row, only when
   the admin has filled in tbs_buy_url. Solid gold-on-ink so it stands apart
   from the brand-blue Instruction Manual primary button. */
.tbs-product-summary__buy { margin-top: var(--tbs-sp-5); }
.tbs-btn--buy {
	background: var(--tbs-ink);
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(15,30,50,.35), 0 4px 8px rgba(15,30,50,.15);
	gap: 10px;
}
.tbs-btn--buy:hover {
	background: var(--tbs-blue-700);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -8px rgba(10,115,198,.5), 0 6px 10px rgba(10,115,198,.2);
}
.tbs-btn--buy:active { transform: translateY(0); }

/* Share — promoted from a tiny letter row to proper SVG buttons. */
.tbs-product-summary__share {
	display: flex; flex-direction: column; gap: var(--tbs-sp-3);
	margin-top: var(--tbs-sp-8);
	padding-top: var(--tbs-sp-5);
	border-top: 1px solid var(--tbs-line-soft);
}
.tbs-product-summary__share-label {
	font-size: var(--tbs-fs-13);
	font-weight: var(--tbs-fw-semibold);
	color: var(--tbs-ink-muted);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.tbs-share-row { display: flex; gap: var(--tbs-sp-3); flex-wrap: wrap; }
.tbs-share-row__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--tbs-bg-sunken);
	color: var(--tbs-ink-muted);
	border: 1px solid transparent;
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-share-row__btn .tbs-icon { width: 20px; height: 20px; }
.tbs-share-row__btn:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--tbs-shadow);
}
.tbs-share-row__btn--facebook:hover { background: #1877F2; border-color: #1877F2; }
.tbs-share-row__btn--linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.tbs-share-row__btn--twitter:hover  { background: #000000; border-color: #000000; }
.tbs-share-row__btn--whatsapp:hover { background: #25D366; border-color: #25D366; }

/* Section dividers — simple soft horizontal hairline (no more diamond). */
.tbs-section + .tbs-section { position: relative; }
.tbs-section:not(.tbs-section--first):not(.tbs-section--no-divider)::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(360px, 60%);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent 0%, rgba(31,148,211,.35) 50%, transparent 100%);
	pointer-events: none;
}

/* ============================================================
   9. SERVICE PROVIDER BANNER
   ============================================================ */
.tbs-sp-banner {
	position: relative;
	display: flex;
	gap: var(--tbs-sp-6);
	align-items: center;
	justify-content: space-between;
	padding: var(--tbs-sp-8);
	background: linear-gradient(135deg, var(--tbs-blue) 0%, var(--tbs-blue-700) 100%);
	color: #fff;
	border-radius: var(--tbs-r-lg);
	overflow: hidden;
	flex-wrap: wrap;
	box-shadow: var(--tbs-shadow-lg);
}
.tbs-sp-banner::before {
	content: ""; position: absolute; top: -30%; right: -10%;
	width: 320px; height: 320px; border-radius: 50%;
	background: rgba(255,255,255,.08); pointer-events: none;
}
.tbs-sp-banner__text { position: relative; flex: 1; min-width: 240px; }
.tbs-sp-banner__eyebrow { font-size: var(--tbs-fs-12); font-weight: var(--tbs-fw-semibold); text-transform: uppercase; letter-spacing: .12em; opacity: .85; margin: 0 0 4px; color: #fff; }
.tbs-sp-banner__title { font-size: var(--tbs-fs-22); font-weight: var(--tbs-fw-bold); margin: 0 0 6px; color: #fff; letter-spacing: -.02em; }
.tbs-sp-banner__hours { font-size: var(--tbs-fs-14); opacity: .92; margin: 0; color: #fff; }
/* Force-white headings on every brand-blue support/CTA card — the Blunor
   sitewide mu-plugin's `body:not(.wp-admin) h1…h4 { color: !important }`
   would otherwise darken them. Out-specify by prefixing `body:not(.wp-admin)`
   so the cascade lands at 0,3,1 (beats the mu-plugin's 0,2,1). */
body:not(.wp-admin) .tbs-sp-banner h1,
body:not(.wp-admin) .tbs-sp-banner h2,
body:not(.wp-admin) .tbs-sp-banner h3,
body:not(.wp-admin) .tbs-sp-banner h4,
body:not(.wp-admin) .tbs-sp-banner__title,
body:not(.wp-admin) .tbs-cta-card--brand h1,
body:not(.wp-admin) .tbs-cta-card--brand h2,
body:not(.wp-admin) .tbs-cta-card--brand h3,
body:not(.wp-admin) .tbs-cta-card--brand h4 {
	color: #fff !important;
}
.tbs-sp-banner__actions { position: relative; display: flex; gap: var(--tbs-sp-3); flex-wrap: wrap; }
.tbs-sp-banner__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 20px; border-radius: var(--tbs-r);
	font-weight: var(--tbs-fw-semibold); font-size: var(--tbs-fs-15);
	transition: all var(--tbs-dur) var(--tbs-ease);
	text-decoration: none;
}
.tbs-sp-banner__btn--primary { background: #fff; color: var(--tbs-blue-700); }
.tbs-sp-banner__btn--primary:hover { background: #f1f7fc; color: var(--tbs-blue-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.tbs-sp-banner__btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.tbs-sp-banner__btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; transform: translateY(-2px); }

/* ============================================================
  10. FAQ ACCORDION
   ============================================================ */
/* FAQ band uses the same soft neutral as every other soft section so it fits
   the palette. (Was --tbs-cream, which read as an out-of-place yellow.) */
.tbs-section--faqs { background: var(--tbs-bg-soft); }
/* Accordion sits at the LEFT of its container (was centered); same max-width
   so the items read at a comfortable measure rather than a wall-to-wall span. */
.tbs-faq { max-width: 880px; margin: 0; display: flex; flex-direction: column; gap: var(--tbs-sp-3); }

/* Policy / warranty body — same left-aligned narrow column as the FAQ
   accordion so the two long-form blocks read consistently. */
.tbs-policy { max-width: 880px; margin: 0; }
.tbs-faq__item {
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r);
	overflow: hidden;
	transition: box-shadow var(--tbs-dur) var(--tbs-ease);
}
.tbs-faq__item.is-open { box-shadow: var(--tbs-shadow); }
.tbs-faq__title { margin: 0; }
.tbs-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tbs-sp-4);
	width: 100%;
	padding: var(--tbs-sp-5) var(--tbs-sp-6);
	text-align: left;
	font-size: var(--tbs-fs-16);
	font-weight: var(--tbs-fw-semibold);
	color: var(--tbs-ink);
	background: transparent;
	cursor: pointer;
}
.tbs-faq__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	border-radius: var(--tbs-r-pill);
	background: var(--tbs-blue-50); color: var(--tbs-blue-700);
	font-size: 18px; flex-shrink: 0;
	transition: transform var(--tbs-dur) var(--tbs-ease);
}
.tbs-faq__item.is-open .tbs-faq__icon { transform: rotate(45deg); background: var(--tbs-blue-600); color: #fff; }
.tbs-faq__panel { max-height: 0; overflow: hidden; transition: max-height var(--tbs-dur-slow) var(--tbs-ease); }
.tbs-faq__panel-inner { padding: 0 var(--tbs-sp-6) var(--tbs-sp-5); color: var(--tbs-ink-muted); }
.tbs-faq__panel-inner ul, .tbs-faq__panel-inner ol { padding-left: var(--tbs-sp-6); }

/* ============================================================
  11. USEFUL LINKS BUTTONS
   ============================================================ */
/* The buttons sit in their own section with a soft tinted strip + hairline
   top/bottom so the "jump to ..." nav reads as a distinct toolbar — not as
   floating chrome between two real content sections. */
.tbs-useful-links-section {
	padding: var(--tbs-sp-6) 0;
	background: #fff;
	border-top: 1px solid var(--tbs-line-soft);
	border-bottom: 1px solid var(--tbs-line-soft);
}
.tbs-useful-links {
	display: flex; flex-wrap: wrap; gap: var(--tbs-sp-3); justify-content: center;
	padding: 0;
}
/* The Useful Links band is a toolbar, not a content section — suppress the
   shared section-divider hairline so the band's borders read clean. */
.tbs-useful-links-section::before,
.tbs-section + .tbs-useful-links-section::before { display: none; }
.tbs-useful-link {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 24px; border-radius: var(--tbs-r-pill);
	background: var(--tbs-blue); color: #fff;
	font-weight: var(--tbs-fw-semibold);
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-useful-link:hover { background: var(--tbs-blue-700); color: #fff; transform: translateY(-1px); box-shadow: var(--tbs-shadow); }

/* Every section that's a valid anchor target gets a top scroll-margin matching
   the sticky-header height (72 px header row + ~24 px breathing). Otherwise
   the in-page jump from .tbs-useful-link lands behind the sticky header and
   the section's <h2> gets visually hidden. */
[id="manual-section"],
[id="video-section"],
[id="guide-section"],
[id="faq-section"],
.tbs-section[id],
section[id] { scroll-margin-top: 96px; }
html { scroll-padding-top: 96px; }

/* ============================================================
  12. ARCHIVES (BRAND / CATEGORY / TAG / SEARCH)
   ============================================================ */
.tbs-archive-header {
	background: var(--tbs-bg-soft);
	padding: var(--tbs-sp-12) 0;
}
.tbs-archive-header h1 { margin: var(--tbs-sp-3) 0 0; }

/* Breadcrumb */
.tbs-breadcrumb {
	font-size: var(--tbs-fs-13);
	color: var(--tbs-ink-muted);
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.tbs-breadcrumb a { color: var(--tbs-ink-muted); }
.tbs-breadcrumb a:hover { color: var(--tbs-blue-700); }
.tbs-breadcrumb-sep { color: var(--tbs-line); }
.tbs-breadcrumb [aria-current="page"] { color: var(--tbs-ink); font-weight: var(--tbs-fw-medium); }

/* Filter bar */
.tbs-filter-bar {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--tbs-sp-4);
	background: #fff;
	padding: var(--tbs-sp-4);
	border-radius: var(--tbs-r-pill);
	box-shadow: var(--tbs-shadow);
	border: 1px solid var(--tbs-line);
	margin: var(--tbs-sp-8) 0;
}
@media (max-width: 720px) {
	.tbs-filter-bar { grid-template-columns: 1fr; border-radius: var(--tbs-r-lg); }
}
.tbs-filter-bar select,
.tbs-filter-bar input {
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-pill);
	padding: 10px 18px;
	font: inherit; color: var(--tbs-ink);
	background: #fff;
	width: 100%;
	transition: border-color var(--tbs-dur) var(--tbs-ease);
}
.tbs-filter-bar select:focus,
.tbs-filter-bar input:focus { border-color: var(--tbs-blue); outline: none; box-shadow: 0 0 0 4px var(--tbs-blue-50); }

/* Active filter chips */
.tbs-active-filters {
	display: flex; flex-wrap: wrap; align-items: center; gap: var(--tbs-sp-3);
	font-size: var(--tbs-fs-13); color: var(--tbs-ink-muted);
	margin: 0 0 var(--tbs-sp-6);
}
.tbs-active-filters__label {
	font-weight: var(--tbs-fw-semibold);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.tbs-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px;
	border-radius: var(--tbs-r-pill);
	background: var(--tbs-blue-50);
	color: var(--tbs-blue-700);
	font-size: var(--tbs-fs-13);
	font-weight: var(--tbs-fw-semibold);
}
.tbs-chip__close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--tbs-blue-700); color: #fff;
	font-size: 11px; line-height: 1;
}
.tbs-chip:hover .tbs-chip__close { background: var(--tbs-blue-800); }

/* Loading skeleton */
.tbs-loading { position: relative; }
.tbs-loading > * { opacity: .35; transition: opacity var(--tbs-dur) var(--tbs-ease); pointer-events: none; }
.tbs-skeleton {
	background: linear-gradient(90deg, var(--tbs-bg-soft) 25%, var(--tbs-bg-sunken) 50%, var(--tbs-bg-soft) 75%);
	background-size: 800px 100%;
	animation: tbs-shimmer 1.4s ease-in-out infinite;
	border-radius: var(--tbs-r);
}
@keyframes tbs-shimmer { 0% { background-position: -200px 0; } 100% { background-position: 600px 0; } }

/* Empty state */
.tbs-empty {
	text-align: center;
	padding: var(--tbs-sp-16) var(--tbs-gutter);
	background: var(--tbs-bg-soft);
	border-radius: var(--tbs-r-lg);
	max-width: 540px;
	margin: var(--tbs-sp-12) auto;
}
.tbs-empty__icon { width: 56px; height: 56px; margin: 0 auto var(--tbs-sp-4); color: var(--tbs-ink-subtle); }

/* ============================================================
  13. SEARCH OVERLAY
   ============================================================ */
.tbs-search-overlay {
	position: fixed; inset: 0;
	background: rgba(15,30,50,.6);
	backdrop-filter: blur(4px);
	z-index: 100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: var(--tbs-sp-16) var(--tbs-gutter);
	opacity: 0; pointer-events: none; visibility: hidden;
	transition: opacity .2s ease, visibility .2s;
}
.tbs-search-overlay.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.tbs-search-overlay__panel {
	width: 100%;
	max-width: 720px;
	background: #fff;
	border-radius: var(--tbs-r-lg);
	box-shadow: var(--tbs-shadow-xl);
	overflow: hidden;
}
.tbs-search-overlay__input {
	display: flex; align-items: center; gap: var(--tbs-sp-3);
	padding: var(--tbs-sp-5) var(--tbs-sp-6);
	border-bottom: 1px solid var(--tbs-line);
}
.tbs-search-overlay__input input {
	flex: 1; border: 0; font: inherit; font-size: var(--tbs-fs-18); color: var(--tbs-ink);
}
.tbs-search-overlay__input input:focus { outline: none; }
.tbs-search-overlay__results { max-height: 60vh; overflow-y: auto; padding: var(--tbs-sp-4) 0; }
.tbs-search-result {
	display: flex; align-items: center; gap: var(--tbs-sp-4);
	padding: var(--tbs-sp-3) var(--tbs-sp-6);
	color: var(--tbs-ink);
	transition: background-color var(--tbs-dur) var(--tbs-ease);
}
.tbs-search-result:hover { background: var(--tbs-bg-soft); }
.tbs-search-result__thumb { width: 48px; height: 48px; border-radius: var(--tbs-r); background: var(--tbs-bg-soft); flex-shrink: 0; object-fit: cover; }
.tbs-search-result__type { font-size: var(--tbs-fs-12); color: var(--tbs-ink-subtle); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
  14. MOBILE NAV DRAWER
   ============================================================ */
.tbs-mobile-drawer {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 88vw; max-width: 380px;
	background: #fff;
	box-shadow: var(--tbs-shadow-xl);
	z-index: 110;
	transform: translateX(100%);
	transition: transform .25s var(--tbs-ease);
	display: flex; flex-direction: column;
	overflow: hidden;
}
.tbs-mobile-drawer.is-open { transform: translateX(0); }
.tbs-mobile-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: var(--tbs-sp-4) var(--tbs-sp-6);
	border-bottom: 1px solid var(--tbs-line-soft);
}
.tbs-mobile-drawer__nav { flex: 1; overflow-y: auto; }
.tbs-mobile-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.tbs-mobile-drawer__nav > ul > li { border-bottom: 1px solid var(--tbs-line-soft); }
.tbs-mobile-drawer__nav a {
	display: flex; align-items: center; justify-content: space-between;
	padding: var(--tbs-sp-4) var(--tbs-sp-6);
	font-weight: var(--tbs-fw-medium); color: var(--tbs-ink);
	min-height: 52px;
}
.tbs-mobile-drawer__nav a:hover { background: var(--tbs-bg-soft); color: var(--tbs-blue-700); }
.tbs-mobile-drawer__nav .is-current > a {
	background: var(--tbs-blue-50); color: var(--tbs-blue-700);
	box-shadow: inset 3px 0 0 var(--tbs-blue-600);
	font-weight: var(--tbs-fw-semibold);
}
.tbs-mobile-drawer__nav .sub-menu a { font-size: var(--tbs-fs-14); padding-left: 48px; color: var(--tbs-ink-muted); background: var(--tbs-bg-soft); }
/* Mobile-drawer accordion — parent menu items are collapsed by default;
   tapping the row reveals the children (JS adds `.is-expanded`). */
.tbs-mobile-drawer__nav .menu-item-has-children > .sub-menu { display: none; }
.tbs-mobile-drawer__nav .menu-item-has-children.is-expanded > .sub-menu { display: block; }
.tbs-mobile-drawer__nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 8px; height: 8px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s var(--tbs-ease);
	flex-shrink: 0;
}
.tbs-mobile-drawer__nav .menu-item-has-children.is-expanded > a::after {
	transform: rotate(-135deg);
}
/* Nested ul (grandchild level — e.g. Robot Vacuum under Floorcare) gets
   another step of left padding so the hierarchy reads visually. */
.tbs-mobile-drawer__nav .sub-menu .sub-menu a { padding-left: 72px; }
.tbs-mobile-drawer__backdrop {
	position: fixed; inset: 0; background: rgba(15,30,50,.4);
	z-index: 105; opacity: 0; pointer-events: none;
	transition: opacity var(--tbs-dur) var(--tbs-ease);
}
.tbs-mobile-drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================
  15. FOOTER
   ============================================================ */
/* Footer bg falls back to the brand primary, but Customizer → Footer columns →
   "Footer background colour" can override it independently of the palette. */
/* Footer colour tokens — all fall back to the white-on-dark defaults, so the
   footer is unchanged until the admin sets a colour in Customizer → Footer
   columns. Set them alongside a light --tbs-footer-bg to keep text legible. */
.tbs-site-footer { background: var(--tbs-footer-bg, var(--tbs-blue)); color: var(--tbs-footer-text, #fff); padding: var(--tbs-sp-12) 0 var(--tbs-sp-6); }
.tbs-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--tbs-sp-6) var(--tbs-sp-8); }
.tbs-footer-col h4 { color: var(--tbs-footer-heading, #fff); font-size: var(--tbs-fs-16); font-weight: var(--tbs-fw-semibold); margin-bottom: var(--tbs-sp-4); }
/* Beat the Blunor design-overrides mu-plugin's `body:not(.wp-admin) h4` colour rule. */
body:not(.wp-admin) .tbs-site-footer .tbs-footer-col h4 { color: var(--tbs-footer-heading, #fff) !important; }
.tbs-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tbs-footer-col li { margin-bottom: var(--tbs-sp-2); }
.tbs-footer-col a { color: var(--tbs-footer-link, rgba(255,255,255,.85)); font-size: var(--tbs-fs-15); }
.tbs-footer-col a:hover { color: var(--tbs-footer-heading, #fff); }
.tbs-footer-social {
	display: flex; gap: var(--tbs-sp-3); margin-top: var(--tbs-sp-2);
	align-items: center; flex-wrap: wrap;
}
.tbs-footer-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--tbs-footer-social-bg, rgba(255,255,255,.12));
	color: var(--tbs-footer-heading, #fff);
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-footer-social a:hover {
	background: var(--tbs-footer-heading, #fff); color: var(--tbs-footer-bg, var(--tbs-blue-700));
	transform: translateY(-2px);
}
.tbs-footer-social a .tbs-icon { width: 18px; height: 18px; }
.tbs-footer-contact { color: var(--tbs-footer-text, rgba(255,255,255,.85)); }
.tbs-footer-contact a { color: var(--tbs-footer-heading, #fff); text-decoration: none; }
.tbs-footer-contact a:hover { text-decoration: underline; }
.tbs-footer-credit { color: var(--tbs-footer-heading, #fff); text-decoration: underline; }
.tbs-footer-bottom {
	border-top: 1px solid var(--tbs-footer-rule, rgba(255,255,255,.15));
	margin-top: var(--tbs-sp-8); padding-top: var(--tbs-sp-4);
	font-size: var(--tbs-fs-13); color: var(--tbs-footer-text, rgba(255,255,255,.75));
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--tbs-sp-3);
}

/* ============================================================
  16. UTILITIES
   ============================================================ */
.tbs-sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tbs-hidden { display: none !important; }
.tbs-flex { display: flex; }
.tbs-items-center { align-items: center; }
.tbs-justify-between { justify-content: space-between; }
.tbs-gap-2 { gap: var(--tbs-sp-2); }
.tbs-gap-4 { gap: var(--tbs-sp-4); }
.tbs-mt-4 { margin-top: var(--tbs-sp-4); }
.tbs-mt-8 { margin-top: var(--tbs-sp-8); }
.tbs-text-center { text-align: center; }
.tbs-text-muted { color: var(--tbs-ink-muted); }

/* ============================================================
  19b. STATIC PAGES — hero, prose, contact card, CTA card
   ============================================================ */
.tbs-page-hero {
	background: var(--tbs-bg-soft);
	padding: var(--tbs-sp-12) 0 var(--tbs-sp-16);
	text-align: center;
}
/* Breadcrumb lives INSIDE the hero now (one cohesive header band) instead of a
   separate soft strip above it — that stacked-bands look read as a "double
   header" on About / Contact. */
.tbs-page-hero__crumb { margin-bottom: var(--tbs-sp-5); }
.tbs-page-hero__crumb .tbs-breadcrumb { justify-content: center; }
.tbs-page-hero__eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--tbs-r-pill);
	background: var(--tbs-blue-50);
	color: var(--tbs-blue-800);
	font-size: var(--tbs-fs-12);
	font-weight: var(--tbs-fw-semibold);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: var(--tbs-sp-5);
}
.tbs-page-hero__title {
	font-size: clamp(2rem, 4vw, var(--tbs-fs-48));
	line-height: var(--tbs-lh-tight);
	margin: 0 0 var(--tbs-sp-4);
}
body:not(.wp-admin) .tbs-page-hero__title { color: var(--tbs-ink); }
.tbs-page-hero__deck {
	font-size: var(--tbs-fs-20);
	line-height: 1.55;
	color: var(--tbs-ink-muted);
	max-width: 60ch;
	margin: 0 auto;
}

/* Long-form prose body — shared by About / Contact / legal pages. */
.tbs-content--prose {
	font-size: var(--tbs-fs-17);
	line-height: 1.75;
	color: var(--tbs-ink);
}
.tbs-content--prose p { margin: 0 0 var(--tbs-sp-5); }
.tbs-content--prose h2 { font-size: var(--tbs-fs-26); margin: var(--tbs-sp-10) 0 var(--tbs-sp-4); }
.tbs-content--prose h3 { font-size: var(--tbs-fs-20); margin: var(--tbs-sp-8) 0 var(--tbs-sp-3); }
.tbs-content--prose ul,
.tbs-content--prose ol { margin: 0 0 var(--tbs-sp-5); padding-left: var(--tbs-sp-6); }
.tbs-content--prose li { margin-bottom: var(--tbs-sp-2); }
.tbs-content--prose a { color: var(--tbs-blue-700); text-decoration: underline; }
.tbs-content--prose a:hover { color: var(--tbs-blue-800); }
.tbs-content--prose strong { color: var(--tbs-ink); }
.tbs-content--prose blockquote {
	border-left: 4px solid var(--tbs-blue-600);
	padding: var(--tbs-sp-2) 0 var(--tbs-sp-2) var(--tbs-sp-6);
	margin: var(--tbs-sp-8) 0;
	color: var(--tbs-ink-muted);
	font-style: italic;
}

/* Contact two-column layout. */
.tbs-contact-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: var(--tbs-sp-10);
	align-items: start;
}
@media (max-width: 880px) {
	.tbs-contact-grid { grid-template-columns: 1fr; }
}
.tbs-contact-card {
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-lg);
	padding: var(--tbs-sp-8);
	box-shadow: var(--tbs-shadow);
	position: sticky; top: 100px;
}
.tbs-contact-card h2 {
	font-size: var(--tbs-fs-22);
	margin: 0 0 var(--tbs-sp-5);
}
.tbs-contact-card__row {
	display: flex; flex-direction: column; gap: 4px;
	padding: var(--tbs-sp-3) 0;
	border-bottom: 1px solid var(--tbs-line-soft);
}
.tbs-contact-card__row:last-child { border-bottom: 0; }
.tbs-contact-card__label {
	font-size: var(--tbs-fs-12);
	font-weight: var(--tbs-fw-semibold);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tbs-ink-muted);
}
.tbs-contact-card__value {
	font-size: var(--tbs-fs-16);
	color: var(--tbs-ink);
	font-style: normal;
	font-weight: var(--tbs-fw-medium);
	text-decoration: none;
}
a.tbs-contact-card__value:hover { color: var(--tbs-blue-700); }
.tbs-contact-card .tbs-share-row { margin-top: var(--tbs-sp-2); }
.tbs-contact-card .tbs-share-row__btn { width: 38px; height: 38px; }
.tbs-contact-card .tbs-share-row__btn .tbs-icon { width: 16px; height: 16px; }

/* CTA card — about page bottom strip. */
.tbs-cta-card {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--tbs-sp-6);
	background: linear-gradient(135deg, var(--tbs-blue-600), var(--tbs-blue-800));
	color: #fff;
	border-radius: var(--tbs-r-lg);
	padding: var(--tbs-sp-8) var(--tbs-sp-10);
	box-shadow: var(--tbs-shadow-lg);
	flex-wrap: wrap;
}
.tbs-cta-card h2 { color: #fff; margin: 0 0 var(--tbs-sp-2); font-size: var(--tbs-fs-22); }
body:not(.wp-admin) .tbs-cta-card h2 { color: #fff; }
.tbs-cta-card p { margin: 0; color: rgba(255,255,255,.85); }
.tbs-cta-card .tbs-btn {
	background: #fff; color: var(--tbs-blue-800); flex-shrink: 0;
}
.tbs-cta-card .tbs-btn:hover { background: var(--tbs-ink); color: #fff; }

/* ============================================================
  19a. SINGLE POST (article layout)
   ============================================================ */
.tbs-article-breadcrumb {
	background: var(--tbs-bg-soft);
	padding: var(--tbs-sp-5) 0;
	border-bottom: 1px solid var(--tbs-line-soft);
}
.tbs-article-header {
	background: var(--tbs-bg-soft);
	padding: var(--tbs-sp-10) 0 var(--tbs-sp-12);
	text-align: center;
}
.tbs-article-cat {
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--tbs-r-pill);
	background: var(--tbs-blue-600);
	color: #fff;
	font-size: var(--tbs-fs-12);
	font-weight: var(--tbs-fw-semibold);
	text-transform: uppercase;
	letter-spacing: .08em;
	text-decoration: none;
	margin-bottom: var(--tbs-sp-5);
}
.tbs-article-cat:hover { background: var(--tbs-blue-700); color: #fff; }
.tbs-article-title {
	font-size: clamp(2rem, 4vw, var(--tbs-fs-48));
	line-height: var(--tbs-lh-tight);
	margin: 0 0 var(--tbs-sp-4);
	color: var(--tbs-ink);
}
body:not(.wp-admin) .tbs-article-title { color: var(--tbs-ink); }
.tbs-article-deck {
	font-size: var(--tbs-fs-20);
	line-height: 1.5;
	color: var(--tbs-ink-muted);
	margin: 0 0 var(--tbs-sp-6);
	max-width: 60ch;
	margin-left: auto;
	margin-right: auto;
}
.tbs-article-meta {
	display: inline-flex; align-items: center;
	gap: var(--tbs-sp-4);
	font-size: var(--tbs-fs-14);
	color: var(--tbs-ink-muted);
}
.tbs-article-meta__author {
	display: inline-flex; align-items: center; gap: var(--tbs-sp-2);
	color: var(--tbs-ink);
	font-weight: var(--tbs-fw-medium);
}
.tbs-article-meta__avatar { border-radius: 50%; }
.tbs-article-meta time { position: relative; padding-left: var(--tbs-sp-4); }
.tbs-article-meta time::before {
	content: "·"; position: absolute; left: 0; color: var(--tbs-ink-subtle); font-weight: var(--tbs-fw-bold);
}

.tbs-article-hero-image {
	margin: calc(var(--tbs-sp-12) * -1) 0 var(--tbs-sp-12);
}
.tbs-article-hero-image .tbs-container { position: relative; z-index: 2; }
.tbs-article-hero-image__img {
	width: 100%; height: auto;
	border-radius: var(--tbs-r-lg);
	box-shadow: var(--tbs-shadow-xl);
	display: block;
}
.tbs-article {
	padding: var(--tbs-sp-6) 0 var(--tbs-sp-16);
}
.tbs-article__body {
	font-size: var(--tbs-fs-18);
	line-height: 1.75;
	color: var(--tbs-ink);
}
.tbs-article__body p { margin: 0 0 var(--tbs-sp-5); }
.tbs-article__body h2,
.tbs-article__body h3 { margin-top: var(--tbs-sp-10); }
.tbs-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--tbs-r-lg);
	margin: var(--tbs-sp-6) 0;
}
.tbs-article__body blockquote {
	border-left: 4px solid var(--tbs-blue-600);
	padding: var(--tbs-sp-2) 0 var(--tbs-sp-2) var(--tbs-sp-6);
	margin: var(--tbs-sp-8) 0;
	color: var(--tbs-ink-muted);
	font-style: italic;
	font-size: var(--tbs-fs-20);
}
.tbs-article__body a { color: var(--tbs-blue-700); text-decoration: underline; }
.tbs-article__body a:hover { color: var(--tbs-blue-800); }
.tbs-article-tags {
	display: flex; flex-wrap: wrap; gap: var(--tbs-sp-2);
	margin: var(--tbs-sp-10) 0 0;
	padding-top: var(--tbs-sp-6);
	border-top: 1px solid var(--tbs-line-soft);
}
.tbs-article-tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--tbs-r-pill);
	background: var(--tbs-bg-sunken);
	color: var(--tbs-ink-muted);
	font-size: var(--tbs-fs-13);
	font-weight: var(--tbs-fw-medium);
	text-decoration: none;
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-article-tag:hover { background: var(--tbs-blue-50); color: var(--tbs-blue-800); }

/* ============================================================
  19. SINGLE PRODUCT — breadcrumb wrapper + short description
   ============================================================ */
.tbs-product-breadcrumb {
	background: var(--tbs-bg-soft);
	padding: var(--tbs-sp-5) 0 var(--tbs-sp-5);
	border-bottom: 1px solid var(--tbs-line-soft);
}
.tbs-product-summary__excerpt {
	color: var(--tbs-ink-muted);
	font-size: var(--tbs-fs-16);
	line-height: var(--tbs-lh-normal, 1.6);
	margin: var(--tbs-sp-3) 0 var(--tbs-sp-5);
	max-width: 60ch;
}
.tbs-product-summary__excerpt p:first-child { margin-top: 0; }
.tbs-product-summary__excerpt p:last-child  { margin-bottom: 0; }

/* ============================================================
  17. LIVE SEARCH DROPDOWN (header + hero, inline AJAX suggest)
   ============================================================ */
.tbs-live-search {
	position: relative;
	flex: 1;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}
.tbs-header-search {
	width: 100%;
	margin: 0;
}
.tbs-header-search button,
.tbs-hero__search button {
	border: 0; background: transparent; padding: 4px 6px; cursor: pointer;
	color: var(--tbs-ink-muted);
	display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.tbs-header-search button:hover,
.tbs-hero__search button:hover { color: var(--tbs-blue-700); }
.tbs-header-search button .tbs-icon,
.tbs-hero__search button .tbs-icon { width: 20px; height: 20px; }

.tbs-live-search__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0; right: 0;
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-lg);
	box-shadow: var(--tbs-shadow-xl);
	/* Very high so the panel sits above ANY following section's content, not
	   just the hero's overlay. The hero itself has z-index:5, the header is
	   sticky at z-index:50 — this lifts the panel above both. */
	z-index: 2000;
	max-height: 70vh;
	overflow-y: auto;
	padding: var(--tbs-sp-2);
}
.tbs-live-search__item {
	display: flex; align-items: center; gap: var(--tbs-sp-3);
	padding: var(--tbs-sp-3); border-radius: var(--tbs-r);
	color: var(--tbs-ink); text-decoration: none;
	transition: background-color var(--tbs-dur) var(--tbs-ease);
}
.tbs-live-search__item img,
.tbs-live-search__thumb-blank {
	width: 44px; height: 44px;
	border-radius: var(--tbs-r);
	background: var(--tbs-bg-soft);
	object-fit: cover;
	flex-shrink: 0;
}
.tbs-live-search__item:hover,
.tbs-live-search__item.is-active { background: var(--tbs-blue-50); color: var(--tbs-blue-800); }
.tbs-live-search__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tbs-live-search__type {
	font-size: var(--tbs-fs-12); color: var(--tbs-ink-subtle);
	text-transform: uppercase; letter-spacing: .08em; font-weight: var(--tbs-fw-semibold);
}
.tbs-live-search__title {
	font-size: var(--tbs-fs-14); font-weight: var(--tbs-fw-medium); color: var(--tbs-ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbs-live-search__empty {
	padding: var(--tbs-sp-6) var(--tbs-sp-4);
	text-align: center; color: var(--tbs-ink-muted); font-size: var(--tbs-fs-14);
}
.tbs-live-search__skel { padding: var(--tbs-sp-2); display: grid; gap: var(--tbs-sp-2); }
.tbs-live-search__see-all {
	display: block; padding: var(--tbs-sp-3) var(--tbs-sp-4);
	border-top: 1px solid var(--tbs-line-soft); margin-top: var(--tbs-sp-2);
	text-align: center; color: var(--tbs-blue-700);
	font-weight: var(--tbs-fw-semibold); font-size: var(--tbs-fs-14);
	text-decoration: none;
}
.tbs-live-search__see-all:hover { background: var(--tbs-bg-soft); }

/* Hero variant — full-width within the hero container */
.tbs-live-search--hero { max-width: 720px; width: 100%; }
.tbs-live-search--hero .tbs-live-search__panel {
	text-align: left;
	box-shadow: var(--tbs-shadow-xl);
}
.tbs-hero__search button .tbs-icon { width: 22px; height: 22px; color: var(--tbs-blue-700); }

/* ============================================================
  18. ARCHIVE — SIDEBAR + MAIN LAYOUT
   ============================================================ */
.tbs-archive-header { padding: var(--tbs-sp-10) 0 var(--tbs-sp-8); border-bottom: 1px solid var(--tbs-line-soft); }
.tbs-archive-header h1 {
	font-size: clamp(1.75rem, 3vw, var(--tbs-fs-40));
	margin: var(--tbs-sp-3) 0 0;
}
.tbs-archive-header__desc { color: var(--tbs-ink-muted); margin-top: var(--tbs-sp-3); max-width: 720px; }

.tbs-archive-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: var(--tbs-sp-8);
	align-items: start;
	margin-top: var(--tbs-sp-6);
}
@media (max-width: 960px) {
	.tbs-archive-layout { grid-template-columns: 1fr; gap: var(--tbs-sp-5); }
}

/* Sidebar — each facet is its own bordered box */
.tbs-archive-sidebar {
	position: sticky; top: 92px;
	display: flex; flex-direction: column; gap: var(--tbs-sp-4);
}
.tbs-facet {
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-lg);
	padding: var(--tbs-sp-5);
}
.tbs-facet__title {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%;
	font-family: inherit;
	font-size: var(--tbs-fs-13);
	font-weight: var(--tbs-fw-semibold);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tbs-ink-muted);
	margin: 0 0 var(--tbs-sp-3);
	padding: 0 0 var(--tbs-sp-3);
	border: 0; border-bottom: 1px solid var(--tbs-line-soft);
	background: transparent;
	cursor: pointer;
	text-align: left;
}
.tbs-facet__title:hover { color: var(--tbs-ink); }
.tbs-facet__chevron {
	transition: transform var(--tbs-dur) var(--tbs-ease);
	flex-shrink: 0;
}
.tbs-facet[aria-collapsed="true"] .tbs-facet__chevron,
.tbs-facet.is-collapsed .tbs-facet__chevron { transform: rotate(-90deg); }

/* Each facet list is height-capped and scroll-aware. Important:
   we DELIBERATELY omit `scrollbar-width` and `scrollbar-color` on macOS
   Chrome — setting them activates the system overlay scrollbar path,
   which hides the bar regardless of our colour overrides. By relying
   purely on `::-webkit-scrollbar`-* rules + `-webkit-appearance: none`,
   Chromium renders a permanent, styled, non-overlay scrollbar even when
   the macOS system pref is "Show scrollbars: When scrolling". */
.tbs-facet__list {
	list-style: none; margin: 0; padding: 0 4px 0 0;
	display: flex; flex-direction: column; gap: 2px;
	max-height: 300px;
	overflow-y: scroll;
}
.tbs-facet__list::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 10px;
}
.tbs-facet__list::-webkit-scrollbar-track {
	background: var(--tbs-bg-sunken);
	border-radius: 6px;
	margin: 2px 0;
}
.tbs-facet__list::-webkit-scrollbar-thumb {
	background: var(--tbs-ink-subtle);
	border-radius: 6px;
	border: 2px solid var(--tbs-bg-sunken);
	min-height: 32px;
}
.tbs-facet__list::-webkit-scrollbar-thumb:hover { background: var(--tbs-ink-muted); }
.tbs-facet.is-collapsed .tbs-facet__list { display: none; }
/* Checkbox-style facet rows — multi-select. */
.tbs-facet__list li .tbs-facet__item {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 12px;
	border-radius: var(--tbs-r);
	color: var(--tbs-ink);
	font-size: var(--tbs-fs-14);
	cursor: pointer;
	transition: background-color var(--tbs-dur) var(--tbs-ease), color var(--tbs-dur) var(--tbs-ease);
	user-select: none;
}
.tbs-facet__list li .tbs-facet__item:hover { background: var(--tbs-bg-soft); color: var(--tbs-blue-700); }
.tbs-facet__list li.is-active .tbs-facet__item {
	background: var(--tbs-blue-50);
	color: var(--tbs-blue-800);
	font-weight: var(--tbs-fw-semibold);
	box-shadow: inset 3px 0 0 var(--tbs-blue-600);
}
.tbs-facet__list li.is-locked .tbs-facet__item {
	cursor: not-allowed;
	background: var(--tbs-blue-50);
	color: var(--tbs-blue-800);
}
/* Cross-aware "no results" terms — dimmed and inert (zero products given the
   other axis's current selection). Checked/locked terms never get this class. */
.tbs-facet__list li.is-empty .tbs-facet__item {
	opacity: .4;
	pointer-events: none;
}
.tbs-facet__cb {
	-webkit-appearance: none; appearance: none;
	width: 16px; height: 16px;
	border: 1.5px solid var(--tbs-line);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	display: inline-grid; place-content: center;
	flex-shrink: 0;
	margin: 0;
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-facet__cb::before {
	content: ""; width: 9px; height: 9px;
	transform: scale(0);
	transition: transform .12s var(--tbs-ease);
	background: #fff;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.tbs-facet__cb:checked {
	background: var(--tbs-blue-600);
	border-color: var(--tbs-blue-600);
}
.tbs-facet__cb:checked::before { transform: scale(1); }
.tbs-facet__cb:disabled {
	cursor: not-allowed;
	opacity: .7;
	box-shadow: 0 0 0 2px rgba(10,115,198,.15);
}
.tbs-facet__cb:focus-visible { box-shadow: 0 0 0 3px var(--tbs-blue-50); outline: none; }

.tbs-facet__name { flex: 1; min-width: 0; }
.tbs-facet__count {
	font-size: var(--tbs-fs-12);
	color: var(--tbs-ink-subtle);
	background: var(--tbs-bg-sunken);
	border-radius: var(--tbs-r-pill);
	padding: 2px 8px;
	min-width: 24px; text-align: center;
}
.tbs-facet__list li.is-active .tbs-facet__count {
	background: var(--tbs-blue-700); color: #fff;
}

/* Toolbar (top bar: search, sort, count) */
.tbs-archive-toolbar {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: var(--tbs-sp-3);
	align-items: center;
	background: #fff;
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-lg);
	padding: var(--tbs-sp-3);
	margin-bottom: var(--tbs-sp-4);
}
@media (max-width: 720px) {
	.tbs-archive-toolbar { grid-template-columns: 1fr; }
}
.tbs-archive-search {
	display: flex; align-items: center; gap: var(--tbs-sp-2);
	padding: 8px 14px;
	border-radius: var(--tbs-r-pill);
	background: var(--tbs-bg-soft);
	border: 1px solid transparent;
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-archive-search:focus-within {
	background: #fff;
	border-color: var(--tbs-blue);
	box-shadow: 0 0 0 4px var(--tbs-blue-50);
}
.tbs-archive-search input {
	flex: 1; border: 0; background: transparent; outline: none;
	font: inherit; color: var(--tbs-ink); min-width: 0;
}
.tbs-archive-search .tbs-icon { width: 18px; height: 18px; color: var(--tbs-ink-muted); flex-shrink: 0; }

.tbs-archive-sort select {
	border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-pill);
	padding: 8px 32px 8px 14px;
	background: #fff
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6a7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
	appearance: none; -webkit-appearance: none;
	font: inherit; color: var(--tbs-ink);
	cursor: pointer;
	transition: border-color var(--tbs-dur) var(--tbs-ease);
}
.tbs-archive-sort select:hover  { border-color: var(--tbs-blue-100); }
.tbs-archive-sort select:focus { outline: none; border-color: var(--tbs-blue); box-shadow: 0 0 0 4px var(--tbs-blue-50); }

.tbs-archive-count {
	font-size: var(--tbs-fs-14);
	color: var(--tbs-ink-muted);
	white-space: nowrap;
	padding: 0 var(--tbs-sp-3);
}
.tbs-archive-count strong { color: var(--tbs-ink); }

/* Active chips bar — always-visible "Viewing" strip above the grid.
   Server renders the context chip (Category/Brand/Tag for this archive);
   JS layers in-page filter chips into [data-tbs-chips]. */
.tbs-active-filters {
	display: flex; flex-wrap: wrap; align-items: center; gap: var(--tbs-sp-2);
	margin: 0 0 var(--tbs-sp-4);
}
.tbs-active-filters[hidden] { display: none; }
.tbs-active-filters [data-tbs-chips] {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--tbs-sp-2);
}
.tbs-chip {
	border: 0; cursor: pointer;
	background: var(--tbs-blue-50); color: var(--tbs-blue-800);
	text-decoration: none;
}
.tbs-chip strong { font-weight: var(--tbs-fw-semibold); }
.tbs-chip--context {
	background: var(--tbs-blue-600); color: #fff;
	box-shadow: var(--tbs-shadow-brand);
}
.tbs-chip--context strong { color: #fff; }
.tbs-chip--context .tbs-chip__close { background: rgba(255,255,255,.25); color: #fff; }
.tbs-chip--context:hover { background: var(--tbs-blue-700); color: #fff; }
.tbs-chip--context:hover .tbs-chip__close { background: rgba(255,255,255,.4); }
.tbs-chip--static { cursor: default; background: var(--tbs-bg-sunken); color: var(--tbs-ink-muted); }
.tbs-chip--clear-all {
	background: transparent; color: var(--tbs-ink-muted);
	padding: 6px 12px; font-weight: var(--tbs-fw-medium);
}
.tbs-chip--clear-all:hover { color: var(--tbs-danger); background: transparent; }

/* Mobile filter toggle */
.tbs-facet-toggle {
	display: none;
	align-items: center; gap: 8px;
	background: #fff; border: 1px solid var(--tbs-line);
	border-radius: var(--tbs-r-pill);
	padding: 8px 16px; font: inherit; color: var(--tbs-ink);
	cursor: pointer; margin-bottom: var(--tbs-sp-3);
}
.tbs-facet-toggle:hover { border-color: var(--tbs-blue); color: var(--tbs-blue-700); }
@media (max-width: 960px) {
	.tbs-facet-toggle { display: inline-flex; }
	.tbs-archive-sidebar {
		position: static;
		display: none;
		grid-column: 1 / -1;
	}
	.tbs-archive-sidebar.is-open { display: flex; }
	/* Mobile = accordion: each facet collapsed by default until tapped */
	.tbs-archive-sidebar .tbs-facet.is-collapsed .tbs-facet__list { display: none; }
}

/* Pagination */
.tbs-pagination,
.pagination,
.nav-links {
	margin: var(--tbs-sp-8) 0 0;
	display: flex; justify-content: center;
}
.tbs-pagination ul,
.tbs-pagination .nav-links,
.pagination ul {
	display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap;
}
.tbs-pagination .page-numbers,
.pagination .page-numbers,
.nav-links .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: var(--tbs-r);
	border: 1px solid var(--tbs-line);
	background: #fff;
	color: var(--tbs-ink); font-weight: var(--tbs-fw-medium);
	text-decoration: none;
	transition: all var(--tbs-dur) var(--tbs-ease);
}
.tbs-pagination .page-numbers:hover,
.pagination .page-numbers:hover { border-color: var(--tbs-blue); color: var(--tbs-blue-700); }
.tbs-pagination .page-numbers.current,
.pagination .page-numbers.current {
	background: var(--tbs-blue); border-color: var(--tbs-blue); color: #fff;
}
.tbs-pagination .dots { border: 0; background: transparent; }

/* WooCommerce safety: hide any WC artefacts on our archives that might
   leak in via shortcodes or filters not in our control. */
body.tbs-archive .woocommerce-result-count,
body.tbs-archive .woocommerce-ordering,
body.tbs-archive .woocommerce-breadcrumb { display: none !important; }

