/* =====================================================================
   SULO Group – shop pages: category / shop / brand archive, product page, compare toggle, dock.
   Loaded on shop, product taxonomy and product pages and on pages with product lists ([products], WooCommerce blocks) – woocommerce/inc/setup.php. Base: woo.css.
   ===================================================================== */

/* ---------- 2. Category / shop / brand archive ---------- */
.sg-shop { padding-top: 18px; }
.sg-shop__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sg-shop__title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  margin: 0 0 14px;
  text-transform: none;
}
.sg-shop__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--sg-teal);
  margin-top: 16px;
}
.sg-shop__brand-logo { max-height: 56px; width: auto; }
.sg-shop__layout {
  display: grid;
  margin-top: 32px;
  align-items: start;
}
.sg-shop__filters {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sg-shop__filters-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sg-line);
}
.sg-shop__filters-icon { color: var(--sg-teal); }
.sg-shop__chips:empty { display: none; }
.sg-shop__sort { margin-top: 8px; }
.sg-shop__sort-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sg-muted);
  margin-bottom: 8px;
}

/* Filter Everything (wpc-*) */
.wpc-filters-section {
  border: 0;
  border-top: 1px solid var(--sg-line);
  margin: 0 !important;
  padding: 0 !important;
}
.wpc-filters-section:first-of-type { border-top: 0; }
.wpc-filter-header *::before, .wpc-filter-header *::after, .widget-title.wpc-filter-title *::before, .widget-title.wpc-filter-title *::after { content: none !important; display: none !important; }
.wpc-filter-header { padding: 0; }
.widget-title.wpc-filter-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--sg-ink);
}
.widget-title.wpc-filter-title button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 2px !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--sg-ink);
  transition: color 150ms ease;
}
.widget-title.wpc-filter-title button:hover { color: var(--sg-teal); }
.widget-title.wpc-filter-title button:focus-visible { outline: 2px solid var(--sg-teal); outline-offset: 2px; }
.widget-title.wpc-filter-title:not(:has(button)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
}
.wpc-wrap-icons {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.wpc-open-icon {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.wpc-open-icon::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 1px;
  left: 0;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--sg-teal);
  border-bottom: 1.5px solid var(--sg-teal);
  transform: rotate(45deg);
  transition: transform 150ms ease;
}
.wpc-opened .wpc-open-icon::before { top: 5px; }
.wpc-filter-content { padding: 0 2px 12px; }
.wpc-filters-ul-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wpc-checkbox-item { margin: 0; }
.wpc-term-item-content-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.wpc-checkbox-item input[type=checkbox] {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--wp--custom--field-border, #7d8b88);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
  padding: 0;
}
.wpc-checkbox-item input[type=checkbox]:checked { background: var(--sg-teal); border-color: var(--sg-teal); }
.wpc-checkbox-item input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wpc-checkbox-item label, .wpc-filter-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--sg-body);
  cursor: pointer;
  width: 100%;
  text-decoration: none;
}
.wpc-checkbox-item label:hover, .wpc-filter-link:hover { color: var(--sg-teal); }
.wpc-term-count { font-size: 12px; color: var(--sg-muted); }
.wpc-term-count-brackets-open, .wpc-term-count-brackets-close { display: inline !important; }
.wpc-term-image-wrapper img {
  height: 20px;
  width: auto;
  display: block;
}
.wpc-edit-filter-set {
  margin-top: 12px;
  font-size: 12px;
  color: var(--sg-muted);
}
.wpc-edit-filter-set a { color: var(--sg-muted); }
.wpc-filter-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wpc-filters-open-button-container { display: none !important; }
.wpc-filters-main-wrap a.wpc-filters-apply-button {
  background: var(--sg-teal) !important;
  border-color: var(--sg-teal) !important;
  border-radius: 0 !important;
  color: #fff !important;
}

