/* ============================================================================
   BF ARCHIVE — PAGE-SPECIFIC CSS (shared by ALL archive/facet pages)
   ============================================================================
   DEPLOYMENT (externalized 2026-09-18): served as an EXTERNAL FILE via the BF
   enqueue snippet (bf_enqueue_archive_page_assets) at
     wp-content/uploads/bf-assets/css/archive-page-specific-style.css
   Edit this local master, upload via FileZilla — filemtime() versions the URL
   so edits bust browser/CDN cache automatically. DO NOT paste this file into
   any page. It loads ONLY on pages that render the brandify_grid listing.

   THE ONE PER-PAGE PIECE (stays INLINE in each page's Post Specific CSS —
   never in this file): the mobile CTA banner background image. Every archive
   page has its own mobile artwork, and the selector is shared, so hundreds of
   copies in one file would fight each other. Template to paste inline per
   page (swap ONLY the URL for that page's mobile banner):

   @media only screen and (max-width: 767px) {
	.wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col {
		background-image: url("PASTE_THE_PAGE_MOBILE_BANNER_URL_HERE") !important;
	}
   }


   EXCLUDED TREES (2026-10-17): the by-occasion (parent-pageid-32966) and
   by-occupation (parent-pageid-32986) archive pages ship their OWN banner
   art per device AND their own text geometry. Every banner rule below is
   wrapped in :where(body:not(...those page ids...)) so it never touches
   those pages. Their banners are fully self-contained in each page's Post
   Specific CSS (3 breakpoints: art swap + geometry). Do NOT paste the
   template above into those pages.
   SECTION ORDER (keep new rules in the right section):
     1. GLOBAL   — tokens + rules shared by all viewports
     2. DESKTOP  — @media (min-width:1025px)
     3. TABLET   — @media (min-width:768px) and (max-width:1024px)
     4. MOBILE   — @media (max-width:767px)

   ANCHORING: the bar container is targeted structurally —
   .kt-inside-inner-col:has(> .facetwp-facet-matching_products)
   (Kadence structural class + our facet). NO Kadence block-instance classes
   are used anywhere in this file.
   ============================================================================ */

/* ============================================================================
   1. GLOBAL
   ============================================================================ */

/* --- 1.1 Tokens + bar container -------------------------------------------
   The container is the Kadence column that directly holds the four bar
   shortcodes.

   LAYOUT MODEL: count and sort are PINNED (never move). The sort facet is
   position:absolute at the top-right; the container reserves its width via
   padding-right so pills never slide under it. Between them sits the pills
   STRIP (.bf-pills-strip, built by JS): one non-wrapping row (pills + Clear
   Filters) that scrolls horizontally with left/right nav buttons when it
   overflows — pills never wrap to multiple rows. */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) {
	--bf-bar-text:      rgba(0, 0, 0, 0.9);   /* primary text (90% black)   */
	--bf-bar-text-2:    rgba(0, 0, 0, 0.6);   /* secondary text (60% black) */
	--bf-bar-blue:      #1E39D2;              /* brand blue                 */
	--bf-bar-pill-bg:   #F5F5F5;              /* pill background            */
	--bf-bar-pill-hover:#E7E7E7;              /* pill hover background      */
	--bf-bar-hover-bg:  #F5F5FF;              /* menu item hover background */
	--bf-bar-sort-reserve: 280px;             /* pre-JS fallback only — JS (initPillsStrip) keeps this
	                                             at the sort control's live width + 10px, so the strip
	                                             always ends exactly 10px before "Sort By:" (Figma) */

	display: flex;
	flex-direction: row;                      /* REQUIRED: Kadence's .kt-inside-inner-col is flex-COLUMN by default */
	flex-wrap: nowrap;                        /* NEVER wrap: flex lines form from UNSHRUNK sizes, so many
	                                             pills would drop the strip to a second line — the strip
	                                             handles overflow internally instead */
	align-items: flex-start;
	column-gap: 10px;                         /* counter → left nav button: exactly 10px */
	row-gap: 8px;
	position: relative;                       /* anchors the absolutely-positioned sort */
	padding-right: var(--bf-bar-sort-reserve);
	z-index: 10;                              /* bar paints above the grid column, so the
	                                             open sort menu never slides under cards */
	font-family: 'Poppins', sans-serif;
}

/* Stray empty <p> tags the shortcode block produces between shortcodes
   (wpautop on the newlines) — they would add phantom gaps. This column
   holds ONLY the bar, so hiding them is safe. */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > p {
	display: none;
}

/* Kill FacetWP's default facet spacing everywhere inside the bar */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-facet {
	margin: 0;
}

/* --- 1.1b Un-clip the listing row ------------------------------------------
   Kadence sets overflow:clip on this Row Layout (kb-row-layout-wrap), which
   CUT the card hover frame + its shadow at the grid's edges. This structural
   selector (block-type class + our grid inside — never an instance class)
   restores visibility. The row holds only the listing; nothing relies on the
   clip here. */
.kb-row-layout-wrap:has(.bf-archive-grid) {
	overflow: visible !important;
}

/* --- 1.2 "68 Matching Products" count --------------------------------------
   Figma: Poppins 600 (semi-bold), 16px, 90% black. 32px-tall box so its text
   vertically centers against the 32px pills. NEVER wraps to two lines and
   NEVER shrinks — count and sort are the pinned elements; only the strip
   between them flexes. */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-matching_products {
	display: flex;
	align-items: center;
	flex: none;                               /* pinned: only the strip shrinks */
	white-space: nowrap;                      /* never "…Matching / Products" */
	min-height: 32px;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--bf-bar-text);
}

/* --- 1.3 Selection pills + overflow STRIP -----------------------------------
   Pills: 32px high, #F5F5F5 bg (#E7E7E7 on hover), 99px radius, hug width.
   Text 14px regular, 90% black, 12px left padding; close icon 16x16 with 8px
   right padding. Pills 8px apart.

   STRIP (replaces multi-row wrapping): the JS-built .bf-pills-strip sits
   between the counter and the sort. Inside it one non-wrapping row —
   .facetwp-selections + .facetwp-facet-clear_filters — scrolled horizontally.
   Nav buttons (32x32) pin to the strip's ends: left one exactly 10px from
   the counter, right one 10px from the "Sort By:" text. They render ONLY
   when the row overflows (JS toggles .bf-pills-strip--overflow) and ALWAYS
   paint above the pills (z-index) so hovers/clicks can never miss. The row
   keeps 42px lead/trail padding while overflowing, so at rest the first
   pill starts after the left button, but pills slide UNDER the buttons
   mid-scroll (per Figma). SVGs ship left-pointing; the right button flips.

   FacetWP markup: div.facetwp-selections > ul > li — multiple selections of
   the SAME facet share ONE li (per-facet group). So the pill styling lives
   on .facetwp-selection-value (the clickable remove control); the li is a
   transparent inline group with an 8px gap. */
.bf-pills-strip {
	flex: 1 1 auto;                           /* fills the space between counter and sort */
	min-width: 0;                             /* REQUIRED for overflow inside flex */
	position: relative;                       /* anchors the nav buttons */
	margin-right: 10px;                       /* right button → "Sort By:" text: 10px */
}
.bf-pills-strip__row {
	display: flex;
	flex-wrap: nowrap;                        /* NEVER multiple rows */
	align-items: center;
	gap: 8px;                                 /* selections group ↔ Clear Filters */
	overflow-x: auto;                         /* JS/buttons drive scrollLeft */
	scrollbar-width: none;                    /* Firefox: hide the native bar */
}
.bf-pills-strip__row::-webkit-scrollbar { display: none; }
.bf-pills-strip--overflow .bf-pills-strip__row {
	padding: 0 42px;                          /* 32px button + 10px clearance each end */
}
.bf-pills-strip--overflow {
	margin-left: 5px;                         /* buttons shown → nudge the left button 5px right */
}
.bf-pills-strip__row .facetwp-selections {
	flex: none;
	min-width: 0;
}
.bf-pills-strip__row .facetwp-selections > ul {
	display: flex;
	flex-wrap: nowrap;                        /* one line, always */
	align-items: center;
	gap: 8px;                                 /* between facet groups */
	list-style: none;
	margin: 0;
	padding: 0;
}
.bf-pills-strip__row .facetwp-selections li {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;                                 /* pill-to-pill inside one facet's group */
	margin: 0;
	padding: 0;
	background: none;
}
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-selection-label {
	display: none;                            /* pills show the value only */
}
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-selection-value {
	display: inline-flex;
	align-items: center;
	height: 32px;
	margin: 0;                                /* exact 8px gaps — kill FacetWP's default spacing */
	padding: 0 8px 0 12px;                    /* text 12px left / icon 8px right */
	background-color: var(--bf-bar-pill-bg);
	border-radius: 99px;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-bar-text);
	cursor: pointer;
	background-image: none;                   /* kill FacetWP's own close icon (icon-close.png)… */
}
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-selection-value:hover {
	background-color: var(--bf-bar-pill-hover);
}
/* The close icon (clears only this filter). No hover effect, no background —
   per spec it is purely the clickable icon. */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-selection-value::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-left: 4px;                         /* NOTE(assumed): text↔icon gap not in Figma */
	background: url("https://brandifyfactory.com/wp-content/uploads/2026/09/filter-close.svg") center / contain no-repeat;
}

/* Strip nav buttons: 32x32, pinned to the strip's ends, above the pills.
   SVGs: normal / hover / click — all LEFT-pointing; right button flips.
   The triple "Card MB" shadow (Figma) applies to EVERY state — base, hover,
   click, focus; border-radius:50% only shapes that shadow into a circle
   (the button artwork is untouched). LEFT button sits exactly 10px in from
   the strip's left edge (design); the right one stays at the edge. */
.bf-pills-strip .bf-pills-nav {
	display: none;                            /* shown only while the row overflows */
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;                               /* ALWAYS above the pills */
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;                       /* shapes the shadow only */
	background-color: transparent;
	background-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/normal.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 32px 32px;
	box-shadow:
		0 2px 4px  0   rgba(0, 0, 0, 0.02),
		0 1px 6px  -1px rgba(0, 0, 0, 0.02),
		0 6px 12px 2px rgba(0, 0, 0, 0.05);   /* Card MB — every state */
	cursor: pointer;
}
.bf-pills-strip--overflow .bf-pills-nav { display: block; }
.bf-pills-strip--overflow .bf-pills-nav--end { display: none; }  /* direction exhausted (JS) */
.bf-pills-strip .bf-pills-nav--left  { left: 10px; }
.bf-pills-strip .bf-pills-nav--right { right: 0; transform: translateY(-50%) scaleX(-1); }
/* 3 states, exactly: normal.svg at rest, hover.svg ONLY while the mouse is
   over, click.svg ONLY while pressed. No :focus retention — the JS blurs
   the button on click so nothing persists after the mouse leaves. The
   Card MB shadow never changes between states (inherits the base rule). */
