/* MGV1.2.7 | WooCommerce shop, product category, product-brand archive card alignment.
   No checkout, add-to-cart event or product data modification. */
body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_brand ul.products,
body.post-type-archive-product ul.products,
body.woocommerce ul.products {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  column-gap:clamp(12px,2vw,24px);
  row-gap:clamp(20px,2.5vw,30px);
  align-items:stretch;
}
body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_brand ul.products::before,
body.tax-product_brand ul.products::after,
body.woocommerce ul.products::before,
body.woocommerce ul.products::after{display:none!important;content:none!important}
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
  float:none!important;
  width:auto!important;max-width:100%!important;
  margin:0!important;
  min-width:0!important;
  text-align:left!important;
  position:relative;
}
body.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product > a.woocommerce-loop-product__link,
body.woocommerce-page ul.products li.product > a.woocommerce-LoopProduct-link,
body.woocommerce-page ul.products li.product > a.woocommerce-loop-product__link {
  display:flex!important;flex:1 1 auto!important;
  flex-direction:column!important;align-items:stretch!important;
  gap:0!important;min-width:0!important;
  text-decoration:none!important;
}
body.woocommerce ul.products li.product a img,
body.woocommerce-page ul.products li.product a img {
  box-sizing:border-box!important;display:block!important;
  width:100%!important;height:auto!important;
  aspect-ratio:4 / 5!important;
  object-fit:contain!important;
  background:#f1ede7;
  margin:0 0 12px!important;
  border-radius:12px;
}
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  min-height:4.55em!important;max-height:4.55em!important;
  overflow:hidden!important;margin:0 0 8px!important;
  padding:0!important;
  line-height:1.52!important;font-size:clamp(14px,1.35vw,17px)!important;
  font-weight:650!important;color:#1f2d25!important;
  overflow-wrap:anywhere!important;
}
body.woocommerce ul.products li.product .star-rating,
body.woocommerce-page ul.products li.product .star-rating{
  clear:both!important;flex:0 0 auto!important;
  margin:0 0 7px!important;
}
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price {
  display:block!important;
  clear:both!important;
  min-height:1.5em!important;
  margin:auto 0 11px!important;
  text-align:left!important;
  font-size:clamp(16px,1.6vw,20px)!important;
  font-weight:750!important;
  line-height:1.5!important;color:#7b3340!important;
  white-space:normal!important;
}
body.woocommerce ul.products li.product > .button,
body.woocommerce ul.products li.product > a.button,
body.woocommerce-page ul.products li.product > .button,
body.woocommerce-page ul.products li.product > a.button {
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-height:45px!important;width:100%!important;
  margin-top:auto!important;padding:10px!important;
  font-size:14px!important;font-weight:700!important;line-height:1.35!important;
  text-align:center!important;border-radius:10px!important;
}
@media(max-width:1050px){body.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){
  body.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 12px!important}
  body.woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {font-size:14px!important;min-height:4.6em!important;max-height:4.6em!important}
  body.woocommerce ul.products li.product .price{font-size:16px!important}
  body.woocommerce ul.products li.product > .button{min-height:42px!important;font-size:12px!important}
}
@media(max-width:360px){body.woocommerce ul.products{gap:12px 9px!important}}