/* Product grid + cards (.fe-product-card is also used for categories) */
.woocommerce ul.products, ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.products::before, ul.products::after { content: none !important; }
ul.products li.sg-product-card, ul.products li.product { width: auto !important; margin: 0 !important; }
.sg-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sg-line);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--sg-ease-out, ease);
}
.sg-product-card__image-link {
  display: block;
  background: var(--sg-grey);
  aspect-ratio: 1/1;
  overflow: hidden;
}
.sg-product-card__image-link img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 500ms var(--sg-ease-out, ease);
}
.sg-product-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  flex: 1;
}
.sg-product-card__title-link { text-decoration: none; color: inherit; }
.sg-product-card__title {
  font-size: 16px !important;
  line-height: 1.35;
  margin: 0;
  color: var(--sg-ink);
  font-weight: 700;
  transition: color 200ms ease;
}
.sg-product-card__category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sg-product-card__category a { color: var(--sg-teal); text-decoration: none; }
.sg-product-card__excerpt {
  font-size: 13.5px;
  color: var(--sg-body);
  line-height: 1.5;
}
.sg-product-card__price:empty { display: none; }
.sg-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--sg-line);
}
.sg-product-card__compare { font-size: 12px; color: var(--sg-muted); }
.sg-product-card__compare a, .sg-product-card__compare button, .wcpc-compare-toggle { background: none; text-decoration: none; }
.sg-product-card__arrow-btn {
  display: inline-block;
  background: var(--sg-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 16px;
  text-decoration: none;
  border: 1.5px solid var(--sg-teal);
  transition: background-color 200ms ease;
}
@media (hover:hover) and (pointer:fine) {
  .sg-product-card:hover {
    border-color: var(--sg-teal-pale);
    box-shadow: 0 14px 26px -20px rgba(14, 110, 100, .6);
    transform: translateY(-3px);
  }
  .sg-product-card:hover .sg-product-card__title { color: var(--sg-teal); }
  .sg-product-card:hover .sg-product-card__image-link img { transform: scale(1.04); }
  .sg-product-card__arrow-btn:hover { background: var(--sg-teal-dark); border-color: var(--sg-teal-dark); }
  .sg-product-card__compare a:hover, .wcpc-compare-toggle:hover { color: var(--sg-teal); }
}

/* Shop / category / brand archives: wider page (like the header), larger cards that fill the row, borderless editorial look – grey image stage, title, category, short text, compare + "View" below */
.sg-shop-wrap:has(> .sg-shop) { max-width: 1360px; }
.sg-shop__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.sg-shop__main ul.products, .sg-shop__main ul.products[class*="columns-"] { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 28px; }
.sg-shop__main ul.products .sg-product-card__excerpt, .sg-shop__main ul.products .sg-product-card__category { display: block; }
.sg-shop__main .sg-product-card {
  border: 0;
  background: transparent;
  transform: none !important;
}
.sg-shop__main .sg-product-card__image-link {
  position: relative;
  padding: 9%;
  background: var(--sg-grey);
  transition: background-color 300ms ease;
}
.sg-shop__main .sg-product-card__image-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--sg-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--sg-ease-out, ease);
}
.sg-shop__main .sg-product-card__content { padding: 18px 14px 14px; gap: 6px; }
.sg-shop__main .sg-product-card__title { font-size: 18px !important; line-height: 1.3; }
.sg-shop__main .sg-product-card__footer { padding-top: 14px; margin-top: 10px; }
@media (hover:hover) and (pointer:fine) {
  .sg-shop__main .sg-product-card:hover .sg-product-card__image-link { background: var(--sg-mint); }
  .sg-shop__main .sg-product-card:hover .sg-product-card__image-link::after { transform: scaleX(1); }
}
@media (max-width:600px) {
  .sg-shop__main ul.products, .sg-shop__main ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .sg-shop__main .sg-product-card__title { font-size: 15px !important; }
}

