/* v6.9.184 — homepage product card alignment and hierarchy fix. */
#products .product-rail {
  align-items: stretch !important;
}

#products .product-card {
  box-sizing: border-box !important;
  min-height: 368px !important;
  grid-template-rows: 34px 205px 105px !important;
  align-content: stretch !important;
}

/* Keep every category label in the same visual slot and width. */
#products .product-card-kicker {
  box-sizing: border-box !important;
  justify-self: center !important;
  align-self: start !important;
  width: min(230px, 100%) !important;
  min-width: 0 !important;
  max-width: 230px !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  line-height: 1 !important;
}

#products .product-card-kicker::before {
  flex: 0 0 auto !important;
}

/* All product renders occupy one consistent image stage. */
#products .product-card .model {
  grid-row: 2 !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
}

/* Fixed information area prevents names/descriptions/buttons drifting between cards. */
#products .product-card-copy {
  grid-row: 3 !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  min-height: 105px !important;
  height: 105px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-rows: 64px 32px !important;
  align-content: end !important;
  justify-items: stretch !important;
  gap: 9px !important;
  text-align: center !important;
}

#products .product-card h3 {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: 30px 30px !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 4px !important;
  text-align: center !important;
}

#products .product-card-name {
  min-width: 0 !important;
  max-width: 100% !important;
  align-self: center !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-wrap: balance !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: .055em !important;
  color: inherit !important;
}

#products .product-card h3 > small {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: hidden !important;
  text-wrap: balance !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#products .product-card-link {
  align-self: end !important;
  justify-self: center !important;
  min-height: 32px !important;
  height: 32px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Keep the glow centred beneath the aligned information area. */
#products .product-card::after {
  bottom: 104px !important;
}

@media (max-width: 1320px) {
  #products .product-card {
    min-height: 365px !important;
  }
}

@media (max-width: 760px) {
  #products .product-card {
    min-height: 350px !important;
    grid-template-rows: 34px 188px 105px !important;
  }
  #products .product-card-kicker {
    width: min(230px, calc(100% - 8px)) !important;
    max-width: calc(100% - 8px) !important;
  }
  #products .product-card .model {
    max-height: 188px !important;
  }
}
