/* Comixadiko Storefront v3.0.11
   Manufacturer product pages (e.g. Chaniartoon Press):
   prevent Bootstrap floats from packing products like masonry when card heights differ. */

#product-manufacturer .cmx-manufacturer-products {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  clear: both;
}

#product-manufacturer .cmx-manufacturer-products::before,
#product-manufacturer .cmx-manufacturer-products::after {
  display: none !important;
  content: none !important;
}

#product-manufacturer .cmx-manufacturer-products > .product-layout {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  margin-bottom: 36px;
}

#product-manufacturer .cmx-manufacturer-products > .product-layout > .product-thumb {
  width: 100%;
  height: 100%;
  display: flex !important;
  flex-direction: column;
}

/* Keep text/actions aligned within each row without forcing covers to crop. */
#product-manufacturer .cmx-manufacturer-products > .product-layout > .product-thumb > div:last-child {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

#product-manufacturer .cmx-manufacturer-products .product-thumb .caption {
  flex: 1 1 auto;
}

#product-manufacturer .cmx-manufacturer-products .product-thumb .button-group {
  margin-top: auto;
}

/* Grid mode: equal image stage, original artwork remains fully visible. */
#product-manufacturer .cmx-manufacturer-products > .product-grid .product-thumb .image > a {
  display: flex !important;
  width: 100%;
  min-height: 285px;
  align-items: center;
  justify-content: center;
}

#product-manufacturer .cmx-manufacturer-products > .product-grid .product-thumb .image img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 285px !important;
  object-fit: contain !important;
}

@media (max-width: 1199px) {
  #product-manufacturer .cmx-manufacturer-products > .product-grid .product-thumb .image > a {
    min-height: 245px;
  }
  #product-manufacturer .cmx-manufacturer-products > .product-grid .product-thumb .image img {
    max-height: 245px !important;
  }
}

@media (max-width: 767px) {
  #product-manufacturer .cmx-manufacturer-products > .product-layout {
    margin-bottom: 28px;
  }
  #product-manufacturer .cmx-manufacturer-products > .product-grid .product-thumb .image > a {
    min-height: 300px;
  }
  #product-manufacturer .cmx-manufacturer-products > .product-grid .product-thumb .image img {
    max-height: 300px !important;
  }
}
