/* Full category trail, followed by a title centered beneath the store logo. */
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 6px;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) main > * { grid-column: 1 / -1; min-width: 0; }
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) main > .breadcrumbs {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 4px 0;
  margin: 0 0 3px;
  font-size: 15.6px;
  line-height: 1.4;
  flex-wrap: wrap;
  row-gap: 3px;
  overflow-wrap: anywhere;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) .listing-heading,
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) .listing-heading > div { display: contents; }
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) .listing-heading h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -.6px;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) main > .breadcrumbs { font-size: 13.2px; }
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) .listing-heading h1 { font-size: 30px; }
}

/* Category cards share row heights, including titles that wrap differently. */
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: stretch;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products::before,
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products::after {
  content: none !important;
  display: none !important;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  min-width: 0;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  position: relative;
  border: 1px solid #dce3ec;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product:hover,
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product:focus-within {
  border-color: #93adc7;
  box-shadow: 0 5px 16px rgb(16 43 80 / 10%);
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product > .woocommerce-loop-product__link {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  text-decoration: none;
}
/* Keep the smaller image while giving its entire shared row a soft background. */
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product > .woocommerce-loop-product__link::before {
  content: "";
  grid-area: 1 / 1;
  background: #f4f7fb;
  border-bottom: 1px solid #e7edf4;
  pointer-events: none;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product .woocommerce-loop-product__link > img {
  display: block;
  width: 85% !important;
  height: clamp(120px, 15vw, 220px) !important;
  object-fit: contain;
  margin: 16px auto !important;
  align-self: start;
  grid-area: 1 / 1;
  mix-blend-mode: multiply;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  margin: 16px 16px 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  align-self: start;
  grid-area: 2 / 1;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product .price {
  display: block;
  margin: 0 16px;
  align-self: start;
  grid-area: 3 / 1;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product .mppc-dual-price > strong {
  font-size: 22px;
  line-height: 1.25;
  color: #102b50;
}
body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product > .button {
  justify-self: stretch;
  align-self: start;
  margin: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 7px;
}
@media (max-width: 800px) {
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product > .button {
    justify-self: stretch;
    margin: 14px 11px;
    padding-inline: 10px;
  }
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product .woocommerce-loop-product__title {
    margin-inline: 11px;
    font-size: 16px;
  }
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product .price {
    margin-inline: 11px;
  }
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product .mppc-dual-price > strong {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.mppp-store:is(.tax-product_cat,.post-type-archive-product) ul.products li.product {
    transition: none;
  }
}
