/*
 * Buildolia Unified WoodMart Ecom Surface Stylesheet (`ecom-surface.css`).
 *
 * Single consolidated `--bld-*` stylesheet owning storefront layout, typography weight lock,
 * product card elevation & adaptive photo framing, archive/PDP structure, WoodMart chrome fixes
 * (C3, C5, C11, CH1, CH5), and the 5 WooCommerce utility page types (Cart, Checkout, My Account,
 * Search load-more, 404). Every color, font, weight, radius, and gutter binds to Wave-0 `--bld-*`
 * tokens projected by `buildolia-look` (`ThemeProjection.php`) — zero hardcoded hex literals.
 */

/* ============================================================================
 * 1. Token Bridge & Single Display Weight Lock (`--bld-weight-display`)
 * ============================================================================ */
html,
body,
.website-wrapper,
.main-page-wrapper,
.wd-page-content,
.site-content {
  background-color: var(--bld-bg, var(--wd-main-bgcolor));
  background-image: none;
  color: var(--bld-ink, var(--wd-text-color));
  font-family: var(--bld-font-body, var(--wd-text-font, inherit));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Lock ONE display heading weight across Home, Shop, Category, Collection, Brand, and PDP */
:is(
  h1,
  h2,
  .wp-block-wd-title:is(h1, h2),
  .entry-title,
  .page-title h1,
  .page-title .entry-title,
  .wd-single-title h1.product_title,
  .single-product h1.product_title,
  h2.bld-band-title,
  .wd-post .wd-entities-title,
  .blog-post-loop .wd-entities-title,
  .bld-404-surface h1
) {
  font-family: var(--bld-font-display, var(--wd-title-font, inherit));
  font-weight: var(--bld-weight-display, var(--wd-title-font-weight, 600));
  color: var(--bld-ink-strong, var(--wd-title-color, inherit));
  text-wrap: balance;
}

/* Dark surfaces always guarantee a dark ground + WCAG AAA light ink & legible buttons/links */
.wp-block-wd-section.color-scheme-light,
.wp-block-wd-container.color-scheme-light:not(.wp-block-wd-cover) {
  background-color: var(--bld-surface-ink);
  color: var(--bld-ink-on-dark);
}

.wp-block-wd-container.color-scheme-light:not(.wp-block-wd-cover):has(.wd-el-page-heading, .wd-el-woo-breadcrumbs) {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px);
  border-radius: var(--bld-radius-card, 12px);
}

.color-scheme-light :is(
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  .wp-block-wd-title,
  .wp-block-wd-paragraph,
  .wd-list-content,
  .wd-infobox-title,
  .wd-infobox-content,
  .wd-entities-title,
  .wd-entities-title a,
  .wd-breadcrumbs,
  .wd-breadcrumbs a,
  .wd-breadcrumbs span,
  .wd-breadcrumbs .wd-last,
  .woocommerce-breadcrumb,
  .woocommerce-breadcrumb a,
  .price,
  .price .amount
) {
  color: var(--bld-ink-on-dark) !important;
}

.wp-block-wd-section.color-scheme-light a:not(.btn):not(.button),
.wp-block-wd-cover.color-scheme-light a:not(.btn):not(.button) {
  color: var(--bld-ink-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.color-scheme-light .btn.btn-style-bordered {
  color: var(--bld-ink-on-dark);
  border-color: color-mix(in srgb, var(--bld-ink-on-dark) 62%, transparent);
  background: transparent;
}

.color-scheme-light .btn.btn-style-bordered:hover {
  background: color-mix(in srgb, var(--bld-ink-on-dark) 12%, transparent);
  border-color: var(--bld-ink-on-dark);
  color: var(--bld-ink-on-dark);
}

.color-scheme-light .btn.btn-color-white:not(.btn-style-bordered):not(.btn-style-link) {
  background-color: var(--bld-ink-on-dark);
  border-color: var(--bld-ink-on-dark);
  color: var(--bld-surface-ink);
}

/* Price VAT suffix ("incl. VAT") & checkout "(optional)" labels: guarantee >= 4.5:1 WCAG AA contrast */
.woocommerce-price-suffix,
.price .woocommerce-price-suffix,
.woocommerce form .form-row label .optional,
body.woocommerce-checkout label .optional {
  color: var(--bld-ink-muted) !important;
  opacity: 1 !important;
}

/* ============================================================================
 * 2. Full-Bleed Alignment Fix (~180px Right-Gutter Misalignment / Overflow)
 * ============================================================================ */
.website-wrapper {
  overflow-x: clip;
}

.main-page-wrapper {
  container-type: inline-size;
  overflow-x: clip;
}

.main-page-wrapper :is(
  .wp-block-wd-section.wd-section-stretch,
  .wp-block-wd-section.wd-section-stretch-content,
  .wp-block-wd-section.wd-section-stretch-content-no-pd,
  .alignfull
) {
  width: 100cqw !important;
  max-width: 100cqw !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  left: auto !important;
  right: auto !important;
  margin-inline: calc(50% - 50cqw) !important;
  box-sizing: border-box !important;
}

@media (min-width: 1025px) {
  .main-page-wrapper > .wd-content-layout.container,
  .whb-header .whb-row > .container,
  .whb-header.whb-full-width .whb-row > .container,
  .page-title > .container {
    max-width: min(var(--bld-container, var(--wd-container-w, 1222px)), calc(100% - (var(--bld-gutter, 15px) * 2))) !important;
    padding-inline: var(--bld-gutter, 15px) !important;
  }
}

.main-page-wrapper :where(.entry-content, .wd-entry-content, [class*="bld-fl-"], [class*="bld-layout-"]) > .wp-block-wd-section {
  margin-block-end: 0;
}

/* ============================================================================
 * 3. PDP Sticky Add-to-Cart Bar Fix (`apron-1g` — Mobile Only, Strictly Fixed Bottom)
 * ============================================================================ */
@media (min-width: 769px) {
  .wd-sticky-btn {
    display: none !important;
  }

  /* WoodMart reserves the bar's height under the page on desktop; the bar is phone-only here, so reserve nothing. */
  body.wd-sticky-btn-on {
    padding-bottom: 0 !important;
  }
}

.wd-sticky-btn {
  position: fixed !important;
  inset: auto 0 0 0 !important;
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  z-index: 340 !important;
  background-color: var(--bld-surface, var(--bld-bg)) !important;
  color: var(--bld-ink) !important;
  border-top: 1px solid var(--bld-border) !important;
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--bld-surface-ink) 12%, transparent) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(0, 110%, 0) !important;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease !important;
}

.wd-sticky-btn.wd-sticky-btn-shown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
}

.wd-sticky-btn .wd-sticky-btn-cart .button,
.wd-sticky-btn .wd-sticky-add-to-cart {
  border-radius: var(--bld-radius-btn, 8px);
  background-color: var(--bld-accent);
  color: var(--bld-accent-ink);
}

/* ============================================================================
 * 4. Frameless Product Cards & Prominent WoodMart CTA Hover Variety
 * ============================================================================ */
.wd-product {
  position: relative;
  min-width: 0;
}

/* Keep the card wrapper transparent so cards sit cleanly on the section surface without a weird floating box */
body .wd-product :is(.product-wrapper, .wd-product-wrapper),
.wd-product :is(.product-wrapper, .wd-product-wrapper),
.wd-products-with-bg .wd-product :is(.product-wrapper, .wd-product-wrapper),
.wd-products-with-shadow .wd-product :is(.product-wrapper, .wd-product-wrapper),
.wd-product.wd-hover-tiled :is(.product-wrapper, .wd-product-wrapper) {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: border-color 0.2s ease;
}

/* Only neutralize row-2 overhanging drawers on legacy hover_base / hover_info — preserve hover-reveal mechanics on quick / button / buttons-on-hover! */
.wd-product:is(.wd-hover-base, .wd-hover-info, .wd-hover-info-alt) {
  overflow: hidden;
}

.wd-product:is(.wd-hover-base, .wd-hover-fw-button):hover {
  z-index: auto !important;
  transform: none !important;
}

.wd-product.wd-hover-base :is(.content-product-imaginable, .wd-product-card-bg, .fade-in-block, .wd-product-card-hover) {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.wd-product:is(.wd-hover-base, .wd-hover-fw-button, .wd-hover-tiled, .wd-hover-buttons-on-hover) :is(.content-product-imaginable, .wd-product-card-bg) {
  display: none !important;
}

.wd-product.wd-hover-fw-button .wd-product-card-hover:empty,
.wd-product.wd-hover-fw-button .wd-product-card-hover {
  display: none !important;
}

/* Prominent solid brand CTA button across ALL allowed WoodMart card layouts (always-visible AND hover-reveal modes!) */
.wd-product:is(.wd-hover-fw-button, .wd-hover-standard, .wd-hover-tiled, .wd-hover-alt) .product-element-bottom {
  flex: 1 1 auto;
}

.wd-product:is(.wd-hover-fw-button, .wd-hover-standard, .wd-hover-tiled) .wd-add-btn {
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}

.wd-product:is(.wd-hover-fw-button, .wd-hover-standard, .wd-hover-tiled, .wd-hover-quick, .wd-hover-button, .wd-hover-buttons-on-hover) .wd-add-btn > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--bld-radius-btn, var(--btn-accented-brd-radius, 6px));
  background-color: var(--btn-accented-bgcolor, var(--bld-accent, var(--wd-primary-color)));
  color: var(--btn-accented-color, var(--bld-on-accent)) !important;
  --wd-action-color: var(--btn-accented-color, var(--bld-on-accent));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: filter 0.16s ease, background-color 0.16s ease;
}

.wd-product:is(.wd-hover-fw-button, .wd-hover-standard, .wd-hover-tiled, .wd-hover-quick) .wd-add-btn > a {
  width: 100%;
}

.wd-product.wd-hover-quick .wd-add-btn > a {
  border-radius: 0;
}

.wd-product:is(.wd-hover-fw-button, .wd-hover-quick, .wd-hover-button, .wd-hover-buttons-on-hover, .wd-hover-tiled) .wd-add-btn .wd-action-text {
  line-height: 40px !important;
}

.wd-product:is(.wd-hover-fw-button, .wd-hover-standard, .wd-hover-tiled, .wd-hover-quick, .wd-hover-button, .wd-hover-buttons-on-hover, .wd-hover-alt) .wd-add-btn > a :is(span, .wd-action-text, .wd-action-icon) {
  color: var(--btn-accented-color, var(--bld-on-accent)) !important;
}

.wd-product:is(.wd-hover-fw-button, .wd-hover-standard, .wd-hover-tiled, .wd-hover-quick, .wd-hover-button, .wd-hover-buttons-on-hover) .wd-add-btn > a:hover,
.wd-product:is(.wd-hover-fw-button, .wd-hover-standard, .wd-hover-tiled, .wd-hover-quick, .wd-hover-button, .wd-hover-buttons-on-hover) .wd-add-btn > a:focus-visible {
  background-color: var(--btn-accented-bgcolor-hover, var(--bld-accent-hover, var(--bld-accent)));
  color: var(--btn-accented-color-hover, var(--btn-accented-color, var(--bld-on-accent))) !important;
  filter: brightness(0.95);
}

/* Legacy wd-hover-alt cards: keep price and a real prominent solid CTA button always visible (never bare hover-swap text) */
.wd-product.wd-hover-alt .swap-wrapp {
  overflow: visible !important;
  height: auto !important;
  margin-block: 0 !important;
  margin-top: auto;
}

.wd-product.wd-hover-alt .swap-elements,
.wd-product.wd-hover-alt:hover .swap-elements {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  transform: none !important;
}

.wd-product.wd-hover-alt .wd-add-btn {
  width: 100%;
  margin-block: 0 !important;
  line-height: 1.25 !important;
}

.wd-product.wd-hover-alt .wd-add-btn > a {
  width: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--bld-radius-btn, var(--btn-accented-brd-radius, 6px));
  background-color: var(--btn-accented-bgcolor, var(--bld-accent, var(--wd-primary-color)));
  color: var(--btn-accented-color, var(--bld-on-accent)) !important;
  --wd-action-color: var(--btn-accented-color, var(--bld-on-accent));
  font-size: 13px !important;
  font-weight: 600;
  text-transform: none !important;
  text-decoration: none;
}

.wd-product.wd-hover-alt .wd-add-btn .wd-action-text {
  border-bottom: none !important;
  line-height: 40px !important;
}

.wd-product.wd-hover-alt .wd-add-btn .wd-action-text::before {
  display: none !important;
}

.wd-product.wd-hover-alt .wd-add-btn > a:hover,
.wd-product.wd-hover-alt .wd-add-btn > a:focus-visible {
  background-color: var(--btn-accented-bgcolor-hover, var(--bld-accent-hover, var(--bld-accent)));
  filter: brightness(0.95);
}

.wd-product:is(.wd-hover-info, .wd-hover-info-alt) :is(.top-information, .bottom-information) {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  color: var(--bld-ink) !important;
  padding: 8px 0 0 !important;
}

/* Adaptive product photo framing: storePlateAspectOf + clean white/surface mat, contain, zero grey sidebars or cover cropping */
body .wd-product .wd-product-thumb,
body .wd-product .product-element-top,
.wd-product .wd-product-thumb,
.wd-product .product-element-top {
  position: relative;
  overflow: hidden;
  border-radius: var(--bld-radius-card, 10px);
  background: var(--bld-surface, var(--bld-bg)) !important;
}

body .wd-product .wd-product-thumb .wd-product-img-link,
body .wd-product .product-element-top > a.product-image-link,
.wd-product .wd-product-thumb .wd-product-img-link,
.wd-product .product-element-top > a.product-image-link {
  display: block;
  aspect-ratio: var(--bld-plate-aspect, var(--bld-card-media-ratio, 1 / 1));
  background: var(--bld-surface, var(--bld-bg)) !important;
  overflow: hidden;
}

body .wd-product .wd-product-thumb .wd-product-img-hover,
body .wd-product .product-element-top .hover-img,
.wd-product .wd-product-thumb .wd-product-img-hover,
.wd-product .product-element-top .hover-img {
  background: var(--bld-surface, var(--bld-bg)) !important;
}

body .wd-product .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img,
body .wd-product .product-element-top > a.product-image-link img,
body .wd-product .product-element-top .hover-img img,
.wd-product .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img,
.wd-product .product-element-top > a.product-image-link img,
.wd-product .product-element-top .hover-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--bld-plate-aspect, var(--bld-card-media-ratio, 1 / 1));
  object-fit: contain !important;
  background-color: var(--bld-surface, var(--bld-bg)) !important;
  mix-blend-mode: normal !important;
  display: block;
}

/* Hybrid product card image fit (`data-bld-fit="cover|contain"` via 20% aspect-ratio threshold)
 * Specificity matches the base rule above so `cover` actually overrides `object-fit: contain !important`
 * and eliminates white letterbox sidebars on near-square / 4:3 / 5:6 studio product photos. */
body .wd-product .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img[data-bld-fit="cover"],
body .wd-product .product-element-top > a.product-image-link img[data-bld-fit="cover"],
body .wd-product .product-element-top .hover-img img[data-bld-fit="cover"],
.wd-product img[data-bld-fit="cover"] {
  object-fit: cover !important;
  padding: 0 !important;
}

body .wd-product .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img[data-bld-fit="contain"],
body .wd-product .product-element-top > a.product-image-link img[data-bld-fit="contain"],
body .wd-product .product-element-top .hover-img img[data-bld-fit="contain"],
.wd-product img[data-bld-fit="contain"] {
  object-fit: contain !important;
  padding: 6px;
  box-sizing: border-box;
}

/* BROKEN_IMAGE_GUARD: graceful tokenized fallback when a remote supplier image fails to load */
.wd-product img.bld-img-broken,
.woocommerce-product-gallery img.bld-img-broken,
.wd-cat img.bld-img-broken {
  opacity: 0 !important;
}

.wd-product .wd-product-thumb:has(img.bld-img-broken),
.wd-product .product-element-top:has(img.bld-img-broken),
.woocommerce-product-gallery__image:has(img.bld-img-broken),
.bld-img-broken-wrap {
  position: relative;
  background: var(--bld-surface-alt) !important;
}

.wd-product .wd-product-thumb:has(img.bld-img-broken)::after,
.wd-product .product-element-top:has(img.bld-img-broken)::after,
.woocommerce-product-gallery__image:has(img.bld-img-broken)::after,
.bld-img-broken-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--bld-radius-card, 10px);
  border: 1px solid var(--bld-border);
  background: var(--bld-surface);
  box-shadow: inset 0 0 0 8px var(--bld-surface-alt);
  pointer-events: none;
}

/* Disable hover zoom on coarse touch pointers so pinch/scroll is never hijacked */
@media (pointer: coarse), (hover: none) {
  .woocommerce-product-gallery .zoomImg,
  .woocommerce-product-gallery__image .zoomImg {
    display: none !important;
    pointer-events: none !important;
  }
}

/* Flat card metadata stack — transparent so title, category & price rest cleanly on the band surface */
.wd-product .product-element-bottom,
.wd-product .product-information,
.wd-product .wd-product-info {
  position: static !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding-top: 10px;
  background: transparent !important;
}

.wd-product .wd-entities-title {
  position: static !important;
  font-family: var(--bld-font-body, var(--wd-text-font, inherit));
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--bld-ink-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  margin: 0 0 4px;
}

.wd-product .wd-entities-title a {
  color: inherit;
  display: inline;
  white-space: normal;
}

@media (max-width: 768.98px) {
  .wd-product .wd-entities-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
    min-height: 4.05em;
  }
}

.wd-product .price {
  position: static !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--bld-ink-strong);
  font-variant-numeric: tabular-nums;
}

.wd-product .wd-product-cats {
  position: static !important;
  font-size: 12.5px;
  color: var(--bld-ink-muted);
}

/* Category tiles framed cleanly on the same plate ground (never cropped to distorted shapes) */
.wd-cat .wd-cat-thumb,
.wd-cat .wd-cat-image,
.wd-cats-element .category-grid-item .category-image-wrapp {
  aspect-ratio: var(--bld-plate-aspect, var(--bld-card-media-ratio, 1 / 1));
  display: block;
  overflow: hidden;
  border-radius: var(--bld-radius-card, 10px);
  background: var(--bld-plate-ground, var(--bld-card-media-ground, var(--bld-surface-alt)));
}

.wd-cat .wd-cat-thumb img,
.wd-cat .wd-cat-image img,
.wd-cats-element .category-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal !important;
  display: block;
}

/* Circular swatch explorer (`categories_design="center"` + `.bld-cat-swatches`) */
.bld-cat-swatches .wd-cat-thumb,
.bld-cat-swatches .category-image-wrapp,
.bld-cat-swatches .wd-cat-image {
  border-radius: 999px;
}

/* Blog / Guide editorial thumbnails: 4:3 cover (never forced 1/1 square!) */
.wd-post .entry-thumbnail img,
.wd-post .post-img-wrapp img,
.wd-post .wd-post-img img,
.wd-post .entry-header img,
.blog-post-loop .entry-thumbnail img,
.wd-blog-element img:not(.avatar) {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--bld-radius-card, 10px);
}