.bf-pills-strip .bf-pills-nav:hover {
	background-color: transparent;
	background-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/hover.svg");
}
.bf-pills-strip .bf-pills-nav:active {
	background-color: transparent;
	background-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/click.svg");
}
.bf-pills-strip .bf-pills-nav:focus,
.bf-pills-strip .bf-pills-nav:focus:not(:focus-visible) {
	background-color: transparent;
	background-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/normal.svg");
}
.bf-pills-strip .bf-pills-nav:focus-visible {
	outline: 2px solid #1E39D2;
	outline-offset: 1px;
}

/* --- 1.4 Clear Filters -------------------------------------------------------
   Figma: Poppins 400, 16px/24px, 60% black, solid underline. Sits 12px after
   the last pill (8px row gap + 4px margin). FacetWP auto-hides it via
   .facetwp-hidden when no filters are active. It lives INSIDE the strip row
   (moved there by JS) — selectors are descendant, not direct-child. */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-facet-clear_filters {
	display: flex;
	align-items: center;
	flex: none;
	height: 32px;
	margin-left: 4px;                         /* 8px row gap + 4 = 12px after the last pill */
}
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-facet-clear_filters.facetwp-hidden {
	display: none;                            /* keep the hidden state when FacetWP hides it */
}
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-reset {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--bf-bar-text-2);
	text-decoration: underline;
	cursor: pointer;
}
/* No hover/active/focus background or shadow — explicit reset against the
   theme's global button hover style (same bleed we fixed on the sort toggle) */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-reset:hover,
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-reset:active,
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-reset:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
}
/* Brand-blue text hover (Figma) */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-reset:hover {
	color: var(--bf-bar-blue);
}

/* --- 1.5 Sort By: + custom dropdown ------------------------------------------
   "Sort By:" (CSS ::before on the facet) 16px 90% black, 12px before the
   value. Value 16px #1E39D2, 4px before the 20x20 icon. Menu: 210px wide,
   8px padding, 4px radius, white, triple shadow. Items: 14px/22px 90% black,
   5px 12px padding, 4px radius, no gap between; hover = #F5F5FF bg + blue
   text. The native <select> stays in the DOM (FacetWP needs it) but is
   visually hidden; the JS-injected .bf-sort-toggle + .bf-sort-menu replace it. */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-sort_by {
	display: flex;
	align-items: center;
	height: 32px;
	position: absolute;                       /* OUT of the wrapping flow: never moves… */
	top: 0;
	right: 0;                                 /* …pinned to the top-right corner        */
}
/* The "Sort By:" label — pure CSS, no PHP/builder change needed */
.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-sort_by::before {
	content: "Sort By:";
	flex: none;
	margin-right: 12px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--bf-bar-text);
}

/* Native select: kept for FacetWP state, removed from view/a11y.
   Hidden UNCONDITIONALLY (not via a JS-added class) so there is no flash of
   the unstyled select in the window between FacetWP wiping the facet content
   on AJAX and our JS rebuilding the custom UI on facetwp-loaded. */
.facetwp-facet-sort_by select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Toggle button (current value + icon). The hover/active/focus states carry
   NO background and NO shadow — an explicit reset, because the theme's global
   button hover style was bleeding a faint background onto it. */
.facetwp-facet-sort_by .bf-sort-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;                                 /* value → icon 4px */
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
}
.facetwp-facet-sort_by .bf-sort-toggle:hover,
.facetwp-facet-sort_by .bf-sort-toggle:active,
.facetwp-facet-sort_by .bf-sort-toggle:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
}
.facetwp-facet-sort_by .bf-sort-toggle__value {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--bf-bar-blue);
}
/* The icons are MASKED spans, not <img> — the mask shape comes from the SVG
   file, the color is forced to brand blue regardless of the SVG's own fill. */
.facetwp-facet-sort_by .bf-sort-toggle__icon {
	width: 20px;
	height: 20px;
	flex: none;
	background-color: var(--bf-bar-blue);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Icon swap on open/close (mapping REVERSED per design request — only which
	   file shows in which state changed, nothing else): "dropdown_closed.svg"
	   is shown while the menu is CLOSED, and "dropdown_open.svg" while OPEN. */
.facetwp-facet-sort_by .bf-sort-toggle__icon--when-closed {
	-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_closed.svg");
	mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_closed.svg");
}
.facetwp-facet-sort_by .bf-sort-toggle__icon--when-open {
	display: none;
	-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_open.svg");
	mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_open.svg");
}
.facetwp-facet-sort_by.bf-sort-open .bf-sort-toggle__icon--when-closed { display: none; }
.facetwp-facet-sort_by.bf-sort-open .bf-sort-toggle__icon--when-open { display: block; }

/* Dropdown menu.
   NOTE: when open, JS moves the menu to <body> (portal — Kadence row/column
   stacking contexts would otherwise trap it under cards) and positions it with
   fixed coordinates from the toggle. These rules are therefore intentionally
   NOT scoped under the facet. */
.bf-sort-menu {
	position: absolute;                       /* in-facet while closed… */
	top: calc(100% + 4px);                    /* NOTE(assumed): gap under toggle not in Figma */
	right: 0;
	width: 210px;
	padding: 8px;                             /* 8px all sides (top/bottom item inset) */
	background: #FFFFFF;
	border-radius: 4px;
	box-shadow:
		0 9px 28px 8px  rgba(0, 0, 0, 0.05),
		0 3px 6px  -4px rgba(0, 0, 0, 0.12),
		0 6px 16px 0    rgba(0, 0, 0, 0.08);
	z-index: 1000;
}
/* …and fixed while portaled-open (coordinates set inline by JS) */
.bf-sort-menu.bf-sort-menu--portaled {
	position: fixed;
	top: 0;                                   /* JS sets left/top inline */
	right: auto;
	z-index: 10010;                           /* above every card/bar context, below modals */
}
.bf-sort-menu[hidden] { display: none !important; }

/* Menu items — no gap between them; hover gets the light-blue bg + blue text */
.bf-sort-option {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 12px;                        /* NOTE(assumed): left padding symmetric (Figma cut off) */
	border-radius: 4px;                       /* NOTE(assumed): Figma "borderRadiusSM" token = 4px */
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
	user-select: none;
}
.bf-sort-option:hover,
.bf-sort-option.is-active {                   /* .is-active = keyboard highlight */
	background: #F5F5FF;
	color: #1E39D2;
}

/* Focus visibility (site convention: blue ring) */
.facetwp-facet-sort_by .bf-sort-toggle:focus-visible,
.bf-sort-option:focus-visible {
	outline: 2px solid #1E39D2;
	outline-offset: 2px;
}

/* --- 1.6 Load More — loading row (spinner + text) --------------------------
   While a Load More request runs, the button hides and this row takes its
   place (built by JS section 8, inserted inside the button's wrapper, right
   after it (2026-10-20 — the wrapper's 32px margin used to drop the row a
   full margin below the button); its
   min-height is copied from the button so the swap never shifts layout).
   Figma: 202x24 hug row — Poppins 600, 16px/24px, #000 at 26% (disabled gray),
   spinning circle on the left. Breakpoint-independent → lives in GLOBAL.
   ------------------------------------------------------------------------ */
.bf-load-more-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.bf-load-more-row[hidden] { display: none; }
.bf-load-more-row__spinner {
	flex: none;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 2px solid rgba(0, 0, 0, 0.12);   /* ring */
	border-top-color: rgba(0, 0, 0, 0.4);    /* the moving arc */
	border-radius: 50%;
	animation: bfLmSpin 0.7s linear infinite;
}
.bf-load-more-row__text {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: rgba(0, 0, 0, 0.26);
}
@keyframes bfLmSpin {
	to { transform: rotate(360deg); }
}

/* --- 1.6b Load More wrapper — exact total gap to the next block (2026-10-20)
   Figma: 48px desktop / 48px tablet / 24px mobile between the Load More
   button (or the loading row — same footprint inside the wrapper) and the SEO
   text row below. Measured totals today: 1px desktop, 16px tablet, -8px
   mobile (button row's padding-bottom 24/24/0 + the SEO row's negative
   margin-top -23/-8/-8). The wrapper's margin-bottom is the lever: it moves
   button and loader together and touches nothing else. Uniform across the
   generated archive template (verified identical on tumblers + can-coolers).
   ---------------------------------------------------------------------------- */
@media only screen and (min-width: 1025px) {
	.wp-block-kadence-advancedbtn:has(> .bf-load-more) {
		margin-bottom: 47px !important;  /* 24 + 47 - 23 = 48 */
	}
}
@media only screen and (max-width: 1024px) {
	.wp-block-kadence-advancedbtn:has(> .bf-load-more) {
		margin-bottom: 32px !important;  /* tablet: 24 + 32 - 8 = 48 · mobile: 0 + 32 - 8 = 24 */
	}
}

/* --- 1.7 Left column: subcategory navigation (Figma "Filters" block) ------
	   Container: 291px, white, 0.5px #DCDCDC bottom border.
	   Parent row: 5px 16px 5px 0 padding, 34px, 600 16px/24px 90% black.
	   List: 0 0 8px padding, 4px gaps. Items: 5px 12px, 32px, 4px radius.
	   Current item: 700 14/22 90% black (never a link). Links: 400 14/22 90%,
	   hover = #F2F3FF bg + #1E39D2 text. Toggle: 400 14/22 #1E39D2. */
	.bf-arch-nav {
	--bf-nav-text:      rgba(0, 0, 0, 0.9);
	--bf-nav-blue:      #1E39D2;
	--bf-nav-hover-bg:  #F2F3FF;
	--bf-nav-border:    #DCDCDC;

	display: flex;
	flex-direction: column;
	width: 100%;
	background: #FFFFFF;
	border-bottom: 0.5px solid var(--bf-nav-border);
	font-family: 'Poppins', sans-serif;
	}

/* Parent category (semi-bold plain label — NOT a link) */
	.bf-arch-nav__parent {
	display: flex;
	align-items: center;
	min-height: 34px;
	padding: 5px 16px 5px 0;
	}
	.bf-arch-nav__parent-label {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--bf-nav-text);
	}

/* The list (current + sibling links + show more/less) */
	.bf-arch-nav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 0 8px;
	}
	.bf-arch-nav__current,
	.bf-arch-nav__link,
	.bf-arch-nav__toggle {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 22px;
	}
	.bf-arch-nav__current {
	font-weight: 700;
	color: var(--bf-nav-text);
	}
	.bf-arch-nav__link {
	font-weight: 400;
	color: var(--bf-nav-text);
	text-decoration: none;
	}
	.bf-arch-nav__link:hover {
	background: var(--bf-nav-hover-bg);
	color: var(--bf-nav-blue);
	}

/* Show more/less toggle */
	.bf-arch-nav__toggle {
	font-weight: 400;
	color: var(--bf-nav-blue);
	background: none;
	border: 0;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	}
	.bf-arch-nav__toggle:hover,
	.bf-arch-nav__toggle:active,
	.bf-arch-nav__toggle:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	color: var(--bf-nav-blue);
	}

