/* =========================================================
   BruktTech — catalog (shop + product category)
   Filter rail, control bar, spec-chip product cards.
   ========================================================= */

/*
 * Catalog tokens alias the brand palette in style.css rather than redefining it.
 * The earlier version declared --bt-ink, --bt-red, --bt-green and --bt-muted on
 * :root, which overrode the site-wide values for every other component on these
 * pages. Same pattern as reparasjon.css: prefixed names, global fallbacks.
 */
:root {
	--btc-ink: var(--bt-ink, #111111);
	--btc-body: var(--bt-body, #374151);
	--btc-muted: var(--bt-muted, #6B7280);
	--btc-line: var(--bt-border, #E5E7EB);
	--btc-wash: var(--bt-surface, #F5F7FA);
	--btc-red: var(--bt-red, #e43a36);
	/* Red as small text, or behind white text: 6.0:1 on white, where the brand red is 4.2:1 and
	   fails WCAG AA (Google's accessibility check, 8 Nov 2026). */
	--btc-red-text: var(--bt-red-dark, #b8302d);
	--btc-accent: var(--bt-navy, #0f3d5e);
	--btc-accent-dark: var(--bt-navy-dark, #0a2a40);
	--btc-green: var(--bt-green, #25D366);
	--btc-accent-soft: #e8f0f7; /* navy tint, for selected/active surfaces */
	--btc-paper: #f4f6f8;       /* page behind the cards */
	--btc-radius: 5px;
	/* Spec chips only. ui-monospace resolves to SF Mono on Apple, Cascadia/Consolas
	   on Windows, Roboto Mono on Android — all close enough in colour and width. */
	--btc-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", Menlo, monospace;
}

/*
 * Cards read as cards because they sit on a tinted page, not because they are
 * outlined on white. This is the single biggest difference between the mockup
 * and a default Flatsome grid.
 */
body.archive.woocommerce,
body.post-type-archive-product {
	background: var(--btc-paper);
}









/* ---------------------------------------------------------
   Archive header
   Flatsome reserves 85px between the breadcrumb and the first
   content on a category page. Trimmed on catalog pages only —
   this stylesheet does not load anywhere else.
   --------------------------------------------------------- */

.archive .page-title-inner,
.post-type-archive-product .page-title-inner {
	padding-top: 16px;
	padding-bottom: 8px;
}

.archive .category-page-row,
.post-type-archive-product .category-page-row {
	padding-top: 18px;
}

/* ---------------------------------------------------------
   Lead, trust strip, quick picks
   --------------------------------------------------------- */

/* No max-width: it is a one-sentence subtitle, not a paragraph, and the 62ch
   reading measure was forcing it onto two lines even on a wide screen. */
.bt-lead {
	margin: 0 0 18px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--btc-body);
}

.bt-trust,
.bt-picks {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.bt-trust {
	gap: 8px;
}

.bt-trust li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 7px 11px;
	border: 1px solid var(--btc-line);
	border-radius: var(--btc-radius);
	background: #fff;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--btc-ink);
}

.bt-trust li::before {
	content: "✓";
	color: #12704f;
	font-weight: 700;
}

.bt-picks {
	gap: 7px;
	margin-bottom: 22px;
}

.bt-picks li {
	margin: 0;
}

.bt-picks a {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--btc-line);
	border-radius: 100px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--btc-ink);
	transition: border-color .15s, background .15s;
}

.bt-picks a:hover {
	border-color: var(--btc-accent);
	color: var(--btc-ink);
}

/* ---------------------------------------------------------
   Two-column shell
   --------------------------------------------------------- */

.bt-catalog {
	display: block;
}

.bt-catalog__main {
	min-width: 0;
}

@media (min-width: 850px) {
	.bt-catalog {
		display: grid;
		grid-template-columns: 264px minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}
}

/* Flatsome's own off-canvas filter trigger is replaced by the rail. Its row goes too: with only the
   button hidden it was an empty 46 px band under the breadcrumb on a phone (31 Oct 2026). */
.category-filtering,
.category-filtering .filter-button,
.category-page-row .filter-button {
	display: none !important;
}

/* ---------------------------------------------------------
   Filter rail
   --------------------------------------------------------- */

.bt-filters {
	background: #fff;
	border: 1px solid var(--btc-line);
	border-radius: var(--btc-radius);
}

@media (min-width: 850px) {
	.bt-filters {
		position: sticky;
		top: 14px;
		max-height: calc(100vh - 28px);
		display: flex;
		flex-direction: column;
	}
}

.bt-filters__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 15px;
	border-bottom: 1px solid var(--btc-line);
}

.bt-filters__title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--btc-ink);
}

.bt-filters__reset {
	margin-left: auto;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--btc-red);
	text-decoration: underline;
}

.bt-filters__close {
	display: none;
	margin-left: auto;
	padding: 0 4px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--btc-ink);
	cursor: pointer;
}

.bt-filters__body {
	padding: 4px 0;
}

@media (min-width: 850px) {
	.bt-filters__body {
		overflow-y: auto;
	}
}

.bt-facet {
	border-bottom: 1px solid var(--btc-line);
}

.bt-facet:last-child {
	border-bottom: 0;
}

.bt-facet__title {
	display: flex;
	align-items: center;
	padding: 11px 15px;
	font-size: 13px;
	font-weight: 700;
	color: var(--btc-ink);
	cursor: pointer;
	list-style: none;
}

.bt-facet__title::-webkit-details-marker {
	display: none;
}

.bt-facet__title::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: auto;
	border-right: 2px solid var(--btc-muted);
	border-bottom: 2px solid var(--btc-muted);
	transform: rotate(45deg);
	transition: transform .15s;
}

.bt-facet[open] > .bt-facet__title::after {
	transform: rotate(-135deg);
}

.bt-facet__list {
	list-style: none;
	margin: 0;
	padding: 0 0 9px;
}

.bt-facet--single .bt-facet__list {
	padding: 5px 0;
}

.bt-term {
	margin: 0;
}

.bt-term__link {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 15px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--btc-ink);
}

