/* HygINOX 1.0.17 – Related-product gallery controls.
   v1.0.16 reused the common grid renderer without the archive-only gallery
   JS/CSS scope. Keep the related grid isolated from Woodmart button styles. */
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104 .hx-rich-gallery-controls {
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:nowrap;
  width:100%;
  min-height:22px;
  padding:4px 0 6px;
  margin:0;
  color:#57718b;
  font-size:13px;
}
/* With overlay arrows, retain the independent counter/dots as flex siblings. */
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104.hx-arrows-overlay .hx-rich-gallery-controls {
  display:contents;
}
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104 .hx-rich-counter {
  display:block;
  align-self:center;
  text-align:center;
  width:auto;
  margin:6px auto 2px;
  font-size:13px;
  line-height:1.5;
  color:#52718b;
}
/* The selected indicator is exclusive: never show dots under a counter. */
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104 .hx-rich-dots {
  display:none!important;
  align-items:center;
  justify-content:center;
  align-self:center;
  flex-direction:row;
  flex-wrap:wrap;
  gap:7px;
  max-width:100%;
  margin:6px auto 4px;
  padding:0;
  line-height:0;
}
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104.hx-indicator-dots .hx-rich-dots {
  display:flex!important;
}
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104.hx-indicator-dots .hx-rich-counter,
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104.hx-indicator-none .hx-rich-counter,
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104.hx-indicator-none .hx-rich-dots {
  display:none!important;
}
/* Use a dedicated selector so the generic theme 40px circular gallery-button
   styling cannot turn pagination dots into a tall vertical button stack. */
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104 .hx-rich-dots > button.hx-rich-dot {
  box-sizing:border-box!important;
  display:block!important;
  position:static!important;
  flex:0 0 9px!important;
  width:9px!important;height:9px!important;
  min-width:9px!important;min-height:9px!important;
  max-width:9px!important;max-height:9px!important;
  aspect-ratio:1!important;
  padding:0!important;margin:0!important;
  border:0!important;
  border-radius:50%!important;
  outline-offset:3px;
  box-shadow:none!important;
  background:#b5c9d8!important;
  transform:none!important;
  line-height:0!important;
  font-size:0!important;
  text-indent:-9999px;
  overflow:hidden;
  cursor:pointer;
}
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104 .hx-rich-dots > button.hx-rich-dot.is-active {
  background:#0b3153!important;
}
.hx-product-page.hx-design-scope .hx-related-grid .hx-card-v104 .hx-rich-dots > button.hx-rich-dot:focus-visible {
  outline:2px solid #245e95!important;
}