/* Result count + load more */
.sg-shop__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.sg-shop__count, .woocommerce-result-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sg-muted);
  margin: 0;
}
.sg-shop__more-button {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--sg-ink);
  border: 1.5px solid var(--sg-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.sg-shop__more-button:hover { background: var(--sg-ink); color: #fff; }
.sg-shop__more-button[disabled] { opacity: .5; cursor: wait; }
.woocommerce-info {
  background: var(--sg-mint);
  border-left: 3px solid var(--sg-teal);
  padding: 16px 20px;
  list-style: none;
}

/* SEO / Page Builder description below the grid */
.sg-shop__about {
  margin-top: 88px;
  padding-top: 56px;
  border-top: 1px solid var(--sg-line);
}
.sg-shop__about-title, .sg-shop__about-title { margin: 0 0 24px; }
.sg-shop__about > p { max-width: 80ch; }
.sg-shop__about a:not(.sg-btn) { color: var(--sg-teal); }

/* ---------- 3. Single product ---------- */
.sg-shop-page div.product { position: relative; }
#sg-product-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  margin: 24px 0 40px;
  align-items: start;
}

/* Gallery (woocommerce/single-product/product-image.php + woo.js) */
.sg-gallery { min-width: 0; }
.sg-gallery__main {
  background: transparent;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
/* desktop: the main image as high as the window allows minus header, breadcrumb, thumbnails and the jump
   navigation – so the jump navigation is still visible at the lower edge when the product page opens */
@media (min-width: 768px) {
  .sg-gallery__main { aspect-ratio: auto; height: clamp(272px, calc((100svh - 400px) * .85), 510px); } /* 15 % lower than the space allows: room for the jump navigation on small screens */
}
/* phones: the main image takes well under half the screen, not the full height */
@media (max-width: 767px) {
  .sg-gallery__main { aspect-ratio: auto; height: min(326px, 46svh); } /* +20 % (was min(272px, 38svh)) */
}
.sg-gallery__main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.sg-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.sg-gallery__thumb {
  flex: 0 0 72px;
  height: 72px;
  padding: 4px;
  background: var(--sg-grey);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 200ms ease;
}
.sg-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}
.sg-gallery__thumb.is-active, .sg-gallery__thumb:hover { border-color: var(--sg-teal); }

/* videos: thumbnail with play symbol, player in the main box (16:9, centred) */
.sg-gallery__main { position: relative; }
.sg-gallery__main.is-playing { cursor: auto; background: #000; }
.sg-gallery__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100%;
}
.sg-gallery__player iframe,
.sg-gallery__player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.sg-gallery__thumb.is-video { position: relative; }
.sg-gallery__thumb.is-video img { mix-blend-mode: normal; object-fit: cover; }
.sg-gallery__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px;
  height: 30px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(21, 26, 25, .72);
}
.sg-gallery__play::after {
  content: "";
  position: absolute;
  inset: 9px 8px 9px 11px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.sg-gallery__thumb.is-video:hover .sg-gallery__play,
.sg-gallery__thumb.is-video.is-active .sg-gallery__play { background: var(--sg-teal); }
/* lightbox: a <dialog> opened with showModal() (woo.js) – top layer, Esc, focus kept inside by the browser.
   White and opaque like the product page; product name on top, one bar at the bottom with the thumbnails, zoom
   (− / +, 1:1) and a clearly visible "Close"; a thin teal line at the top edge and teal for the active
   thumbnail and the controls. */
.sg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 4px solid var(--sg-teal);
  color: var(--sg-ink);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.sg-lightbox::backdrop { background: #fff; }
/* while the lightbox is open the page behind does not scroll (wheel, touch, keys) – closing returns to the same place */
html.sg-no-scroll { overflow: hidden; }
.sg-lightbox { overscroll-behavior: contain; }
.sg-lightbox :is(button):focus-visible { outline: 2px solid var(--sg-teal); outline-offset: 2px; }
/* main image opens the lightbox with mouse and keyboard (woo.js makes the box a button) */
.sg-gallery__main[role="button"] { cursor: zoom-in; }
.sg-gallery__main[role="button"]:focus-visible { outline: 2px solid var(--sg-teal); outline-offset: 3px; }

.sg-lightbox__head { padding: 14px max(20px, var(--sg-gutter, 24px)) 0; }
.sg-lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px max(20px, var(--sg-gutter, 24px)) max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sg-line);
}
.sg-lightbox__tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.sg-lightbox__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-lightbox__zoom { display: flex; align-items: center; gap: 4px; }
.sg-lightbox__zoom button,
.sg-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--sg-teal);
  background: #fff;
  color: var(--sg-teal);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.sg-lightbox__zoom button:hover { background: var(--sg-mint); }