a.bt-term__link:hover {
	background: var(--btc-wash);
	color: var(--btc-ink);
}

.bt-term__box {
	flex: none;
	width: 15px;
	height: 15px;
	border: 1px solid #b9c4cf;
	border-radius: 3px;
	background: #fff;
}

.bt-term.is-selected .bt-term__box {
	border-color: var(--btc-accent);
	background: var(--btc-accent);
	position: relative;
}

.bt-term.is-selected .bt-term__box::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 4px;
	width: 4px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(40deg);
}

/* Pris takes one band at a time, so it is drawn as a radio: a round box with a
   dot. The square box with a tick promised that a second band would add to the
   first, when it replaced it. */
.bt-term--radio .bt-term__box {
	border-radius: 50%;
}

.bt-term.bt-term--radio.is-selected .bt-term__box::after {
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}

.bt-term__label {
	flex: 1 1 auto;
}

.bt-term.is-selected .bt-term__label {
	font-weight: 700;
}

.bt-term__count {
	flex: none;
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
	color: var(--btc-muted);
}

.bt-term.is-disabled .bt-term__link {
	color: #a7b2bd;
	cursor: not-allowed;
}

.bt-term.is-disabled .bt-term__box {
	border-color: #dfe5ea;
	background: #f6f8fa;
}

.bt-filters__foot {
	display: none;
	padding: 12px 15px;
	border-top: 1px solid var(--btc-line);
}

/* Counts are rendered server-side, so they go stale while choices accumulate in
   the drawer. The button turning solid is the signal that a reload is pending. */
.bt-filters__apply.is-dirty {
	box-shadow: 0 0 0 2px rgba(15, 61, 94, .18);
}

.bt-filters__apply {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 5px;
	background: var(--btc-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------------------------------------------------------
   Control bar
   --------------------------------------------------------- */

.bt-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--btc-line);
}

.bt-controls__filter {
	display: none;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border: 1px solid var(--btc-line);
	border-radius: 5px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--btc-ink);
	cursor: pointer;
}

.bt-controls__badge {
	display: inline-block;
	min-width: 19px;
	padding: 1px 5px;
	border-radius: 999px;
	background: var(--btc-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.bt-controls__count {
	margin: 0;
	font-size: 13.5px;
	color: var(--btc-body);
}

.bt-controls__count strong {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--btc-ink);
}

/* One bordered field with the glass inside — a separate filled button was a
   second heavy block in a bar that also holds the count and the sort. */
.bt-controls__search {
	position: relative;
	display: flex;
	flex: 1 1 260px;
	max-width: 460px;
	margin: 0;
}

.bt-controls__icon {
	position: absolute;
	top: 50%;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	background: none;
	color: var(--btc-muted);
	cursor: pointer;
}

.bt-controls__icon:hover,
.bt-controls__search input[type="search"]:focus ~ .bt-controls__icon {
	color: var(--btc-accent);
}

.bt-controls__search input[type="search"] {
	flex: 1 1 auto;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0 34px 0 12px;
	border: 1px solid var(--btc-line);
	border-radius: 5px;
	box-shadow: none;
	background: #fff;
	font-size: 13.5px;
}

.bt-controls__search input[type="search"]:focus {
	border-color: var(--btc-accent);
}

.bt-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.bt-sort::before {
	content: "Sorter";
	font-size: 12.5px;
	color: var(--btc-muted);
	white-space: nowrap;
}

/* WooCommerce prints no sort control when nothing matched; the label stood alone. */
.bt-sort:empty {
	display: none;
}

.bt-sort form {
	margin: 0;
}

.bt-sort select {
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0 30px 0 10px;
	border: 1px solid var(--btc-line);
	border-radius: 5px;
	background-color: #fff;
	box-shadow: none;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--btc-ink);
}