/* Preserve WoodMart's native PDP gallery layout; only prevent GPU backface culling and collapse 1-photo thumb rails */
.woocommerce-product-gallery .wd-gallery-images .wd-carousel-wrap,
.woocommerce-product-gallery .wd-gallery-images .wd-carousel-item {
  will-change: auto !important;
  backface-visibility: visible !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
  mix-blend-mode: normal !important;
}

.woocommerce-product-gallery .wd-gallery-thumb:empty,
.woocommerce-product-gallery:not(:has(.wd-gallery-thumb .wd-carousel-item:nth-child(2))) .wd-gallery-thumb {
  display: none !important;
}

.woocommerce-product-gallery:not(:has(.wd-gallery-thumb .wd-carousel-item:nth-child(2))) .wd-gallery-images {
  max-width: 100% !important;
}

/* QA-136 pdp-mobile-first-screen: on a phone (390x844) the first screen holds the whole main image, the alternates and the buy box
 * (founder PDP contract: alternates rail, capped stage, short h1, price + add-to-basket visible). The stage is capped at 32vh on WoodMart's
 * photo ground (--wd-main-bgcolor, white: supplier photos sit on white, so contained non-square photos do not letterbox against the page
 * tone). The alternates stay as a compact one-row strip of ~48 px thumbs (WoodMart's own swipeable thumb carousel, 6.5 per row so a
 * cut-off thumb signals more), the title clamps to two lines, and the dead band above the breadcrumbs and the gallery gaps tighten.
 * WoodMart's sticky bar (section 3) takes over once the buy box scrolls away. Gate: tools/visual-qa/pdp-mobile-first-screen.mjs. */
@media (max-width: 767px) {
  .single-product .wd-content-layout {
    padding-top: 8px;
  }

  .single-product .woocommerce-product-gallery {
    --wd-gallery-gap: 8px !important;
  }

  .single-product .woocommerce-product-gallery .wd-gallery-images .woocommerce-product-gallery__image {
    height: min(100vw - 30px, 32vh, 420px);
    background: var(--wd-main-bgcolor);
  }

  .single-product .woocommerce-product-gallery .wd-gallery-images .woocommerce-product-gallery__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .single-product .woocommerce-product-gallery .wd-gallery-images .woocommerce-product-gallery__image img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel {
    --wd-col-sm: 6.5 !important;
  }

  .single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-item img {
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
  }

  .single-product .bld-r-native-gallery > .wp-block-wd-row {
    row-gap: 10px !important;
  }

  .single-product .wd-single-title h1.product_title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: clamp(20px, 5.6vw, 24px);
    line-height: 1.2;
  }
}
/* end QA-136 */

/* ============================================================================
 * 5. Unified Shop & Category Archive Toolbars, Grid Density & Curated Bands
 * ============================================================================ */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_brand, .tax-product_collection, .search-results) .wd-products.wd-grid-g {
  --wd-col-lg: 4;
  --wd-col-md: 3;
  --wd-col-sm: 2;
  --wd-gap-lg: 24px;
  --wd-gap-sm: 12px;
}

.shop-loop-head,
.wd-shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bld-border);
}

/* Hide useless 1-value facets & 1-page pagination */
.wd-pf-checkboxes:has(.wd-pf-results > ul > li:first-child:last-child),
.widget_layered_nav:has(ul > li:first-child:last-child),
.wp-block-wd-product-filters-attributes:has(ul > li:first-child:last-child),
.woocommerce-pagination:not(:has(.page-numbers > li:nth-child(2))),
.wd-loop-footer:has(.wd-load-more[data-max-pages="1"]),
.wd-loop-footer:empty {
  display: none !important;
}

/* Curated Explorer Compact 44px Text Index & Brand Mosaic Cards */
.bld-compact-index-item {
  border-bottom: 1px solid var(--bld-border);
}

.bld-compact-index-link {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center !important;
}

.bld-brand-mosaic-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bld-brand-mosaic-strip .wp-block-wd-image {
  background: var(--bld-surface-alt);
  border-radius: var(--bld-radius-card, 8px);
  overflow: hidden;
}

/* Scoped Brand Pills, FAQ Accordion & PDP Facts Split (consolidated from ProductScopeBands.php) */
.wd-brands .wd-brand-item > .bld-brand-pill,
.wd-brands:is(.bld-scope-archive-brands, .bld-scope-alternative-brands, .bld-scope-collection-shortcuts) .wd-brand-item > a:not(:has(img)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip, 999px);
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.wd-brands .wd-brand-item > a.bld-brand-pill:hover,
.wd-brands:is(.bld-scope-archive-brands, .bld-scope-alternative-brands, .bld-scope-collection-shortcuts) .wd-brand-item > a:not(:has(img)):hover {
  border-color: var(--bld-ink-strong);
  background: var(--bld-surface-alt);
}

/* Fix WoodMart 8.6 fit-content flex collapse: WoodMart sets min-width: 1px on direct children of
 * .wp-block-wd-container, allowing flex-row items with displayWidth: fit-content to shrink narrower
 * than their text and overflow pill borders, and forcing width: 100% on direct children of .wd-dir-col. */
.wp-block-wd-container.bld-fit-content {
  width: fit-content;
  min-width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
}

.wp-block-wd-container.bld-fit-content > :not(.wd-custom-width) {
  width: auto !important;
  max-width: 100%;
}

/* QA-108: a row child the generator marks `flex: 0 0 auto` keeps WoodMart's default width:100% and crushes its
 * siblings to min-width:1px. Let such children shrink (WoodMart row children already default to flex-shrink:1, so only
 * the no-shrink ones change) and never below their min-content. Verified by tools/visual-qa/layout_diff.py over 33 live
 * stores x 4 widths + the 1,233-block DDEV catalog: 162 -> 2 crushed elements live, 0 regressions (the earlier
 * `width:auto` rule shrink-wrapped stacked rows at 768/390 and broke hero wrap rows). */
.wp-block-wd-container.wd-dir-row > .wp-block-wd-container:not(.wd-custom-width) {
  flex-shrink: 1;
  min-width: min-content;
}

/* QA-108: a link button squeezed to 1px beside its text cell (poshdomains "Shipping & delivery" beside an info box printed
 * flex 1 0 auto; onyourweddingday / cablesentry "Go to the categories" beside a copy cell held at 620px by its lead).
 * The text cell shrinks instead: an info box shrinks like a container, and a fixed-measure block inside a row cell caps at
 * the cell (min() with a % drops out of the cell's min-content). The button keeps its label on one line; WoodMart's
 * max-width:fit-content still caps it at the row. Rows that also hold a paragraph / title / second button (count pills,
 * CTA pairs) keep proportional shrinking: a no-shrink button there crushes the count to 1px with a long (German) label. */
.wp-block-wd-container.wd-dir-row > .wp-block-wd-infobox:not(.wd-custom-width) {
  flex-shrink: 1;
  min-width: min-content;
}
.wp-block-wd-container.wd-dir-row > .wp-block-wd-container:not(.wd-custom-width) > .wd-custom-width {
  width: min(var(--wd-width, 100%), 100%);
}
.wp-block-wd-container.wd-dir-row:not(:has(> .wp-block-wd-paragraph, > .wp-block-wd-title, > .wp-block-wd-button ~ .wp-block-wd-button)) > .wp-block-wd-button {
  flex-shrink: 0;
}

/* Never render an outer separator before the first FAQ item or after the last FAQ item */
.wd-accordion:where(.wd-style-default) > .wd-accordion-item:first-of-type,
.wd-accordion:where(.wd-style-default) > .wd-nav-wrapper + .wd-accordion-item {
  border-top: none !important;
}

.wd-accordion:where(.wd-style-default) > .wd-accordion-item:last-of-type,
.wd-accordion:where(.wd-style-default) > .wd-accordion-item:last-child {
  border-bottom: none !important;
}

.bld-faq-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.bld-faq-item {
  border: 0;
  border-bottom: 1px solid var(--bld-border);
  background: transparent;
  padding: 20px 0;
}

.bld-faq-item:first-child {
  padding-top: 0;
}

.bld-faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bld-faq-item > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--bld-ink-strong);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.bld-faq-item > summary::-webkit-details-marker {
  display: none;
}

.bld-faq-item > summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--bld-ink-muted);
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.bld-faq-item[open] > summary::after {
  transform: rotate(45deg);
}

.bld-faq-answer {
  margin-top: 12px;
  color: var(--bld-ink);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 68ch;
}

/* ============================================================================
 * 6. WoodMart Chrome Defect Fixes (C11, C3, CH1, C5, CH5)
 * ============================================================================ */

/* C11: Fix mobile drawer 125px submenu top offset */
.mobile-nav .wd-nav-mobile,
.mobile-nav .wd-drilldown-slide {
  position: relative !important;
}

.mobile-nav .wd-nav-mobile li > :is(.sub-menu, .wd-sub-menu, .sub-sub-menu),
.mobile-nav .wd-drilldown-slide .menu-item > [class*="sub-menu"] {
  top: 0 !important;
  inset-block-start: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* C3: Mobile wordmark min-height >= 24px (fixing 7px unreadable mobile wordmark) */
@media (max-width: 1024px) {
  .whb-header :is(.whb-mobile-center, .whb-mobile-left) .wd-logo,
  .whb-header :is(.whb-mobile-center, .whb-mobile-left) .site-logo {
    display: flex !important;
    align-items: center !important;
    max-width: min(192px, 54vw) !important;
    overflow: visible !important;
  }

  .whb-header :is(.whb-mobile-center, .whb-mobile-left) .wd-logo img,
  .whb-header :is(.whb-mobile-center, .whb-mobile-left) .site-logo img {
    min-height: 24px !important;
    height: clamp(24px, 6.5vw, 36px) !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: min(184px, 52vw) !important;
    object-fit: contain !important;
    display: block !important;
  }

  .whb-header :is(.whb-mobile-center, .whb-mobile-left) .wd-logo.wd-logo-text a {
    font-size: clamp(16px, 4.5vw, 19px) !important;
    line-height: 1.2 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* CH1: AJAX search overlay typography & legibility */
.wd-search-results,
.wd-search-full-screen,
.wd-search-full-screen-2,
.wd-search-dropdown {
  font-family: var(--bld-font-body, var(--wd-text-font, inherit));
  color: var(--bld-ink);
  background-color: var(--bld-surface, var(--bld-bg));
}

.wd-search-full-screen input[type="text"],
.wd-search-full-screen-2 input[type="text"] {
  font-family: var(--bld-font-body, var(--wd-text-font, inherit)) !important;
  font-weight: 600 !important;
  color: var(--bld-ink-strong) !important;
  border-color: var(--bld-border) !important;
}

.wd-search-results .wd-entities-title,
.autocomplete-suggestion .suggestion-title {
  font-family: var(--bld-font-body, var(--wd-text-font, inherit)) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--bld-ink-strong) !important;
}

.wd-search-results .price,
.autocomplete-suggestion .price {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bld-ink) !important;
  font-variant-numeric: tabular-nums;
}

/* C5: Hide cart/wishlist "0" badges and header cart opener completely under purchase hold */
body.bld-purchase-hold .whb-header .wd-header-cart,
body.catalog-mode-on .whb-header .wd-header-cart,
body.bld-purchase-hold .whb-header .wd-header-cart .wd-tools-count,
body.catalog-mode-on .whb-header .wd-header-cart .wd-tools-count,
body.bld-purchase-hold .whb-header :is(.wd-header-wishlist, .wd-header-compare) .wd-tools-count[data-count="0"],
body.catalog-mode-on .whb-header :is(.wd-header-wishlist, .wd-header-compare) .wd-tools-count[data-count="0"],
.whb-header .wd-tools-count[data-count="0"],
.whb-header .wd-tools-count:empty {
  display: none !important;
}

/* Older generated headers hide every tool count during a purchase hold. A wishlist still works there. */
body .whb-header .wd-header-wishlist.wd-tools-element .wd-tools-count[data-count]:not([data-count="0"]) {
  display: inline-flex !important;
}

.wd-header-wishlist .wd-tools-count[data-count="0"] {
  visibility: hidden;
}

/* QA-025: High-contrast header cart bag icon inside filled primary-accent circle/pill cart styles */
.whb-header .wd-header-cart:is(.wd-design-7, .wd-design-8) .wd-tools-icon,
.whb-header .wd-header-cart:is(.wd-design-7, .wd-design-8) .wd-tools-icon:before,
.whb-header .wd-header-cart:is(.wd-design-7, .wd-design-8):hover .wd-tools-icon:before {
  color: var(--bld-accent-ink, var(--bld-ink-on-dark)) !important;
  opacity: 1 !important;
}

/* Header Compare live count pill (hidden at 0 above; crisp accent pill when >= 1 item compared) */
.whb-header .wd-header-compare .wd-tools-icon {
  position: relative;
}

.whb-header .wd-header-compare .wd-tools-count,
.whb-header .wd-header-compare .wd-tools-count.bld-compare-count {
  position: absolute;
  top: -5px;
  inset-inline-end: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bld-surface, var(--bld-bg));
}

body .whb-header .wd-header-compare.wd-tools-element .wd-tools-count[data-count]:not([data-count="0"]):not(:empty),
.whb-header .wd-header-compare.bld-has-compare-items .wd-tools-count:not([data-count="0"]):not(:empty) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* CH5: "Privacy choices" legible inside footer bar on both ink and paper surfaces */
.wd-footer .buildolia-privacy-choices,
.bld-chrome-footer .buildolia-privacy-choices,
.wd-copyrights .buildolia-privacy-choices {
  display: inline-flex !important;
  align-items: center !important;
  color: inherit !important;
  opacity: 0.92 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.wd-footer .buildolia-privacy-choices a,
.bld-chrome-footer .buildolia-privacy-choices a,
.wd-copyrights .buildolia-privacy-choices a {
  color: inherit !important;
  opacity: 1 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* ============================================================================
 * 7. The 5 Neglected Page Types: Cart, Checkout, My Account, Search, 404
 *    + Quick View Modal Layout Fix + Cover Card Contrast Scrim + Markets Control
 * ============================================================================ */

/* Quick View Modal Fix: neutralize WoodMart absolute `.summary-inner` + bottom mask collapse under CSS Grid `align-items: start` */
body .wd-popup.popup-quick-view {
  border-radius: var(--bld-radius-card, 12px);
  background: var(--bld-surface, var(--bld-bg));
  color: var(--bld-ink);
}

body .popup-quick-view .quick-view-horizontal .product-image-summary {
  align-items: start;
  min-height: 0;
}

body .popup-quick-view .quick-view-horizontal .entry-summary {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body .popup-quick-view .quick-view-horizontal .summary-inner {
  position: static !important;
  inset: auto !important;
  padding: 0 !important;
  max-height: min(72vh, 560px) !important;
  overflow-y: auto !important;
}

body .popup-quick-view .woocommerce-product-gallery__image img {
  object-fit: contain !important;
  background-color: var(--bld-surface, var(--bld-bg)) !important;
  mix-blend-mode: normal !important;
}

/* Collection / Category Cover Card Dark Bottom Scrim (legible white labels over ANY photo or fallback ground) */
.wp-block-wd-cover.color-scheme-light {
  position: relative;
  background-color: var(--bld-surface-ink);
  border-radius: var(--bld-radius-card, 12px);
  overflow: hidden;
}

.wp-block-wd-cover.color-scheme-light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--bld-surface-ink) 88%, transparent) 0%,
    color-mix(in srgb, var(--bld-surface-ink) 48%, transparent) 54%,
    color-mix(in srgb, var(--bld-surface-ink) 14%, transparent) 100%
  );
}

.wp-block-wd-cover.color-scheme-light > :not(.wd-block-cover-img):not(.wd-bg-overlay):not(.wd-fill):not(.wd-block-cover-link) {
  position: relative;
  z-index: 2;
}

.wp-block-wd-cover > a.wd-block-cover-link,
.wp-block-wd-cover > a.wd-fill {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  cursor: pointer;
}

.wp-block-wd-cover > .wp-block-wd-container :is(a, button) {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.wp-block-wd-cover.color-scheme-light > .wd-bg-overlay {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--bld-surface-ink) 84%, transparent) 0%,
    color-mix(in srgb, var(--bld-surface-ink) 42%, transparent) 52%,
    color-mix(in srgb, var(--bld-surface-ink) 10%, transparent) 100%
  ) !important;
  opacity: 1 !important;
  pointer-events: none;
}

.wp-block-wd-cover.color-scheme-light :is(h1, h2, h3, h4, p, .wp-block-wd-title, .wp-block-wd-paragraph) {
  color: var(--bld-ink-on-dark) !important;
  text-shadow: 0 1px 10px color-mix(in srgb, var(--bld-surface-ink) 72%, transparent);
}

/* Warm Editorial Utility Page Title Banner & WoodMart Layout Builder Checkout Steps (guarantees >= 7:1 WCAG contrast, incl. QA-031 breadcrumbs) */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .wd-page-title.page-title-default,
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .page-title,
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .wp-block-wd-section:has(.wd-checkout-steps),
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .wp-block-wd-container:has(> .wd-checkout-steps-wrapp),
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .wd-checkout-steps-wrapp {
  background-color: var(--bld-surface-alt) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--bld-border) !important;
  color: var(--bld-ink-strong) !important;
  --wd-title-color: var(--bld-ink-strong);
  --wd-text-color: var(--bld-ink);
  --wd-link-color: var(--bld-ink);
  --wd-link-color-hover: var(--bld-ink-strong);
  padding-block: clamp(20px, 2.8vw, 32px) !important;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(.wd-page-title.page-title-default, .page-title, .wd-checkout-steps-wrapp) :is(h1, .entry-title, .title, .wd-checkout-steps, .wd-checkout-steps li, .wd-checkout-steps a, .wd-checkout-steps span, .wd-breadcrumbs, .wd-breadcrumbs a, .wd-breadcrumbs span, .woocommerce-breadcrumb, .woocommerce-breadcrumb a, .wd-delimiter) {
  color: var(--bld-ink-muted) !important;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(.wd-page-title.page-title-default, .page-title, .wd-checkout-steps-wrapp) :is(h1, .entry-title, .wd-checkout-steps li.step-active, .wd-checkout-steps li.step-active a, .wd-checkout-steps li.step-active span, .wd-breadcrumbs a:hover, .wd-breadcrumbs span.wd-last, .woocommerce-breadcrumb a:hover) {
  color: var(--bld-ink-strong) !important;
}

body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(.wd-page-title.page-title-default, .wd-checkout-steps-wrapp) .wd-checkout-steps li.step-active a::after,
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(.wd-page-title.page-title-default, .wd-checkout-steps-wrapp) .wd-checkout-steps li.step-active span::after {
  background-color: var(--bld-accent) !important;
}

/* QA-057: Keep cookie banner above .scrollToTop (350) & .whb-main-header (390), safely below .wd-close-side (400), side cart (.cart-widget-side: 500), and Quick View (.mfp-wrap: 1043) */
.buildolia-consent {
  z-index: 395 !important;
}

/* QA-056: Never line-clamp mobile cookie banner message (keeps GDPR "Cookie policy" link visible & tappable) */
.buildolia-consent .buildolia-consent__message {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

/* Pre-legal / Non-shippable SEO-first catalogue mode: cleanly hide purchase buttons & sticky ATC */
body.bld-purchase-hold :is(.single_add_to_cart_button, .wd-add-btn, .add_to_cart_button, .wd-buy-now-btn, .wd-sticky-btn),
body.catalog-mode-on .wd-sticky-btn {
  display: none !important;
}

.buildolia-ship-to-unavailable,
.buildolia-catalogue-notice {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-card, 10px);
  background: var(--bld-surface-alt);
  color: var(--bld-ink);
  font-size: 14px;
  line-height: 1.5;
}

/* 7.1 Cart */
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
  border-collapse: collapse;
  width: 100%;
  border-top: 1px solid var(--bld-border);
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table :is(th, td) {
  padding: 16px 12px;
  border-bottom: 1px solid var(--bld-border);
  color: var(--bld-ink);
  vertical-align: middle;
}

body.woocommerce-cart .cart-totals-inner,
body.woocommerce-cart .cart_totals {
  background: var(--bld-surface-alt);
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-card, 12px);
  padding: 28px;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bld-radius-btn, 8px);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-weight: 600;
}

