/* Product cards: same mint panel look as the service cards.
   Used by [mh_all_products] and the product category archive. */
.mh-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mh-product-item {
  --mh-card-bg: #E2EAE1;
  --mh-card-dark: var(--mh-hero-dark, #16211d);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px 16px 28px;
  background: var(--mh-card-bg);
  border: 0;
  border-radius: 28px;
  color: var(--mh-card-dark);
  text-align: center;
  transition: transform .2s ease;
}
.mh-product-item:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

/* image sits on a white panel so the packshots stay clean */
.mh-product-image-link {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}
.mh-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  transform: scale(1.001);
  transition: transform .8s cubic-bezier(.65, 0, .25, 1);
}
@media (hover: hover) {
  .mh-product-item:hover .mh-product-image { transform: scale(1.06); }
}

.mh-product-title {
  flex: 1 1 auto;
  margin: 0;
  padding: 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
}
.mh-product-title a,
.mh-product-title a:hover {
  color: var(--mh-card-dark);
  text-decoration: none;
}

/* outline pill with a dark arrow chip, like the service "Read More" */
.mh-product-item .mh-product-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  margin: 0;
  padding: 0 8px 0 28px;
  border: 1px solid var(--mh-card-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--mh-card-dark);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease;
}
.mh-product-item .mh-product-link::after {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mh-card-dark) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 10.5l7-7M4.5 3.5h6v6'/></svg>") center / 14px 14px no-repeat;
}
.mh-product-item .mh-product-link:hover,
.mh-product-item .mh-product-link:focus {
  background: transparent;
  color: var(--mh-card-dark);
  transform: translateY(-2px);
}

@media (max-width: 1199px) {
  .mh-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .mh-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mh-product-grid { grid-template-columns: 1fr; }
  .mh-product-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-product-item,
  .mh-product-item .mh-product-link,
  .mh-product-image { transition: none; transform: none; }
}

/* Load more: mint pill with a dark arrow chip, like the theme buttons */
.mh-loadmore-wrap {
  position: relative;
  margin: 56px 0 0;
  text-align: center;
}
.mh-loadmore-wrap .mh-loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 8px 0 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e3eae1;
  color: #16211d;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}
.mh-loadmore-wrap .mh-loadmore-btn::after {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16211d url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 2.5v9M3 7.5l4 4 4-4'/></svg>") center / 14px 14px no-repeat;
}
.mh-loadmore-wrap .mh-loadmore-btn:hover,
.mh-loadmore-wrap .mh-loadmore-btn:focus {
  background: #fff;
  color: #16211d;
  transform: translateY(-2px);
}
.mh-loadmore-wrap .mh-loadmore-btn:focus-visible {
  outline: 2px solid #e2eae1;
  outline-offset: 3px;
}
.mh-loadmore-wrap .mh-loadmore-btn:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}
/* Out of the flow, so showing it never shifts the centred button */
.mh-loadmore-wrap .mh-loading-spinner {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 14px 0 0;
  transform: translateX(-50%);
  color: #e2eae1;
  font-size: 14px;
  white-space: nowrap;
}
