/* Homepage product cards: a consistent image stage and a separate text area. */
#products .product-card {
  min-height: 530px !important;
  grid-template-rows: 34px 318px minmax(133px, auto) !important;
  align-content: start !important;
  row-gap: 7px !important;
}

#products .product-card-kicker {
  position: relative !important;
  z-index: 5 !important;
  background: rgba(7, 10, 8, .88) !important;
  border-color: rgba(243, 179, 36, .25) !important;
  color: #f7f7f1 !important;
}

#products .product-card .model,
#products .product-card .model-ft4000,
#products .product-card .model-ft4000ap,
#products .product-card .model-ft4000aptwin,
#products .product-card .model-ft4000hsp,
#products .product-card .model-ft4000ab,
#products .product-card .model-pedestal,
#products .product-card .model-tankwatch-real {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  grid-row: 2 !important;
  align-self: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  width: min(100%, 224px) !important;
  height: 300px !important;
  max-height: 300px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  display: block !important;
  overflow: clip !important;
}

#products .product-card .model img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

#products .product-card:hover .model,
#products .product-card:focus-visible .model {
  transform: translateY(-5px) scale(1.02) !important;
}

/* A square panel needs width to carry similar visual weight to the cabinets. */
#products .product-card .model-tankwatch-real {
  width: min(100%, 196px) !important;
}

#products .product-card-copy {
  position: relative !important;
  z-index: 5 !important;
  grid-row: 3 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  min-height: 133px !important;
  height: auto !important;
  padding: 10px 8px 11px !important;
  display: grid !important;
  grid-template-rows: minmax(66px, auto) 32px !important;
  align-content: space-between !important;
  gap: 7px !important;
  border: 1px solid rgba(243, 179, 36, .2) !important;
  border-radius: 14px !important;
  background: rgba(7, 10, 8, .95) !important;
  color: #f7f7f1 !important;
}

#products .product-card h3 {
  min-height: 66px !important;
  height: auto !important;
  grid-template-rows: minmax(22px, auto) minmax(34px, auto) !important;
  align-content: center !important;
  gap: 5px !important;
}

#products .product-card-name {
  font-size: 15px !important;
  line-height: 1.12 !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6) !important;
}

#products .product-card h3 > small {
  height: auto !important;
  min-height: 0 !important;
  align-items: center !important;
  color: #d6dbd2 !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
}

#products .product-card::after {
  bottom: 141px !important;
}

/* Keep the same legibility when the site's light theme is selected. */
html[data-theme="light"] #products .product-card-kicker {
  color: #fff !important;
}
html[data-theme="light"] #products .product-card-copy,
html[data-theme="light"] #products .product-card-name {
  color: #fff !important;
}
html[data-theme="light"] #products .product-card h3 > small {
  color: #e3e6df !important;
}

@media (max-width: 760px) {
  #products .product-card {
    min-height: 472px !important;
    grid-template-rows: 34px 260px minmax(133px, auto) !important;
  }

  #products .product-card .model,
  #products .product-card .model-ft4000,
  #products .product-card .model-ft4000ap,
  #products .product-card .model-ft4000aptwin,
  #products .product-card .model-ft4000hsp,
  #products .product-card .model-ft4000ab,
  #products .product-card .model-pedestal,
  #products .product-card .model-tankwatch-real {
    height: 242px !important;
    max-height: 242px !important;
  }
}