/* Extra links beyond the visible count — hidden until expanded (JS) */
	.bf-arch-nav__extra { display: none; }
	.bf-arch-nav--expanded .bf-arch-nav__extra { display: flex; }

/* --- 1.8 Left column: Color Family block (collapsible swatch grid) -------
	   Block: white, 0.5px #E7E7E7 bottom border, 0 0 8px padding.
	   Header row (the collapse toggle): 40px, 8px 0 padding; title 400 16/24
	   90% black; chevron 24px masked 60% black — open/close swap identical to
	   the sort menu (same two SVGs, same inverse filenames).
	   Grid: 26px dots, 14px gaps (40px pitch), flex-wrap.
	   Hover: 2px #A6A6A6 ring (same as card swatches).
	   Selected: checkmark overlay — selected_swatch.svg (white, 13px) or
	   black_check.svg (black, 25px for its canvas quirk), per design's table. */
	.bf-color-block {
	--bf-color-text:    rgba(0, 0, 0, 0.9);
	--bf-color-chevron: rgba(0, 0, 0, 0.6);

	width: 100%;                           /* Figma — the remaining column width is reserved for a scrollbar later */
	background: #FFFFFF;
	border-bottom: 0.5px solid #E7E7E7;
	padding: 0 0 8px;
	font-family: 'Poppins', sans-serif;
	}

/* Header row = the collapse toggle (whole row is clickable) */
	.bf-color-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 40px;
	padding: 8px 0;
	background: none;
	border: 0;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	}
	.bf-color-block__head:hover,
	.bf-color-block__head:active,
	.bf-color-block__head:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	}
	.bf-color-block__title {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--bf-color-text);
	}

/* Chevron: 24px masked span, 60% black. Same REVERSED mapping as the sort
	   menu (per design request): the CLOSED state shows dropdown_closed.svg,
	   the OPEN state shows dropdown_open.svg. Default state of the block =
	   expanded. */
	.bf-color-block__chevron {
	flex: none;
	width: 24px;
	height: 24px;
	background-color: var(--bf-color-chevron);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	}
	.bf-color-block__chevron--when-open {
	display: block;
	-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_open.svg");
	mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_open.svg");
	}
	.bf-color-block__chevron--when-closed {
	display: none;
	-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_closed.svg");
	mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_closed.svg");
	}
	.bf-color-block--collapsed .bf-color-block__chevron--when-open { display: none; }
	.bf-color-block--collapsed .bf-color-block__chevron--when-closed { display: block; }
	.bf-color-block--collapsed .bf-color-block__body { display: none; }

/* Collapsed geometry: drop the block's bottom padding so the 40px header
	   row is the only content — the closed title then sits vertically centered
	   between the two borders, identical to the other facet blocks. The open
	   state is untouched (padding stays). */
	.bf-color-block--collapsed { padding-bottom: 0; }

/* The swatch grid (the skinned FacetWP facet) */
	.bf-color-block__body .facetwp-facet-color_family {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	}

/* Neutralize FacetWP's default checkbox chrome on our circles */
	.bf-color-block__body .facetwp-facet-color_family .facetwp-checkbox.bf-color-choice,
	.bf-color-block__body .facetwp-facet-color_family .facetwp-checkbox.bf-color-choice.checked {
	display: inline-flex;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	cursor: pointer;
	}
	.bf-color-block__body .facetwp-facet-color_family .facetwp-checkbox.bf-color-choice::before,
	.bf-color-block__body .facetwp-facet-color_family .facetwp-checkbox.bf-color-choice::after {
	display: none;
	}

/* The 26px dot */
	.bf-color-dot {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--dot, transparent);
	box-sizing: border-box;
	}
	.bf-color-dot--ring { border: 1px solid var(--dot-ring, #E7E7E7); }
	.bf-color-dot img { display: block; width: 100%; height: 100%; border-radius: 50%; }

/* Color name: present for a11y, visually hidden */
	.bf-color-name {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	}

/* Hover ring (identical effect to the card swatches) */
	.bf-color-choice:hover .bf-color-dot {
	box-shadow: 0 0 0 2px #A6A6A6;
	}

/* Hover tooltip on the filter dots — IDENTICAL to the card swatch tooltip:
	   white box below with the up-notch, shows after the same 0.7s dwell,
	   hides instantly on mouse-out. The label rides in data-tip and renders
	   via the ::after pseudo-element's `content` — keeping it OUT of
	   textContent, because FacetWP builds the selection pill labels from the
	   choice's text (two visible text nodes made pills read "WhiteWhite").
	   (content on the bare ELEMENT is ignored by browsers — it must live on
	   a pseudo-element; that is why the pill used to render empty.) */
	.bf-color-dot-tip {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: #FFFFFF;
	box-shadow:
		0 6px 16px 0   rgba(0, 0, 0, 0.08),
		0 3px 6px  0   rgba(0, 0, 0, 0.12),
		0 9px 28px 0   rgba(0, 0, 0, 0.05);
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 19px;
	color: #111111;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease 0s;
	z-index: 30;
	}
	.bf-color-dot-tip::after {
	content: attr(data-tip);            /* the color name — pseudo-content, so it
	                                   never enters textContent / the pills */
	}
	.bf-color-dot-tip::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #FFFFFF;
	transform: translate(-50%, 50%) rotate(45deg);
	box-shadow: none;
	}
	.bf-color-choice:hover .bf-color-dot-tip {
	opacity: 1;
	transition-delay: 0.7s;
	}

/* Selected checkmark (overlay on the dot) */
	.bf-color-block__body .facetwp-checkbox.bf-color-choice.checked .bf-color-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--check-icon) center / 13px 13px no-repeat;
	}
/* black_check.svg's canvas quirk (visible mark ~half its canvas) → 25px */
	.bf-color-block__body .facetwp-checkbox.bf-color-choice.checked .bf-color-dot--check-black::after {
	background-size: 25px 25px;
	}

/* --- 1.9 Left column: GENERIC facet block (every checkbox facet) ----------
	   One shell + one visual set for ALL checkbox facets — nothing is styled
	   per-facet. Block: 271px, white, 0.5px #E7E7E7 bottom border; collapsible
	   header (title + chevron, same inverse-name swap as the sort menu).
	   Items: 32px rows, 5px 12px, 4px radius; hover AND selected = #F2F3FF bg
	   (the background is the hover effect per design); checkbox 20px white
	   box, 1px rgba(0,0,0,.4) border, 4px radius; checked = #1E39D2 box with
	   the white selected_swatch.svg check. Show more appears only over 6
	   choices (JS counts after every FacetWP render).
	   The Color Family circles (2.8) never match these rules. */
	.bf-facet-block {
	width: 100%;                           /* Figma — the rest of the column is reserved for the scrollbar */
	background: #FFFFFF;
	border-bottom: 0.5px solid #E7E7E7;
	padding: 0;
	font-family: 'Poppins', sans-serif;
	}

/* Header row = the collapse toggle */
	.bf-facet-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 40px;
	padding: 8px 0;
	background: none;
	border: 0;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	}
	.bf-facet-block__head:hover,
	.bf-facet-block__head:active,
	.bf-facet-block__head:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	}
	.bf-facet-block__title {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: rgba(0, 0, 0, 0.9);
	}
	.bf-facet-block__chevron {
	flex: none;
	width: 24px;
	height: 24px;
	background-color: rgba(0, 0, 0, 0.6);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	}
	.bf-facet-block__chevron--when-open {
	display: block;
	-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_open.svg");
	mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_open.svg");
	}
	.bf-facet-block__chevron--when-closed {
	display: none;
	-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_closed.svg");
	mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/dropdown_closed.svg");
	}
	.bf-facet-block--collapsed .bf-facet-block__chevron--when-open { display: none; }
	.bf-facet-block--collapsed .bf-facet-block__chevron--when-closed { display: block; }
	.bf-facet-block--collapsed .bf-facet-block__body { display: none; }

	.bf-facet-block__body { padding: 0 0 8px; }

/* Items — shared by every checkbox facet inside these blocks.
	   Left padding 0 (Figma: 5px 12px 5px 0px) so the checkbox aligns flush
	   with the block title, same as the color dots. */
	.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox,
	.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox.checked {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 5px 12px 5px 0;
	border-radius: 4px;
	background: none;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
	}
	.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox:hover {
	background: #F2F3FF;
	}
/* Checked keeps the blue box + check but NO row background — the #F2F3FF
	   background is a HOVER-only effect (per design review) */
	.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox.checked {
	background: none;
	}

/* Kill FacetWP's default 15px facet margin inside our blocks — it was
	   inflating the gap before the bottom border (border should sit exactly
	   8px below the last item / Show more, from the body padding) */
	.bf-facet-block .facetwp-facet {
	margin: 0;
	}

/* The 20px checkbox box */
	.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 0, 0, 0.4);
	border-radius: 4px;
	}
/* Checked: blue box + white check */
	.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox.checked::before {
	background: #1E39D2 url("https://brandifyfactory.com/wp-content/uploads/2026/09/selected_swatch.svg") center / 12px 12px no-repeat;
	border-color: #1E39D2;
	}

/* Show more/less: items beyond 6 hide until expanded (JS marks + toggles).
	   NOTE: the hide rule must out-specificity the base item rule above (3
	   classes → 4 classes here), otherwise the extras never hide. */
	/* Show more/less is structural now (no JS timing): the 7th+ checkbox hides
	   unless the block carries the expanded class — that wrapper class survives
	   every FacetWP DOM swap, so correct visibility is enforced at first paint
	   and the extras can never flash. */
	.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox:nth-of-type(n+7) { display: none; }
	.bf-facet-block--expanded .facetwp-type-checkboxes .facetwp-checkbox:nth-of-type(n+7) { display: flex; }
	.bf-facet-block__toggle {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 12px 5px 0;              /* NO left padding — the checkbox rows have
	                                     padding-left:0, so this keeps the Show more
	                                     text exactly on their left edge (Figma) */
	background: none;
	border: 0;
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: #1E39D2;
	cursor: pointer;
	text-align: left;
	}
	.bf-facet-block__toggle:hover,
	.bf-facet-block__toggle:active,
	.bf-facet-block__toggle:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	color: #1E39D2;
	}
	.bf-facet-block__toggle[hidden] { display: none; }

/* --- 1.10 Grid + card tokens ------------------------------------------------
	   4 columns, exactly 15px between cards (4x227 + 3x15 = 953px ≈ the
	   956px content column — cards stretch to fill via 1fr). */
	.bf-archive-grid {
	--bf-card-text:         rgba(0, 0, 0, 0.9);
	--bf-card-text-2:       rgba(0, 0, 0, 0.6);
	--bf-card-blue:         #1E39D2;
	--bf-card-media-bg:     #F5F5F5;
	--bf-card-tag-bg:       #F5F5F5;
	--bf-card-badge-bg:     #FA3C00;

	display: grid;
	font-family: 'Poppins', sans-serif;
	}

