/* Shared card/list product DOM. Scope sizing so product photos and print sheets
   keep their existing rules. Labels remain readable when artwork is unavailable. */
#catalog-grid .catalog-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 8px;
  min-width: 0;
}
#catalog-grid .catalog-certification {
  display: flex;
  flex: 0 1 48px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #33465f;
}
#catalog-grid .catalog-certification-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  max-width: 100%;
  height: 24px;
}
#catalog-grid .catalog-certification-art img {
  display: block;
  width: 28px;
  max-width: 100%;
  height: 24px;
  object-fit: contain;
}
#catalog-grid .catalog-certification-art img[hidden] { display: none; }
#catalog-grid .catalog-certification-label {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#catalog-grid .catalog-certification-status {
  color: #0b4d93;
  font-size: 16px;
  font-weight: 800;
  border: 1px solid #cad5e3;
  border-radius: 5px;
  background: #f8fafc;
  box-sizing: border-box;
}
/* LED catalog index only: detail/specification sheets keep their dimensions.
   Millimetres match the PDF index's 4mm mark boxes and 0.6mm gaps. */
.catalog-index-compact .idx-model { width: 38mm; }
.catalog-index-compact .idx-id { width: 24mm; }
.catalog-index-compact .idx-price { width: 26mm; }
.catalog-index-compact .idx-power { width: 17mm; }
.catalog-index-compact .idx-cct { width: 22mm; }
.catalog-index-compact .idx-cert { width: 30mm; }
.catalog-index-compact .row-cert-logos {
  flex-wrap: wrap;
  gap: .6mm !important;
  white-space: normal;
}
.catalog-index-compact .row-cert-logos img {
  flex: 0 0 4mm;
  width: 4mm;
  height: 4mm;
  object-fit: contain;
}
.catalog-index-compact .row-cert-logos .cert-row-placeholder {
  box-sizing: border-box;
  width: 4mm;
  height: 4mm;
  padding: 0;
  font-size: 4pt;
  overflow: hidden;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  /* Leave room for readable marks in the narrow list view. */
  .rsk-v5 [data-v5-results][data-view=list] #catalog-grid .catalog-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .rsk-v5 [data-v5-results][data-view=list] #catalog-grid .v5-card-footer {
    border-left: 0;
    border-top: 1px solid #edf1f0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