.sg-lightbox__zoom button[aria-disabled="true"] { opacity: .35; cursor: default; background: #fff; }
.sg-lightbox__zoom-level { min-width: 52px; color: var(--sg-muted); font-size: 13px; text-align: center; }
.sg-lightbox__close {
  background: var(--sg-teal);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sg-lightbox__close span[aria-hidden] { font-size: 22px; letter-spacing: 0; }
.sg-lightbox__close:hover { background: var(--sg-teal-dark); border-color: var(--sg-teal-dark); }

.sg-lightbox__image-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: 24px;
  overflow: hidden;
  touch-action: none; /* dragging the zoomed image moves it (woo.js), not the page */
}
.sg-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 160ms ease;
  user-select: none;
  -webkit-user-drag: none;
}
.sg-lightbox.is-zoomed .sg-lightbox__image { cursor: grab; transition: none; }
.sg-lightbox.is-zoomed.is-dragging .sg-lightbox__image { cursor: grabbing; }
.sg-lightbox__thumbs {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  padding: 4px 2px; /* room for the focus outline */
  overflow-x: auto;
  scrollbar-width: thin;
}
.sg-lightbox__thumb {
  flex: 0 0 64px;
  height: 64px;
  padding: 3px;
  background: var(--sg-grey);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .7;
}
.sg-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.sg-lightbox__thumb:hover { opacity: 1; }
.sg-lightbox__thumb.is-active { border-color: var(--sg-teal); opacity: 1; }
@media (max-width: 600px) {
  .sg-lightbox__head { padding: 10px 12px 0; }
  .sg-lightbox__bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px max(12px, env(safe-area-inset-bottom, 0px)); }
  .sg-lightbox__thumbs { flex-basis: 100%; }
  .sg-lightbox__tools { width: 100%; justify-content: space-between; margin-left: 0; }
  .sg-lightbox__title { font-size: 14px; }
  .sg-lightbox__zoom-level { display: none; }
  .sg-lightbox__close .sg-lightbox__close-text { display: none; } /* phones: the × alone, still 44 × 44 */
  .sg-lightbox__image-wrap { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-lightbox__image { transition: none; }
}
/* Summary */
.summary.entry-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.summary .product_title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  margin: 0;
}
.sg-product-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sg-product-highlights li {
  position: relative;
  padding-left: 22px;
  color: var(--sg-body);
  font-size: 15px;
}
.sg-product-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 1.5px;
  background: var(--sg-teal);
}
/* price: clearly visible, not a headline */
.summary .price {
  margin: 0;
  color: var(--sg-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.summary .price del { margin-inline-end: 8px; color: var(--sg-muted); font-size: 18px; font-weight: 400; }
.summary .price ins { text-decoration: none; }
.summary .price :is(.woocommerce-price-suffix, small) { margin-inline-start: 6px; color: var(--sg-muted); font-size: 14px; font-weight: 400; }

/* buy area: quantity (stepper, woo.js) · "Add to cart" (main button, cart icon) · "Add to quote" (outline next to it,
   main button when the product has no price) – one height, one look, icon left of the text */
.summary form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 10px 0;
}
.summary :is(.single_add_to_cart_button, .sg-leads-add) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 24px;
  border: 1.5px solid var(--sg-teal);
  border-radius: 0;
  background: var(--sg-teal);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.summary .single_add_to_cart_button::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4h2.2l2.2 11h10.4l2-8H6.4'/><circle cx='9' cy='19.5' r='1.3'/><circle cx='17' cy='19.5' r='1.3'/></svg>") center / contain no-repeat;
}
.summary .sg-leads-add :is(svg, .sg-leads-icon) { flex-shrink: 0; width: 18px; height: 18px; }
.summary :is(.single_add_to_cart_button, .sg-leads-add):hover {
  background: var(--sg-teal-dark);
  border-color: var(--sg-teal-dark);
  color: #fff;
  box-shadow: 0 6px 16px -10px rgba(14, 110, 100, .8);
}
.summary :is(.single_add_to_cart_button, .sg-leads-add):focus-visible { outline: 2px solid var(--sg-teal); outline-offset: 3px; }
.summary :is(.single_add_to_cart_button, .sg-leads-add):active { box-shadow: none; }
/* next to "Add to cart" the quote is the second way: outline */
.summary form.cart:has(.single_add_to_cart_button) .sg-leads-add:not(.is-in-quote),
.summary .sg-leads-add.is-in-quote { background: #fff; color: var(--sg-teal); }
.summary form.cart:has(.single_add_to_cart_button) .sg-leads-add:not(.is-in-quote):hover,
.summary .sg-leads-add.is-in-quote:hover { background: var(--sg-mint); border-color: var(--sg-teal); color: var(--sg-teal); }
.summary .single_add_to_cart_button:is(.disabled, :disabled) { opacity: .45; cursor: default; box-shadow: none; }
@media (max-width: 480px) {
  .summary :is(.single_add_to_cart_button, .sg-leads-add) { flex: 1 1 auto; padding: 0 16px; }
}
.sg-product-attrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--sg-line);
  margin: 4px 0;
}
.sg-product-attr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--sg-line);
}
.sg-product-attr__label {
  color: var(--sg-teal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sg-product-attr__value {
  color: var(--sg-ink);
  font-size: 15px;
  font-weight: 600;
}
.sg-product-attr__swatches {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sg-product-attr__swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(17, 17, 17, .15);
}
.sg-product-attr__value:has(.sg-product-attr__colour-name) { display: flex; align-items: center; gap: 8px; } /* one colour: swatch + name */
.summary .product_meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--sg-muted);
  padding-top: 16px;
  border-top: 1px solid var(--sg-line);
}
.summary .product_meta .posted_in--categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.summary .product_meta .posted_in--categories a {
  color: var(--sg-ink);
  padding: 3px 9px;
  border: 1px solid var(--sg-line);
  text-decoration: none;
  font-size: 12.5px;
  transition: background-color 200ms ease, color 200ms ease;
}
.summary .product_meta .posted_in--categories a:hover {
  background: var(--sg-teal);
  border-color: var(--sg-teal);
  color: #fff;
}
.summary .sg-product-brand-logo {
  max-height: 32px;
  width: auto;
  display: block;
}

