#products {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
}

a.product-cell {
  display: grid;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.product-cell {
  display: grid;
  padding: 16px;
  gap: 1rem;

  border: .15rem solid #6077763b;
  border-radius: 10px;
  background: #fff;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: auto;
  margin-right: auto;
  box-shadow: -10px -10px 20px #2b2a291a;
}


.product-cell-l .product-cell {
  grid-template-areas:
    "title title title"
    "subtitle subtitle subtitle"
    "icon description image"
    "icon highlights image";
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto 1fr auto;
}

.product-cell-r .product-cell {
  grid-template-areas:
    "title title title"
    "subtitle subtitle subtitle"
    "image description icon"
    "image highlights icon";
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto 1fr auto;
}

.product-cell-title {
  grid-area: title;
  /* display: flex; */
  align-items: center;
  /* vertical centering */
  justify-content: center;
  /* horizontal centering */
  text-align: center;
  align-self: start;
}

.product-cell-title img {
  margin-left: auto;
  margin-right: auto;
  height: auto;
  width: auto;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
  max-height: calc(3rem + 1vw);
  max-width: 100%;
}

.product-cell-subtitle {
  grid-area: subtitle;
  text-align: center;
  align-self: start;
  margin-bottom: 0px;
}

.product-cell-image {
  grid-area: image;
  display: flex;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  max-height: 100%;
  width: auto;
  padding: 0.3%;
  align-items: center;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.product-cell-image img {
  flex: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 90%;
  max-height: 400px;
  width: fit-content;
  object-fit: contain;
}

.product-cell-icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  font-weight: bold !important;

  justify-content: center;
  height: 100%;
  width: 100%;
  margin: -16px;
}

.product-cell-r .product-cell-icon {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-left: .2rem;
}

.product-cell-l .product-cell-icon {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  margin-right: .2rem;
}

.product-cell-icon img {
  flex: auto;
  flex-grow: 0;
  min-height: 0;
  width: 128px;
  min-width: 0;
  object-fit: contain;
}

.product-cell-l .product-cell-icon img {
  border-top-right-radius: 10%;
  border-bottom-right-radius: 10%;
}

.product-cell-r .product-cell-icon img {
  border-top-left-radius: 10%;
  border-bottom-left-radius: 10%;
}

.product-cell-description {
  grid-area: description;
  flex: auto;
  align-content: center;
  max-height: 100%;
}


.product-cell-highlights {
  grid-area: highlights;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.product-cell-highlight {
  display: flex;
  align-items: flex-start;
  align-items: center;
  margin-top: .3rem;
}

.product-cell-highlight-icon {
  flex-shrink: 0;
  flex: auto;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  border-radius: 100%;
  background-color: var(--product-color);
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  height: 3rem;
  margin-right: .5rem;
  vertical-align: middle;
}

.product-cell-highlight-icon i {
  font-size: 1.5rem;
  /* controls icon size */
  color: #ffffff;
  /* icon color */
  line-height: 1;
}

.product-cell-highlight-text {
  font-weight: bold;
}

@media (max-width: 1484px) {
  .product-cell-icon {
    display: none;
  }

  .product-cell-l .product-cell {
    grid-template-areas:
      "title title title"
      "subtitle subtitle subtitle"
      "description description image"
      "highlights highlights image";
  }

  .product-cell-r .product-cell {
    grid-template-areas:
      "title title title"
      "subtitle subtitle subtitle"
      "image description description"
      "image highlights highlights";
  }
}


@media (max-width: 1263px) {
  .product-cell-icon {
    display: none;
  }

  .product-cell-l .product-cell {
    grid-template-areas:
      "title title image"
      "subtitle subtitle image"
      "description description image"
      "highlights highlights highlights";

    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto auto 1fr auto;
  }

  .product-cell-r .product-cell {
    grid-template-areas:
      "image title title"
      "image subtitle subtitle"
      "image description description"
      "highlights highlights highlights";

    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: auto auto 1fr auto;
  }
}

@media (max-width: 767px) {
  .product-cell-icon {
    display: none;
  }

  .product-cell-description {
    display: none;
  }

  .product-cell-r .product-cell,
  .product-cell-l .product-cell {
    grid-template-areas:
      "title"
      "subtitle"
      "image"
      "highlights";

    grid-template-columns: auto;
    grid-template-rows: auto;
  }

  .product-cell-l .product-cell-highlights,
  .product-cell-r .product-cell-highlights {
    padding-left: 3%;
    margin-top: auto;
    margin-bottom: auto;
    gap: 0;
  }

  .product-cell-highlights {
    grid-template-columns: 1fr;
  }

  .product-cell-image img {
    max-width: 60%;
  }
}

/* Hover effect */
.product-cell:hover {
  transform: translateY(-4px);
  cursor: pointer;
  outline: .3rem solid var(--bs-primary);
  outline-offset: -.1rem;
}

.product-cell-l .product-cell:hover {
  box-shadow: 10px 10px #e9c02d;
}

.product-cell-r .product-cell:hover {
  box-shadow: -10px 10px #e9c02d;
}

.product-cell-divider {
  display: block;
  min-height: calc(.2rem + .1vh);
  max-width: 50%;
  width: 50%;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;

  background-color: #60a7a734;
}