/* One product card for directory, search, related products and product hubs. */
html body.page-public .ms-product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: var(--ms-card-gap, 16px) !important;
  align-items: stretch !important;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--ms-card-border, #ead2c1) !important;
  border-radius: var(--ms-card-radius, 18px) !important;
  background: var(--ms-card-surface, #fff8ef) !important;
  box-shadow: none !important;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card.marketplace-extra-item { display: none !important; }
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__media {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  color: #674737;
  background: #f4e5d5;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__body {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0 !important;
  padding: var(--ms-card-body-padding, 12px) !important;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__title,
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__seller,
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__price {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.4 !important;
  text-align: left !important;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__title { color: var(--ms-color-ink, #44271f); font-size: min(16px, var(--ms-type-subheading, 16px)) !important; font-weight: 700; }
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__seller { color: var(--ms-color-muted, #674737); font-size: var(--ms-type-label, 14px) !important; }
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__price { color: var(--ms-color-ink, #44271f); font-size: min(15px, var(--ms-type-body, 15px)) !important; font-weight: 700; }
html body.page-public :is(#products, .ms-product-grid) .ms-product-card__placeholder { padding: 12px; font-size: var(--ms-type-label, 14px) !important; text-align: center; }
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card .ms-product-card__actions .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--ms-control-height, 44px) !important;
  margin: 0 !important;
  padding: 8px 4px !important;
  font-size: var(--ms-type-control, 13px) !important;
  line-height: 1.35 !important;
  border-radius: var(--ms-control-radius, 12px) !important;
  white-space: normal !important;
  text-align: center;
}
html body.page-public :is(#products, .ms-product-grid) .ms-product-card :is(a, button):focus-visible {
  outline: 3px solid var(--ms-color-brand, #a60813);
  outline-offset: -3px;
}
html body.page-public.route-products #products .product-category-grid + .ms-product-grid {
  margin-top: var(--ms-section-gap, 28px) !important;
}
@media (min-width: 821px) and (max-width: 1099px) {
  html body.page-public .ms-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
  html body.page-public .ms-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}