/* --- 1.11 Card shell (column, 6px gap media↔body, 8px radius) ------------- */
	.bf-product-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	border-radius: 8px;
	position: relative;                     /* anchors the ::after hover frame */
	}

/* --- 1.12 Media: square image (227x226), badges, heart circle ------------- */
	.bf-card-media {
	position: relative;
	aspect-ratio: 227 / 226;
	border-radius: 8px 8px 0 0;             /* top corners only — bottom corners stay square (Figma) */
	overflow: hidden;
	background: var(--bf-card-media-bg);
	}
	.bf-card-media-link { display: block; width: 100%; height: 100%; }
	.bf-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	}

	/* Badges: orange #FA3C00 pill, top-left. 2026-11-30 reskin (the label
	   dumps): 8px top/left (was 10), radius 4 (was 12), 8px stack gap (was 4),
	   padding-inline 4px; per breakpoint: desktop 24px tall 14/22 600, tablet
	   22px, mobile 20px with 12/20 text. Same spec as the product-title badge. */
	.bf-card-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 2;
	}
	.bf-card-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 4px;
	background: var(--bf-card-badge-bg);
	border-radius: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
	white-space: nowrap;
	}
	@media only screen and (min-width: 768px) and (max-width: 1024px) {
	.bf-card-badge { height: 22px; }
	}
	@media only screen and (max-width: 767px) {
	.bf-card-badge { height: 20px; font-size: 12px; line-height: 20px; }
	}

/* Wishlist heart: 32px circle, 10px from the top-right corner.
	   The SVG icons (product_page_wishlist_empty/full) already CONTAIN the
	   white circle + 0.5px #DCDCDC border — so this wrapper is purely
	   positioning and the img fills it 1:1 (no CSS circle of our own). */
	.bf-product-card .bf-wishlist-archive-heart {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	}
	.bf-product-card .bf-wishlist-archive-heart .wishlist-heart-icon {
	display: block;
	width: 32px;
	height: 32px;
	}

/* Hover state (explicitly requested): the third icon
	   (product_page_wishlist_hover.svg — gray-filled circle) overlays the base
	   icon on hover. Only when the product is NOT in the wishlist — a filled
	   heart stays filled. Pure CSS overlay, no JS, no animation. */
	.bf-product-card .bf-wishlist-archive-heart::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("https://brandifyfactory.com/wp-content/uploads/2026/09/product_page_wishlist_hover.svg") center / contain no-repeat;
	opacity: 0;
	pointer-events: none;
	}
	.bf-product-card .bf-wishlist-archive-heart:hover:not(.in-wishlist)::after {
	opacity: 1;
	}

/* --- 1.13 Body: column, 8px between blocks, 14px bottom ------------------ */
	.bf-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 0 14px;
	}

/* Swatches: row height 22px, 0 12px inset, 16px circles, 4px apart */
	.bf-card-swatches {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 22px;
	padding: 0 12px;
	}
	.bf-card-swatch {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--swatch, transparent);
	box-sizing: border-box;
	position: relative;                     /* anchors the hover tooltip */
	cursor: pointer;                        /* swatches are clickable (color handoff to the product page) */
	}
/* Light swatches: hairline inner ring — only when NOT hovered; on hover the
	   outer gray ring takes over (identical to the product-page behavior) */
	.bf-card-swatch--ring:not(:hover) { box-shadow: inset 0 0 0 1px var(--swatch-ring, #E7E7E7); }
	.bf-card-swatch img { display: block; width: 100%; height: 100%; border-radius: 50%; }
	.bf-card-swatch-more {
	flex: none;
	white-space: nowrap;                  /* never split "+n" across lines */
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-text-2);
	}

/* Title: 600 14/22, 90% black, always exactly 2 lines (44px) with ellipsis.
	   The !important margin reset is REQUIRED: the theme's h3 rule
	   (21px top / 7px bottom) out-specificities a bare class and was inflating
	   the swatches↔title and title↔price gaps (29px/15px measured live). */
	.bf-archive-grid .bf-card-title {
	margin: 0 !important;
	height: 44px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
	color: var(--bf-card-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	}
	.bf-archive-grid .bf-card-title-link { color: inherit; text-decoration: none; }

/* Price block: "Low as $X" + View Pricing, then "Minimum Quantity N" */
	.bf-card-pricing {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 12px;
	}
	.bf-card-price {
	position: relative;                     /* anchors the pricing popover */
	display: flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	}
	.bf-card-price-low {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--bf-card-text);
	}
	.bf-card-pricing-toggle {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-blue);
	cursor: pointer;
	text-decoration: none;                  /* never underlined — base state */
	}
/* Same theme-bleed armor as the bar controls: no hover bg/shadow, text
	   stays brand blue in every state… */
	.bf-card-pricing-toggle:hover,
	.bf-card-pricing-toggle:active,
	.bf-card-pricing-toggle:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	color: var(--bf-card-blue);
	}
/* …with ONE intended effect (explicitly requested): underline on hover */
	.bf-card-pricing-toggle:hover { text-decoration: underline; }
	.bf-card-moq {
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-text);
	}

/* Pricing popover ("Price Range" layer) — Figma spec:
	   226px wide, padding 10px 8px 16px, 6px column gap, white, 8px radius,
	   boxShadowSecondary triple. Opens primarily BELOW the "View Pricing"
	   link; flips ABOVE only when there isn't room below (JS computes
	   coordinates at open; desktop centers it on the card, tablet
	   left-aligns it to the link — see archive-body-js.js section 4). While
	   open it is PORTALED to <body> (see --portaled) so nothing clips or
	   covers it.
	   No tail/arrow (removed per design). Rows 32px (5px 10px inset), zebra
	   #F5F5F5 on data rows 1/3/5. Selling points hardcoded. */
	.bf-pricing-popover {
	position: absolute;
	bottom: calc(100% + 10px);                /* above the toggle, 10px clear */
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 226px;
	padding: 10px 8px 16px;
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow:
		0 6px 16px 0    rgba(0, 0, 0, 0.08),
		0 3px 6px  -4px rgba(0, 0, 0, 0.12),
		0 9px 28px 8px  rgba(0, 0, 0, 0.05);
	z-index: 1000;                          /* over neighboring cards */
	isolation: isolate;
	}
	.bf-pricing-popover[hidden] { display: none !important; }

/* While open, JS portals the popover to <body> with fixed coordinates
	   (same proven pattern as the sort menu) — it escapes the listing row's
	   overflow:clip and every card stacking context, so it can never be cut
	   off at the grid's bottom edge or slide under the next section. */
	.bf-pricing-popover--portaled {
	position: fixed;
	bottom: auto;
	left: 0;                                /* JS sets the coordinates inline */
	top: 0;
	z-index: 10010;
	}

/* The product title renders ONLY inside the MOBILE pricing sheet — shown
   and styled in section 4.9; hidden on desktop + tablet. */
	.bf-pricing-popover__title { display: none; }

	.bf-pricing-popover__heading {
	margin: 0 !important;                   /* !important required — the theme's
	                                   .entry-content p margin out-specificities a bare class */
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-text);
	}

/* Tier table rows — the price column sits at a FIXED offset (NOT right-
	   aligned): the qty cell is 104px wide, so the price starts 35px clear of
	   the longest label ("5000 min." = 69px — the desktop/tablet Figma spec)
	   = the mobile Figma's 104px start; same column serves every breakpoint.
	   The header row ("Price Per Item") aligns automatically. Popover width
	   unchanged. */
	.bf-pricing-popover__table { display: block; }
	.bf-pricing-popover__row {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	height: 32px;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-text);
	}
	.bf-pricing-popover__row > span:first-child {
	flex: none;
	width: 104px;
	}
	.bf-pricing-popover__row > span {
	white-space: nowrap;                  /* "Price Per Item" always on ONE line —
	                                     104px cell + ~98px text is tight inside the
	                                     226px popover; the header row has no zebra
	                                     bg, so nothing visible is ever crossed */
	}
/* Zebra: data rows 1/3/5 (children 2/4/6 — child 1 is the header) */
	.bf-pricing-popover__table > .bf-pricing-popover__row:nth-child(even) {
	background: #F5F5F5;
	}
	.bf-pricing-popover__row--head { font-weight: 600; }

/* Selling points */
	.bf-pricing-popover__points-title {
	margin: 0 !important;                   /* !important required — see heading above */
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-text);
	}
	.bf-pricing-popover__points-list {
	margin: 0 !important;                   /* same theme-bleed protection (.entry-content ul) */
	padding-left: 16px !important;          /* NOTE(assumed): bullet indent */
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-text);
	}
	.bf-pricing-popover__points-list strong { font-weight: 600; }

/* Tag pills: row height 22px, 0 12px inset, 8px apart, wrap, opacity .8.
	   Pill: 22px high, 0 6px padding, #F5F5F5 bg, 6px radius, 14/22 60% black. */
	.bf-card-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 22px;
	padding: 0 12px;
	opacity: 0.8;
	}
	.bf-card-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	padding: 0 6px;
	background: var(--bf-card-tag-bg);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: var(--bf-card-text-2);
	white-space: nowrap;
	}

/* Empty state */
	.bf-archive-empty {
	grid-column: 1 / -1;
	margin: 40px 0;
	text-align: center;
	font-size: 15px;
	color: var(--bf-card-text-2);
	}

/* --- 1.14 Card hover effects (explicitly requested) ------------------------
	   Extended frame: hovering ANYWHERE on the card shows a 1px #E7E7E7 frame
	   exactly 8px OUTSIDE the card on all sides (radius 8px) with the
	   _boxShadowDrawerUp triple shadow. Pure overlay pseudo-element:
	   zero layout impact — card width unchanged, neighbors never move.
	   (The side-view image swap was REMOVED per design decision.) */
	.bf-product-card:hover {
	z-index: 2;                             /* hovered card's frame paints above neighbors */
	}
/* Stacking-trap fix: a card with an OPEN pricing popover must outrank every
	   hovered sibling. Hovering a card gives it z-index:2 (a stacking context),
	   which would trap the popover at that level and let later cards' hearts
	   paint over it — the open popover lifts its card above all of that. */
	.bf-product-card:has(.bf-pricing-popover:not([hidden])) {
	z-index: 1001;
	}
	.bf-product-card::after {
	content: "";
	position: absolute;
	inset: -8px;                            /* 8px outside the card on all sides */
	border: 1px solid #E7E7E7;
	border-radius: 8px;
	box-shadow:
		0 9px 28px 8px  rgba(0, 0, 0, 0.05),
		0 3px 6px  -4px rgba(0, 0, 0, 0.12),
		0 6px 16px 0    rgba(0, 0, 0, 0.08);
	opacity: 0;
	pointer-events: none;                   /* never intercepts clicks/hovers */
	}
	.bf-product-card:hover::after { opacity: 1; }

