.products-content {
  padding: 80px 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 7fr));
  grid-gap: 2rem;
  justify-items: center;
}
.wrapper-box {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.product-box-content {
  display: flex;
  gap: 32px;
  align-items: center;
}
.row-reverse {
  flex-direction: row-reverse;
}
.box-content-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.box-content-text > h1 {
  font-weight: 900;
  font-size: 36px;
  line-height: 38px;
  display: flex;
  align-items: center;
  color: #212121;
  /* margin-bottom: 16px; */
}

.box-content-text .text {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
  color: #1e1e1f;    flex-direction: column;
    display: -webkit-box;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
}
.box-content-text .btn-read > a {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2px;
  color: #2b5aa9;
}
.box-content-text .btn-read > a:hover {
  color: #ffd500;
  cursor: pointer;
}
.box-content-image {
  position: relative;
  display: flex;
}

.box-content-image > img {
  height: 320px;
  width: 496px;
}
.select-box-image {
  position: absolute;
  display: flex;
  gap: 12px;
  height: auto;
  width: 60px;
  height: 60px;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}
.select-box-image > img {
  height: 100%;
  width: 100%;
  border: 1px solid #fff;
  cursor: pointer;
  object-fit: cover;
}
.select-box-image .selected {
  border: 1px solid #ffd500;
}

.box-goods {
  position: relative;
  display: inline-block;
  padding: 24px 16px;
  width: 232px;
  height: 400px;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0px 4px 16px -4px rgba(16, 24, 40, 0.08),
    0px 4px 6px -2px rgba(16, 24, 40, 0.04);
  cursor: pointer;
}

.box-goods:hover .sub-text-product {
  display: -webkit-box;
  opacity: 1;
  animation: apperance linear 0.5s;
}
@keyframes apperance {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.box-goods:hover .product-detail {
  /* transform: translateY(-10px); */
  transform: translateY(0);
}
.box-goods:hover::before {
  filter: brightness(0);
  animation: brightness ease-in-out 0.5s;
}

@keyframes brightness {
  from {
    filter: brightness(0.7);
  }
  to {
    filter: brightness(0);
  }
}

.box-goods:before {
  position: absolute;
  content: "";
  min-width: 232px;
  min-height: 250px;
  background: url("../../assets/imgs/background-product.png");
  top: 0;
  left: 0;
  z-index: 0;
  background-repeat: no-repeat;
}

.box-goods .product-detail {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* transition: transform 250ms; */
  transition: 0.5s;
  transform: translateY(55%);
}

.product-name {
  color: #fdfdfd;
  font-weight: 600;
  size: 20px;
}

.product-quantity {
  color: #d9dbdd;
}

.sub-text-product {
  display: -webkit-box;
  color: #d9dbdd;
  margin: 0 auto;
  font-size: 16px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 178px;
  opacity: 0;
}