body.woocommerce-cart .cart-empty,
body.woocommerce-cart .wd-empty-page {
  background: var(--bld-surface-alt);
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-card, 12px);
  padding: 40px 28px;
  text-align: center;
}

/* 7.2 Checkout (Classic) */
body.woocommerce-checkout .woocommerce-checkout {
  display: grid;
  gap: 32px;
}

@media (min-width: 1025px) {
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

body.woocommerce-checkout .checkout-order-review,
body.woocommerce-checkout #order_review {
  background: var(--bld-surface-alt);
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-card, 12px);
  padding: 28px;
}

body.woocommerce-checkout :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  min-height: 46px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-input, 8px);
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  padding: 10px 14px;
}

body.woocommerce-checkout :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea):focus {
  border-color: var(--bld-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bld-accent) 18%, transparent);
  outline: none;
}

body.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 50px;
  border-radius: var(--bld-radius-btn, 8px);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-weight: 600;
}

/* 7.3 My Account */
body.woocommerce-account .woocommerce {
  display: grid;
  gap: 28px;
}

@media (min-width: 1025px) {
  body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
  }
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--bld-surface-alt);
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-card, 12px);
  padding: 16px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--bld-radius-btn, 8px);
  color: var(--bld-ink);
  text-decoration: none;
  font-weight: 500;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--bld-accent-soft, var(--bld-surface));
  color: var(--bld-accent);
  font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--bld-surface);
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-card, 12px);
  padding: 28px;
}

/* 7.4 Search Results + Load More Pagination (strict mutual exclusion between button and loader) */
body.search .wd-loop-footer,
.wd-loop-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.search .wd-loop-footer {
  margin-top: 36px;
}

body.search .wd-loop-footer .wd-load-more:not(.wd-load-more-loader):not(.loading),
.wd-loop-footer .wd-load-more:not(.wd-load-more-loader):not(.loading) {
  min-height: 46px;
  padding: 0 28px;
  border-radius: var(--bld-radius-btn, 8px);
  border: 1px solid var(--bld-border);
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

body.search .wd-loop-footer .wd-load-more:not(.wd-load-more-loader):not(.loading):hover,
.wd-loop-footer .wd-load-more:not(.wd-load-more-loader):not(.loading):hover {
  border-color: var(--bld-accent);
  background: var(--bld-surface-alt);
  color: var(--bld-accent);
}

body.search .wd-loop-footer .wd-load-more.loading,
.wd-loop-footer .wd-load-more.loading {
  display: none !important;
}

body.search .wd-loop-footer .wd-load-more-loader,
.wd-loop-footer .wd-load-more-loader {
  display: none !important;
  min-height: 46px;
  padding: 0 28px;
  border-radius: var(--bld-radius-btn, 8px);
  border: 1px solid var(--bld-border);
  background: var(--bld-surface-alt);
  color: var(--bld-ink-muted);
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.search .wd-loop-footer .wd-load-more.loading + .wd-load-more-loader,
.wd-loop-footer .wd-load-more.loading + .wd-load-more-loader {
  display: inline-flex !important;
}

/* 7.5 Storefront 404 Page (Product Search + Top Categories, Never Stock WP Copy) */
.bld-404-surface {
  max-width: 760px;
  margin: clamp(32px, 5vw, 72px) auto;
  padding: clamp(28px, 4vw, 48px);
  background: var(--bld-surface-alt);
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-card, 14px);
  text-align: center;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.bld-404-surface .bld-404-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--bld-accent);
  margin: 0;
}

.bld-404-surface h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0;
}

.bld-404-surface .bld-404-lead {
  margin: 0;
  max-width: 56ch;
  color: var(--bld-ink-muted);
  font-size: 16px;
  line-height: 1.6;
}

.bld-404-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  justify-content: center;
}

.bld-404-search input[type="search"] {
  flex: 1 1 260px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-input, 8px);
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  font-size: 15px;
}

.bld-404-search button[type="submit"] {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--bld-radius-btn, 8px);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-weight: 600;
  cursor: pointer;
}

.bld-404-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.bld-404-cats a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip, 999px);
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.bld-404-cats a:hover {
  border-color: var(--bld-accent);
  color: var(--bld-accent);
}

.bld-404-actions {
  margin-top: 4px;
}

.bld-404-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: var(--bld-radius-btn, 8px);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================================
 * 8. Checkout & Cart Two-Column Grid Integrity (Fixes WoodMart 50%-in-Grid Bug)
 * ============================================================================ */
body.woocommerce-checkout form.woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 960px) {
  body.woocommerce-checkout form.woocommerce-checkout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important;
    column-gap: clamp(28px, 4vw, 56px) !important;
    row-gap: 24px !important;
  }

  body.woocommerce-checkout form.woocommerce-checkout > :not(#customer_details):not(.checkout-order-review) {
    grid-column: 1 / -1 !important;
  }

  body.woocommerce-checkout form.woocommerce-checkout > #customer_details {
    grid-column: 1 !important;
  }

  body.woocommerce-checkout form.woocommerce-checkout > .checkout-order-review {
    grid-column: 2 !important;
    position: sticky !important;
    top: 96px !important;
  }
}

body.woocommerce-checkout form.woocommerce-checkout > #customer_details,
body.woocommerce-checkout form.woocommerce-checkout > .checkout-order-review,
body.woocommerce-checkout form.woocommerce-checkout .col2-set,
body.woocommerce-checkout form.woocommerce-checkout .col2-set > .col-1,
body.woocommerce-checkout form.woocommerce-checkout .col2-set > .col-2,
body.woocommerce-checkout form.woocommerce-checkout #order_review {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  float: none !important;
  margin-inline: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout form.woocommerce-checkout > .checkout-order-review {
  background: var(--bld-surface-alt) !important;
  border: 1px solid var(--bld-border) !important;
  border-radius: var(--bld-radius-card, 12px) !important;
  padding: clamp(20px, 2.5vw, 32px) !important;
}

body.woocommerce-checkout form.woocommerce-checkout .checkout-order-review-inner,
body.woocommerce-checkout form.woocommerce-checkout #order_review,
body.woocommerce-checkout form.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout form.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout form.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  padding-inline: 0 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.woocommerce-checkout form.woocommerce-checkout table.woocommerce-checkout-review-order-table th {
  padding-right: 16px !important;
  vertical-align: top !important;
}

body.woocommerce-checkout form.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
  padding-left: 12px !important;
}

body.woocommerce-checkout form.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals ul#shipping_method {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-checkout form.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals ul#shipping_method li {
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--bld-border) !important;
  border-radius: var(--bld-radius-input, 8px) !important;
  background: var(--bld-surface) !important;
  text-align: left !important;
}

body.woocommerce-checkout form.woocommerce-checkout input.input-text,
body.woocommerce-checkout form.woocommerce-checkout select,
body.woocommerce-checkout form.woocommerce-checkout textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Cart two-column layout: guard against 50% flex max-width inside CSS grid */
body.woocommerce-cart .woocommerce .wd-cart-wrapper,
body.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
body.woocommerce-cart .woocommerce .cart-collaterals,
body.woocommerce-cart .woocommerce .cart_totals {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 960px) {
  body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form):has(> .cart-collaterals) {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important;
    column-gap: clamp(28px, 4vw, 48px) !important;
    align-items: start !important;
  }

  body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form):has(> .cart-collaterals) > :not(.woocommerce-cart-form):not(.cart-collaterals) {
    grid-column: 1 / -1 !important;
  }

  body.woocommerce-cart .woocommerce > .woocommerce-cart-form,
  body.woocommerce-cart .woocommerce > .cart-collaterals {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
  }
}

/* Never paint an empty floating WoodMart right-edge social bar when no external social profiles exist */
.wd-sticky-social:not(:has(a[href^="http"])) {
  display: none !important;
}

/* Visual Taxonomy Card & Brand Companion Thumbnail Layout (all categories, collections & brands carry composed imagery) */
.bld-explorer-mini-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
}

.bld-explorer-mini-thumb {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  flex: 0 0 64px !important;
}

.bld-explorer-mini-thumb img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

.bld-explorer-mini-meta {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.bld-brand-companion-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 18px !important;
}

.bld-brand-companion-thumb {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  flex: 0 0 88px !important;
}

.bld-brand-companion-thumb img {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

.bld-brand-companion-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.bld-brand-mosaic-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.bld-brand-mosaic-strip .wp-block-wd-image img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

.bld-explorer-thumb-card .wp-block-wd-image img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

.bld-brand-az-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

.bld-brand-az-thumb {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  flex: 0 0 36px !important;
}

.bld-brand-az-thumb img {
  width: 36px !important;
  height: 36px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
}

.bld-explorer-editorial-bento .wp-block-wd-cover {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Guarantee WCAG AA+ contrast on WoodMart breadcrumbs, per-page controls, and sidebar filter count badges */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.wd-breadcrumbs,
.wd-breadcrumbs a,
.wd-breadcrumbs .wd-last-link,
.yoast-breadcrumb a,
.widget_layered_nav .count,
.wd-filter-list .count,
.product-categories .count,
.woocommerce-widget-layered-nav-list__item .count {
  color: var(--bld-ink-muted) !important;
}

.wc-layered-nav-term .count,
.wd-pf-results .count,
.woocommerce-breadcrumb a:hover,
.wd-breadcrumbs a:hover {
  color: var(--bld-ink-strong) !important;
}

/* Guarantee WCAG AAA (>= 7:1) contrast on WoodMart layered-nav & product filter swatch labels */
.wd-filter-lable,
.layer-term-lable,
.wd-pf-results .wd-filter-lable,
.woocommerce-widget-layered-nav-list__item .wd-filter-lable,
.wc-layered-nav-term .layer-term-lable,
.wd-swatches-filter .wd-filter-lable {
  color: var(--bld-ink, var(--wd-entities-title-color)) !important;
}

/* Guarantee WCAG AAA contrast on light-scheme archive/category/brand/collection title banners */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_brand, .tax-product_collection, .search-results) .wd-page-title.page-title-default.color-scheme-light {
  position: relative !important;
  background-color: var(--bld-surface-ink) !important;
  color: var(--bld-ink-on-dark) !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_brand, .tax-product_collection, .search-results) .wd-page-title.page-title-default.color-scheme-light .wd-page-title-bg {
  background-color: var(--bld-surface-ink) !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_brand, .tax-product_collection, .search-results) .wd-page-title.page-title-default.color-scheme-light .wd-page-title-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bld-surface-ink) 74%, transparent);
  pointer-events: none;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_brand, .tax-product_collection, .search-results) .wd-page-title.page-title-default.color-scheme-light > .container {
  position: relative;
  z-index: 2;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_brand, .tax-product_collection, .search-results) .wd-page-title.page-title-default.color-scheme-light :is(h1, .entry-title, .title, a, .wd-action-icon, .woocommerce-breadcrumb, .woocommerce-breadcrumb a, .wd-breadcrumbs, .wd-breadcrumbs a) {
  color: var(--bld-ink-on-dark) !important;
}

/* Never place bare white text directly over bright category photography in center/default WoodMart designs */
.wd-cat.cat-design-center .hover-mask,
.wd-cat.cat-design-default .hover-mask {
  background: color-mix(in srgb, var(--bld-surface-ink) 84%, transparent) !important;
  color: var(--bld-ink-on-dark) !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
}

.wd-cat.cat-design-center .hover-mask .wd-entities-title,
.wd-cat.cat-design-center .hover-mask .more-products,
.wd-cat.cat-design-center .hover-mask a,
.wd-cat.cat-design-default .hover-mask .wd-entities-title,
.wd-cat.cat-design-default .hover-mask .more-products,
.wd-cat.cat-design-default .hover-mask a {
  color: var(--bld-ink-on-dark) !important;
}

/* Render composed square brand mosaics at generous visual scale with crisp framing and no WoodMart .wd-style-bordered double borders */
.wd-brands.wd-style-bordered.wd-layout-grid .wd-grid-g,
.wd-brands.wd-layout-grid .wd-grid-g {
  gap: 20px !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}

.wd-brands.wd-style-bordered.wd-layout-grid .wd-col,
.wd-brands.wd-style-bordered.wd-layout-carousel .wd-carousel-item {
  border: 0 !important;
  border-inline-end: 0 !important;
  border-bottom: 0 !important;
}

.wd-brands.wd-style-bordered.wd-layout-carousel .wd-carousel-inner {
  border: 0 !important;
}

.wd-brands.wd-style-bordered.wd-layout-carousel .wd-carousel {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.wd-brands:not(.wd-layout-list) .wd-brand-item,
.wd-brands:not(.wd-layout-list) .brand-item {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 0 44px !important;
  background: var(--bld-surface) !important;
  border: 1px solid var(--bld-border) !important;
  border-radius: var(--bld-radius-card, 12px) !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.wd-brands:not(.wd-layout-list) .wd-brand-item a.wd-fill,
.wd-brands:not(.wd-layout-list) .brand-item a.wd-fill {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 0 12px 11px !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
}

.wd-brands:not(.wd-layout-list) .wd-brand-item img,
.wd-brands:not(.wd-layout-list) .brand-item img {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
}

/* QA-011: Keep "Keep exploring" / "Explore the range" tile cards square and bounded (never 590x260 sliced banners) */
@media (min-width: 768px) {
  .buildolia-link-block--tiles .buildolia-link-block__tiles {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 270px));
  }
}

.buildolia-link-block--tiles .buildolia-link-block__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--bld-radius-card, 10px);
  background: var(--bld-card-media-ground, var(--bld-surface-alt));
}

.buildolia-link-block--tiles .buildolia-link-block__media img.buildolia-link-block__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 8px;
  box-sizing: border-box;
  display: block !important;
}

/* Unclip multi-market & ship-to dropdowns inside WoodMart header & top-bar rows (SEV-0: .whb-top-bar defaults to overflow:hidden) */
.whb-header:has(.bld-lang-switcher, .buildolia-ship-to),
.whb-header .whb-row:has(.bld-lang-switcher, .buildolia-ship-to),
.whb-header .whb-top-bar:has(.bld-lang-switcher, .buildolia-ship-to),
.whb-header .whb-top-bar:has(.bld-lang-switcher, .buildolia-ship-to) > .container,
.whb-header .whb-top-bar:has(.bld-lang-switcher, .buildolia-ship-to) .whb-flex-row,
.whb-header .whb-top-bar:has(.bld-lang-switcher, .buildolia-ship-to) .whb-column,
.whb-header .whb-top-bar:has(.bld-lang-switcher, .buildolia-ship-to) .wd-header-text {
  overflow: visible !important;
}

.whb-header .whb-top-bar:has(.bld-lang-switcher, .buildolia-ship-to) {
  position: relative !important;
  z-index: 420 !important;
}

.whb-header .bld-lang-switcher,
.whb-header .bld-lang-switcher__details {
  position: relative !important;
  z-index: 430 !important;
}

.whb-header .bld-lang-switcher__panel,
.wd-footer .bld-lang-switcher__panel,
.color-scheme-light .bld-lang-switcher__panel {
  z-index: 1200 !important;
  background: var(--bld-surface) !important;
  color: var(--bld-ink-strong) !important;
  border-color: var(--bld-border) !important;
}

.whb-header .bld-lang-switcher__panel .bld-lang-switcher__search,
.whb-header .bld-lang-switcher__panel .bld-lang-switcher__search-input,
.wd-footer .bld-lang-switcher__panel .bld-lang-switcher__search,
.wd-footer .bld-lang-switcher__panel .bld-lang-switcher__search-input,
.color-scheme-light .bld-lang-switcher__panel .bld-lang-switcher__search,
.color-scheme-light .bld-lang-switcher__panel .bld-lang-switcher__search-input {
  background: var(--bld-surface) !important;
  border-color: var(--bld-border) !important;
}

.whb-header .bld-lang-switcher__panel :is(
  a,
  li,
  p,
  input,
  .bld-lang-switcher__link,
  .bld-lang-switcher__country-head,
  .bld-lang-switcher__country-name,
  .bld-lang-switcher__name,
  .bld-lang-switcher__label,
  .bld-lang-switcher__search-input
),
.wd-footer .bld-lang-switcher__panel :is(
  a,
  li,
  p,
  input,
  .bld-lang-switcher__link,
  .bld-lang-switcher__country-head,
  .bld-lang-switcher__country-name,
  .bld-lang-switcher__name,
  .bld-lang-switcher__label,
  .bld-lang-switcher__search-input
),
.color-scheme-light .bld-lang-switcher .bld-lang-switcher__panel :is(
  a,
  li,
  p,
  input,
  .bld-lang-switcher__link,
  .bld-lang-switcher__country-head,
  .bld-lang-switcher__country-name,
  .bld-lang-switcher__name,
  .bld-lang-switcher__label,
  .bld-lang-switcher__search-input
) {
  color: var(--bld-ink-strong) !important;
}

.whb-header .bld-lang-switcher__panel :is(.bld-lang-switcher__badge, .bld-lang-switcher__empty),
.wd-footer .bld-lang-switcher__panel :is(.bld-lang-switcher__badge, .bld-lang-switcher__empty),
.color-scheme-light .bld-lang-switcher .bld-lang-switcher__panel :is(.bld-lang-switcher__badge, .bld-lang-switcher__empty) {
  color: var(--bld-ink-muted) !important;
}

/* Bound sidebar & shop filter lists to a single compact vertical scroll area (never 2,000px+ walls of options) */
.sidebar-container .wd-widget .wd-scroll,
.wd-shop-filters .wd-widget .wd-scroll,
aside .widget .wd-scroll {
  max-height: none;
  overflow: visible;
}