/* --- 1.15 Swatch hover: ring + tooltip (identical to the product page) ----
	   Hover ring: 2px #a6a6a6 outer ring via box-shadow (no layout shift).
	   Tooltip: white box below the swatch with the up-notch; shows after the
	   same 0.7s hover dwell as the product page, hides instantly on mouse-out.
	   Swatch sizes are untouched. */
	.bf-card-swatch:hover {
	box-shadow: 0 0 0 2px #A6A6A6;
	}
	.bf-card-swatch-tip {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: #FFFFFF;
	box-shadow:
		0 6px 16px 0   rgba(0, 0, 0, 0.08),
		0 3px 6px  0   rgba(0, 0, 0, 0.12),
		0 9px 28px 0   rgba(0, 0, 0, 0.05);
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 19px;
	color: #111111;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease 0s;      /* hides instantly on mouse-out */
	z-index: 30;
	}
/* The up-pointing notch (kept shadow-free so it stays clean at the junction) */
	.bf-card-swatch-tip::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #FFFFFF;
	transform: translate(-50%, 50%) rotate(45deg);
	box-shadow: none;
	}
	.bf-card-swatch:hover .bf-card-swatch-tip {
	opacity: 1;
	transition-delay: 0.7s;                 /* identical dwell to the product page */
	}


.bf-fx-scrollwrap {
		position: relative;                     /* JS upgrades to sticky + sets top */
	}
	.bf-fx-viewport {
		overflow-y: auto;
		scrollbar-width: none;                  /* Firefox: hide the native bar */
	}
	.bf-fx-viewport::-webkit-scrollbar { display: none; }

	/* Blocks fill the padded content box. Figma totals 271+6+14 = 291px but
	   our Kadence column is 288px — the 3px comes off the block width so the
	   6px gap and 14px rail stay exact. */
	.bf-fx-viewport .bf-color-block,
	.bf-fx-viewport .bf-facet-block {
		width: 100%;
	}

	.bf-fx-rail {
		position: absolute;                     /* part of the section — spans the frame */
		top: 0;
		right: 0;
		bottom: 0;
		width: 14px;
		display: flex;
		flex-direction: column;
	}
	.bf-fx-rail[hidden] { display: none; }

	.bf-fx-rail__arrow {
		flex: none;
		width: 14px;
		height: 14px;
		margin: 0;
		padding: 0;
		border: 0;
		background-color: #E7E7E7;
		-webkit-mask-position: center;
		mask-position: center;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: contain;
		mask-size: contain;
		cursor: pointer;
		transition: background-color 0.15s ease;
	}
	/* Hold the state color against the theme's button hover/active/focus
	   styles (they were painting the arrow brand-blue) */
	.bf-fx-rail__arrow:hover,
	.bf-fx-rail__arrow:active,
	.bf-fx-rail__arrow:focus {
		background-color: #E7E7E7;
		box-shadow: none;
	}
	.bf-fx-rail__arrow--up {
		-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/slider_up.svg");
		mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/slider_up.svg");
	}
	.bf-fx-rail__arrow--down {
		-webkit-mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/Slider_down.svg");
		mask-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/Slider_down.svg");
	}

	.bf-fx-rail__track {
		position: relative;
		flex: 1 1 auto;
	}
	.bf-fx-rail__thumb {
		position: absolute;
		top: 0;                                 /* positioned via transform by JS */
		left: 3px;                              /* centers the 8px thumb in the 14px rail */
		width: 8px;
		height: 0;                              /* set by JS */
		border-radius: 6px;
		background-color: #E7E7E7;
		cursor: grab;
		touch-action: none;                     /* pointer drag, not native scroll */
		transition: background-color 0.15s ease;
	}
	.bf-fx-rail__thumb:active { cursor: grabbing; }

	/* In use (dragging / arrows held / region scrolling): everything #8B8B8B */
	.bf-fx-rail.bf-is-active .bf-fx-rail__thumb,
	.bf-fx-rail.bf-is-active .bf-fx-rail__arrow,
	.bf-fx-rail.bf-is-active .bf-fx-rail__arrow:hover,
	.bf-fx-rail.bf-is-active .bf-fx-rail__arrow:active,
	.bf-fx-rail.bf-is-active .bf-fx-rail__arrow:focus {
		background-color: #8B8B8B;
	}

	/* Content fits the frame → JS hides the rail and drops the reserve */
	.bf-fx-scrollwrap--fits .bf-fx-viewport { padding-right: 0; }

/* The custom filter scrollbar rail (section 2.10) is desktop-only — hidden
   by default; it gets display:flex inside the desktop media query. */
.bf-fx-rail { display: none; }

/* The Filters sidebar toggle button — tablet-only (3.6 shows it). */
.bf-sidebar-toggle { display: none; }

/* Wrapped facet counters ("(59)" on its own line): nudge right so the
   brackets never clip the row's left edge (JS tags .bf-ctr-wrap). The extra
   class out-specificities the tablet margin-left:-4px tightening rule. */
.bf-facet-block .facetwp-counter.bf-ctr-wrap { margin-left: 4px; }

/* --- 1.15 FAQ accordion: header's bottom corners square off while OPEN ------
   The header is a fully-rounded gray box; when its pane opens, the rounded
   BOTTOM corners create an ugly seam against the content box below. Square
   just the bottom while open so header + content read as ONE box. Stable
   hooks only: block-TYPE class + aria-expanded (never instance IDs). */
.wp-block-kadence-accordion .kt-blocks-accordion-header[aria-expanded="true"] {
	/* !important required — Kadence's instance-scoped radius rule
	   out-specificities a bare selector */
	border-bottom-right-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}

/* --- 1.16 FAQ accordion: chevron pinned to the title's FIRST row -----------
   The button's align-items:center let the chevron drift to the MIDDLE of
   multi-row titles. flex-start pins it to row 1 instead — and since the icon
   span and the title's line box are BOTH 24px, single-row headers render
   pixel-identical to before. All screens. */
.wp-block-kadence-accordion .kt-blocks-accordion-header {
	align-items: flex-start !important;   /* !important — same instance-rule war as 1.15 */
}

/* ============================================================================
   2. DESKTOP — @media (min-width:1025px)
   ============================================================================
   The results-bar spec lives in GLOBAL (shared baseline). This section holds
   the product card grid — Figma "Filter Goods card" (227x408), 4 per row.
   ============================================================================ */
@media only screen and (min-width: 1025px) {
	/* --- 2.0 CTA banner TEXT GEOMETRY (global desktop pins) ----------------
	   2026-10-13, user-spec: ONE place owns the banner text geometry on
	   desktop for all ~176 archive pages - zero per-page builder settings
	   needed. Container pins the text lane 31px from the banner top edge and
	   48px from its left edge; both texts capped to a 611px lane (keeps text
	   off the artwork zone on the right); description sits 10px below the
	   title. Builder paddings/margins on the two <p> are zeroed here.
	   Tablet + mobile keep their own sections, untouched. Measured live
	   @1440 before writing (banner 956x180, title had a stray 32px bottom
	   margin - now zeroed). */
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col {
		padding: 31px 0 0 48px !important;
	}
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col > p[class*="kt-adv-heading"] {
		max-width: 611px !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col > p[class*="kt-adv-heading"]:not(.semi-bold) {
		margin-top: 10px !important;
	}

	/* --- 2.1b Grid columns on desktop: 4 per row, 15px gaps -------------
	   The grid container (tokens/display/font) is GLOBAL 1.10; these are the
	   desktop track rules — tablet overrides them in 3.3. */
	.bf-archive-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 15px;
	}

	/* --- 2.1c Whole-card link affordance --------------------------------------
	   The entire card is clickable to the product page (JS section 5.5) —
	   pointer cursor over the card's neutral zones too. Swatches, View Pricing
	   and the wishlist heart keep their own functions (JS exclusions). */
	.bf-product-card { cursor: pointer; }

	/* --- 2.9b Left column: nav width on desktop ---------------------------
	   The sidebar blocks are width:100% in GLOBAL (they fill whatever column
	   the breakpoint gives them); desktop keeps the Figma 291px container on
	   the nav (271 content + 6 gap + 14 rail reserve). The facet/color
	   blocks sit inside the rail's viewport — 2.10 sizes them to 100% there. */
	.bf-arch-nav { width: 291px; }

	/* --- 2.9c Filter viewport: left bleed for hover RING + dot TOOLTIPS ------
	   The ring (box-shadow 0 0 0 2px) overhangs the leftmost color dot by 2px,
	   and a tooltip centered under that dot overhangs it by up to ~22px —
	   while .bf-fx-viewport MUST clip x (a scroll container can never allow
	   x-overflow — overflow-x:visible computes to auto once overflow-y is
	   set). So give the viewport invisible room instead: margin -24px left,
	   padding +24px back, width +24px. Every dot renders at the exact same
	   coordinates (nothing moves), the right edge and the rail are untouched,
	   and rings + tooltips now paint inside the scrollport. Desktop only. */
	.bf-fx-viewport {
		box-sizing: border-box;
		margin-left: -24px;
		padding-left: 24px;
		width: calc(100% + 24px);
	}

	/* --- 2.9d Filter-dot tooltip: lift the hovered dot's COLUMN --------------
	   All sidebar blocks share ONE .kt-row-column-wrap (a stacking context),
	   so the paint contest is between its child COLUMNS — each a flex item
	   with z-index:1, i.e. its own stacking context. The tooltip's z-index
	   is trapped inside its column; the NEXT column (same z-index, later in
	   the DOM → paints on top) covered the tooltip's bottom edge. While ANY
	   dot is hovered, its column jumps to z-index:40 — z-index works on flex
	   items even with position:static, so no positioning change and zero
	   layout effect. Desktop only (tooltips are hidden on tablet/mobile). */
	.wp-block-kadence-column:has(.bf-color-choice:hover) {
		z-index: 40;
	}

	/* --- 2.10 Left column: custom FILTER SCROLLBAR ---------------------------
	   v6 MODEL: the dedicated filter row (Color Family → last facet) is ONE
	   sticky element pinned at the window's top (JS sets position:sticky;
	   top = the admin-bar guard), and the custom rail is PART of that
	   element — absolute inside it, spanning the frame from the Color
	   Family title top to the frame's bottom. Inside the frame the content
	   scrolls NATIVELY with its bar hidden: ONLY the top is ever swallowed
	   as you scroll; every bottom part stays reachable. The frame's height
	   = from its current top down to the window bottom (JS-set max-height),
	   so its bottom edge is always the window's bottom edge and it is
	   constant once pinned — the rail and thumb never shrink/grow.

	     thumbH = trackH × (frameH ÷ contentH)   — the Figma formula

	   Thumb drag and the arrows scroll the VIEWPORT (the row section), never
	   the page; the wheel is native and chains to the page at the region's
	   ends. The sticky TRAVEL lasts exactly to the product grid's bottom:
	   JS stretches the wrap's parent so its bottom reaches the grid column's
	   bottom — NOT to the column's height, because the sidebar starts higher
	   than the grid column (the right side holds the CTA banner + results
	   bar above the grid) and a height copy would end the travel early by
	   exactly that offset. The rail
	   hides when the content fits the frame.

	   Structure (built once by initFilterRail() in archive-body-js.js):
	   .bf-fx-scrollwrap (the sticky frame)
	     ├── .bf-fx-viewport          — the native scroll region (bar hidden)
	     │     └── the dedicated filter Row Layout (Color Family → last facet)
	     └── .bf-fx-rail              — absolute, spans the frame top→bottom
	           ├── .bf-fx-rail__arrow--up    14×14, slider_up.svg (mask)
	           ├── .bf-fx-rail__track        flex:1 — position context for thumb
	           │     └── .bf-fx-rail__thumb  8px wide / radius 6px (constants)
	           └── .bf-fx-rail__arrow--down  14×14, Slider_down.svg (mask)

	   The shipped SVGs are single-color shapes on transparency → used as
	   MASKS; background-color paints the state: #E7E7E7 idle → #8B8B8B in
	   use (.bf-is-active, toggled by JS on drag / arrows / region scroll).
	   ------------------------------------------------------------------------ */
	/* DESKTOP skin: the rail spans the frame at the section's right edge,
	   14px wide with arrows; the viewport reserves 6px gap + 14px rail. */
	.bf-fx-viewport { padding-right: 20px; }
	.bf-fx-rail {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 14px;
		display: flex;
		flex-direction: column;
	}


}

