/* engel-product.css: rules moved out of engel-components.css on 18 Nov 2026 (CSS split).
   Loaded only on this page type (functions.php, engel_page_styles), printed right after engel-components.css. */
.store-search {
  display: flex;
  gap: var(--space-fixed-xs);
}
.store-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 5.2rem;
  box-sizing: border-box;
  padding: 0 1.6rem;
  border: 1px solid var(--clr-white);
  border-radius: var(--field-radius);
  background-color: var(--clr-white);
  color: var(--clr-ink);
  /* Was var(--font), a stale Bricks variable ('Neue Haas Unica', 'Archivo'; Neue Haas isn't
     loaded, so it rendered Archivo). --font-ui is Archivo: same look (14 Nov 2026). */
  font-family: var(--font-ui);
  font-size: 1.7rem;
  outline: 0;
  transition: box-shadow 0.2s;
}
.store-search__input::placeholder {
  color: var(--clr-text-muted);
}
.store-search__input:focus {
  box-shadow: inset 0 0 0 1px var(--clr-ink);
}
.store-search__input:focus-visible {
  outline: 2px solid var(--clr-white);
  outline-offset: 2px;
}
.store-search__btn {
  flex: none;
}
@media (max-width: 478px){
.store-search {
    flex-direction: column;
  }
.store-search__input {
    flex: none;
    width: 100%;
  }
.store-search__btn {
    width: 100%;
    justify-content: space-between;
  }
}
.sp-cmp::-webkit-scrollbar { height: 3px; }
.sp-cmp::-webkit-scrollbar-track { background: linear-gradient(var(--clr-border), var(--clr-border)) center / 100% 1px no-repeat; }
.sp-cmp::-webkit-scrollbar-thumb { background: var(--clr-ink); }
@supports not selector(::-webkit-scrollbar){
.sp-cmp { scrollbar-width: thin; scrollbar-color: var(--clr-ink) transparent; }
}
.sp-slides .sp-slides__pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--clr-ink);
  border-radius: var(--radius-pill);
  background: var(--clr-white);
  color: var(--clr-ink);
  cursor: pointer;
}
.sp-slides .sp-slides__fig > .sp-slides__pause {
  position: absolute;
  right: var(--space-fixed-s);
  bottom: var(--space-fixed-s);
  z-index: 1;
}
.sp-slides .sp-slides__pause:hover {
  background: var(--clr-default-bg);
}
.sp-slides .sp-slides__pause:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
.sp-slides .sp-slides__pause svg {
  width: 16px;
  height: 16px;
}
.sp-sw {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.sp-sw__legend {
  float: left;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sp-sw__legend b {
  margin-left: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0;
  text-transform: none;
}
.sp-sw__grid {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sp-sw__dot {
  width: 44px;
  height: 44px;
}
.sp-sw__dot > span:not(.screen-reader-text) {
  inset: 4px;
}
.sp-sw__dot input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sp-sw__dot:has(input:checked) {
  box-shadow: 0 0 0 2px var(--clr-ink);
}
.sp-sw__dot:has(input:focus-visible) {
  outline: 2px solid var(--clr-ink);
  outline-offset: 3px;
}
.sp-sw__dot[data-off] {
  opacity: .35;
}
.sp-sw + .reset_variations {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--clr-ink);
  font-family: var(--font-ui);
  font-size: 1.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sp-rate .text-link {
  padding-bottom: 0;
  background-position: 0 calc(100% - 1px);
}
.sp-gal .woocommerce-product-gallery > .flex-control-nav {
  position: relative;
  align-self: stretch;
  contain: size;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.sp-gal .woocommerce-product-gallery > .flex-control-nav::-webkit-scrollbar {
  display: none;
}
.sp-gal .woocommerce-product-gallery > .flex-control-nav li {
  aspect-ratio: 1;
}
.sp-gal .woocommerce-product-gallery[data-thumbs-more] > .flex-control-nav {
  mask-image: linear-gradient(to bottom, #000 calc(100% - 4.8rem), transparent);
}
.sp-gal .sp-thumbs__btn:not([hidden]) {
  grid-area: thumbnails;
  z-index: 2;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: var(--space-fixed-2xs) 0;
  padding: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  background-color: var(--clr-white);
  color: var(--clr-ink);
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.sp-gal .sp-thumbs__btn--up {
  align-self: start;
}
.sp-gal .sp-thumbs__btn--down {
  align-self: end;
}
.sp-gal .sp-thumbs__btn:hover {
  background-color: var(--clr-ink);
  color: var(--clr-white);
}
.sp-gal .sp-thumbs__btn svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Backorder: the template stock line (pstk03, engel-arrival.php) already says "Arriving in <month>"; hide WooCommerce's copy by the button. */
form.cart .stock.available-on-backorder {
  display: none;
}

/* 2 Dec 2026: image bands (dual + single) sit the grid gap apart, not a section gap. */
.sp-band + .sp-band { padding-top: 8px; }
/* Compare images: square like the product card (the files are square). */
img.sp-cmp__img { aspect-ratio: 1 / 1; height: auto; }
/* Compare card titles: Archivo 600 17px in sentence case (canvas); the theme's h3 made them uppercase. */
h3.sp-cmp__name { text-transform: none; letter-spacing: normal; line-height: 1.3; }
/* Rating row (3 Dec 2026): star bar (.pc__stars, as on the cards), bold average, "N reviews" link. */
.sp-rating__avg { display: inline-flex; align-items: center; gap: .6rem; }
/* Compare images: square box (was 4/3, which cropped the square photos). */
.sp-cmp__fig.sp-cmp__fig { aspect-ratio: 1 / 1; }

/* Swatches on product pages without a buy form (dealer-only, coming soon; 3 Dec 2026) */
.sp-sw--photo {
  margin-block: var(--space-fixed-xs);
}
#brxe-pdsw01:not(:has(.sp-sw)) {
  display: none;
}

/* NZ Afterpay message (3 Dec 2026). NZ takes Afterpay through Afterpay's own plugin, not Stripe, so template 25860 on NZ
   has a Shortcode element apnz01 ([afterpay_paragraph]) after the Stripe slot. Hide the empty Stripe slot there and drop
   the widget's own 16px margins so the line sits under the price as on AU. */
.sp-price:has(#brxe-apnz01) > .sp-bnpl { display: none; }
#brxe-apnz01 square-placement { --messaging-margin-block-start: 0; --messaging-margin-block-end: 0; margin-block: 0; }

/* Gallery badges below 992px (3 Dec 2026): the gallery is static there (no sticky), so the badges were placed
   against the section and landed on the breadcrumbs. Keep the gallery the badges' box; no thumbnail column on phones. */
@media (max-width:991px){ body .sp-gal{position:relative;top:auto} }
@media (max-width:767px){ body .sp-gal > .sp-gal__badges{left:1.6rem} }

/* Product page lines (3 Dec 2026). Key tiles: every tile is conditional, so a product with none (e.g. coolers) left an
   empty list whose top and bottom borders drew a double line under Read more. "On this page" bar: it stuck right under
   the header's 1px bottom border, so the two borders made a 2px line; stick 1px higher so they overlap. */
.sp-keys:not(:has(> *)) { display: none; }
body #brxe-pd72e5 { top: calc(var(--header-height) - 1px); }
@media (max-width:1199px){ body #brxe-pd72e5 { top: calc(var(--header-height-compact) - 1px); } }

/* Gallery thumbnails (3 Dec 2026). The thumbnail list is a one-column grid whose rows stretched to fill the gallery's
   height, and each square thumbnail took its row's height as its width, so a product with two images had 464px
   thumbnails spilling out of the 76px column. Rows now size to the 76px squares and stack from the top. */
.sp-gal .woocommerce-product-gallery > .flex-control-nav { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: max-content; align-content: start; }

/* Lightbox close button (3 Dec 2026). Below 1025px PhotoSwipe floats its 44px loading spinner to the right of the top bar,
   so the × sat one slot in from the edge. The spinner now sits centred over the bar instead (as on desktop), and touch
   screens get no fullscreen or zoom buttons (they zoom by pinching), so the × is always in the corner. */
.pswp .pswp__top-bar .pswp__preloader { position: absolute; top: 0; left: 50%; float: none; margin: 0 0 0 -22px; }
@media (hover:none) { .pswp .pswp__button--fs, .pswp .pswp__button--zoom { display: none !important; } }