.sidebar-container .wd-widget :is(
  ul.buildolia-collection-filter__list,
  ul.woocommerce-widget-layered-nav-list,
  ul.wd-filter-list,
  ul.product-categories,
  ul.wd-checkboxes-on,
  .wd-scroll-content,
  .wc-block-attribute-filter-list
),
.wd-shop-filters .wd-widget :is(
  ul.buildolia-collection-filter__list,
  ul.woocommerce-widget-layered-nav-list,
  ul.wd-filter-list,
  ul.product-categories,
  ul.wd-checkboxes-on,
  .wd-scroll-content
),
aside .widget :is(
  ul.buildolia-collection-filter__list,
  ul.woocommerce-widget-layered-nav-list,
  ul.wd-filter-list,
  ul.product-categories,
  .wd-scroll-content
) {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 6px;
  scrollbar-width: thin;
}

.wd-brands .wd-brand-item a.wd-fill::after,
.wd-brands .brand-item a.wd-fill::after {
  content: attr(title);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bld-ink-strong);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


/* ============================================================================
 * 10. ZodCMS-Grade Sticky Bottom Compare Bar (Desktop) + FAB & Sheet (Mobile)
 *     Strictly --bld-* tokenized (zero hardcoded hexes); cache-safe mount.
 * ============================================================================ */

body.bld-has-compare-bar {
  padding-bottom: var(--bld-compare-bar-height, 0px);
}

/* QA-035 / R2-BH2-05: Only lift bottom consent banner above desktop compare bar (never stretch --top banner down the viewport) */
@media (min-width: 768px) {
  body.bld-has-compare-bar .buildolia-consent:not(.buildolia-consent--top) {
    bottom: var(--bld-compare-bar-height, 0px) !important;
  }
}

.bld-compare-root[hidden] {
  display: none !important;
}

.bld-compare-bar {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 380;
  background: color-mix(in srgb, var(--bld-surface, var(--bld-bg)) 96%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--bld-border);
  box-shadow: 0 -8px 28px color-mix(in srgb, var(--bld-ink-strong) 12%, transparent);
  color: var(--bld-ink);
  font-family: var(--bld-font-body, var(--wd-text-font, inherit));
}

.bld-compare-bar.is-entering {
  animation: bld-compare-slide-up 0.22s ease-out both;
}

@keyframes bld-compare-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bld-compare-bar__inner {
  max-width: var(--wd-container-w, 1222px);
  margin: 0 auto;
  padding: 10px 20px 12px;
}

.bld-compare-bar.is-minimized .bld-compare-bar__inner {
  padding-block: 8px;
}

.bld-compare-bar__head,
.bld-compare-bar__min-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bld-compare-bar__head {
  margin-bottom: 10px;
}

.bld-compare-bar__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bld-ink-strong);
}

.bld-compare-bar__title .bld-compare-icon {
  color: var(--bld-accent);
  flex-shrink: 0;
}

.bld-compare-bar__head-actions,
.bld-compare-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bld-compare-bar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: 0 !important;
  padding: 6px 4px !important;
  min-height: 32px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  color: var(--bld-ink-strong) !important;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.16s ease;
}

.bld-compare-bar__toggle:hover {
  color: var(--bld-accent) !important;
}

.bld-compare-bar__icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: var(--bld-radius-btn, 8px);
  border: 1px solid var(--bld-border) !important;
  background: var(--bld-surface) !important;
  color: var(--bld-ink-strong) !important;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.bld-compare-bar__icon-btn svg,
.bld-compare-item__remove svg,
.bld-compare-fab__btn svg {
  flex-shrink: 0;
  display: block;
}

.bld-compare-bar__icon-btn:hover {
  border-color: var(--bld-ink-strong) !important;
  color: var(--bld-ink-strong) !important;
  background: var(--bld-surface-alt) !important;
}

.bld-compare-clear {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: transparent !important;
  border: 0 !important;
  padding: 6px 10px !important;
  min-height: 32px !important;
  border-radius: var(--bld-radius-btn, 8px);
  font-size: 13px;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--bld-ink-muted) !important;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.bld-compare-clear:hover {
  color: var(--bld-ink-strong) !important;
  background: var(--bld-surface-alt) !important;
}

.bld-compare-bar__body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bld-compare-bar__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.bld-compare-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 26px 6px 8px;
  border-radius: var(--bld-radius-card, 10px);
  border: 1px solid var(--bld-border);
  background: var(--bld-surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bld-compare-item:hover {
  border-color: var(--bld-accent);
}

.bld-compare-item__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.bld-compare-item__thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: calc(var(--bld-radius-card, 10px) - 3px);
  border: 1px solid var(--bld-border);
  background: var(--bld-surface-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bld-compare-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bld-compare-item__placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bld-border);
  display: block;
}

.bld-compare-item__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bld-compare-item__title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--bld-ink-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bld-compare-item__price {
  font-size: 12px;
  font-weight: 600;
  color: var(--bld-ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bld-compare-item__price del {
  opacity: 0.6;
  margin-inline-end: 4px;
}

.bld-compare-item__price ins {
  text-decoration: none;
  color: var(--bld-ink-strong);
}

.bld-compare-item__remove {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  width: 22px;
  height: 22px;
  min-width: 22px !important;
  min-height: 22px !important;
  border-radius: 999px;
  border: 1px solid var(--bld-border) !important;
  background: var(--bld-surface) !important;
  color: var(--bld-ink-muted) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bld-compare-item__remove:hover {
  background: var(--bld-ink-strong);
  border-color: var(--bld-ink-strong);
  color: var(--bld-ink-on-dark);
}

.bld-compare-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 66px;
  padding: 6px 10px;
  border-radius: var(--bld-radius-card, 10px);
  border: 1px dashed var(--bld-border);
  background: var(--bld-surface-alt);
  color: var(--bld-ink-muted);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.78;
}

.bld-compare-slot__plus {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}

.bld-compare-bar__cta-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--bld-border);
}

.bld-compare-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px !important;
  padding: 0 20px !important;
  border-radius: var(--bld-radius-btn, 8px);
  border: 1px solid var(--bld-accent) !important;
  background: var(--bld-accent) !important;
  color: var(--bld-accent-ink) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.bld-compare-cta:hover:not(.is-disabled):not([disabled]) {
  background: var(--bld-accent-hover, var(--bld-ink-strong));
  border-color: var(--bld-accent-hover, var(--bld-ink-strong));
  color: var(--bld-accent-ink) !important;
}

/* QA-011: Legible disabled contrast on sticky Compare tray CTA (override !important accent bg/border from .bld-compare-cta) */
.bld-compare-cta.is-disabled,
.bld-compare-cta[disabled] {
  background: var(--bld-surface-alt) !important;
  border-color: var(--bld-border) !important;
  color: var(--bld-ink) !important;
  opacity: 0.85;
  cursor: not-allowed;
}

.bld-compare-bar__hint {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.3;
  text-align: center;
  color: var(--bld-ink-muted);
}

.bld-compare-fab,
.bld-compare-sheet,
.bld-compare-sheet-backdrop {
  display: none;
}

@media (max-width: 767.98px) {
  body.bld-has-compare-bar {
    padding-bottom: 0;
  }

  .bld-compare-bar {
    display: none !important;
  }

  .bld-compare-fab {
    display: block;
    position: fixed;
    inset-inline-end: 16px;
    inset-block-end: calc(var(--wd-sticky-toolbar-height, 64px) + 16px);
    z-index: 380;
  }

  .bld-compare-fab__btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 0;
    background: var(--bld-accent);
    color: var(--bld-accent-ink);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--bld-ink-strong) 25%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .bld-compare-fab__badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bld-ink-strong);
    color: var(--bld-ink-on-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bld-surface, var(--bld-bg));
  }

  .bld-compare-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 390;
    background: color-mix(in srgb, var(--bld-ink-strong) 45%, transparent);
  }

  .bld-compare-sheet {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 395;
    max-height: 75vh;
    padding: 16px;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid var(--bld-border);
    background: var(--bld-surface, var(--bld-bg));
    box-shadow: 0 -10px 32px color-mix(in srgb, var(--bld-ink-strong) 22%, transparent);
  }

  .bld-compare-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .bld-compare-sheet__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: 45vh;
  }

  .bld-compare-sheet__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--bld-border);
  }

  /* Coordinate Compare FAB above mobile PDP sticky add-to-cart bar */
  body.bld-sticky-atc-visible .bld-compare-fab {
    inset-block-end: calc(var(--bld-sticky-atc-height, 72px) + 16px);
  }
}

/* ============================================================================
 * 11. Fast-Skim PDP Details Sheet, Utility Row, Dimensions, Payment Marks & Variations
 * ============================================================================ */
/* QA-114 delivery line under Add to cart: "Dispatched within 1-3 working days · Delivers to <country>". The layout writes the dispatch
 * sentence into .bld-pdp-delivery-line; buildolia-woo-store-defaults ship-to.js appends the shopper's deliverable line into the same box,
 * so both read as one line of running text (wrapping under the text, never under the icon). */
.bld-pdp-trust-strip .bld-pdp-delivery-line {
  display: block !important;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

.bld-pdp-delivery-line > :is(p, .wp-block-wd-paragraph, .buildolia-ship-to-line) {
  display: inline;
  margin: 0;
}

.bld-pdp-delivery-line > .buildolia-ship-to-line {
  color: var(--bld-ink);
  font-weight: 500;
}

.bld-pdp-delivery-line > .buildolia-ship-to-line:not(:empty)::before {
  content: "\00b7";
  margin-inline: 0.45em;
  color: var(--bld-ink-muted);
}

.bld-pdp-delivery-line > :is(p, .wp-block-wd-paragraph) + :is(p, .wp-block-wd-paragraph) {
  margin-inline-start: 0.35em;
}

/* A destination the product cannot reach keeps its notice above the form; the dispatch promise steps aside. */
.wp-block-wd-container:has(> .bld-pdp-delivery-line.is-blocked) {
  display: none !important;
}

/* The ship-to line above the form (before ship-to.js joins it, or when it explains a blocked destination). */
.single-product .buildolia-ship-to-line:not(:empty) {
  margin-block: 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bld-ink);
}

.bld-pdp-trust-strip .wp-block-wd-icon {
  flex: 0 0 auto;
  margin-block-start: 1px;
}

.bld-pdp-utility-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.bld-variation-unresolved {
  outline: 2px solid var(--bld-accent);
  outline-offset: 4px;
  border-radius: var(--bld-radius-btn, 8px);
}

/* Dimensions 30° isometric SVG figure + localized <dl> */
.bld-dimensions-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--bld-border);
}

@media (min-width: 640px) {
  .bld-dimensions-figure {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }
}

.bld-dimensions-figure__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--bld-radius-card, 10px);
  background: var(--bld-surface-alt);
  border: 1px solid var(--bld-border);
}

.bld-dimensions-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.bld-dimensions-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.bld-dimensions-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bld-border);
  font-size: 14px;
}

.bld-dimensions-row dt {
  margin: 0;
  color: var(--bld-ink-muted);
  font-weight: 500;
}

.bld-dimensions-row dd {
  margin: 0;
  color: var(--bld-ink-strong);
  font-weight: 600;
}

/* Verified Payment Marks + Honest Klarna Installment Line */
.bld-payment-marks {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bld-payment-marks__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bld-payment-mark {
  display: inline-flex;
  align-items: center;
  color: var(--bld-ink-strong);
}

.bld-payment-mark svg {
  display: block;
  height: 24px;
  width: auto;
}

.bld-payment-klarna {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bld-ink-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
 * 12. CSS Container-Query Side Cart Drawer Vertical Budget
 *     Guarantees Checkout CTA stays visible even on short landscape viewports.
 * ============================================================================ */
.cart-widget-side {
  container-type: size;
  container-name: bld-cart-drawer;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.cart-widget-side .widget_shopping_cart,
.cart-widget-side .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.cart-widget-side .shopping-cart-widget-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-widget-side .shopping-cart-widget-footer {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid var(--bld-border);
  background: var(--bld-surface, var(--bld-bg));
}

@container bld-cart-drawer (max-block-size: 520px) {
  .wd-heading {
    padding-block: 10px !important;
  }

  .shopping-cart-widget-footer {
    padding-block: 10px !important;
  }

  .woocommerce-mini-cart-item {
    padding-block: 8px !important;
  }
}

@container bld-cart-drawer (max-block-size: 440px) {
  .wd-free-progress-bar,
  .wd-cart-goal,
  .woocommerce-mini-cart__empty-message + .btn {
    display: none !important;
  }

  .woocommerce-mini-cart-item img {
    width: 48px !important;
    height: 48px !important;
  }

  .shopping-cart-widget-footer .woocommerce-mini-cart__total {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }
}

@container bld-cart-drawer (max-block-size: 380px) {
  .wd-heading {
    padding-block: 6px !important;
  }

  .shopping-cart-widget-footer .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .shopping-cart-widget-footer .woocommerce-mini-cart__buttons a.btn-cart {
    display: none !important;
  }

  .shopping-cart-widget-footer .woocommerce-mini-cart__buttons a.checkout {
    width: 100%;
    min-height: 40px !important;
  }
}

/* ============================================================================
 * 13. Compare Page Enhancements & Hub Compare-at-a-Glance Table
 * ============================================================================ */
.bld-compare-table-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.bld-compare-diff-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 36px !important;
  padding: 6px 14px !important;
  border-radius: var(--bld-radius-chip, 999px);
  border: 1px solid var(--bld-border) !important;
  background: var(--bld-surface) !important;
  color: var(--bld-ink-strong) !important;
  font-size: 13px;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.bld-compare-diff-toggle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--bld-ink-muted);
  background: transparent;
}

.bld-compare-diff-toggle.is-active {
  border-color: var(--bld-accent) !important;
  background: var(--bld-accent-soft) !important;
  color: var(--bld-ink-strong) !important;
}

.bld-compare-diff-toggle.is-active .bld-compare-diff-toggle__dot {
  border-color: var(--bld-accent);
  background: var(--bld-accent);
}

.wd-compare-table.bld-compare-highlight-diffs tr[data-differs="true"] :is(th, td) {
  background-color: var(--bld-accent-soft) !important;
}

.bld-compare-best-price {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: var(--bld-radius-chip, 999px);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
}

.bld-compare-glance {
  margin-block: 36px;
}

.bld-compare-glance__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bld-compare-glance__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border: 0;
  font-variant-numeric: tabular-nums;
}

.bld-compare-glance__table :is(th, td) {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--bld-border);
  text-align: start;
  vertical-align: top;
  font-size: 14px;
  color: var(--bld-ink);
}

.bld-compare-glance__table tbody th {
  width: 22%;
  color: var(--bld-ink-muted);
  font-weight: 500;
}

.bld-compare-glance__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--bld-ink-strong);
}

.bld-compare-glance__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--bld-radius-card, 8px);
  background: var(--bld-surface-alt);
  border: 1px solid var(--bld-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bld-compare-glance__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bld-compare-glance__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.bld-compare-glance__price {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bld-ink-strong);
}

/* ============================================================================
 * 14. Predictive search palette (`/`, Cmd/Ctrl+K, header search) — QA-112, L127
 *     Input + one row of tabs (All · Categories · Collections · Brands · Recently viewed) over one scrolling panel:
 *     sections split by hairlines, frameless cover-fit tiles and results, a full-screen sheet on phones.
 *     Tokens only (--bld-*); WoodMart element defaults are neutralised locally.
 * ============================================================================ */
body.bld-search-palette-open {
  overflow: hidden;
}

.bld-search-palette-root[hidden] {
  display: none !important;
}

.bld-search-palette-root {
  --bld-sp-gutter: 16px;
  --bld-sp-ring: var(--bld-accent);
  --bld-sp-hover: color-mix(in srgb, var(--bld-ink-strong) 6%, transparent);
  --bld-sp-ground: var(--bld-card-media-ground, var(--bld-surface-alt));
  --bld-sp-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .bld-search-palette-root {
    --bld-sp-gutter: 28px;
  }
}

.bld-search-palette__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1110;
  background: color-mix(in srgb, var(--bld-surface-ink) 46%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Above WoodMart's timed Magnific popups (1102/1103): the shopper asked for search, a promo must not cover it. */
.bld-search-palette {
  position: fixed;
  inset: 0;
  z-index: 1111;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bld-surface, var(--bld-bg));
  color: var(--bld-ink);
  font-family: var(--bld-font-body, var(--wd-text-font, inherit));
  font-size: 15px;
  line-height: 1.45;
  text-align: start;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.bld-search-palette *,
.bld-search-palette *::before,
.bld-search-palette *::after {
  box-sizing: border-box;
}

.bld-search-palette ::selection {
  background: color-mix(in srgb, var(--bld-accent) 24%, transparent);
  color: var(--bld-ink-strong);
}

/* Desktop: a fixed-size dialog (switching tabs or typing never resizes it); only the panel scrolls. */
@media (min-width: 1024px) {
  .bld-search-palette {
    inset: 0;
    margin: auto;
    width: min(1100px, 92vw);
    height: min(820px, 82vh, calc(100dvh - 48px));
    max-height: none;
    border-radius: calc(var(--bld-radius-card, 10px) + 4px);
    box-shadow:
      0 32px 80px -24px color-mix(in srgb, var(--bld-surface-ink) 42%, transparent),
      0 4px 12px -4px color-mix(in srgb, var(--bld-surface-ink) 14%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bld-search-palette {
    animation: bld-sp-enter 240ms var(--bld-sp-ease);
  }

  .bld-search-palette__backdrop {
    animation: bld-sp-fade 180ms ease-out;
  }
}

@keyframes bld-sp-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bld-sp-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header: the input row (safe-area aware on notched phones) */
.bld-search-palette__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: max(8px, env(safe-area-inset-top)) 8px 4px var(--bld-sp-gutter);
  background: var(--bld-surface, var(--bld-bg));
}

@media (min-width: 1024px) {
  .bld-search-palette__header {
    padding: 10px 12px 4px calc(var(--bld-sp-gutter) - 4px);
  }
}

.bld-search-palette__icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--bld-ink-muted);
}

.bld-search-palette .bld-search-palette__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--bld-ink-strong) !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  caret-color: var(--bld-accent);
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 1024px) {
  .bld-search-palette .bld-search-palette__input {
    font-size: 19px !important;
    height: 52px !important;
  }
}

.bld-search-palette .bld-search-palette__input::placeholder {
  color: var(--bld-ink-muted);
  opacity: 1;
}

.bld-search-palette .bld-search-palette__input::-webkit-search-cancel-button,
.bld-search-palette .bld-search-palette__input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.bld-search-palette .bld-search-palette__clear,
.bld-search-palette .bld-search-palette__close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--bld-radius-btn, 8px) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bld-ink-muted) !important;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.bld-search-palette .bld-search-palette__clear[hidden] {
  display: none !important;
}

.bld-search-palette .bld-search-palette__clear:hover,
.bld-search-palette .bld-search-palette__close:hover {
  background: var(--bld-sp-hover) !important;
  color: var(--bld-ink-strong) !important;
}

.bld-search-palette :is(a, button):focus-visible {
  outline: 2px solid var(--bld-sp-ring) !important;
  outline-offset: 2px;
}