/* ============================================================================
   3. TABLET — @media (min-width:768px) and (max-width:1024px)
   ============================================================================
   Design viewport 834px; everything fluid across 767–1024 (card + sidebar
   widths scale, all gaps/paddings stay constant). The sidebar object styles
   live in GLOBAL (1.7–1.9) — only widths/layout differ here.
   ============================================================================ */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

	/* --- 3.1 Page edges: exactly 16px from the screen edge -------------------
	   The site's own gutter (.content-container padding, ~8.8px) is OVERRIDDEN
	   to 16px on this page only (this stylesheet is page-scoped), giving the
	   802px canvas the Figma tablet math expects: 834 − 2×16 = 802. */
	.content-container.site-container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	/* --- 3.2 Listing row: fluid sidebar (201px @834 = 24.09vw) + 14px gap --
	   The wrap is a GRID container on tablet (Kadence, with a 40px gutter) —
	   flex rules do nothing here; the track template + gap must be set on the
	   wrap itself (!important to beat Kadence's instance/gutter rules).
	   Sidebar column content keeps desktop object sizes (GLOBAL 1.7–1.9);
	   only the track width flexes. Closed via the Filters button → single
	   track, sidebar item hidden, grid gains a card (3.3). */
	.kt-row-column-wrap:has(.bf-arch-nav) {
		grid-template-columns: 24.09vw minmax(0, 1fr) !important;
		gap: 14px !important;                     /* sidebar ↔ cards, exact */
	}
	.kt-row-column-wrap:has(.bf-arch-nav) > .wp-block-kadence-column {
		width: auto !important;                   /* sized by the track, not Kadence widths */
		max-width: none !important;
		min-width: 0;
	}
	body.bf-sidebar-closed .kt-row-column-wrap:has(.bf-arch-nav) {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	body.bf-sidebar-closed .kt-row-column-wrap:has(.bf-arch-nav) > .wp-block-kadence-column:first-child {
		display: none;
	}
	/* --- 3.8 CTA banner (first column of the right column row) --------------
	   2026-10-13 rework (user spec): TITLE ONLY (subtitle hidden like mobile).
	   Title 16/24 in a min(400px,74%) lane, left-aligned, pinned 39px top
	   (centers a 2-line title in the 126px Figma banner) / 32px left. The box
	   is 126px-floored but grows for long titles (no clipping). ART: the art
	   renders at box height (background-size auto 100%), right-anchored, so
	   only the left blue space crops - ZERO distortion, products never
	   clipped; a #c2daff underlay (the art~s own left-edge color) makes any
	   extreme-width underfill seam invisible. radius 8 + overflow clip. */
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col {
		height: auto !important;
		min-height: 126px !important;         /* Figma tablet height (constant); content grows past it for long titles */
		border-radius: 8px !important;
		overflow: hidden !important;
		background-color: #c2daff !important;      /* the art~s left-edge blue: extreme-width underfill shows as seamless gradient */
		background-size: auto 100% !important;     /* art height = box height, width overflows, uniform scale = ZERO distortion */
		background-position: right top !important; /* anchors the products on the right; crops only the left blue space */
		display: flex !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
		padding: 39px 0 0 32px !important;    /* title pin: 39px top (centers a 2-line title in the 126px banner), 32px left */
		}
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column:first-child p.semi-bold[class*="kt-adv-heading"] {
		font-size: 16px !important;
		line-height: 24px !important;
		text-align: left !important;                      /* left-aligned in the pinned lane (Figma tablet) */
		max-width: 74% !important;                     /* fluid: 400px @834 anchor, scales UP toward 1024 too (2026-10-13) */             /* 443px lane @834, scales down proportionally on narrower tablets */
		padding: 0 !important;
		margin: 0 !important;
		}
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column:first-child p[class*="kt-adv-heading"]:not(.semi-bold) {
		display: none !important;                 /* tablet = mobile: NO subtitle (global consistency, 2026-10-13) */
	}
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column:first-child img {
		height: 83%;
		max-height: 106px;
		width: auto;
		object-fit: contain;
	}

	/* --- 3.7 Filter scrollbar (tablet skin) ----------------------------------
	   SAME sticky frame + internal scroll as desktop (mechanics are GLOBAL)
	   but a minimal rail: exactly 2px wide, NO up/down arrows, at the
	   sidebar's RIGHT — starting exactly where the block border ends (rail's
	   left edge flush with it, 2px into the 14px gap). No 20px viewport
	   reserve — the rail sits in the gap, outside the content. Idle color is
	   the standard #E7E7E7 (GLOBAL), active #8B8B8B — same as desktop. */
	.bf-fx-viewport { padding-right: 0; }
	.bf-fx-rail {
		display: flex;
		position: absolute;
		top: 0;
		right: -2px;
		bottom: 0;
		left: auto;
		width: 2px;
	}
	.bf-fx-rail__arrow { display: none; }
	.bf-fx-rail__thumb {
		left: 0;
		width: 2px;
	}

	/* --- 3.3 Grid: 3 cards/row (4 when the sidebar is closed) --------------
	   10px between cards, 24px between rows. 834 math: 802 content − 201
	   sidebar − 14 gap = 587 = 3×189 + 2×10 exactly; cards flex via 1fr. */
	.bf-archive-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px 10px;
	}
	body.bf-sidebar-closed .bf-archive-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/* --- 3.4 Card tablet differences ---------------------------------------
	   Tags reserve TWO rows always (52px) so cards stay equal height; 7
	   swatches before the +n (desktop shows 8 — JS bumps the +n text). */
	.bf-card-tags { min-height: 52px; }
	.bf-card-swatches > .bf-card-swatch:nth-child(8) { display: none; }

	/* Price row: the 165px content width can't hold "Low as $X" + "View
	   Pricing" inline at tablet sizes — wrap as whole UNITS so the link
	   drops to its own line (the Mugs tablet frame), never mid-word. */
	.bf-card-price {
		flex-wrap: wrap;
		height: auto;
		row-gap: 4px;
	}
	.bf-card-price-low,
	.bf-card-pricing-toggle {
		white-space: nowrap;
	}

	/* --- 3.4b Facet counters on narrow sidebars ------------------------------
	   "(29)" must never split from its parenthesis pair: the counter wraps
	   to the next line WHOLE and left-aligned; the label wraps instead.
	   The counter also hugs the label (~1 space) so rows fit more often —
	   the flex row's 8px gap is meant for box↔text, not label↔counter. */
	.bf-facet-block .facetwp-checkbox {
		flex-wrap: wrap;
	}
	.bf-facet-block .facetwp-counter {
		flex: none;
		white-space: nowrap;
		margin-left: -4px;
	}

	/* --- 3.4c Touch cleanup ---------------------------------------------------
	   No hover affordances on tablet: card swatch tooltips, filter parent
	   swatch tooltips and the card hover frame are desktop-only. */
	.bf-card-swatch-tip { display: none; }
	.bf-color-dot-tip { display: none; }
	.bf-product-card::after { display: none; }

	/* --- 3.5 Results bar: TWO rows -----------------------------------------
	   Row 1: counter + Sort By (sort goes static, pinned right). Row 2: the
	   strip (Filters button + pills), full width, TOUCH-scrollable — the
	   desktop arrow buttons never show here. */
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) {
		flex-wrap: wrap;
		padding-right: 0 !important;              /* the sort reserve is desktop-only (JS also clears it) */
	}
	/* Visual row order regardless of DOM order (the strip sits between
	   counter and sort in the DOM): counter + sort share row 1, strip row 2 */
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-matching_products { order: 1; }
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-sort_by {
		order: 2;
		position: static;
		margin-left: auto;
	}
	.bf-pills-strip {
		order: 3;
		flex-basis: 100%;
		margin: 0;
	}
	.bf-pills-strip--overflow { margin-left: 0; }
	.bf-pills-strip--overflow .bf-pills-strip__row { padding: 0; }
	.bf-pills-strip .bf-pills-nav { display: none !important; }

	/* --- 3.6 Filters toggle button (opens/closes the sidebar) --------------
	   Always visible, FIRST in the strip row, 8px before the pills. The
	   85x32 SVG pills contain icon + "Filters" text: sidebar_opened.svg
	   (outlined) while open, sidebar_closed.svg (filled) while closed. */
	.bf-sidebar-toggle {
		display: inline-flex;
		align-items: center;
		flex: none;
		width: 85px;
		height: 32px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.bf-sidebar-toggle:hover,
	.bf-sidebar-toggle:active,
	.bf-sidebar-toggle:focus {
		background: none;
		background-color: transparent;
		box-shadow: none;
	}
	.bf-sidebar-toggle__icon {
		display: block;
		width: 85px;
		height: 32px;
		background: url("https://brandifyfactory.com/wp-content/uploads/2026/09/sidebar_opened.svg") center / contain no-repeat;
	}
	body.bf-sidebar-closed .bf-sidebar-toggle__icon {
		background-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/sidebar_closed.svg");
	}
}

/* ============================================================================
   3.5b SMALL TABLET — @media (min-width:768px) and (max-width:833.98px)
   ============================================================================
   Under the 834 design viewport the cards are ~172px — one fewer swatch
   (6, desktop shows 8) so the +n fits the row. The JS (bfTabletSwatchCap)
   computes the +n text per breakpoint.
   ============================================================================ */
@media only screen and (min-width: 768px) and (max-width: 833.98px) {
	/* banner title lane shrinks on small tablets: the right-anchored crop
	   puts the product zone ~167px from the banner~s right edge - at 768 the
	   default min(400px,74%) lane would touch it. 330px keeps an 8px gap.
	   (2026-10-13) */
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .kt-row-column-wrap.kt-has-6-columns > .wp-block-kadence-column:first-child p.semi-bold[class*="kt-adv-heading"] {
		max-width: min(330px, 65%) !important;
	}
	.bf-card-swatches > .bf-card-swatch:nth-child(7) { display: none; }
}