/* Description: blocks below the product head (content-single-product.php) */
.sg-product-content {
  margin-top: 56px;
  padding-bottom: 0;
}

/* Reviews */
.sg-product-bottom { margin-top: 72px; padding-bottom: 88px; }
#reviews {
  border-top: 1px solid var(--sg-line);
  padding-top: 48px;
  margin-top: 48px;
}
.woocommerce-Reviews-title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sg-review-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: var(--sg-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
#review_form_wrapper { background: var(--sg-cream); padding: 24px; }
#reply-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--sg-ink);
  cursor: pointer;
}
#reply-title::after {
  content: "+";
  float: right;
  color: var(--sg-teal);
}
#review_form_wrapper.is-open #reply-title::after { content: "–"; }
#review_form_wrapper:not(.is-open) #commentform { display: none; }
/* the title is a real button (woo.js): keyboard and screen readers can open the form */
#reply-title .sg-review-toggle {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}
#reply-title .sg-review-toggle:focus-visible { outline: 2px solid var(--sg-teal); outline-offset: 4px; }
#reply-title:has(.sg-review-toggle)::after { content: none; }
#reply-title .sg-review-toggle::after { content: "+"; float: right; color: var(--sg-teal); }
#review_form_wrapper.is-open #reply-title .sg-review-toggle::after { content: "–"; }
#commentform {
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
#commentform p { margin: 0; }

/* Related products */
.sg-related-products { margin-top: 88px; }
.sg-related-products > h2 { margin: 0 0 28px; }
/* three columns only where they fit: tablets two, phones one tile below the other */
@media (max-width: 1023px) { .sg-related-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sg-related-products ul.products { grid-template-columns: minmax(0, 1fr); gap: 36px; } }