/* Tabs: one row that never wraps (swipes sideways on phones), sentence case, an accent underline on the selected tab */
.bld-search-palette__tabs {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0 calc(var(--bld-sp-gutter) - 10px);
  border-bottom: 1px solid var(--bld-border);
  background: var(--bld-surface, var(--bld-bg));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--bld-sp-gutter);
  scrollbar-width: none;
}

.bld-search-palette__tabs::-webkit-scrollbar {
  display: none;
}

.bld-search-palette__tabs[hidden] {
  display: none;
}

/* Loading: a thin accent sweep between the input and the tabs while the query is in flight */
.bld-search-palette__header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bld-accent), transparent) no-repeat;
  background-size: 36% 100%;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
  z-index: 1;
}

.bld-search-palette.is-loading .bld-search-palette__header::after {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .bld-search-palette.is-loading .bld-search-palette__header::after {
    animation: bld-sp-progress 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
}

@keyframes bld-sp-progress {
  from {
    background-position: -50% 0;
  }
  to {
    background-position: 150% 0;
  }
}

.bld-search-palette .bld-search-palette__tab {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bld-ink-muted) !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color 120ms ease;
}

.bld-search-palette .bld-search-palette__tab::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--bld-accent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 220ms var(--bld-sp-ease);
}

.bld-search-palette .bld-search-palette__tab:hover {
  color: var(--bld-ink-strong) !important;
}

.bld-search-palette .bld-search-palette__tab[aria-selected="true"] {
  color: var(--bld-ink-strong) !important;
  font-weight: 600 !important;
}

.bld-search-palette .bld-search-palette__tab[aria-selected="true"]::after {
  opacity: 1;
  transform: none;
}

.bld-search-palette .bld-search-palette__tab:focus-visible {
  outline-offset: -4px;
  border-radius: var(--bld-radius-btn, 8px) !important;
}

.bld-search-palette__tab-count {
  color: var(--bld-ink-muted);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bld-search-palette__tab-count[hidden] {
  display: none;
}

/* Panel: the one scroller (input + tabs stay put above it) */
.bld-search-palette__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px var(--bld-sp-gutter) 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--bld-ink-strong) 20%, transparent) transparent;
  transition: opacity 120ms ease;
}

.bld-search-palette__body:focus-visible {
  outline: 2px solid var(--bld-sp-ring);
  outline-offset: -2px;
}

.bld-search-palette__body.is-stale {
  opacity: 0.55;
  transition: opacity 200ms ease 160ms;
}

@media (min-width: 1024px) {
  .bld-search-palette__body {
    padding: 8px var(--bld-sp-gutter) 28px;
  }
}

/* Sections: heading + optional "See all", consecutive sections split by one hairline */
.bld-search-palette__section {
  padding: 18px 0 20px;
}

.bld-search-palette__section + .bld-search-palette__section {
  border-top: 1px solid var(--bld-border);
}

.bld-search-palette__section:last-child {
  padding-bottom: 4px;
}

@media (min-width: 1024px) {
  .bld-search-palette__section {
    padding: 22px 0 26px;
  }
}

.bld-search-palette__heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin: 0 0 12px;
}

.bld-search-palette .bld-search-palette__heading {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bld-ink-strong) !important;
  font-family: inherit !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
}

.bld-search-palette .bld-search-palette__see-all,
.bld-search-palette .bld-search-palette__text-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 32px !important;
  margin: 0 !important;
  margin-inline-end: -6px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bld-ink-muted) !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.bld-search-palette .bld-search-palette__see-all:hover,
.bld-search-palette .bld-search-palette__text-btn:hover {
  color: var(--bld-ink-strong) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.bld-search-palette .bld-search-palette__see-all svg {
  transition: transform 180ms var(--bld-sp-ease);
}

.bld-search-palette .bld-search-palette__see-all:hover svg {
  transform: translateX(2px);
}

.bld-search-palette :is(.bld-search-palette__list, .bld-search-palette__products, .bld-search-palette__tiles) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.bld-search-palette :is(.bld-search-palette__list, .bld-search-palette__products, .bld-search-palette__tiles) > li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.bld-search-palette :is(.bld-search-palette__list, .bld-search-palette__products, .bld-search-palette__tiles) > li::before {
  content: none !important;
}

/* Rows: a term name with its product count, a recent search */
.bld-search-palette .bld-search-palette__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--bld-radius-btn, 8px);
  color: var(--bld-ink) !important;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.bld-search-palette .bld-search-palette__row.is-active {
  background: var(--bld-sp-hover);
}

.bld-search-palette.is-keyboard .bld-search-palette__row.is-active {
  outline: 2px solid var(--bld-sp-ring);
  outline-offset: -2px;
}

.bld-search-palette__row-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--bld-ink-muted);
}

.bld-search-palette__row-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bld-search-palette__em {
  color: var(--bld-ink-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* WoodMart styles `mark` as a padded box; an atomic inline would also add break points inside words ("Lamp|shade"). */
.bld-search-palette mark {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  line-height: inherit !important;
  background: none !important;
  color: var(--bld-ink-strong) !important;
  font-weight: 700;
}

.bld-search-palette__count {
  flex: 0 0 auto;
  color: var(--bld-ink-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

/* Name list: terms without photos as a multi-column index (never empty image boxes) */
.bld-search-palette .bld-search-palette__names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  margin-inline: -10px !important;
}

@media (min-width: 600px) {
  .bld-search-palette .bld-search-palette__names {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 20px;
  }
}

/* A long name wraps to a second line instead of losing its distinguishing end ("… under £150") */
.bld-search-palette__names .bld-search-palette__row {
  align-items: baseline;
}

.bld-search-palette__names .bld-search-palette__row-label {
  display: -webkit-box;
  white-space: normal;
  overflow-wrap: break-word;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (min-width: 600px) {
  .bld-search-palette__names .bld-search-palette__row-label {
    -webkit-line-clamp: 2;
  }
}

.bld-search-palette .bld-search-palette__names--after {
  margin-top: 14px !important;
}

/* Chips: recent searches and typed term matches, compact and wrapping */
.bld-search-palette .bld-search-palette__chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.bld-search-palette__chips .bld-search-palette__row {
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bld-surface-alt);
  font-size: 14px;
}

.bld-search-palette__chips .bld-search-palette__row--recent {
  padding-inline-start: 12px;
}

.bld-search-palette__chips .bld-search-palette__row.is-active {
  background: color-mix(in srgb, var(--bld-ink-strong) 9%, var(--bld-surface-alt));
}

.bld-search-palette__chips .bld-search-palette__row-label {
  flex: 0 1 auto;
  max-width: 34ch;
}

/* Tiles: categories, collections, brands and recently viewed products. Two across on phones, four on tablets,
 * five in the dialog; an All-tab preview swipes as one row on phones. Frameless: the photo carries the tile. */
.bld-search-palette .bld-search-palette__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

@media (min-width: 600px) {
  .bld-search-palette .bld-search-palette__tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (min-width: 1024px) {
  .bld-search-palette .bld-search-palette__tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
  }
}

@media (max-width: 599.98px) {
  .bld-search-palette .bld-search-palette__tiles--preview {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 42%;
    gap: 12px;
    margin-inline: calc(-1 * var(--bld-sp-gutter)) !important;
    padding: 2px var(--bld-sp-gutter) 4px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--bld-sp-gutter);
    scrollbar-width: none;
  }

  .bld-search-palette .bld-search-palette__tiles--preview::-webkit-scrollbar {
    display: none;
  }

  .bld-search-palette .bld-search-palette__tiles--preview > li {
    scroll-snap-align: start;
  }
}

.bld-search-palette .bld-search-palette__tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--bld-ink) !important;
  text-decoration: none !important;
  cursor: pointer;
}

.bld-search-palette__tile .bld-search-palette__media {
  aspect-ratio: 4 / 3;
}

.bld-search-palette .bld-search-palette__media.is-contain img {
  padding: 10%;
  object-fit: contain;
}

.bld-search-palette__tile-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.bld-search-palette__tile-name {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--bld-ink-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bld-search-palette__tile.is-active .bld-search-palette__media,
.bld-search-palette__product.is-active .bld-search-palette__media {
  background: color-mix(in srgb, var(--bld-ink-strong) 7%, var(--bld-sp-ground));
}

.bld-search-palette__tile.is-active .bld-search-palette__tile-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bld-search-palette.is-keyboard .bld-search-palette__tile.is-active .bld-search-palette__media {
  outline: 2px solid var(--bld-sp-ring);
  outline-offset: 2px;
}

/* The per-type tab's closing link to the store's hub page */
.bld-search-palette__hub {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--bld-border);
}

.bld-search-palette .bld-search-palette__hub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--bld-ink-strong) !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px;
}

.bld-search-palette .bld-search-palette__hub-link svg {
  transition: transform 180ms var(--bld-sp-ease);
}

.bld-search-palette .bld-search-palette__hub-link:hover svg {
  transform: translateX(3px);
}

.bld-search-palette__panel-grid {
  padding: 18px 0 4px;
}

@media (min-width: 1024px) {
  .bld-search-palette__panel-grid {
    padding-top: 22px;
  }
}

.bld-search-palette__summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 14px;
}

.bld-search-palette .bld-search-palette__summary {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bld-ink-muted) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.bld-search-palette .bld-search-palette__instead {
  color: var(--bld-ink-muted) !important;
  font-size: 14px;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
}

.bld-search-palette .bld-search-palette__instead:hover {
  color: var(--bld-ink-strong) !important;
}

/* Results: frameless rows on phones and tablets, frameless five-up cards in the dialog; mini cards always stack */
.bld-search-palette .bld-search-palette__product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-inline: -8px;
  padding: 8px;
  border-radius: var(--bld-radius-card, 10px);
  color: var(--bld-ink) !important;
  text-decoration: none !important;
  transition: background-color 120ms ease;
}

.bld-search-palette .bld-search-palette__product.is-active {
  background: var(--bld-sp-hover);
}

.bld-search-palette.is-keyboard .bld-search-palette__product.is-active {
  outline: 2px solid var(--bld-sp-ring);
  outline-offset: -2px;
}

.bld-search-palette .bld-search-palette__product--card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.bld-search-palette .bld-search-palette__product--card.is-active {
  background: none;
}

.bld-search-palette.is-keyboard .bld-search-palette__product--card.is-active {
  outline: 0;
}

.bld-search-palette.is-keyboard .bld-search-palette__product--card.is-active .bld-search-palette__media {
  outline: 2px solid var(--bld-sp-ring);
  outline-offset: 2px;
}

.bld-search-palette__product--card.is-active .bld-search-palette__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (min-width: 1024px) {
  .bld-search-palette .bld-search-palette__products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .bld-search-palette .bld-search-palette__product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

  .bld-search-palette .bld-search-palette__product.is-active {
    background: none;
  }

  .bld-search-palette.is-keyboard .bld-search-palette__product.is-active {
    outline: 0;
  }

  .bld-search-palette.is-keyboard .bld-search-palette__product.is-active .bld-search-palette__media {
    outline: 2px solid var(--bld-sp-ring);
    outline-offset: 2px;
  }

  .bld-search-palette__product.is-active .bld-search-palette__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}

.bld-search-palette__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--bld-radius-card, 10px) - 2px);
  background: var(--bld-sp-ground);
  overflow: hidden;
  isolation: isolate;
  transition: background-color 160ms ease;
}

.bld-search-palette .bld-search-palette__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .bld-search-palette .bld-search-palette__media img {
    transition: transform 420ms var(--bld-sp-ease);
  }

  :is(.bld-search-palette__product, .bld-search-palette__tile).is-active .bld-search-palette__media img {
    transform: scale(1.03);
  }
}

.bld-search-palette__media.is-broken img {
  display: none !important;
}

.bld-search-palette__product.is-out .bld-search-palette__media img {
  opacity: 0.6;
}

.bld-search-palette__body-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bld-search-palette__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--bld-ink-strong);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bld-search-palette__product--card .bld-search-palette__title {
  font-size: 14px;
}

@media (min-width: 1024px) {
  .bld-search-palette__title {
    font-size: 14px;
  }
}

.bld-search-palette__sku {
  color: var(--bld-ink-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.bld-search-palette__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.bld-search-palette__price {
  color: var(--bld-ink-strong);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bld-search-palette .bld-search-palette__price del,
.bld-search-palette .bld-search-palette__price del :is(.amount, bdi, .woocommerce-Price-currencySymbol) {
  color: var(--bld-ink-muted) !important;
}

.bld-search-palette .bld-search-palette__price del {
  margin-inline-end: 6px;
  color: var(--bld-ink-muted);
  font-size: 12.5px;
  font-weight: 400;
  opacity: 1;
  text-decoration-thickness: 1px;
}

.bld-search-palette .bld-search-palette__price ins {
  background: none;
  color: var(--bld-ink-strong);
  text-decoration: none;
}

.bld-search-palette__price :is(small, .woocommerce-price-suffix) {
  color: var(--bld-ink-muted);
  font-size: 12px;
  font-weight: 400;
}

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

.bld-search-palette__flag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bld-surface-alt);
  color: var(--bld-ink-muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}

.bld-search-palette__flag--sale {
  background: var(--bld-accent-soft, color-mix(in srgb, var(--bld-accent) 12%, var(--bld-bg)));
  color: var(--bld-ink-strong);
}

/* Status, loading, no-match and no-results guidance */
.bld-search-palette__status {
  margin: 0;
  padding: 18px 0 6px;
  color: var(--bld-ink-muted);
  font-size: 14px;
}

.bld-search-palette__status--strong {
  color: var(--bld-ink);
  font-size: 15px;
}

.bld-search-palette__empty {
  margin: 0;
  padding: 20px 0 22px;
  max-width: 52ch;
}

.bld-search-palette__empty + .bld-search-palette__section {
  border-top: 1px solid var(--bld-border);
}

.bld-search-palette .bld-search-palette__empty-title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--bld-ink-strong) !important;
  font-family: inherit !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.bld-search-palette__empty-hint {
  margin: 0;
  color: var(--bld-ink-muted);
  font-size: 14.5px;
}

@media (min-width: 1024px) {
  .bld-search-palette .bld-search-palette__empty-title {
    font-size: 21px !important;
  }
}

/* Phones and tablets: every control in the panel is a 44px touch target */
@media (max-width: 1023.98px) {
  .bld-search-palette .bld-search-palette__see-all,
  .bld-search-palette .bld-search-palette__text-btn {
    min-height: 44px !important;
    margin-inline-end: -10px !important;
    padding-inline: 10px !important;
  }

  .bld-search-palette__chips .bld-search-palette__row {
    min-height: 44px;
  }
}

/* Footer: keyboard legend (desktop) + "View all N results" (sticky on phones) */
.bld-search-palette__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--bld-sp-gutter) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--bld-border);
  background: var(--bld-surface, var(--bld-bg));
}

.bld-search-palette__hints {
  display: none;
}

@media (max-width: 1023.98px) {
  .bld-search-palette__footer:not(.has-cta) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .bld-search-palette__footer {
    min-height: 56px;
    padding: 8px 12px 8px var(--bld-sp-gutter);
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .bld-search-palette__hints {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    color: var(--bld-ink-muted);
    font-size: 12.5px;
  }
}

.bld-search-palette__hints > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bld-search-palette__hints kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--bld-surface-alt);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--bld-ink-strong) 14%, transparent);
  color: var(--bld-ink-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}

.bld-search-palette__hints span > kbd:last-of-type {
  margin-inline-end: 4px;
}

.bld-search-palette .bld-search-palette__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-inline-start: auto;
  padding: 0 20px;
  border-radius: var(--bld-radius-btn, 8px);
  background: var(--bld-accent);
  color: var(--bld-accent-ink) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 140ms ease;
}

.bld-search-palette .bld-search-palette__all:hover {
  background: var(--bld-accent-hover, var(--bld-accent));
}

.bld-search-palette .bld-search-palette__all svg {
  transition: transform 180ms var(--bld-sp-ease);
}

.bld-search-palette .bld-search-palette__all:hover svg {
  transform: translateX(3px);
}

@media (min-width: 1024px) {
  .bld-search-palette .bld-search-palette__all {
    width: auto;
    min-height: 40px;
    font-size: 14px;
  }
}

/* ============================================================================
 * 15. QA Bug-Hound Dossier #9 Systemic Surface Guards (QA-054, QA-055, QA-058, QA-059d)
 * ============================================================================ */

/* QA-054 / BH4-R2-10 / R3-BH4-04: Clear container-type and sticky-footer stacking contexts unconditionally while shop filter drawer is open so backdrop (400) sits cleanly between page content and drawer (502) */
.website-wrapper:has(.wd-side-hidden.wd-opened, .wp-block-wd-off-sidebar.wd-opened),
.main-page-wrapper:has(.wd-side-hidden.wd-opened, .wp-block-wd-off-sidebar.wd-opened) {
  z-index: auto !important;
  container-type: normal !important;
}

.wp-block-wd-off-sidebar.wd-opened {
  z-index: 502 !important;
}

/* QA-055: Defensive height floor for wd/cover collection cards where WoodMart ignores aspectRatio (non-!important leaves taller heroes untouched) */
.wp-block-wd-cover.wd-bg-parent {
  min-height: 220px;
}

@media (max-width: 768.98px) {
  .wp-block-wd-cover.wd-bg-parent {
    min-height: 170px;
  }
}

/* QA-058: Prevent WoodMart preset text-transform: capitalize from mangling metric units ("350 ml" -> "350 Ml") and CTAs ("Add to basket" -> "Add To Basket") */
.wd-product .wd-entities-title,
.wd-product .wd-entities-title a,
.single-product .product_title,
.wd-add-btn > a,
button.single_add_to_cart_button {
  text-transform: none !important;
}

/* QA-059d: Prevent 2px horizontal overflow of centred mobile header logo */
@media (max-width: 1024px) {
  .whb-header .whb-mobile-center .site-logo,
  .whb-header .whb-mobile-center .wd-logo {
    max-width: min(100%, 192px, 54vw) !important;
    box-sizing: border-box;
  }

  .whb-mobile-center .site-logo img,
  .whb-mobile-center .wd-logo img,
  .whb-header .whb-mobile-center .site-logo img,
  .whb-header .whb-mobile-center .wd-logo img {
    width: auto !important;
    max-width: 100% !important;
    padding-inline: 8px;
    box-sizing: border-box;
  }
}

/* ==========================================================================
 * QA-115 lazy-image placeholders (lane L9). Self-contained section.
 * Below-the-fold imagery is natively lazy (loading="lazy"); until the bytes arrive the box must read as a
 * deliberate tonal surface, never an empty hole. The product-card mat is a ::before layer that lasts until the
 * photo has actually loaded (assets/lazy-mat.js marks the link .bld-lazy-done; no timer), then goes fully
 * transparent (cards stay frameless: no tinted letterbox bars behind contain-fit photos, no tint behind
 * transparent PNGs). A failed photo keeps the mat; the BROKEN_IMAGE_GUARD class hides its glyph. Without JS (no
 * html.bld-lazy-js) there is no mat at all. Nothing generic (logos, payment icons, cut-outs) is ever tinted permanently.
 * Tokens only, sized by aspect-ratio (no layout shift), motion off under prefers-reduced-motion.
 * ========================================================================== */