/* ============================================================================
   4. MOBILE — @media (max-width:767px)
   ============================================================================
   Design viewport 375px; everything scales fluidly up to the tablet range.
   The sidebar column is hidden — its nav and facet blocks live in the
   full-screen Filters drawer (JS section 8.7). Cards go single-column list
   style (160px media left, text column right).
   ============================================================================ */
@media only screen and (max-width: 767px) {

	/* --- 4.1 Page edges: exactly 16px (same rule as tablet) ----------------
	   Kadence's boxed mobile chain adds its own offset (entry-content-wrap
	   24px padding + negative .entry margin) — neutralize both so the site
	   container's 16px is the ONLY edge inset on this page. */
	.content-container.site-container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.entry-content-wrap {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.entry {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	/* --- 4.2 Sidebar column hidden — content moves into the drawer --------- */
	.kt-row-column-wrap:has(.bf-arch-nav) {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 0 !important;
	}
	.kt-row-column-wrap:has(.bf-arch-nav) > .wp-block-kadence-column:first-child {
		display: none;
	}

	/* --- 4.3 Results bar: counter row / pills row / Filters+Sort bottom row --
	   Row 1: the counter ALONE, aligned LEFT (Kadence's bar column is
	   center-justified by default — force flex-start). Row 2: pills + Clear
	   Filters. Bottom row: Filters button left, Sort By right.

	   ROW GAPS (exact): counter → pills = 10px, then 12px above the Filters
	   row (from the pills when selected, from the counter when not). A
	   blanket row-gap can't deliver this: the EMPTY pills strip (kept in
	   flow — its 100% flex-basis is what forces the Filters row onto its
	   own line) would make the gap fire twice. So each gap is a margin-top
	   exactly where wanted, and every row hugs its content (no phantom
	   heights). */
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding-right: 0 !important;
		row-gap: 0;
	}
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-matching_products {
		order: 1;
		flex: none;
		font-size: 12px;
		line-height: 20px;
		min-height: 0;                        /* GLOBAL's desktop 32px floor would pad the 20px
		                                         text by ~6px top+bottom, faking a ~14px gap */
	}
	.bf-pills-strip {
		order: 2;
		flex-basis: 100%;
		margin: 0;                            /* empty strip: a 0-height line with NO gap… */
	}
	.bf-pills-strip:has(.facetwp-selection-value) {
		margin-top: 10px;                     /* …but WITH pills: counter → pills = exactly 10px */
	}
	.bf-pills-strip--overflow { margin-left: 0; }
	.bf-pills-strip--overflow .bf-pills-strip__row { padding: 0; }
	.bf-pills-strip .bf-pills-nav { display: none !important; }
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-selection-value {
		height: 24px;
		padding: 2px 8px;
		font-size: 12px;
		line-height: 20px;
	}
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-selection-value::after {
		width: 14px;
		height: 14px;
	}
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-facet-clear_filters {
		height: 24px;
	}
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) .facetwp-reset {
		font-size: 12px;
		line-height: 20px;
	}
	.bf-sidebar-toggle {
		order: 3;                                 /* bottom row, left — Sort By right */
		display: inline-flex;
		align-items: center;
		flex: none;
		width: 85px;
		height: 32px;
		margin: 12px 0 0;                         /* exactly 12px above this row — from the pills
		                                             when selected, from the counter when not */
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.bf-sidebar-toggle:hover,
	.bf-sidebar-toggle:active,
	.bf-sidebar-toggle:focus {
		background: none;
		background-color: transparent;
		box-shadow: none;
	}
	.bf-sidebar-toggle__icon {
		display: block;
		width: 85px;
		height: 32px;
		background: url("https://brandifyfactory.com/wp-content/uploads/2026/09/sidebar_opened.svg") center / contain no-repeat;
	}
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-sort_by {
		order: 4;
		position: static;
		margin-left: auto;
		margin-top: 12px;                     /* shares the Filters row — same 12px drop, keeps them aligned */
	}
	.kt-inside-inner-col:has(> .facetwp-facet-matching_products) > .facetwp-facet-sort_by::before {
		font-size: 14px;
	}
	.facetwp-facet-sort_by .bf-sort-toggle__value { font-size: 14px; }

	/* --- 4.4 Grid: one card per row, 24px apart, 12px under the bar -------- */
	.bf-archive-grid {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 12px;
	}

	/* --- 4.5 List card (343x160 @375): 160px media left, text column right -- */
	.bf-product-card {
		flex-direction: row;
		gap: 12px;
		border-radius: 6px;
	}
	.bf-card-media {
		flex: none;
		width: 160px;
		height: 160px;
		aspect-ratio: auto;
		border-radius: 6px;
	}
	.bf-card-body {
		flex: 1 1 auto;
		min-width: 0;
		gap: 2px;
		padding: 0;
	}
	.bf-card-swatches {
		height: 22px;
		padding: 0;
		gap: 6px;
	}
	.bf-card-swatch {
		width: 14px;
		height: 14px;
	}
	.bf-archive-grid .bf-card-title {
		height: auto;
		min-height: 66px;                         /* ALWAYS 3 rows reserved (3×22) — card
		                                         height stays constant for any title length */
		padding: 0;
		font-size: 14px;
		line-height: 22px;
		-webkit-line-clamp: 3;
		order: -1;                                /* Figma mobile: title BEFORE the swatches
		                                         (desktop/tablet keep swatches first). Pure
		                                         sequence swap: gap:2px + fixed 66px title +
		                                         22px swatch row keep every gap, the top
		                                         margin and the card's total height
		                                         pixel-identical to the pre-swap layout */
	}
	.bf-card-pricing { padding: 0; gap: 0; }
	/* "Low as $X" and "View Pricing" each on their OWN line (Figma mobile
	   card) — wrap as whole units, never mid-word */
	.bf-card-price {
		flex-wrap: wrap;
		height: auto;
		row-gap: 0;
	}
	.bf-card-price-low,
	.bf-card-pricing-toggle {
		white-space: nowrap;
	}
	.bf-card-pricing-toggle {
		flex: 0 0 100%;                           /* ALWAYS its own (second) row on mobile —
		                                         wider phones would otherwise fit it next
		                                         to "Low as $X" on the price line */
		text-align: left;                         /* the full-width row would otherwise center
		                                         the text (button UA default) */
	}
	.bf-card-moq { display: none; }             /* Figma mobile card: no MOQ line */
	.bf-card-tags {
		min-height: 20px;
		padding: 0;
		gap: 8px;
		flex-wrap: nowrap;                        /* tag pills: always exactly one row */
	}
	.bf-card-tag {
		height: 20px;
		font-size: 12px;
		line-height: 20px;
	}
	.bf-product-card .bf-wishlist-archive-heart {
		width: 28px;
		height: 28px;
		top: 8px;
		right: 8px;                               /* image's top-right corner */
	}
	.bf-product-card .bf-wishlist-archive-heart .wishlist-heart-icon {
		width: 28px;
		height: 28px;
	}

	/* Touch cleanup on mobile: no swatch tooltips (cards + filter parents),
	   and NO card hover frame — the outer border/shadow affordance is
	   desktop-only (tablet already hides it in 3.4c) */
	.bf-card-swatch-tip,
	.bf-color-dot-tip { display: none; }
	.bf-product-card::after { display: none; }

	/* --- 4.8 CTA banner (mobile) ----------------------------------------------
	   Mobile-only background image (per-page override, file top) BUT rendered
	   like tablet: art at box height (auto 100%), right-anchored, crops only
	   the left blue - no distortion, products never clipped; #c2daff underlay
	   for underfill edges. Title only, left-aligned, 22px top / 16px left, in
	   a min(210px,67%) lane. Box 88px-floored, grows for 3-line titles.
	   radius 6; underline baked into the artwork. */
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col {
		/* background-image lives in the PER-PAGE OVERRIDE block at the very top
		   of this file — it is the only page-unique declaration in the CSS */
		background-color: #c2daff !important;      /* the art~s left-edge blue: extreme-width underfill shows as seamless gradient */
		background-size: auto 100% !important;     /* art height = box height, width overflows, uniform scale = ZERO distortion */
		background-position: right top !important; /* anchors the products on the right; crops only the left blue space */
		border-radius: 6px !important;
		overflow: hidden !important;
		height: auto !important;
		min-height: 88px !important;          /* Figma mobile height; box grows for 3-line titles */
		display: flex !important;
		flex-direction: column !important;
		justify-content: flex-start !important;   /* title pinned to the TOP… */
		align-items: flex-start !important;       /* …and LEFT-aligned (Figma) */
		padding: 22px 0 0 16px !important;            /* 22px top / 16px left (2026-10-13 spec) */
	}
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col p[class*="kt-adv-heading"]:not(.semi-bold) {
		display: none !important;                 /* mobile Figma has NO subtitle */
	}
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col p.semi-bold[class*="kt-adv-heading"] {
		font-size: 16px !important;
		line-height: 24px !important;
		text-align: left !important;
		padding: 0 !important;                    /* the heading block carries builder vertical padding */
		margin: 0 !important;
		max-width: 64% !important;                     /* fluid: ~210px @375, scales up proportionally on wider phones (2026-10-13) */             /* 210px lane @375, scales on narrower phones */
	}

	/* --- 4.9 Pricing BOTTOM SHEET (mobile View Pricing) ---------------------
	   The desktop popover, restyled: full-width sheet from the bottom,
	   rounded top, scrollable, dim overlay + 24px X close (filter-close.svg).
	   The dim is MOBILE-ONLY — tablet/desktop never render the overlay.

	   WARNING: never close this comment on its first line — an early close
	   orphans the text lines below it; the parser then fuses them with the
	   next selector into an invalid rule and DROPS the whole bottom-sheet
	   block. (This exact bug shipped once already.) */
	.bf-pricing-popover.bf-pricing-popover--portaled {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		width: 100%;
		max-height: 432px;
		overflow-y: auto;
		border-radius: 8px 8px 0 0;
		padding: 16px 12px 16px;              /* 12px sides kept (approved); TOP is 16px —
		                                         the sheet's product title sits exactly
		                                         16px from the top edge (mobile Figma) */
		z-index: 10020;
	}
	/* Sheet rows: the qty → price GAP is 104px on mobile (Figma) — qty cell =
	   longest label ("5000 min." = 69px) + 104px. Desktop/tablet keep the
	   GLOBAL 104px cell (their 35px gap). Same specificity, later in the
	   file — mobile wins. */
	.bf-pricing-popover__row > span:first-child {
		width: 173px;
	}

	/* --- Product title inside the sheet (mobile Figma) ----------------------
	   Title/Large: Poppins 600, 18px/28px, 90% black. 16px from the sheet's
	   top edge (the sheet's top padding carries it) and a CONSISTENT 16px
	   before the heading below (the popover's 6px flex gap + this 10px
	   margin) at ANY row count. The box always stops exactly 4px short of the
	   X icon — 24px icon + 4px clear = 32px padding-right, measured from the
	   content edge (the sheet's 12px side padding is separate). The X stays
	   pinned at 16px from the top/right sheet edges and NEVER moves toward
	   shorter titles. GLOBAL hides this element; only the sheet shows it. */
	.bf-pricing-popover__title {
		display: block;
		margin: 0 !important;                     /* the theme's .entry-content p margin */
		margin-bottom: 10px !important;           /* + the 6px flex gap = exactly 16px */
		padding-right: 32px;
		font-size: 18px;
		font-weight: 600;
		line-height: 28px;
		color: rgba(0, 0, 0, 0.9);
	}

	/* --- 4.10 FAQ accordion: 12px pane gap on mobile --------------------------
	   The builder's "Pane Space Between" is a GLOBAL setting — a 24px row-gap
	   on the accordion's inner wrap — and desktop/tablet keep it. Mobile
	   tightens the gap between panes to 12px per design. !important because
	   Kadence's instance-scoped gap rule out-specificities a bare selector. */
	.wp-block-kadence-accordion .kt-accordion-inner-wrap {
		row-gap: 12px !important;
	}
	.bf-mprice-overlay {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);       /* mobile-only dim (Figma) — tablet/desktop
		                                         have NO overlay at all (JS no-ops ≥768px) */
		z-index: 10015;
	}
	.bf-mprice-overlay[hidden] { display: none; }
	.bf-mprice-x {
		position: absolute;
		top: 16px;
		right: 16px;
		width: 24px;
		height: 24px;
		padding: 0;
		border: 0;
		background: url("https://brandifyfactory.com/wp-content/uploads/2026/09/filter-close.svg") center / contain no-repeat;
		cursor: pointer;
		z-index: 2;
	}

	/* --- 4.7 The FILTERS DRAWER (full screen) -------------------------------- */
	.bf-mdrawer-overlay {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 10010;
	}
	.bf-mdrawer-overlay[hidden] { display: none; }
	.bf-mdrawer {
		position: fixed;
		inset: 0;
		display: flex;
		flex-direction: column;
		background: #FFFFFF;
		z-index: 10011;
		font-family: 'Poppins', sans-serif;
	}
	.bf-mdrawer[hidden] { display: none; }
	.bf-mdrawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: none;
		padding: 16px;
		border-bottom: 0.5px solid #E7E7E7;
		font-size: 16px;
		font-weight: 600;
		line-height: 24px;
		color: rgba(0, 0, 0, 0.9);
	}
	.bf-mdrawer__x {
		width: 24px;
		height: 24px;
		padding: 0;
		border: 0;
		background: url("https://brandifyfactory.com/wp-content/uploads/2026/09/filter-close.svg") center / contain no-repeat;
		cursor: pointer;
	}
	.bf-mdrawer__content {
		flex: 1 1 auto;
		overflow-y: auto;
	}
	.bf-mdrawer__foot {
		display: flex;
		align-items: center;
		gap: 12px;
		flex: none;
		padding: 10px 16px;
		border-top: 0.5px solid #E7E7E7;
	}
	.bf-mdrawer__clear {
		flex: none;
		height: 40px;
		padding: 0 12px;
		background: #FFFFFF;
		border: 1px solid #DCDCDC;
		border-radius: 6px;
		font-family: inherit;
		font-size: 16px;
		line-height: 24px;
		color: rgba(0, 0, 0, 0.4);
		cursor: pointer;
	}
	/* The theme paints plain buttons' text WHITE by default — on this
	   white button that means invisible text. Lock color + fill-color at
	   EVERY state: gray idle/hover/focus, brand blue only while pressed. */
	body .bf-mdrawer__clear,
	body .bf-mdrawer__clear:hover,
	body .bf-mdrawer__clear:focus {
		background-color: #FFFFFF !important;
		color: rgba(0, 0, 0, 0.4) !important;
		-webkit-text-fill-color: rgba(0, 0, 0, 0.4) !important;
		box-shadow: none;
	}
	body .bf-mdrawer__clear:active {
		background-color: #FFFFFF !important;
		border-color: #1E39D2;
		color: #1E39D2 !important;
		-webkit-text-fill-color: #1E39D2 !important;
	}
	.bf-mdrawer__view {
		flex: 1 1 auto;
		height: 40px;
		background: #1E39D2;
		border: 0;
		border-radius: 6px;
		font-family: inherit;
		font-size: 16px;
		font-weight: 600;
		line-height: 24px;
		color: #FFFFFF;
		cursor: pointer;
	}
	/* Keep the label readable in every state — the theme's button active
	   color AND -webkit-text-fill-color were turning the text blue-on-blue
	   ("vanishing" on press). body prefix = the theme can't out-specify it. */
	body .bf-mdrawer__view,
	body .bf-mdrawer__view:hover,
	body .bf-mdrawer__view:active,
	body .bf-mdrawer__view:focus {
		background-color: #1E39D2 !important;
		color: #FFFFFF !important;
		-webkit-text-fill-color: #FFFFFF !important;
		box-shadow: none;
	}
	/* Drawer content: the moved row container is full width; the blocks
	   (and their separator BORDERS) are inset 16px each side — margin, not
	   padding, because a block's border-bottom spans its padding box. */
	.bf-mdrawer .kb-row-layout-wrap {
		width: 100% !important;
		max-width: none !important;
	}
	.bf-mdrawer .bf-arch-nav,
	.bf-mdrawer .bf-color-block,
	.bf-mdrawer .bf-facet-block {
		width: auto !important;
		max-width: none !important;
		margin-left: 16px;
		margin-right: 16px;
	}
	.bf-mdrawer .bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox,
	.bf-mdrawer .bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox.checked {
		min-height: 40px;
	}
	/* Accordion icons: plus when closed, minus when open (closed/opened.svg).
	   The base chevrons are mask-painted spans — clear the mask + paint color
	   so the +/- images show as-is. */
	.bf-mdrawer .bf-facet-block__chevron,
	.bf-mdrawer .bf-color-block__chevron {
		width: 24px;
		height: 24px;
		background-color: transparent;
		-webkit-mask-image: none;
		mask-image: none;
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
	}
	.bf-mdrawer .bf-facet-block__chevron--when-closed,
	.bf-mdrawer .bf-color-block__chevron--when-closed {
		background-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/closed.svg");
	}
	.bf-mdrawer .bf-facet-block__chevron--when-open,
	.bf-mdrawer .bf-color-block__chevron--when-open {
		background-image: url("https://brandifyfactory.com/wp-content/uploads/2026/09/opened.svg");
	}
}