.bt-searchnote {
	margin: -6px 0 16px;
	font-size: 13px;
	color: var(--btc-muted);
}

.bt-empty {
	padding: 34px 20px;
	border: 1px dashed var(--btc-line);
	border-radius: 6px;
	text-align: center;
	color: var(--btc-muted);
}

.bt-empty p {
	margin: 0 0 6px;
}

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

.bt-catalog .box-image {
	position: relative;
}



.bt-bd {
	padding: 3px 7px;
	border-radius: 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1.5;
	text-transform: uppercase;
	white-space: nowrap;
}

/* The site's darker red, --bt-red-dark: white on the brand red is 4.2:1, under AA. */
.bt-bd-save {
	background: var(--btc-red-text);
	color: #fff;
}

/* A condition worth pointing at — never the one nearly every unit shares. */
.bt-bd-cond {
	background: #fff;
	border: 1px solid var(--btc-accent);
	color: var(--btc-accent);
}



















.bt-pct {
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--btc-red-text);
}









/* Sits on the price line: scarcity matters most next to the number it applies to,
   and a capsule made it compete with the price rather than support it. */
.bt-loop-stock {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 10px;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	vertical-align: baseline;
	color: var(--btc-red-text);
}

.bt-loop-stock.bt-stock--available,
.bt-loop-stock.bt-stock--low {
	color: #2e7d32;
}

