/*
 * PIT64 2.1.19 — uniform mixed catalog for /tienda/ only.
 * The WooCommerce class lives on body in this template, so these selectors
 * intentionally target the product grid directly instead of a nonexistent
 * descendant .woocommerce wrapper.
 */
body.pit64-shop-catalog ul.products {
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px 18px;
}

body.pit64-shop-catalog ul.products > li.product {
  box-sizing: border-box;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d9d2c7;
  background: #fff;
}

body.pit64-shop-catalog ul.products > li.product .woocommerce-LoopProduct-link {
  box-sizing: border-box;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  display: flex;
  flex-direction: column;
}

body.pit64-shop-catalog ul.products > li.product a.woocommerce-LoopProduct-link > img,
body.pit64-shop-catalog ul.products > li.product img.pit64-catalog-product-image,
body.pit64-shop-catalog ul.products > li.product.pit64-pokemon-product a.woocommerce-LoopProduct-link > img,
body.pit64-shop-catalog ul.products > li.product.pit64-pokemon-product a img.pit64-pokemon-product-image,
body.pit64-shop-catalog ul.products > li.product.pit64-video-game-product a img,
body.pit64-shop-catalog ul.products > li.product.pit64-console-product a img,
body.pit64-shop-catalog ul.products > li.product.pit64-accessory-product a img,
body.pit64-shop-catalog ul.products > li.product.pit64-diecast-product a img {
  box-sizing: border-box;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 11px !important;
  padding: 10px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
  filter: none !important;
  transform: none !important;
}

body.pit64-shop-catalog ul.products > li.product .pit64-identity-loop {
  box-sizing: border-box;
  flex: 0 0 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 1px 10px !important;
  overflow: hidden;
}

body.pit64-shop-catalog ul.products > li.product .pit64-identity-empty {
  display: block !important;
  visibility: hidden;
}

body.pit64-shop-catalog ul.products > li.product .pit64-diecast-badges,
body.pit64-shop-catalog ul.products > li.product .pit64-loop-description {
  display: none !important;
}

body.pit64-shop-catalog ul.products > li.product .woocommerce-loop-product__title,
body.pit64-shop-catalog ul.products > li.product .pit64-loop-title-split,
body.pit64-shop-catalog ul.products > li.product.pit64-pokemon-product .pit64-loop-title-split,
body.pit64-shop-catalog ul.products > li.product.pit64-diecast-product .pit64-diecast-loop-title {
  box-sizing: border-box;
  min-height: 3.9rem !important;
  max-height: 3.9rem !important;
  margin: 0 3px !important;
  overflow: hidden;
}

body.pit64-shop-catalog ul.products > li.product.pit64-pokemon-product .pit64-pokemon-rarity-loop {
  flex: 0 0 25px;
  min-height: 25px;
  max-height: 25px;
  margin: 0 3px 8px;
}

body.pit64-shop-catalog ul.products > li.product .woocommerce-LoopProduct-link .price,
body.pit64-shop-catalog ul.products > li.product.pit64-pokemon-product .price,
body.pit64-shop-catalog ul.products > li.product.pit64-diecast-product .woocommerce-LoopProduct-link .price {
  min-height: 26px;
  margin: auto 3px 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  color: #15120f;
  font-size: 18px;
  line-height: 1.2;
}

body.pit64-shop-catalog ul.products > li.product > .button,
body.pit64-shop-catalog ul.products > li.product > .added_to_cart {
  width: calc(100% - 6px);
  min-height: 40px;
  margin: 11px 3px 0 !important;
  padding: 0 10px;
  align-self: stretch;
  justify-content: center;
  font-size: 9px;
  line-height: 1.1;
}

@media (max-width: 1100px) {
  body.pit64-shop-catalog ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.pit64-shop-catalog ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  body.pit64-shop-catalog ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.pit64-shop-catalog ul.products > li.product {
    width: 100% !important;
    max-width: 340px;
    margin-inline: auto !important;
  }
}