/* ============================================================================
   BF — TABLET CARD ROWS (768–1024px), 2026-10-07
   Owner rule (same as the product page's Recommended section): on tablet the
   price row ALWAYS stacks ("View Pricing" on its own line below "Low as
   $X") and the tag pills ALWAYS take 2 rows — every card, every tablet
   width. Some cards rendered the 1-row variants where space allowed, which
   read inconsistent next to 2-row cards. Tablet-exclusive: zero effect on
   desktop (>=1025) and mobile (<768) — the media range mirrors section 3.
   ============================================================================ */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .bf-card-price { flex-direction: column !important; align-items: flex-start !important; height: auto !important; row-gap: 4px; }
    .bf-card-price > * { flex: none; }
    .bf-card-tags { flex-direction: column !important; align-items: flex-start !important; row-gap: 8px; }
    .bf-card-tags .bf-card-tag { flex: none; }
}


/* ============================================================================
   FACET CHECKBOX ROWS — wrapped-row behavior (all screens), 2026-10-07
   Row-behavior only — no width, font, or spacing changes.
   1) The counter "(N)" is ONE entity everywhere: white-space:nowrap + the row
      may wrap, so a long label wraps and the counter drops WHOLE to the next
      line — it can never split "(209" / ")" again (the desktop bug). The
      existing .bf-ctr-wrap nudge (JS-tagged) still lands it off the left
      edge; the tablet §3.4b -4px hug is untouched (different property).
   2) On WRAPPED rows (row tagged .bf-row-wrapped by the same JS pass) the
      checkbox box aligns to the LABEL's line instead of the whole multi-line
      row's vertical middle (the tablet "Lunch Bags & Coolers" bug: box at
      1478 vs label at 1462). Single-line rows are pixel-identical.
   ============================================================================ */
.bf-facet-block .facetwp-checkbox { flex-wrap: wrap; }
/* 2026-11-10: label→counter distance = ~1 space on ALL screens. The row's 8px
   flex gap + FacetWP's default 5px padding-right on the label gave 13px (~3
   spaces) on desktop/mobile (tablet already hugged at 9px via §3.4b). Zero the
   label padding and pull the counter -4px everywhere -> ~4px at 14px font.
   Wrapped counters (.bf-ctr-wrap, +4px) keep their nudge (higher specificity). */
.bf-facet-block .facetwp-display-value { padding-right: 0; }
.bf-facet-block .facetwp-counter { flex: none; white-space: nowrap; margin-left: -4px; }
/* WRAPPED rows: pin the box absolutely on the label's first line and indent
   the row by the standard label offset (20px box + 8px gap = 28px, matching
   the single-line rows). Flex line-breaking alone can't keep the box on the
   label's line — it moves the whole label span to its own line when
   box + span don't fit, leaving the box stranded (the 113px-row bug). */
.bf-facet-block .facetwp-checkbox.bf-row-wrapped { position: relative; padding-left: 28px; }
.bf-facet-block .facetwp-checkbox.bf-row-wrapped::before {
    position: absolute;
    left: 0;
    top: 6px;        /* 5px row padding + 1px = centers the 20px box on the first 22px line */
    margin: 0;
}
/* 2026-10-09 — checked+wrapped state bug: the shared checked rule
   (.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox.checked, 4
   classes) carries padding:5px 12px 5px 0 and was out-specificitying the
   wrapped-row indent (3 classes), collapsing a checked WRAPPED row's label
   left onto the checkbox (label's first letters swallowed under the box).
   Restore the indent for exactly that state — everything else untouched. */
.bf-facet-block .facetwp-type-checkboxes .facetwp-checkbox.checked.bf-row-wrapped { padding-left: 28px; }


	/* --- SMALLEST PHONES (<=400px): shift the cropped banner art 15px right ---
	   the right-anchored crop left the black bag close to the title on iPhone
	   SE-class widths; right -15px moves the art 15px right (only the art~s own
	   right blue margin gets clipped), opening a 15px text/product gap.
	   (2026-10-13) */
@media only screen and (max-width: 400px) {
	:where(body:not(.parent-pageid-32966, .parent-pageid-32986, .page-id-32966, .page-id-32986)) #inner-wrap .wp-block-kadence-column:has(> .kt-inside-inner-col > p[class*="kt-adv-heading"].semi-bold) > .kt-inside-inner-col {
		background-position: right -15px top !important;
	}
}