/* Image-scoped overlay; never let brand assets set the height of a product card. */
.woocommerce ul.products li.product .htmg-catalog-image-wrap{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;line-height:0!important;overflow:hidden!important;box-sizing:border-box!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap>img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logos{position:absolute!important;inset:auto 5px 5px 5px!important;z-index:5!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:auto!important;max-width:calc(100% - 10px)!important;height:34px!important;min-height:0!important;padding:4px 6px!important;margin:0!important;background:rgba(255,255,255,.95)!important;border:1px solid #e2e2e2!important;border-radius:5px!important;box-sizing:border-box!important;overflow:hidden!important;pointer-events:none!important;line-height:1!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logo{display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;min-width:0!important;max-width:none!important;height:25px!important;max-height:25px!important;overflow:hidden!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logo img{display:block!important;position:static!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:25px!important;min-height:0!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important;float:none!important;aspect-ratio:auto!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-logo-fallback{font-size:8px!important;line-height:1!important;text-align:center!important;white-space:normal!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-more{flex:0 0 auto!important;font-size:10px!important;line-height:1!important}

/* v0.4.10: preserve full artwork and letterforms for each manufacturer mark. */
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logos{height:38px!important;padding:4px 5px!important;gap:5px!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logo{flex:1 1 0!important;min-width:0!important;max-width:100%!important;height:28px!important;max-height:28px!important;overflow:visible!important;padding:0 2px!important;box-sizing:border-box!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logo img{width:auto!important;height:auto!important;max-width:100%!important;max-height:27px!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;display:block!important;flex-shrink:1!important}

/* v0.4.11: consistent single-brand and multi-brand presentation. */
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logos{height:38px!important;min-height:38px!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logo{flex:1 1 0!important;max-width:100%!important;overflow:hidden!important}
.woocommerce ul.products li.product .htmg-catalog-image-wrap .htmg-catalog-logo img{max-height:27px!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:center!important}

/* v0.4.16: protect Related Products from giant stacked manufacturer images,
   even when a custom theme changes the thumbnail link markup. */
.woocommerce .related ul.products li.product .htmg-catalog-logos,
.woocommerce .upsells ul.products li.product .htmg-catalog-logos,
.single-product .htmg-catalog-logos {
 display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
 justify-content:center!important; align-items:center!important; gap:6px!important;
 width:100%!important; max-width:100%!important; height:40px!important; min-height:40px!important;
 margin:4px auto 7px!important; padding:4px 6px!important; overflow:hidden!important;
 box-sizing:border-box!important; background:#fff!important;
}
.woocommerce .related ul.products li.product .htmg-catalog-logo,
.woocommerce .upsells ul.products li.product .htmg-catalog-logo,
.single-product .htmg-catalog-logo {
 display:flex!important; flex:1 1 0!important; min-width:0!important; max-width:100%!important;
 height:30px!important; max-height:30px!important; align-items:center!important; justify-content:center!important;
 overflow:hidden!important; margin:0!important; padding:0 2px!important; box-sizing:border-box!important;
}
.woocommerce .related ul.products li.product .htmg-catalog-logo img,
.woocommerce .upsells ul.products li.product .htmg-catalog-logo img,
.single-product .htmg-catalog-logo img {
 display:block!important; position:static!important; width:auto!important; height:auto!important;
 max-width:100%!important; max-height:29px!important; min-height:0!important;
 object-fit:contain!important; object-position:center!important; margin:0 auto!important; padding:0!important;
 float:none!important; transform:none!important; aspect-ratio:auto!important;
}

/* v0.4.17: enforce actual image scaling even on theme-specific related-product markup. */
.htmg-catalog-logos{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:100%!important;max-width:100%!important;min-height:36px!important;height:36px!important;padding:3px 5px!important;margin:5px auto!important;overflow:hidden!important;box-sizing:border-box!important}
.htmg-catalog-logos>.htmg-catalog-logo{display:flex!important;flex:1 1 0!important;min-width:0!important;max-width:100%!important;height:28px!important;max-height:28px!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.htmg-catalog-logos>.htmg-catalog-logo>img,.woocommerce .htmg-catalog-logos>.htmg-catalog-logo>img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:26px!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;position:static!important;float:none!important;margin:0 auto!important;padding:0!important;transform:none!important;aspect-ratio:auto!important}
