/* Shared product listings: catalogue, categories, brands and related products. */
body .v2-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 22px;
}
.v2-related .v2-product-grid,
.v4-brand-page .v2-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.v2-product-grid .v2-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border: 1px solid #dfe6eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 4px #16394e03;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.v2-product-grid .v2-card:hover,
.v2-product-grid .v2-card:focus-within {
  border-color: #a8bfce;
  box-shadow: 0 8px 24px #16394e0c;
}
.v2-product-grid .v2-card .v2-card-image {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 22px;
  background: #fff;
  overflow: hidden;
}
.v2-product-grid .v2-card .v2-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.v2-product-grid .v2-card .v2-card-body {
  padding: 18px;
  border-top: 1px solid #edf1f4;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.v2-product-grid .v2-card .v2-card-brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 30px;
  min-height: 30px;
  gap: 0;
  overflow: hidden;
  color: #476476;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}
.v2-product-grid .v2-card .v6-brand-logo {
  display: block;
  width: 90px;
  height: 30px;
  flex: 0 0 90px;
  object-fit: contain;
  object-position: left center;
}
.v2-product-grid .v2-card h3 {
  font: 650 1rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.01em;
  color: #203c4e;
  margin: 12px 0 8px;
  min-height: 4.35em;
  overflow-wrap: anywhere;
}
.v2-product-grid .v2-card h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-product-grid .v2-card h3 a:hover { color: #126796; }
.v2-product-grid .v2-card .v2-card-ref {
  display: block;
  min-height: 1.5em;
  margin: 0 0 18px;
  color: #5c7382;
  font-size: .74rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-product-grid .v2-card .v2-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #e8edf1;
}
.v2-product-grid .v2-card .v2-card-details {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 44px;
  color: #245f82;
  font-size: .79rem;
  font-weight: 650;
  white-space: nowrap;
}
.v2-product-grid .v2-card .v2-card-details span { color: inherit; margin: 0; }
.v2-product-grid .v2-card .v2-card-add {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 82px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d5e4ed;
  border-radius: 7px;
  background: #f0f6fa;
  color: #1b638b;
  font-size: .77rem;
  font-weight: 650;
}
.v2-product-grid .v2-card .v2-card-add:hover,
.v2-product-grid .v2-card .v2-card-add.is-added {
  background: #17678f;
  border-color: #17678f;
  color: #fff;
}
.v2-product-grid .v2-card a:focus-visible,
.v2-product-grid .v2-card button:focus-visible,
.v2-results .v2-sort :focus-visible,
.v2-pagination a:focus-visible {
  outline: 2px solid #176b99;
  outline-offset: 3px;
  border-radius: 3px;
}
.mwb-catalogue-refined .v2-results-toolbar {
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding: 0 0 18px;
}
.mwb-catalogue-refined .v2-results-toolbar h2 { font-size: 1rem; color: #203c4e; }
.mwb-catalogue-refined .v2-sort { gap: 8px; }
.mwb-catalogue-refined .v2-sort select,
.mwb-catalogue-refined .v2-sort-apply {
  min-height: 44px;
  border-radius: 7px;
  font-size: .78rem;
}
.v2-pagination { padding-top: 32px; }
.v2-pagination a, .v2-pagination span {
  min-width: 44px;
  min-height: 44px;
  border-radius: 7px;
  font-size: .82rem;
}
.v2-related .v2-card:nth-child(4) { display: flex; }
/* Keep the home selection visually consistent without changing its content. */
.v3-featured-grid .v3-featured-card { border-radius: 12px; overflow: hidden; }
.v3-featured-grid .v3-featured-image { background: #fff; }
.v3-featured-grid .v3-featured-copy h3 { min-height: 4.2em; }
.v3-featured-grid .v3-featured-copy > strong { padding-top: 12px; }
@media (max-width: 900px) {
  .mwb-catalogue-refined .v2-sort select { font-size: 16px; }
  .mwb-catalogue-refined .v2-sort { flex-wrap: wrap; }
  body .v2-product-grid { gap: 18px; }
}
@media (max-width: 600px) {
  body .v2-product-grid,
  .v2-related .v2-product-grid,
  .v4-brand-page .v2-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .v2-product-grid .v2-card { border-radius: 9px; }
  .v2-product-grid .v2-card .v2-card-image { aspect-ratio: 1; padding: 14px; }
  .v2-product-grid .v2-card .v2-card-body { padding: 12px; }
  .v2-product-grid .v2-card .v2-card-brand { height: 26px; min-height: 26px; font-size: .7rem; }
  .v2-product-grid .v2-card .v6-brand-logo { width: 76px; height: 26px; flex-basis: 76px; }
  .v2-product-grid .v2-card h3 { font-size: .88rem; line-height: 1.45; margin-top: 10px; min-height: 4.35em; }
  .v2-product-grid .v2-card .v2-card-ref { font-size: .69rem; margin-bottom: 13px; }
  .v2-product-grid .v2-card .v2-card-bottom { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; }
  .v2-product-grid .v2-card .v2-card-details { justify-content: center; font-size: .76rem; gap: 6px; }
  .v2-product-grid .v2-card .v2-card-add { width: 100%; font-size: .76rem; }
  .mwb-catalogue-refined .v2-sort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .mwb-catalogue-refined .v2-sort select { width: 100%; max-width: none; }
  .mwb-catalogue-refined .v2-sort-apply { grid-column: 1 / -1; font-size: .85rem; }
  .mwb-catalogue-refined .v2-results-toolbar { gap: 12px; margin-bottom: 18px; }
}
@media (max-width: 359px) {
  body .v2-product-grid,
  .v2-related .v2-product-grid,
  .v4-brand-page .v2-product-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-product-grid .v2-card .v2-card-image { aspect-ratio: 4 / 3; }
  .v2-product-grid .v2-card .v2-card-bottom { flex-direction: row; align-items: center; }
  .v2-product-grid .v2-card .v2-card-add { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-product-grid .v2-card { transition: none; }
}