/* ---------- 6. Responsive ---------- */
@media (max-width:1023px) {
  .sg-shop__layout { grid-template-columns: 1fr; gap: 24px; }
  .sg-shop__filters { position: static; }
  #sg-product-head { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width:769px) {
  .wpc-filters-open-button-container { display: block !important; }
}
@media (max-width:560px) {
  .sg-product-attrs { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .sg-product-card, .sg-product-card__image-link img { transition: none !important; }
}


/* ---------- Toggle (archive + product page) ---------- */
.wcpc-compare-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  border: 1px solid transparent;
  background-color: transparent;
  color: #444;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
  user-select: none;
}
.wcpc-compare-toggle:hover { border-color: var(--wcpc-accent); color: var(--wcpc-accent); }
.wcpc-compare-checkbox, .wcpc-compare-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wcpc-compare-toggle::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M28 6H18V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h10v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2ZM4 15h6.17l-2.58 2.59L9 19l5-5l-5-5l-1.41 1.41L10.17 13H4V4h12v20H4Zm12 13v-2a2 2 0 0 0 2-2V8h10v9h-6.17l2.58-2.59L23 13l-5 5l5 5l1.41-1.41L21.83 19H28v9Z'/></svg>") center/contain no-repeat;
}
.wcpc-compare-toggle:has(.wcpc-compare-checkbox:checked) { background: var(--sg-mint); color: var(--sg-teal); }
.wcpc-compare-toggle:has(.wcpc-compare-checkbox:focus-visible) { outline: 2px solid var(--sg-teal); outline-offset: 2px; }


/* =====================================================================
   SULO – dock: one floating bar at the bottom of shop, category and product pages.
   Segments (the dock section of woo.js assembles them):
     .sg-dock__compare    compare list (plugin sulogroup-blocks shop/compare.php, #wcpc-compare-bar-container)
     .sg-dock__quote      product page: thumbnail, name, quote button with quantity (woocommerce/inc/setup.php)
   States on .sg-dock: is-visible, has-compare, has-quote.
   z-index 660: above the content (≤ 600) and the sticky jump navigation (640, plugin) – the compare list and its
   picker open upwards over it –, below header (700), language overlay (1000) and toast (1100).
   The contact person bubble (plugin sulogroup-blocks) moves up while the dock is visible.
   ===================================================================== */
.sg-dock {
  --sg-dock-h: 52px;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: fit-content;
  max-width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(21, 26, 25, .08);
  border-radius: 0;
  box-shadow: 0 18px 40px -18px rgba(14, 110, 100, .35), 0 2px 8px rgba(21, 26, 25, .06);
  z-index: 660;
  font-size: 14px;
  line-height: 1.3;
  color: var(--sg-ink, #151a19);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 32px));
  transition: transform .55s cubic-bezier(.2, .9, .25, 1.15), opacity .3s ease, visibility 0s linear .55s, box-shadow .3s ease;
}
.sg-dock.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: transform .55s cubic-bezier(.2, .9, .25, 1.15), opacity .3s ease, visibility 0s, box-shadow .3s ease;
}
.sg-dock .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sg-dock :is(a, button) { font-family: inherit; }

