/**
 * Global WooCommerce product loop cards — aligned CTAs site-wide
 */

body.hipopo-redesign-active ul.products,
body.hipopo-hp-v3 ul.products,
body.hipopo-hp-v3 .hp-codex-home ul.products {
  align-items: stretch !important;
}

body.hipopo-redesign-active ul.products li.product,
body.hipopo-hp-v3 ul.products li.product,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product,
body.hipopo-hp-v3 .hp-codex-home .elementor-widget-woocommerce-products ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  height: 100%;
  min-height: 268px;
}

body.hipopo-redesign-active ul.products li.product .woocommerce-loop-product__link,
body.hipopo-hp-v3 ul.products li.product .woocommerce-loop-product__link,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product .woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0;
  text-decoration: none;
}

body.hipopo-redesign-active ul.products li.product img,
body.hipopo-hp-v3 ul.products li.product img,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: 120px !important;
  margin: 0 auto 10px !important;
  object-fit: contain !important;
  flex: 0 0 120px !important;
}

body.hipopo-redesign-active ul.products li.product .woocommerce-loop-product__title,
body.hipopo-hp-v3 ul.products li.product .woocommerce-loop-product__title,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.7em;
  margin: 0 0 8px !important;
  line-height: 1.35 !important;
  flex: 1 1 auto;
  text-align: center;
}

body.hipopo-redesign-active ul.products li.product .price,
body.hipopo-hp-v3 ul.products li.product .price,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product .price {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto;
  align-self: center;
  text-align: center;
}

body.hipopo-redesign-active ul.products li.product .button,
body.hipopo-redesign-active ul.products li.product a.add_to_cart_button,
body.hipopo-redesign-active ul.products li.product a.product_type_simple,
body.hipopo-redesign-active ul.products li.product a.product_type_variable,
body.hipopo-hp-v3 ul.products li.product .button,
body.hipopo-hp-v3 ul.products li.product a.add_to_cart_button,
body.hipopo-hp-v3 ul.products li.product a.product_type_simple,
body.hipopo-hp-v3 ul.products li.product a.product_type_variable,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product .button,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product a.add_to_cart_button,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product a.product_type_simple,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product a.product_type_variable {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px;
  margin-top: 10px !important;
  margin-inline: 0 !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  flex: 0 0 auto;
  float: none !important;
}

body.hipopo-redesign-active ul.products li.product .added_to_cart,
body.hipopo-hp-v3 ul.products li.product .added_to_cart,
body.hipopo-hp-v3 .hp-codex-home ul.products li.product .added_to_cart {
  display: block;
  margin-top: 6px;
  text-align: center;
  align-self: center;
  flex: 0 0 auto;
}
