/* v1.0.51 — true translucent overlay on WooCommerce product-loop image frames. */
body ul.products li.product:not(.product-category) .gb-loop-image-wrap {
  position: relative !important;
  isolation: isolate;
}
body ul.products li.product:not(.product-category) .gb-loop-image-wrap::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.035) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 2 !important;
  border-radius: 0 !important;
}
/* Native WooCommerce cards whose featured image is a direct child of the link. */
body ul.products li.product:not(.product-category) a.woocommerce-LoopProduct-link:has(> img:first-of-type),
body ul.products li.product:not(.product-category) a.woocommerce-loop-product__link:has(> img:first-of-type) {
  position: relative !important;
  isolation: isolate;
}
body ul.products li.product:not(.product-category) a.woocommerce-LoopProduct-link:has(> img:first-of-type)::after,
body ul.products li.product:not(.product-category) a.woocommerce-loop-product__link:has(> img:first-of-type)::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  background: rgba(0,0,0,.035) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
/* PDP size swatches: force horizontal wrapping for plugin variations and native controls. */
body.single-product form.variations_form table.variations td.value .cfvsw-swatches-container,
body.single-product form.variations_form table.variations td.value .variable-items-wrapper,
body.single-product form.variations_form table.variations td.value .woo-variation-items-wrapper,
body.single-product form.variations_form table.variations td.value .gb-size-swatches,
body.single-product form.variations_form table.variations td.value .gb-size-options {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
}
body.single-product form.variations_form table.variations td.value .cfvsw-swatches-option,
body.single-product form.variations_form table.variations td.value .variable-item {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}
