/* MusicBox 2.33.10 — Product Collection + classic catalog image and tax suffix layout.
   CSS-only image fixes preserve the original product photos and WooCommerce prices. */

/* Product Collection uses .wc-block-components-product-image (not only the
   older .wc-block-product-image). A fixed-height frame with a "cover" image
   used to crop tall PA systems; centre the complete image in that frame. */
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand,.search)
  .mbx-shop-results :is(.wc-block-components-product-image,.wp-block-woocommerce-product-image,.wc-block-product-image) {
    box-sizing:border-box!important;
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:clamp(132px,10vw,170px)!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
    margin:0 0 6px!important;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand,.search)
  .mbx-shop-results :is(.wc-block-components-product-image,.wp-block-woocommerce-product-image,.wc-block-product-image) > a {
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    overflow:visible!important;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand,.search)
  .mbx-shop-results :is(.wc-block-components-product-image,.wp-block-woocommerce-product-image,.wc-block-product-image) img {
    display:block!important;
    position:static!important;
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:100%!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:auto!important;
    transform:none!important;
}
/* Legacy WooCommerce product loop images: keep full photo visible. */
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand,.search)
  .mbx-shop-results ul.products li.product :is(a.woocommerce-LoopProduct-link,a.woocommerce-loop-product__link) img {
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:170px!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    margin-inline:auto!important;
}
@media(max-width:767px){
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand,.search)
    .mbx-shop-results :is(.wc-block-components-product-image,.wp-block-woocommerce-product-image,.wc-block-product-image){
      height:130px!important;
    }
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand,.search)
    .mbx-shop-results ul.products li.product :is(a.woocommerce-LoopProduct-link,a.woocommerce-loop-product__link) img {
      max-height:130px!important;
    }
}

/* WooCommerce already supplies the legal tax suffix within its price HTML.
   Move that existing suffix underneath the price: do not add a fake label,
   duplicate it, or modify the actual tax calculation. */
.mbxp .mbxp__price,
.mbx-shop-results :is(.price,.wc-block-components-product-price,.wc-block-grid__product-price),
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price {
  display:block!important;
}
.mbxp .mbxp__price .woocommerce-price-suffix,
.mbx-shop-results :is(.price,.wc-block-components-product-price,.wc-block-grid__product-price) .woocommerce-price-suffix,
body.woocommerce ul.products li.product .woocommerce-price-suffix,
body.woocommerce-page ul.products li.product .woocommerce-price-suffix {
  display:block!important;
  clear:both!important;
  width:100%!important;
  margin:4px 0 0!important;
  padding:0!important;
  color:#536170!important;
  font-size:11px!important;
  font-weight:400!important;
  line-height:1.35!important;
  text-decoration:none!important;
  white-space:normal!important;
}