.bt-dot {
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

/* ---------------------------------------------------------
   Content below the grid. The accordion itself lives in
   faq.css; this is only the section framing and the two-column
   layout it sits in.

   Removed by accident during the FAQ consolidation: the regex
   that lifted the accordion rules out matched on the COMMENT
   above them, which mentioned the component by name, and took
   the wrapper with it. The footer lost its top border and its
   padding, and the FAQ was left sitting in a 1.15fr column
   under the sidebar.
   --------------------------------------------------------- */

/* Generous top margin: this is the end of the shopping part of the page and the
   start of the reading part, and 40px was not enough separation for that to
   register. */
.bt-catalog-footer {
	margin-top: 64px;
	border-top: 1px solid var(--btc-line);
	padding: 44px 15px 24px;
}

@media (max-width: 849px) {
	.bt-catalog-footer {
		margin-top: 44px;
		padding: 32px 15px 20px;
	}
}

.bt-catalog-footer .term-description,
.bt-catalog-footer .bt-catalog-copy,
.bt-catalog-footer .bt-faq {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* The left column: same heading weight as the FAQ beside it, so the two read as
   a pair rather than as a heading with an accordion bolted on. */
.bt-catalog-copy h2 {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
	color: var(--bt-navy, #0f3d5e);
}

.bt-catalog-copy p {
	margin: 0 0 12px;
	font-size: 15.5px;
	line-height: 1.7;
	color: #14202b;
}

.bt-catalog-copy p:last-child {
	margin-bottom: 0;
}

/* The line to the guide pages (bt_catalog_guide_links()). */
.bt-catalog-copy a {
	font-weight: 600;
	color: var(--bt-navy, #0f3d5e);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bt-catalog-copy a:hover,
.bt-catalog-copy a:focus-visible {
	color: var(--bt-navy-dark, #0a2a40);
	text-decoration-thickness: 2px;
}

@media (max-width: 849px) {
	.bt-catalog-copy h2 {
		font-size: 18px;
	}

	.bt-catalog-copy p {
		font-size: 15px;
	}
}

/* Most categories have no description, so the FAQ is the grid's only child.
   Left in the first column it reads as misaligned against the product grid
   above it — the column is narrower and starts under the filter rail. Alone,
   it takes the full width. */
.bt-catalog-footer__in > *:only-child {
	grid-column: 1 / -1;
}

.bt-catalog-footer__in {
	display: grid;
	gap: 26px;
	max-width: var(--bt-content-max, 1330px);
	margin: 0 auto;
}

@media (min-width: 850px) {
	.bt-catalog-footer__in {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 40px;
		align-items: start;
	}
}

.term-description h2,
.bt-faq h2 {
	margin-bottom: 10px;
	font-size: 20px;
}

.term-description p {
	margin: 0 0 12px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--btc-body);
}

/* ---------------------------------------------------------
   Mobile: the rail becomes a drawer
   --------------------------------------------------------- */

@media (max-width: 849px) {
	.bt-controls__filter {
		display: inline-flex;
	}

	/*
	 * One swipeable row rather than two wrapped rows of pills. The control bar
	 * was 211px tall before any product came into view.
	 */
	.bt-sort {
		margin-left: 0;
		width: 100%;
	}


	/*
	 * Trust claims and quick picks each wrapped to three rows, which together
	 * pushed the first product below the fold on a 844px screen. One swipeable
	 * row each keeps every claim on the page at a fifth of the height.
	 */
	.bt-trust,
	.bt-picks {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.bt-trust::-webkit-scrollbar,
	.bt-picks::-webkit-scrollbar {
		display: none;
	}

	.bt-trust > li,
	.bt-picks > li {
		flex: 0 0 auto;
	}

	.bt-trust > li {
		white-space: nowrap;
	}

	.bt-lead {
		margin-bottom: 14px;
		font-size: 14.5px;
	}

	.archive .page-title-inner,
	.post-type-archive-product .page-title-inner {
		padding-top: 10px;
		padding-bottom: 6px;
	}

	.archive .category-page-row,
	.post-type-archive-product .category-page-row {
		padding-top: 14px;
	}

	/*
	 * Above Flatsome's header (1001), which otherwise covers the drawer's head,
	 * × and "Nullstill" included, at every scroll position. Below the cart
	 * drawer (10045), which is the one overlay allowed over it.
	 */
	.bt-filters {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10041;
		width: min(340px, 88vw);
		height: 100%;
		border: 0;
		border-radius: 0;
		display: flex;
		flex-direction: column;
		transform: translateX(-100%);
		transition: transform .22s ease;
		box-shadow: 0 0 40px rgba(15, 21, 28, .18);
	}

	.bt-filters.is-open {
		transform: translateX(0);
	}

	.bt-filters__body {
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.bt-filters__close,
	.bt-filters__foot {
		display: block;
	}

	.bt-filters__reset {
		margin-left: 0;
	}

	.bt-filters__head {
		gap: 14px;
	}

	body.bt-filters-open {
		overflow: hidden;
	}

	.bt-filters-backdrop {
		position: fixed;
		inset: 0;
		z-index: 10040;
		background: rgba(15, 21, 28, .45);
	}
}



















/* ---------------------------------------------------------
   Active filter chips
   --------------------------------------------------------- */

.bt-active {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.bt-active li {
	margin: 0;
}

.bt-active a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 9px 5px 12px;
	border: 1px solid var(--btc-line);
	border-radius: 100px;
	background: var(--btc-accent-soft);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--btc-ink);
}

.bt-active a:hover {
	border-color: var(--btc-ink);
	color: var(--btc-ink);
}

.bt-active__x {
	font-size: 15px;
	line-height: 1;
	color: var(--btc-muted);
}

.bt-active a:hover .bt-active__x {
	color: var(--btc-red);
}

.bt-active__clear a {
	border-color: transparent;
	background: none;
	color: var(--btc-red);
	text-decoration: underline;
}


/* ---------------------------------------------------------
   Load more
   --------------------------------------------------------- */

.bt-loadmore {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 28px 0 8px;
	text-align: center;
}

.bt-loadmore__count {
	margin: 0;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--btc-muted);
}

.bt-loadmore__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	min-height: 44px;
	padding: 0 24px;
	border: 1.5px solid var(--btc-accent);
	border-radius: 5px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: var(--btc-accent);
	transition: background .15s ease, color .15s ease;
}

.bt-loadmore__button:hover {
	background: var(--btc-accent);
	color: #fff;
}

.bt-loadmore__button.is-loading {
	opacity: .6;
	pointer-events: none;
}

/* The numbered links stay for no-JS and for crawlers, but the button leads. */
.bt-catalog ~ .container .woocommerce-pagination,
.bt-catalog .woocommerce-pagination {
	display: none;
}





/* ---------------------------------------------------------
   Navigating between filtered views.

   Filtering is a page load, not an AJAX swap — the URL stays
   shareable, the back button works, and the filtered views are
   indexable. The cost is a silent gap between the click and the
   new page. These rules make that gap visible so nobody clicks
   twice thinking nothing happened.
   --------------------------------------------------------- */

.bt-filters__apply.is-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.bt-filters__apply.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bt-spin 0.6s linear infinite;
}

/* The grid dims rather than disappears: keeping the old results visible while
   the new ones load is less jarring than a blank column, and it makes clear
   that this is a refresh of the same thing. */
.bt-navigating .bt-catalog-grid,
.bt-navigating ul.products {
	opacity: 0.45;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

@keyframes bt-spin {
	to { transform: rotate(360deg); }
}

/* Respect a stated preference for less motion: the dimming still communicates
   the state, so the spinner is the part that goes. */
@media (prefers-reduced-motion: reduce) {
	.bt-filters__apply.is-loading::after {
		animation: none;
		border-top-color: rgba(255, 255, 255, 0.45);
	}
}