:root {
  --bld-lazy-base: color-mix(in srgb, var(--bld-surface-ink, var(--bld-ink-strong)) 7%, var(--bld-surface-alt, var(--bld-surface, var(--bld-bg))));
  --bld-lazy-glint: color-mix(in srgb, var(--bld-surface, var(--bld-bg)) 55%, var(--bld-lazy-base));
}

@keyframes bld-lazy-sheen {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

@keyframes bld-lazy-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Product card media: tonal mat + sheen under the photo until it loads (or forever if it fails), then gone. */
body .wd-product .wd-product-thumb .wd-product-img-link,
body .wd-product .product-element-top > a.product-image-link {
  position: relative;
}

html.bld-lazy-js body .wd-product .wd-product-thumb .wd-product-img-link::before,
html.bld-lazy-js body .wd-product .product-element-top > a.product-image-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bld-lazy-base);
  background-image: linear-gradient(105deg, transparent 35%, var(--bld-lazy-glint) 50%, transparent 65%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: bld-lazy-sheen 2.2s ease-in-out 3;
  transition: opacity 0.3s ease-out;
}

html.bld-lazy-js body .wd-product .wd-product-thumb .wd-product-img-link.bld-lazy-done::before,
html.bld-lazy-js body .wd-product .product-element-top > a.product-image-link.bld-lazy-done::before {
  opacity: 0;
  animation: none;
}

body .wd-product .wd-product-thumb .wd-product-img-link img,
body .wd-product .product-element-top > a.product-image-link img {
  position: relative;
  z-index: 1;
}

/* Every card photo is transparent, eager first-row ones included (the photo-framing rule above paints the img with the
 * surface colour, which hid the mat on exactly the cards seen first). The link carries that same surface colour, so a
 * contained photo still sits on it once the mat has gone. */
body .wd-product .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img,
body .wd-product .product-element-top > a.product-image-link img {
  background-color: transparent !important;
}

body .wd-product .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img[loading="lazy"],
body .wd-product .product-element-top > a.product-image-link img[loading="lazy"] {
  animation: bld-lazy-in 0.45s ease-out both;
}

/* Image blocks and link tiles: reserve the box (intrinsic ratio wins once known); fade in, never tinted.
 * A block that sets its own ratio (WoodMart's aspectRatio attribute -> `.wd-<id> img { --wd-aspect-ratio }`) keeps it: this
 * rule outranks WoodMart's `.wd-block-image img { aspect-ratio: var(--wd-aspect-ratio) }`, and an `auto` here let every
 * portrait product photo stretch its tile (ragged collages, brand and department cards at different heights, BH4 28 Nov). */
.wp-block-wd-image {
  --wd-aspect-ratio: initial; /* never a ratio inherited from a cover / slide ancestor: only the block's own img rule sets it */
}

.wp-block-wd-image img:not([width]):not([height]) {
  aspect-ratio: var(--wd-aspect-ratio, auto var(--bld-card-media-ratio, 1 / 1));
}

.wp-block-wd-image img[loading="lazy"],
.buildolia-link-block__img[loading="lazy"] {
  animation: bld-lazy-in 0.45s ease-out both;
}

/* Cover blocks: a light tonal ground under the background photo (visible only if it is slow or fails). */
.wp-block-wd-cover > .wd-block-cover-img {
  background-color: var(--bld-lazy-base);
}

@media (prefers-reduced-motion: reduce) {
  html.bld-lazy-js body .wd-product .wd-product-thumb .wd-product-img-link::before,
  html.bld-lazy-js body .wd-product .product-element-top > a.product-image-link::before,
  body .wd-product .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img[loading="lazy"],
  body .wd-product .product-element-top > a.product-image-link img[loading="lazy"],
  .wp-block-wd-image img[loading="lazy"],
  .buildolia-link-block__img[loading="lazy"] {
    animation: none;
  }
  html.bld-lazy-js body .wd-product .wd-product-thumb .wd-product-img-link::before,
  html.bld-lazy-js body .wd-product .product-element-top > a.product-image-link::before {
    background-image: none;
    transition: none;
  }
}
/* end QA-115 */

/* QA-122 keyboard + contrast (axe-core audit 2026-11-27) ------------------------------------------------ */
/* Inactive checkout steps: WoodMart dims the link to .7 opacity (3.56:1); the muted ink token already marks them inactive */
body:is(.woocommerce-cart, .woocommerce-checkout) .wd-checkout-steps li a {
  opacity: 1 !important;
}

/* Post meta ("Posted by", author) and PDP stock text: AA contrast on every surface */
.wd-post-meta,
.wd-post-meta a,
.wd-post-meta span,
.wd-post-meta .wd-meta-author .author {
  color: var(--bld-ink-muted);
}

.single-product .stock,
.single-product p.stock span {
  color: var(--bld-ink-strong);
}

