.products {
  display: grid;
  display: -ms-grid;
  grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
  -ms-grid-columns: repeat(auto-fit, minmax(325px, 1fr));
  padding: 25px;
  gap: 25px;
  /* padding-top: 0; */
}

.products figure {
  height: 100%;
  width: 100%;
  cursor: pointer;
  position: relative;
  display: grid;
  display: -ms-grid;
  grid-template-rows: 60px 240px 210px;
  -ms-grid-rows: 60px 240px 210px;
  overflow: hidden;
  /* transition: 0.33s; */
  border: 1px solid var(--border);
}

.products figure figcaption {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  /* background: var(--lightgrey);
  color: var(--secondary); */
  /* transition: 0.33s; */
  border-bottom: 1px solid var(--border);
  padding: 0 5px;
}

.products figure figcaption h2 {
  text-align: center;
  font-size: 1.1rem;
}

.products figure figcaption::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0px;
  background-color: var(--accent);
  z-index: 100;
  transition: 0.33s;
}

.products figure:hover figcaption::before {
  width: 5px;
}

.products figure img {
  width: 100%;
  height: 100%;
  background: var(--primary);
  -o-object-fit: contain;
  object-fit: contain;
}

.products figure .infoPanel {
  display: grid;
  display: -ms-grid;
  grid-template-rows: 1fr 40px;
  -ms-grid-rows: 1fr 40px;
  /* text-align: left;
  text-justify: justify; */
  text-align: justify;
  text-justify: inter-word;
  background-color: var(--lightgrey);
  color: var(--secondary);
  /* color: var(--darkblue); */
  border-top: 1px solid var(--border);
  width: 100%;
  height: 100%;
  /* transition: 0.33s; */
}

.infoPanel span {
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.infoPanel .infoPanelText {
  padding: 10px 15px;
}

.infoPanel .moreDetailsSpan {
  grid-row: 2;
  border-top: 1px solid var(--border);
  background-color: var(--midlightgrey);
  background-color: var(--darkblue);
  color: var(--primary);
  font-size: 1rem;
  text-transform: uppercase;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.33s, color 0.33s;
}

.products figure:hover .infoPanel .moreDetailsSpan {
  background-color: var(--accent);
  vertical-align: middle;
}

/* .products figure:hover figcaption {
  background: var(--darkblue);
} */