/* shared button look inside the dock */
.sg-dock .wcpc-compare-link, .sg-dock .sg-dock__act .sg-leads-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--sg-dock-h);
  padding: 0 16px;
  border: 1.5px solid var(--sg-teal);
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* ---------- Segment: compare ---------- */
.sg-dock__compare { display: none; }
.sg-dock.has-compare .sg-dock__compare {
  display: flex;
  align-items: center;
  animation: sg-dock-grow .45s cubic-bezier(.2, .9, .25, 1.1) both;
}
.sg-dock.has-compare.has-quote .sg-dock__compare { border-right: 1px solid var(--sg-line, #e3e6e5); }
.sg-dock .wcpc-compare-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 12px;
}
.sg-dock .wcpc-bar-slots { display: flex; gap: 6px; }
.sg-dock .wcpc-slot {
  position: relative;
  width: var(--sg-dock-h);
  height: var(--sg-dock-h);
  flex: 0 0 var(--sg-dock-h);
  background: var(--sg-grey, #f2f2f2);
}
.sg-dock .wcpc-slot-filled img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  display: block;
  margin: 0;
  mix-blend-mode: multiply;
}
/* only the chosen products: no empty placeholders, the segment grows with each product */
.sg-dock .wcpc-slot-empty { display: none; }
.sg-dock .wcpc-slot-filled { animation: sg-dock-pop .45s cubic-bezier(.2, .9, .25, 1.2) both; }
.sg-dock .wcpc-slot-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--sg-ink, #151a19);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
}
.sg-dock .wcpc-slot-filled:is(:hover, :focus-within) .wcpc-slot-remove { opacity: 1; transform: none; }
.sg-dock .wcpc-slot-remove:hover { background: var(--sg-teal); }
@media (hover: none) {
  .sg-dock .wcpc-slot-remove { opacity: 1; transform: none; }
}
/* quiet outline button (the quote button next to it stays the strong one) */
.sg-dock .wcpc-compare-link {
  background: #fff;
  border-color: var(--sg-teal);
  color: var(--sg-teal);
}
.sg-dock .wcpc-compare-link:hover { background: var(--sg-teal); color: #fff; }
/* one product: not yet comparable – grey outline instead of a faded block */
.sg-dock .wcpc-compare-link.is-disabled {
  opacity: 1;
  border-color: var(--sg-line, #e3e6e5);
  color: var(--sg-muted, #6b7472);
  cursor: default;
}
.sg-dock .wcpc-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--sg-teal);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
}
.sg-dock .wcpc-compare-link:hover .wcpc-count { background: #fff; color: var(--sg-teal); }
.sg-dock .wcpc-compare-link.is-disabled .wcpc-count { background: var(--sg-grey, #f2f2f2); color: var(--sg-muted, #6b7472); }
.sg-dock .wcpc-compare-link.is-bump .wcpc-count { animation: sg-dock-bump .55s cubic-bezier(.2, .9, .25, 1.4); }
.sg-dock .wcpc-clear-all {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sg-muted, #6b7472);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.sg-dock .wcpc-clear-all:hover { background: var(--sg-grey, #f2f2f2); color: var(--sg-ink, #151a19); }

/* ---------- Segment: quote (theme, woocommerce/inc/setup.php) ---------- */
.sg-dock:not(.has-quote) .sg-dock__quote { display: none !important; }
.sg-dock.has-quote [data-sg-dock-quote] {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 12px;
  animation: sg-dock-grow .45s cubic-bezier(.2, .9, .25, 1.1) both;
}
.sg-dock__img {
  position: relative;
  flex: 0 0 72px;
  align-self: stretch;
}
.sg-dock__img img {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 56px;
  height: 68px;
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 8px 10px rgba(21, 26, 25, .18));
  animation: sg-dock-pop .7s .15s both cubic-bezier(.2, .9, .25, 1.2);
}
.sg-dock__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 260px;
}
.sg-dock__txt b {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-dock__act { position: relative; flex: 0 0 auto; }
.sg-dock .sg-dock__act .sg-leads-add { background: var(--sg-teal); color: #fff; }
.sg-dock .sg-dock__act .sg-leads-add:hover { background: var(--sg-teal-dark); border-color: var(--sg-teal-dark); }
.sg-dock .sg-dock__act .sg-leads-add.is-in-quote { background: #fff; color: var(--sg-teal); }

/* products sold directly: price under the name, "Add to cart" next to the quote */
.sg-dock__price { color: var(--sg-teal); font-weight: 700; }
.sg-dock__act { display: flex; align-items: center; gap: 10px; }
.sg-dock__buy {
  height: var(--sg-dock-h);
  padding: 0 18px;
  border: 1.5px solid var(--sg-teal);
  border-radius: 0;
  background: var(--sg-teal);
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.sg-dock__buy:hover { background: var(--sg-teal-dark); border-color: var(--sg-teal-dark); }
/* with "Add to cart" next to it, the quote is the second, outlined button */
.sg-dock .sg-dock__act .sg-dock__buy ~ * .sg-leads-add:not(.is-in-quote),
.sg-dock .sg-dock__act .sg-dock__buy ~ .sg-leads-add:not(.is-in-quote) { background: #fff; color: var(--sg-teal); }

/* quantity (SULO Group Leads ≥ 1.11.2: −/+ stepper) in one row with the button, same height */
.sg-leads-add-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.sg-dock .sg-dock__act .sg-leads-add-form { flex-wrap: nowrap; }
.sg-dock .sg-dock__act .sg-leads-qty-wrap {
  height: var(--sg-dock-h);
  margin: 0;
  border-radius: 0;
}
.sg-dock .sg-dock__act .sg-leads-qty-btn { width: 34px; }
.sg-dock .sg-dock__act .sg-leads-qty-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.sg-dock .sg-dock__act .sg-leads-qty-wrap input.sg-leads-qty {
  width: 40px;
  height: auto;
  padding: 0;
  border: 0;
  font-size: 15px;
  text-align: center;
  -moz-appearance: textfield;
}
.sg-dock__txt { min-width: 120px; }
/* long product names: two lines at most */
.sg-dock__txt b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---------- Fitting (woo.js, fit): steps when the content is wider than the dock (long translations) ---------- */
.sg-dock.is-fit-1 .wcpc-bar-slots { display: none; }
.sg-dock.is-fit-1 .sg-dock__txt { max-width: 180px; }
.sg-dock.is-fit-2 .sg-dock__txt { display: none; }
.sg-dock.is-fit-3 .sg-dock__img { display: none; }
.sg-dock.is-fit-3 :is(.wcpc-compare-link, .sg-dock__buy, .sg-dock__act .sg-leads-add) {
  max-width: 150px;
  padding: 0 10px;
  white-space: normal;
  line-height: 1.15;
  letter-spacing: .03em;
  text-align: center;
}


/* ---------- Mobile: slim bar ---------- */
@media (max-width: 600px) {
  .sg-dock {
    --sg-dock-h: 40px;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 20px);
  }
  .sg-dock .wcpc-bar-slots { display: none; }
  .sg-dock .wcpc-compare-bar { gap: 2px; padding: 8px 4px 8px 8px; }
  .sg-dock .wcpc-compare-link, .sg-dock .sg-dock__act .sg-leads-add { padding: 0 12px; }
  /* only the buttons on phones: no product image or name in the quote segment */
  .sg-dock__img, .sg-dock__txt { display: none; }

  /* both segments: only the two buttons, the dock spans the width */
  .sg-dock.has-compare.has-quote { width: auto; }
  .sg-dock.has-compare.has-quote .sg-dock__compare { flex: 0 0 auto; }
  .sg-dock.has-compare.has-quote .sg-dock__quote {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    padding-left: 8px;
  }
  .sg-dock.has-compare.has-quote .sg-leads-add { white-space: normal; }
}
@keyframes sg-dock-grow {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes sg-dock-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes sg-dock-pop {
  from { transform: translateY(18px) scale(.85); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes sg-dock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 110, 100, .45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(14, 110, 100, 0); }
}
@keyframes sg-dock-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-dock { transition: opacity .2s ease, visibility 0s; }
  .sg-dock *, .sg-dock *::before, .sg-dock *::after { animation: none !important; }
}

/* Product page: compare toggle as a clear button under the title */
.wcpc-single.wcpc-compare-toggle-wrap { margin: 4px 0 12px; }
.wcpc-single .wcpc-compare-toggle {
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid var(--sg-teal);
  color: var(--sg-teal);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.wcpc-single .wcpc-compare-toggle span {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
}
.wcpc-single .wcpc-compare-toggle:hover, .wcpc-single .wcpc-compare-toggle:has(.wcpc-compare-checkbox:checked) { background: var(--sg-teal); color: #fff; }

/* Dock visible: elements that get the keyboard focus are scrolled above it, never hidden under it (WCAG 2.4.11) */
html:has(.sg-dock.is-visible) { scroll-padding-bottom: 96px; }