/* Mega menu: WoodMart only opens dropdowns on :hover, so keyboard users never reached sub-links (WCAG 2.1.1) */
.whb-header .wd-nav-main > li.menu-item-has-children:focus-within > :is(.wd-dropdown, .sub-menu-dropdown),
.whb-header .wd-nav > li.menu-item-has-children:focus-within > :is(.wd-dropdown, .sub-menu-dropdown) {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Header search field had outline:none and no replacement indicator (WCAG 2.4.7) */
.whb-header :is(.wd-search-form, .searchform):focus-within {
  outline: 2px solid var(--bld-accent);
  outline-offset: 0;
}

.whb-header :is(.wd-search-form, .searchform) input[type="text"]:focus-visible {
  outline: 0;
}
/* end QA-122 */

/* ============================================================================
 * L125: the archive facet sidebar in WoodMart's native widget look
 * ============================================================================ */

/* commerce-layouts.ts renders a browsable store's archive filters as a permanent left sidebar (facet-layout.ts, layout "sidebar"):
 * `wd/off-sidebar.bld-facets-sidebar`, inline from 1025px, a drawer below (QA-142). Its groups are WoodMart's own filter blocks (the
 * attribute group IS WoodMart's layered-nav widget); FacetSidebar.php applies the value rules (no empty or rare values, size ladder,
 * useless facets hidden, "Show N more", category branches, brand search) and this section paints them as the native shop widgets of
 * the XTemos demos (founder, 28 Nov): stacked widgets split by a hairline, sentence-case titles, quiet rows, count pills, checkbox rows,
 * an accent price range with a "Price: x — y" line and a real Filter button. Tokens only; no uppercase. */

/* count pills and show-more work wherever a filter group renders (sidebar, drawer, top bar) */
.wd-pf-checkboxes .bld-pf-count {
  flex: 0 0 auto;
  min-width: 30px;
  height: 20px;
  margin-inline-start: auto;
  padding: 0 6px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip);
  color: var(--bld-ink-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wd-pf-checkboxes a.pf-value:hover .bld-pf-count {
  border-color: color-mix(in srgb, var(--bld-ink) 32%, transparent);
  color: var(--bld-ink);
}

.wd-pf-checkboxes li.wd-active > a.pf-value .bld-pf-count,
.wd-pf-categories li.current-cat > a.pf-value .bld-pf-count {
  border-color: var(--bld-accent);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
}

/* a value with nothing in this listing reads as unavailable (FacetSidebar.php removes most of them) */
.wd-pf-checkboxes a.pf-value[data-count="0"] {
  opacity: 0.5;
}

.wd-pf-checkboxes:not(.bld-pf-expanded) li.bld-pf-over,
.wd-pf-checkboxes li.bld-pf-nomatch,
.bld-pf-tree li.bld-pf-closed > ul.children {
  display: none !important;
}

.wd-pf-checkboxes.bld-pf-searching li.bld-pf-over:not(.bld-pf-nomatch) {
  display: flex !important;
}

.wd-pf-checkboxes.bld-pf-searching .bld-pf-more {
  display: none;
}

.wd-pf-checkboxes .bld-pf-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 4px 0 -6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bld-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.wd-pf-checkboxes .bld-pf-more:hover {
  text-decoration-thickness: 2px;
}

/* category branches: one row per category, the chevron after the count, children on the next line */
.bld-pf-tree li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.bld-pf-tree li > a.pf-value {
  flex: 1 1 0;
  min-width: 0;
}

.bld-pf-tree li > ul.children {
  flex: 0 0 100%;
}

.bld-pf-tree li.bld-pf-leaf > a.pf-value {
  margin-inline-end: 32px;
}

.bld-pf-toggle {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 0;
  margin-inline-start: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 1;
  box-shadow: none;
  background: transparent;
  color: var(--bld-ink-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bld-pf-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.bld-pf-toggle[aria-expanded="true"]::before {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.bld-pf-toggle:hover {
  background: color-mix(in srgb, var(--bld-ink) 7%, transparent);
  color: var(--bld-ink);
}

/* brand rows list names: a store's brand picture is a product photo (the brand cards), not a logo, and a 24px product thumbnail
 * beside a name reads as a stray image (the demos' logo grid needs real logos) */
.wd-pf-checkboxes .wd-swatches-brands .wd-swatch {
  display: none;
}

/* brand search ("Find a brand", over 8 brands) */
.bld-pf-search {
  position: relative;
  margin: 0 0 12px;
}

.wd-pf-checkboxes .bld-pf-search-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 42px;
  padding-block: 0;
  padding-inline: 14px 40px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-input);
  background: var(--bld-surface-alt);
  color: var(--bld-ink);
  font-size: 14px;
  box-shadow: none;
}

.wd-pf-checkboxes .bld-pf-search-input::placeholder {
  color: var(--bld-ink-muted);
  opacity: 1;
}

.bld-pf-search::after {
  content: "\f130";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 14px;
  color: var(--bld-ink-muted);
  font-family: "woodmart-font";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .wd-pf-checkboxes .bld-pf-search-input {
    font-size: 16px;
  }
}

/* WoodMart's active-filter strip above the grid (wd/sa-active-filters): removable chips, then a quiet "Clear filters" */
.wd-active-filters.wd-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 22px;
  font-size: inherit;
  line-height: inherit;
}

.wd-active-filters.wd-active-filters .widget_layered_nav_filters {
  order: 1;
  overflow: visible;
  direction: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

.wd-active-filters.wd-active-filters .widget_layered_nav_filters ul {
  display: flex;
  flex-wrap: wrap;
  white-space: normal;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wd-active-filters .widget_layered_nav_filters li {
  margin: 0;
  padding: 0;
}

.wd-active-filters .widget_layered_nav_filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip);
  background: var(--bld-surface-alt);
  color: var(--bld-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: border-color 0.2s ease;
}

.wd-active-filters .widget_layered_nav_filters a::before {
  order: 2;
  margin: 0;
  font-size: 9px;
  color: var(--bld-ink-muted);
}

.wd-active-filters .widget_layered_nav_filters a:hover {
  border-color: color-mix(in srgb, var(--bld-ink) 40%, transparent);
  color: var(--bld-ink);
}

.wd-active-filters.wd-active-filters .wd-clear-filters {
  order: 2;
  padding: 0;
  border: 0;
  border-inline-end: 0;
  --wd-action-icon-size: 0px;
}

.wd-active-filters .wd-clear-filters a {
  color: var(--bld-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wd-active-filters .wd-clear-filters .wd-action-icon {
  display: none;
}

@media (min-width: 1025px) {
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-product-filters {
    display: block;
    margin: 0;
  }

  /* one native widget per facet: no box, a hairline between widgets */
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-checkboxes {
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-checkboxes ~ .wd-pf-checkboxes {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--bld-border);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-title {
    display: block;
    height: auto;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: default;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-title .title-text {
    color: var(--bld-ink);
    font-family: var(--bld-font-body, var(--wd-text-font, inherit));
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
  }

  /* the dropdown chevron and the "selected values" strip of the dropdown skin: the rows already show what is selected */
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-title::after,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-title .wd-pf-results {
    display: none;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown {
    position: static;
    inset: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown::after {
    display: none;
  }

  /* the whole list is on the page: no clipped scroll box (long lists end in "Show N more") */
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown :is(.wd-scroll, .wd-scroll-content) {
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown li + li {
    margin-top: 2px;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown a.pf-value {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 34px;
    padding: 5px 0;
    background: transparent;
    color: var(--bld-ink-muted);
    font-size: 15px;
    line-height: 1.35;
    text-transform: none;
    transition: color 0.2s ease;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown a.pf-value .wd-filter-lable {
    color: inherit !important;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown a.pf-value:hover,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown li.wd-active > a.pf-value,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-categories li.current-cat > a.pf-value {
    background: transparent;
    color: var(--bld-ink);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-dropdown li.wd-active > a.pf-value,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-categories li.current-cat > a.pf-value {
    font-weight: 600;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-categories ul.children {
    margin: 0 0 4px;
    padding-inline-start: 16px;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-categories ul.children a.pf-value {
    padding-inline-start: 0;
    font-size: 14px;
  }

  /* checkbox rows (multi-select facets, availability) and radio rows (single-select facets); swatches and brand logos keep theirs */
  .bld-facets-sidebar:not(.wd-side-hidden) :is(.wd-pf-attributes, .wd-pf-stock) li:not(.wd-swatch-wrap) > a.pf-value::before,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-brands li > a.pf-value::before {
    content: "";
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1.5px solid color-mix(in srgb, var(--bld-ink) 30%, transparent);
    border-radius: 50%;
    background: var(--bld-surface-alt);
    color: transparent;
    font-family: "woodmart-font";
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .bld-pf-multi li:not(.wd-swatch-wrap) > a.pf-value::before,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-brands.bld-pf-multi li > a.pf-value::before {
    content: "\f107";
    border-radius: 4px;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) :is(.wd-pf-attributes, .wd-pf-stock) li:not(.wd-swatch-wrap) > a.pf-value:hover::before,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-brands li > a.pf-value:hover::before {
    border-color: var(--bld-accent);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) :is(.wd-pf-attributes, .wd-pf-stock) li.wd-active:not(.wd-swatch-wrap) > a.pf-value::before,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-brands li.wd-active > a.pf-value::before {
    border-color: var(--bld-accent);
    background: var(--bld-accent);
    color: var(--bld-accent-ink);
    box-shadow: inset 0 0 0 3px var(--bld-surface-alt);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .bld-pf-multi li.wd-active:not(.wd-swatch-wrap) > a.pf-value::before,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-brands.bld-pf-multi li.wd-active > a.pf-value::before {
    box-shadow: none;
  }

  /* colour rows: a 24px swatch with a hairline ring (white and pale swatches stay visible), the label, the count */
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-filter:not(.wd-swatches-brands) .wd-swatch {
    --wd-swatch-size: 24px;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bld-ink) 16%, transparent);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-filter:not(.wd-swatches-brands) .wd-swatch-bg {
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bld-ink) 16%, transparent);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-filter .wd-filter-lable {
    margin: 0;
  }

  /* a colour value without a swatch colour keeps the column: a neutral ring in the swatch place */
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-swatches-filter:not(.wd-swatches-brands):has(li.wd-swatch-wrap) li:not(.wd-swatch-wrap) > a.pf-value::before {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px dashed color-mix(in srgb, var(--bld-ink) 30%, transparent);
    border-radius: 50%;
    background: transparent;
    content: "";
  }


  /* price: a hairline track, the accent range and handles, then "Price: £x — £y" beside a real Filter button */
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .wd-pf-dropdown {
    padding: 6px 8px 0;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .ui-slider-horizontal {
    margin: 0 0 18px;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .ui-slider-horizontal::before {
    background-color: var(--bld-border);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .ui-slider .ui-slider-range,
  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .ui-slider .ui-slider-handle::after {
    background-color: var(--bld-accent);
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .filter_price_slider_amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 -8px;
    padding: 0;
    border: 0;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .price_label {
    order: 1;
    color: var(--bld-ink-muted);
    font-size: 15px;
    line-height: 1.35;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .price_label .bld-pf-price-cap {
    color: var(--bld-ink-muted);
    font-weight: 400;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .price_label :is(.from, .to) {
    color: var(--bld-ink);
    font-weight: 600;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .price_label .from::after {
    content: "\2014";
    margin: 0 0.35em;
    color: var(--bld-ink-muted);
    font-weight: 400;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .filter_price_slider_amount .button {
    order: 2;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: max-content;
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--bld-radius-btn);
    background: color-mix(in srgb, var(--bld-ink) 7%, var(--bld-bg));
    color: var(--bld-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
  }

  .bld-facets-sidebar:not(.wd-side-hidden) .wd-pf-price-range .filter_price_slider_amount .button:hover {
    background: color-mix(in srgb, var(--bld-ink) 12%, var(--bld-bg));
  }

  .bld-facets-sidebar:not(.wd-side-hidden) :is(a, button, input):focus-visible {
    outline: 2px solid var(--bld-ink);
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bld-pf-toggle,
  .bld-pf-toggle::before,
  .wd-pf-checkboxes .bld-pf-count {
    transition: none;
  }
}
/* end L125 */

/* Catalog triage L41: a recently viewed band is a placeholder WoodMart's AJAX fills for returning shoppers. A first-time visitor has no
   history, so the band (its section padding, heading and surface) would show as an empty box: hide the whole band visually while it
   holds no product card. The placeholder stays in the page, so the band appears as soon as the AJAX fills it. */
.wp-block-wd-section:is(.bld-r-recently-viewed, :has(.bld-scope-recently-viewed)):not(:has(.wd-product)) {
  display: none;
}

/* QA-131: unavailable variation options and the disabled Add to basket state */
/* still selectable: choosing it explains why it cannot be added */
.variations_form .wd-swatch.bld-oos {
  opacity: 0.45;
  position: relative;
}
.variations_form .wd-swatch.bld-oos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), currentColor, transparent calc(50% + 1px));
  pointer-events: none;
}
.variations_form select option.bld-oos {
  color: var(--bld-ink-muted, currentColor);
}
.single_add_to_cart_button.bld-atc-oos,
.single_add_to_cart_button.bld-atc-oos:hover {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
  box-shadow: none;
}
.bld-oos-note {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--bld-ink-muted, inherit);
}
.bld-oos-note[hidden] {
  display: none;
}

/* ============================================================================
 * QA-142: premium mobile filter drawer (assets/mobile-facets.js adds the .bld-mf hooks)
 * ============================================================================ */

/* value counts (MobileFacets.php) are pills on every breakpoint: L125 above */

.bld-mf-bar .bld-mf-n:empty,
.bld-mf-sort-label {
  display: none;
}

/* the Filter (n) + Sort bar, only where the filters are a drawer. Everything that sizes the bar also matches the server markup
 * (`.bld-r-catalogue-toolbar`, authored by commerce-layouts.ts), so the bar has its final height at first paint and the grid never
 * shifts when the script runs; `.bld-mf-bar` (added by the script) covers older markup. Sticky placement and the "Sort" label need
 * the script (it measures the sticky header and supplies the localised word). */
@media (max-width: 1024px) {
  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) {
    display: flex;
    /* wraps for the in-listing search field's own line above Filter + Sort on a phone (L161, section below) */
    flex-flow: row wrap !important;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  /* a strip of page background, not a panel holding two pills (the authored toolbar panel is a desktop treatment; doubled classes
   * outrank the block's own `.wd.wd .wd-<id>` style) */
  :is(html.bld-mf-on .bld-mf-bar.bld-mf-bar, .bld-r-catalogue-toolbar.bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) {
    padding: 10px 0;
    border-radius: 0;
    background: var(--bld-bg);
  }

  html.bld-mf-on .bld-mf-bar {
    position: sticky;
    top: var(--bld-mf-top, 0px);
    z-index: 40;
    background: var(--bld-bg);
    box-shadow: 0 0 0 100vmax var(--bld-bg);
    clip-path: inset(0 -100vmax);
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .wd-off-canvas-btn a,
  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .woocommerce-ordering {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--bld-border);
    border-radius: var(--bld-radius-chip);
    background: var(--bld-surface);
    color: var(--bld-ink);
    --wd-action-color: var(--bld-ink);
    --wd-action-color-hover: var(--bld-ink);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .wd-off-canvas-btn :is(.wd-action-text, .bld-mf-n) {
    color: inherit;
    font-weight: 600;
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .wd-off-canvas-btn .bld-mf-n {
    margin-inline-start: 0.3em;
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .woocommerce-ordering {
    position: relative;
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .woocommerce-ordering::after {
    position: static;
    color: inherit;
    font-size: 14px;
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .woocommerce-ordering select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }

  html.bld-mf-on .bld-mf-bar .bld-mf-sort-label {
    display: inline;
  }

  /* the count lives on the drawer's "Show N results" button; the bar is two equal pills */
  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .wd-shop-result-count {
    display: none;
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .wd-off-canvas-btn,
  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) .wd-shop-ordering {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)) > .wp-block-wd-container {
    display: contents;
  }
}

html.bld-mf-lock {
  overflow: hidden;
}

/* the drawer: full-height sheet, scrolling body between a fixed head and a sticky "Show N results" foot */
.bld-mf.wd-side-hidden {
  --wd-side-hidden-w: min(100vw, 440px);
  display: flex !important;
  flex-direction: column;
  padding: 0;
  overflow: hidden !important;
  background: var(--bld-bg);
  color: var(--bld-ink);
}

.bld-mf.wd-side-hidden > .wd-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--bld-gutter, 16px);
  border-bottom: 1px solid var(--bld-border);
}

.bld-mf.wd-side-hidden > .wd-heading .bld-mf-title {
  color: var(--bld-ink-strong);
  font-size: 18px;
  font-weight: 600;
}

.bld-mf.wd-side-hidden > .wd-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px var(--bld-gutter, 16px) 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bld-mf-chips {
  display: none;
}

/* an inline desktop sidebar keeps WoodMart's own controls: the drawer-only additions stay out of it */
.bld-mf:not(.wd-side-hidden) :is(.bld-mf-more, .bld-mf-badge, .bld-mf-price) {
  display: none;
}

.bld-mf.wd-side-hidden > .bld-mf-chips:not([hidden]) {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 8px;
  max-height: 112px;
  padding: 10px var(--bld-gutter, 16px);
  overflow-y: auto;
  border-bottom: 1px solid var(--bld-border);
  background: var(--bld-surface-alt);
}

.bld-mf-chip-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bld-mf.wd-side-hidden .bld-mf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip);
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.bld-mf-chip-x::before {
  content: "\00d7";
  font-size: 18px;
  line-height: 1;
}

.bld-mf.wd-side-hidden .bld-mf-clear {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--bld-ink-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bld-mf.wd-side-hidden .wd-product-filters {
  display: block;
  margin: 0;
}

.bld-mf.wd-side-hidden .wd-pf-checkboxes {
  width: 100%;
  max-width: none;
  padding: 0;
  border-bottom: 1px solid var(--bld-border);
}

.bld-mf.wd-side-hidden .wd-pf-title {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.bld-mf.wd-side-hidden .wd-pf-title .title-text {
  flex: 1 1 auto;
  color: var(--bld-ink-strong);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.bld-mf.wd-side-hidden .wd-pf-title .wd-pf-results {
  display: none;
}

.bld-mf.wd-side-hidden .wd-pf-title::after {
  position: static;
  flex: 0 0 auto;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.bld-mf.wd-side-hidden .bld-mf-open > .wd-pf-title::after {
  transform: rotate(180deg);
}

.bld-mf.wd-side-hidden .bld-mf-badge {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--bld-radius-chip);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.bld-mf.wd-side-hidden .bld-mf-badge[hidden] {
  display: none;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown {
  position: static;
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0 0 14px;
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown::after {
  display: none;
}

.bld-mf.wd-side-hidden .bld-mf-open > .wd-pf-dropdown {
  display: block;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown .wd-scroll,
.bld-mf.wd-side-hidden .wd-pf-dropdown .wd-scroll-content {
  max-height: none;
  overflow: visible;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown li a.pf-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  background: transparent;
  color: var(--bld-ink);
  font-size: 15px;
  text-transform: none;
}

/* checkbox / radio mark */
.bld-mf.wd-side-hidden .wd-pf-dropdown li:not(.wd-swatch-wrap) > a.pf-value::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--bld-ink-muted);
  border-radius: 4px;
  background: var(--bld-surface);
}

.bld-mf.wd-side-hidden .wd-pf-dropdown li:not(.wd-swatch-wrap) > a.pf-value[role="radio"]::before {
  border-radius: 50%;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown li.wd-active:not(.wd-swatch-wrap) > a.pf-value::before {
  border-color: var(--bld-accent);
  background: var(--bld-accent);
  box-shadow: inset 0 0 0 3px var(--bld-surface);
}

.bld-mf.wd-side-hidden .wd-pf-dropdown li.wd-active > a.pf-value {
  color: var(--bld-ink-strong);
  font-weight: 600;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown .bld-pf-count {
  margin-inline-start: auto;
}

.bld-mf.wd-side-hidden .wd-pf-dropdown .children {
  padding-inline-start: 18px;
}

.bld-mf.wd-side-hidden .bld-mf-zero > a.pf-value {
  opacity: 0.45;
  pointer-events: none;
}

.bld-mf.wd-side-hidden li.bld-mf-extra {
  display: none;
}

.bld-mf.wd-side-hidden .bld-mf-more {
  min-height: 44px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bld-ink-strong);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bld-mf-more[hidden] {
  display: none;
}

/* colour as swatches: round chips in a wrapping row */
.bld-mf.wd-side-hidden .wd-swatches-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bld-mf.wd-side-hidden .wd-swatches-filter > li.wd-swatch-wrap {
  margin: 0;
}

.bld-mf.wd-side-hidden .wd-swatches-filter li.wd-swatch-wrap > a.pf-value {
  min-height: 44px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip);
  background: var(--bld-surface);
}

.bld-mf.wd-side-hidden .wd-swatches-filter li.wd-swatch-wrap.wd-active > a.pf-value {
  border-color: var(--bld-ink-strong);
  box-shadow: inset 0 0 0 1px var(--bld-ink-strong);
}

.bld-mf.wd-side-hidden .wd-swatches-filter .wd-swatch {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.bld-mf.wd-side-hidden .wd-swatches-filter .wd-swatch-text {
  display: none;
}

.bld-mf.wd-side-hidden .wd-swatches-filter .wd-filter-lable {
  margin: 0;
}

/* short text values (sizes, materials) as pills, not radio rows */
.bld-mf.wd-side-hidden .wd-swatches-filter > li:not(.wd-swatch-wrap) > a.pf-value {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip);
  background: var(--bld-surface);
}

.bld-mf.wd-side-hidden .wd-swatches-filter > li:not(.wd-swatch-wrap) > a.pf-value::before {
  display: none;
}

.bld-mf.wd-side-hidden .wd-swatches-filter > li.wd-active:not(.wd-swatch-wrap) > a.pf-value {
  border-color: var(--bld-ink-strong);
  box-shadow: inset 0 0 0 1px var(--bld-ink-strong);
}

/* L125: the branch chevron is a 44px target in the drawer, apart from the row link */
.bld-mf.wd-side-hidden .bld-pf-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-inline-start: 0;
}

/* L125: in a chip (colour, short values) the count is plain text, not a pill inside a pill */
.bld-mf.wd-side-hidden .wd-swatches-filter:not(.wd-swatches-brands) > li > a.pf-value .bld-pf-count {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bld-ink-muted);
  font-size: 13px;
  line-height: 1;
}

/* L125: brands are rows like the desktop sidebar (checkbox, name, count pill): long names do not chip well */
.bld-mf.wd-side-hidden .wd-swatches-filter.wd-swatches-brands {
  display: block;
}

.bld-mf.wd-side-hidden .wd-swatches-filter.wd-swatches-brands > li > a.pf-value {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bld-mf.wd-side-hidden .wd-swatches-filter.wd-swatches-brands > li > a.pf-value::before {
  display: block;
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--bld-ink-muted);
  border-radius: 4px;
  background: var(--bld-surface);
}

.bld-mf.wd-side-hidden .wd-swatches-filter.wd-swatches-brands > li.wd-active > a.pf-value::before {
  border-color: var(--bld-accent);
  background: var(--bld-accent);
  box-shadow: inset 0 0 0 3px var(--bld-surface);
}

/* price: inputs over the range slider; the foot button applies */
.bld-mf-price {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.bld-mf-price-field {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  color: var(--bld-ink-muted);
  font-size: 13px;
}

.bld-mf-price-sym {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 12px;
  display: flex;
  align-items: center;
  height: 48px;
  color: var(--bld-ink-muted);
}

.bld-mf .bld-mf-price-input {
  width: 100%;
  height: 48px;
  padding-block: 0;
  padding-inline: 28px 12px;
  line-height: normal;
  text-align: start;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-input);
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  font-size: 16px;
}

.bld-mf .bld-mf-price-input::placeholder {
  color: var(--bld-ink-muted);
  opacity: 1;
}

/* WooCommerce's amount row only holds the hidden min/max inputs here: no rule of its own (it drew a second separator) */
.bld-mf.wd-side-hidden .filter_price_slider_amount {
  margin: 0;
  padding: 0;
  border: 0;
}

.bld-mf.wd-side-hidden .filter_price_slider_amount .button,
.bld-mf.wd-side-hidden .filter_price_slider_amount .price_label {
  display: none !important;
}

.bld-mf.wd-side-hidden .price_slider_widget {
  margin: 8px 12px 20px;
}

.bld-mf.wd-side-hidden .price_slider_widget .ui-slider-handle {
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border: 2px solid var(--bld-accent);
  border-radius: 50%;
  background: var(--bld-surface);
  box-shadow: none;
}

.bld-mf.wd-side-hidden .price_slider_widget .ui-slider-handle::before,
.bld-mf.wd-side-hidden .price_slider_widget .ui-slider-handle::after {
  content: none;
}

.bld-mf.wd-side-hidden .price_slider_widget .ui-slider-range {
  background: var(--bld-accent);
}

.bld-mf.wd-side-hidden > .bld-mf-foot {
  flex: 0 0 auto;
  padding: 12px var(--bld-gutter, 16px) calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bld-border);
  background: var(--bld-bg);
  box-shadow: 0 -6px 16px color-mix(in srgb, var(--bld-ink-strong) 8%, transparent);
}

.bld-mf-foot {
  display: none;
}

.bld-mf.wd-side-hidden > .bld-mf-foot {
  display: block;
}

.bld-mf.wd-side-hidden .bld-mf-apply {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--bld-radius-btn);
  background: var(--bld-accent);
  color: var(--bld-accent-ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.bld-mf.wd-side-hidden .bld-mf-apply.is-loading {
  opacity: 0.7;
}

.bld-mf.wd-side-hidden .bld-mf-apply.is-empty {
  background: var(--bld-surface-alt);
  color: var(--bld-ink-muted);
  cursor: not-allowed;
}

.bld-mf-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.bld-mf.wd-side-hidden :is(a, button, input, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--bld-ink-strong);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bld-mf.wd-side-hidden .wd-pf-title::after {
    transition: none;
  }
}
/* end QA-142 */

/* ============================================================================
 * 15. Search results page (QA-133): query heading, refine field, zero-results help. Tokens only.
 * ============================================================================ */
.bld-serp .bld-search-head .wd-woo-page-title .entry-title {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.bld-serp-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 4px 0 0;
}

.bld-serp-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-input);
  background: transparent;
  color: inherit;
  font-size: 16px;
  box-shadow: none;
}

.bld-serp-form input[type="search"]:focus-visible {
  outline: 2px solid var(--bld-accent);
  outline-offset: 1px;
}

.bld-serp-form button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--bld-radius-btn);
  background: var(--bld-ink-strong);
  color: var(--bld-surface);
  font-weight: 600;
  cursor: pointer;
}

.bld-serp-empty {
  align-self: flex-start;
  width: 100%;
  max-width: 720px;
  margin: 8px 0 48px;
  padding: 8px 0;
}

.bld-serp-empty p {
  margin: 0 0 12px;
}

.bld-serp-empty__title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}

.bld-serp-empty__hint,
.bld-serp-empty__lead {
  color: var(--bld-ink-muted);
}

.bld-serp-empty__dym[hidden] {
  display: none;
}

.bld-serp-empty__dym a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.bld-serp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bld-serp-chips li {
  margin: 0;
}

.bld-serp-chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--bld-border);
  border-radius: var(--bld-radius-chip);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.bld-serp-chips a:hover {
  border-color: currentColor;
}

.bld-serp-count {
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .bld-serp-form button {
    padding: 0 16px;
  }
}

/* ============================================================================
 * QA-139 (L48 items 9, 11, 20; L49 item 1): single-card cart summary, content-driven opener stages, no empty recently-viewed cards
 * ========================================================================== */

/* Cart summary: ONE card. WoodMart nests .cart-totals-inner inside .cart_totals and both are painted (the rule above here, plus the
   commerce-skin-twp preset's inner panel), so the inner one is flat. */
body.woocommerce-cart .cart-totals-inner .cart_totals,
body.woocommerce-cart .cart_totals .cart-totals-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.woocommerce-cart .cart_totals table.shop_table {
  display: block;
  border: 0;
  margin: 16px 0 0;
  background: transparent;
}

body.woocommerce-cart .cart_totals table.shop_table tbody {
  display: block;
}

/* label left, value right on ONE row at every width (WooCommerce's responsive table stacks them in a column under 769px), one hairline
   between rows: the row draws it (as the commerce skin does), never the cells, so no doubled or broken rules */
body.woocommerce-cart .cart_totals table.shop_table tr {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--bld-border);
}

body.woocommerce-cart .cart_totals table.shop_table tr:first-child {
  border-top: 0;
  padding-top: 0;
}

body.woocommerce-cart .cart_totals table.shop_table :is(th, td) {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  flex: 1 1 auto;
  text-align: start;
}

body.woocommerce-cart .cart_totals table.shop_table td {
  min-width: 0;
  margin-inline-start: auto;
  text-align: end;
}

body.woocommerce-cart .cart_totals table.shop_table td::before {
  content: none;
  display: none;
}

/* the delivery methods take the full row under their label */
body.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals > td {
  flex: 1 1 100%;
}

@media (max-width: 768.98px) {
  /* the coupon is one compact row (field + apply), not a dashed expanded box pushing the checkout button a screen down; the
     screen-reader label stays in the accessibility tree */
  body.woocommerce-cart .woocommerce-cart-form .actions .coupon,
  body.woocommerce-cart .cart-actions .coupon {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    border: 0;
    padding: 0;
    margin: 0 0 12px;
    background: transparent;
  }

  body.woocommerce-cart .coupon :is(h3, .wd-coupon-title),
  body.woocommerce-cart .coupon label:not(.screen-reader-text) {
    display: none;
  }

  body.woocommerce-cart .coupon input.input-text {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  body.woocommerce-cart .coupon .button {
    flex: 0 0 auto;
    width: auto;
  }

  /* the checkout button stays in the first screen: pinned to the viewport bottom while the basket is on screen (.cart_totals in the
     selector outranks the commerce skin's `body .cart_totals .wc-proceed-to-checkout { padding: 0 }`) */
  body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bld-surface, var(--bld-bg));
    border-top: 1px solid var(--bld-border);
  }

  body.woocommerce-cart {
    padding-bottom: 76px;
  }

  /* WoodMart's back-to-top button sits above the pinned bar, never over the checkout button */
  body.woocommerce-cart .scrollToTop {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* Split hero product tiles. The linked photo + caption identifies the generated row on existing pages.
 * Use the copy panel's available width so the tiles wrap when three readable columns cannot fit. */
@media (min-width: 769px) {
  .bld-v-wm-starter-plants-hero-split .wp-block-wd-container.wd-hide-sm.wd-dir-row:has(> .wp-block-wd-container > .wp-block-wd-image + .wp-block-wd-paragraph > a) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
    gap: 16px;
    width: min(100%, 464px);
  }

  .bld-v-wm-starter-plants-hero-split .wp-block-wd-container.wd-hide-sm.wd-dir-row > .wp-block-wd-container:has(> .wp-block-wd-image + .wp-block-wd-paragraph > a),
  .bld-v-wm-starter-plants-hero-split .wp-block-wd-container.wd-hide-sm.wd-dir-row > .wp-block-wd-container > .wp-block-wd-image:has(+ .wp-block-wd-paragraph > a) {
    --wd-width: 100%;
    --wd-img-width: 100%;
  }

  .bld-v-wm-starter-plants-hero-split .wp-block-wd-container.wd-hide-sm.wd-dir-row > .wp-block-wd-container > .wp-block-wd-image + .wp-block-wd-paragraph {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .bld-v-wm-starter-plants-hero-split .wp-block-wd-container.wd-hide-sm.wd-dir-row > .wp-block-wd-container > .wp-block-wd-image + .wp-block-wd-paragraph > a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* Opener stages (hero-polish adds .bld-opener-stage): the height attribute is a MINIMUM, the content decides the rest (WoodMart's own `.wd.wd .wd-<id>` rule is (0,3,0), hence the repeated class), so a taller
   hero + department list is never clipped (About / Contact at 1440). Photo crops keep their subject: object-position centre-top. */
@media (min-width: 769px) {
  .wp-block-wd-cover.bld-opener-stage.bld-opener-stage.bld-opener-stage {
    height: auto;
    min-height: 440px;
    padding-block: clamp(48px, 5vw, 80px);
    box-sizing: border-box;
  }

  .wp-block-wd-cover.bld-opener-stage.bld-opener-stage.bld-opener-stage--home {
    min-height: 600px;
  }

  /* archive openers are a compact title band: the first product row sits in the first screen (about 30vh) */
  .wp-block-wd-cover.bld-opener-stage.bld-opener-stage.bld-opener-stage--shop {
    min-height: 0;
    padding-block: clamp(24px, 3vw, 40px);
  }
}

.wp-block-wd-cover.bld-opener-stage.bld-opener-stage.bld-opener-stage .wd-block-cover-img img {
  object-position: 50% 30%;
}

/* L49-01: the shop / search archive opener is a title band on phones too */
@media (max-width: 768.98px) {
  .wp-block-wd-cover.bld-opener-stage.bld-opener-stage.bld-opener-stage--shop {
    min-height: 0;
    height: auto;
  }
}

/* QA-139 item 20: a recently viewed band needs real, imaged cards: two or more products, and a card WoodMart has not filled
   (no image yet) never shows as a blank box. Skeletons belong to the loading state only. The band is a WoodMart carousel, where
   every card sits alone in its own .wd-carousel-item, so "two or more" counts carousel items as well as grid siblings, and an
   image-less card hides its whole slide (never an empty slot). */
.wp-block-wd-section:is(.bld-r-recently-viewed, :has(.bld-scope-recently-viewed)):not(:has(:is(.wd-product ~ .wd-product, .wd-carousel-item ~ .wd-carousel-item .wd-product))) {
  display: none;
}

:is(.bld-r-recently-viewed, .bld-scope-recently-viewed) :is(.wd-carousel-item:not(:has(img)), .wd-product:not(:has(img))) {
  display: none;
}

/* QA-139 item 10: the buy row under a product spotlight: price + add-to-cart only (photo, name and specs are shown above). The block
   pins WoodMart's fw-button card (shard-02 buyRow), whose add-to-cart sits in .product-element-bottom; quick / button / tiled cards
   keep it inside the photo area, which is hidden here. One left-aligned row under the spec rows; it wraps on a narrow column. */
/* QA-139b review: the row is card-sized wherever it lands; a full-width band never stretches price + button into a 1200px bar */
.wd-products-element.bld-buy-row {
  width: 100%;
  max-width: 420px;
}

.bld-buy-row .wd-product {
  --wd-prod-bg: transparent;
  text-align: start;
}

.bld-buy-row .wd-product .product-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.bld-buy-row .wd-product :is(.product-element-top, .wd-product-card-bg, .wd-product-card-hover, .wd-entities-title, .wd-product-cats, .wd-product-brands-links, .product-labels, .wd-rating-block, .star-rating, .wd-product-countdown, .wd-product-sku, [class*="wd-swatches"]) {
  display: none;
}

/* the card rule above forces `.product-element-bottom` to a flex column with !important; the buy row unwraps it into the row */
.bld-buy-row .wd-product :is(.product-element-bottom, .wrap-price) {
  display: contents !important;
}

.bld-buy-row .wd-product .price {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.bld-buy-row .wd-product .wd-add-btn {
  margin: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* QA-139b (a): the checkout "Your order" summary is ONE card. `.checkout-order-review` is the card; WoodMart's inner wrappers and the
   review table inside it are flat, so the summary is no longer a card in a card in a card. */
body.woocommerce-checkout form.woocommerce-checkout > .checkout-order-review :is(.checkout-order-review-inner, #order_review, .woocommerce-checkout-review-order, .woocommerce-checkout-review-order-table) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* QA-139b (b): the shop opener on a phone is a compact band (about a third of the screen): tight padding, a two-line lead, and the
   department list one horizontally scrollable row of chips instead of a stacked list. */
@media (max-width: 768.98px) {
  .wp-block-wd-cover.bld-opener-stage.bld-opener-stage.bld-opener-stage--shop {
    padding-block: 16px;
    max-height: 35vh;
    overflow: hidden;
  }

  .bld-opener-stage--shop .wp-block-wd-paragraph {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bld-opener-stage--shop :is(.wp-block-wd-list, ul) {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .bld-opener-stage--shop :is(.wp-block-wd-list, ul)::-webkit-scrollbar {
    display: none;
  }

  .bld-opener-stage--shop :is(.wp-block-wd-list, ul) > :is(li, .wp-block-wd-list-item) {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--bld-border);
    border-radius: 999px;
  }
}

/* QA-139b (c): the subcategory band before the grid is compact: tight padding, one horizontal scroll row of tiles on phones. The tiles
   keep the store's plate ratio and contain-fit (review: a capped <img> inside the square plate left an empty grey box on bagkits). */
.wp-block-wd-section.bld-r-child-and-selected-grandchild-archives {
  padding-block: clamp(12px, 1.6vw, 24px);
}

@media (max-width: 768.98px) {
  .bld-r-child-and-selected-grandchild-archives .wd-cats {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .bld-r-child-and-selected-grandchild-archives .wd-cats > .category-grid-item {
    flex: 0 0 auto;
    width: 42vw;
    max-width: 180px;
    scroll-snap-align: start;
  }
}

/* ============================================================================
 * L129 (founder 28 Nov 2026): the listing toolbar and the in-listing search.
 * The WoodMart demo toolbar ("Show 24 / 48 / 96", the list / 2 / 3 / 4 view switcher, the sort; blocks from commerce-layouts.ts
 * archiveDisplayControls) in the store's ink, sentence case, and the search field ListingSearch.php prints above the toolbar.
 * ========================================================================== */

/* "Show: 24 / 48 / 96": WoodMart's grey links measured under 4.5:1 (rendered_low_contrast, earringzone round 4); the store's muted ink
   (7.5:1 on white, AAA) for the choices and the strong ink + weight for the current one (the AAA block above no longer flattens both).
   `body` outranks WoodMart's own sheet for the block, which a run-time render (ListingToolbar::completeToolbar) prints inside <body>,
   after this one (L161 review: the grey #767676 and WoodMart's `0 7px` link padding won the tie there) */
body .wd-products-per-page {
  --wd-link-color: var(--bld-ink-muted);
  --wd-link-color-hover: var(--bld-ink-strong);
  color: var(--bld-ink-muted);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

/* inline-flex drops the whitespace WoodMart prints before the label's ":" ("Show :" -> "Show:") */
body .wd-products-per-page .per-page-title {
  display: inline-flex;
  margin-inline-end: 4px;
  color: var(--bld-ink);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

body .wd-products-per-page a {
  padding: 4px 6px;
  font-variant-numeric: tabular-nums;
}

body .wd-products-per-page a.current-variation {
  color: var(--bld-ink-strong);
  font-weight: 600;
}

body .wd-products-per-page .per-page-border:after {
  color: color-mix(in srgb, var(--bld-ink-muted) 55%, var(--bld-bg));
}

/* the view switcher: idle icons at a 3:1 component contrast (WoodMart's gray-300 is 1.9:1), the active one in the strong ink */
.bld-r-catalogue-toolbar .wd-products-shop-view {
  --wd-link-color: color-mix(in srgb, var(--bld-ink-muted) 72%, var(--bld-bg));
  --wd-link-color-hover: var(--bld-ink-strong);
  gap: 4px;
}

.bld-r-catalogue-toolbar .wd-products-shop-view a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.bld-r-catalogue-toolbar .wd-products-shop-view a.current-variation {
  color: var(--bld-ink-strong);
}

/* no `per_row` / `shop_view` in the URL: WoodMart marks no icon; the one matching the grid's own columns is the active view */
body:has(.wd-products[data-source="main_loop"][data-columns="2"]) .wd-products-shop-view:not(:has(.current-variation)) .per-row-2,
body:has(.wd-products[data-source="main_loop"][data-columns="3"]) .wd-products-shop-view:not(:has(.current-variation)) .per-row-3,
body:has(.wd-products[data-source="main_loop"][data-columns="4"]) .wd-products-shop-view:not(:has(.current-variation)) .per-row-4 {
  color: var(--bld-ink-strong);
}

.bld-r-catalogue-toolbar .wd-products-shop-view a:focus-visible,
.bld-r-catalogue-toolbar .wd-products-per-page a:focus-visible {
  outline: 2px solid var(--bld-accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------------------------------------------------------------
 * L161 (founder 28 Nov 2026: the widgets missing, "a search box alone on its own half-empty row"): ONE toolbar composition for every
 * listing, whatever the layout's age (ListingToolbar renders the display controls into an older row, ListingSearch prints the field).
 * Desktop: the WoodMart demo row, [Filter] [count] ......... [Show 24 / 48 / 96] [list / 2 / 3 / 4] [sort]. The in-listing field
 *   - heads the permanent facet sidebar where there is one (`.bld-ls--side`; the toolbar copy `.bld-ls--bar` is then hidden);
 *   - otherwise joins the row between the count and the controls when the row is at least 1080px wide (a container query on the
 *     row), and takes its own full line above the row when it is narrower, never a half-empty one.
 * Tablet / phone: the field, then the Filter + Sort bar (one line from 600px); on a phone only the bar sticks under the header.
 * The row keeps the generator's two groups, [Filter][count] and [Show][view][sort]; the field is the row's third child.
 * -------------------------------------------------------------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .bld-r-catalogue-toolbar.bld-r-catalogue-toolbar {
    container: bld-toolbar / inline-size;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 24px;
    row-gap: 14px;
  }

  /* [Filter] [count] */
  .bld-r-catalogue-toolbar > .wp-block-wd-container:not(:has(.wd-shop-ordering)) {
    order: 0;
  }

  /* [Show 24 / 48 / 96] [list / 2 / 3 / 4] [sort]: one unbreakable group at the end of the row; when the row is too narrow for the
     count beside it, the whole group takes the next line, still on the right (never the sort stranded alone, L161 review). The doubled
     class outranks WoodMart's per-block `.wd.wd .wd-<id> { flex-wrap: wrap }`, printed after this sheet */
  .bld-r-catalogue-toolbar.bld-r-catalogue-toolbar > .wp-block-wd-container:has(.wd-shop-ordering) {
    order: 2;
    flex-wrap: nowrap;
    column-gap: 20px;
    margin-inline-start: auto;
  }

  .bld-r-catalogue-toolbar :is(.wd-shop-prod-per-page, .wd-shop-view) {
    margin: 0;
  }

  .bld-r-catalogue-toolbar > .bld-ls {
    order: -1;
    flex: 1 0 100%;
  }

  /* the sidebar carries the field on desktop: the toolbar copy is the tablet / phone one (also when it was printed without its
     `bld-ls--bar` class: the off-canvas row holds the sidebar copy, whatever the render order) */
  .bld-ls--bar,
  .wp-block-wd-off-canvas:has(.bld-ls--side) .bld-r-catalogue-toolbar > .bld-ls {
    display: none;
  }

  .bld-facets-sidebar .bld-ls--side {
    margin: 0 0 28px;
  }
}

/* no sidebar and room for it: the field joins the row between the count and the display controls */
@container bld-toolbar (min-width: 1080px) {
  .bld-r-catalogue-toolbar > .bld-ls {
    order: 1;
    flex: 1 1 220px;
    max-width: 400px;
  }
}

@media (max-width: 1024px) {
  .bld-ls--side {
    display: none;
  }

  .bld-r-catalogue-toolbar > .bld-ls {
    order: -1;
    flex: 1 0 100%;
  }

  /* only the Filter + Sort line sticks: the bar's sticky top sits one field line (the 46px field + the bar's 12px gap) above the
     header's bottom, so the field slides under the header */
  html.bld-mf-on .bld-mf-bar.bld-mf-bar:has(> .bld-ls) {
    top: calc(var(--bld-mf-top, 0px) - 58px);
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)):has(> .bld-ls) {
    flex-wrap: nowrap !important;
  }

  .bld-r-catalogue-toolbar > .bld-ls {
    order: 0;
    flex: 1 1 260px;
  }

  html.bld-mf-on .bld-mf-bar.bld-mf-bar:has(> .bld-ls) {
    top: var(--bld-mf-top, 0px);
  }

  :is(html.bld-mf-on .bld-mf-bar, .bld-r-catalogue-toolbar:has(.wd-off-canvas-btn)):has(> .bld-ls) :is(.wd-off-canvas-btn, .wd-shop-ordering) {
    flex: 0 0 auto;
  }
}

/* L161 (founder rule: no uppercase labels, eyebrows or kickers, in any language). Stores applied before the generator dropped them
   still carry uppercase in their saved blocks and options: the archive breadcrumb kicker (`tpTextTransform: uppercase` + 1.6px
   tracking, a per-block `.wd.wd .wd-<id>` rule that outranks a plain one), WoodMart's button default (`var(--btn-transform,
   uppercase)`: "Load more products", band buttons such as "Shop by type") and eyebrow paragraphs / titles in page bands ("SHOP PER
   SOORT", "CHOOSE A TYPE"). Sentence case and normal tracking on every store and page, re-applied or not (the generator writes the
   same for the trail and the buttons: commerce-layouts.ts breadcrumbKicker, storefront-css.ts BUTTON_RULES). */
body :is(.wd-breadcrumbs, .woocommerce-breadcrumb),
body :is(.wd-breadcrumbs, .woocommerce-breadcrumb) :is(a, span) {
  text-transform: none !important;
  letter-spacing: normal !important;
}

body {
  --btn-transform: none;
  --btn-default-transform: none;
  --btn-accented-transform: none;
}

body :is(button, .button, .btn, .wd-button, .wp-element-button, input[type=submit], input[type=button], input[type=reset]) {
  text-transform: none;
  letter-spacing: normal;
}

body .wd-page-content .wp-block-wd-paragraph {
  text-transform: none !important;
}

/* an eyebrow (a paragraph right above a heading) loses its capitals' tracking too; display paragraphs keep their own tracking */
body .wd-page-content .wp-block-wd-paragraph:has(+ :is(.wp-block-wd-title, .wd-el-title, h1, h2, h3)) {
  letter-spacing: normal !important;
}

body .wd-page-content :is(.wp-block-wd-title, .wd-el-title) {
  text-transform: none !important;
}

/* the in-listing search field: the store's form shape (the header search's radius) */
.bld-ls {
  min-width: 0;
  margin: 0;
}

.bld-ls__form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
}

.bld-ls__icon {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--bld-ink-muted);
  pointer-events: none;
}

.bld-ls .bld-ls__input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 44px 0 42px;
  border: 1px solid var(--bld-border);
  border-radius: var(--wd-form-brd-radius, var(--bld-radius-btn, 8px));
  background: var(--bld-surface);
  color: var(--bld-ink-strong);
  font-size: 15px;
  line-height: 1.3;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.bld-ls .bld-ls__input::placeholder {
  color: var(--bld-ink-muted);
  opacity: 1;
  text-overflow: ellipsis;
}

/* the clear button shows only with a term: an empty field gives its room back to the placeholder (a 25% sidebar is narrow) */
.bld-ls .bld-ls__input:placeholder-shown {
  padding-inline-end: 14px;
  text-overflow: ellipsis;
}

.bld-ls .bld-ls__input::-webkit-search-cancel-button,
.bld-ls .bld-ls__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.bld-ls .bld-ls__input:focus {
  border-color: var(--bld-ink-strong);
  outline: 2px solid color-mix(in srgb, var(--bld-accent) 35%, transparent);
  outline-offset: 0;
}

.bld-ls--active .bld-ls__input {
  border-color: color-mix(in srgb, var(--bld-ink-strong) 45%, var(--bld-bg));
}

.bld-ls__clear {
  position: absolute;
  inset-inline-end: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--bld-radius-btn, 8px);
  color: var(--bld-ink-muted);
}

.bld-ls__clear[hidden] {
  display: none;
}

.bld-ls__clear:hover,
.bld-ls__clear:focus-visible {
  color: var(--bld-ink-strong);
}

@media (min-width: 1025px) {
  .bld-ls .bld-ls__input {
    height: 42px;
    min-height: 42px;
    padding-inline-start: 40px;
    font-size: 14px;
  }

  .bld-ls__icon {
    inset-inline-start: 13px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 1024px) {
  /* 16px: iOS Safari zooms into any smaller input; in the bar the field takes the Filter and Sort pills' shape */
  .bld-ls .bld-ls__input {
    font-size: 16px;
  }

  .bld-r-catalogue-toolbar > .bld-ls .bld-ls__input {
    border-radius: var(--bld-radius-chip, var(--wd-form-brd-radius, 8px));
    padding-inline-start: 46px;
  }

  .bld-r-catalogue-toolbar > .bld-ls .bld-ls__icon {
    inset-inline-start: 18px;
  }
}

/* no product matches the term: say so, and the one way back */
.bld-ls-empty {
  padding: clamp(28px, 4vw, 48px) 0;
  text-align: start;
}

.bld-ls-empty__title {
  margin: 0 0 6px;
  color: var(--bld-ink-strong);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.bld-ls-empty__hint {
  margin: 0 0 18px;
  color: var(--bld-ink-muted);
}

/* the one way back, in the store's control shape (not WoodMart's grey default button) and sentence case whatever the store's
   button style (founder: no uppercase or title-case labels) */
.bld-ls-empty a.bld-ls-empty__clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--bld-ink-strong);
  border-radius: var(--bld-radius-btn, 8px);
  background: transparent;
  color: var(--bld-ink-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.bld-ls-empty a.bld-ls-empty__clear:hover,
.bld-ls-empty a.bld-ls-empty__clear:focus-visible {
  background: var(--bld-ink-strong);
  color: var(--bld-bg);
}

/* a search with no match leaves the toolbar holding only the Filter button: no tinted panel around it */
body.bld-listing-search .bld-r-catalogue-toolbar.bld-r-catalogue-toolbar:not(:has(.woocommerce-ordering)) {
  padding-inline: 0;
  background: none;
}

/* the listing grid keeps its own columns and starts at the left when a search or filter leaves one or two products (the
   ProductScopeBands rule that narrows a 1-2 card band to two centred columns is for bands, not for the listing itself) */
.wd-products-element .wd-products.wd-grid-g[data-source="main_loop"]:is(:has(> .wd-col:first-child:last-child), :has(> .wd-col:first-child:nth-last-child(2))) {
  max-width: none;
  margin-inline: 0;
}

.wd-products-element .wd-products.wd-grid-g[data-source="main_loop"][data-columns="3"]:is(:has(> .wd-col:first-child:last-child), :has(> .wd-col:first-child:nth-last-child(2))) {
  --wd-col-lg: 3 !important;
}

.wd-products-element .wd-products.wd-grid-g[data-source="main_loop"][data-columns="4"]:is(:has(> .wd-col:first-child:last-child), :has(> .wd-col:first-child:nth-last-child(2))) {
  --wd-col-lg: 4 !important;
}

/* UI labels use the reading face, including where WoodMart inherits a display face. */
:is(.wd-product-filters, .widget, .woocommerce-tabs, .woocommerce-breadcrumb,
    .wd-side-hidden, .woocommerce-cart, .woocommerce-checkout) {
  --wd-title-font: var(--bld-font-body, var(--wd-text-font, sans-serif));
  --wd-widget-title-font: var(--bld-font-body, var(--wd-text-font, sans-serif));
}

/* Caps-only display faces remain on major headings, but not product and interface titles. */
.bld-display-caps :is(h3, h4, h5, h6, .wd-entities-title):not(.bld-footer-wordmark),
.bld-display-caps .bld-chrome-footer.bld-ft-h-title .wp-block-wd-title.bld-footer-heading {
  font-family: var(--bld-font-body, var(--wd-text-font, sans-serif)) !important;
}
