.products {
  padding: 3rem 0;
}
.products__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 3.5rem;
  color: var(--gray-color);
}
.products__head-title {
  font-size: 4.5rem;
  font-family: Almarai-bold, Arial, sans-serif;
  color: var(--primary-color);
}
.products-row {
  margin-top: 3rem;
}
.products__product {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.products__product-image a {
  position: relative;
  display: inline-block;
}
.products__product-bg {
  position: absolute;
  height: 95%;
  background: rgb(35 35 35 / 80%);
  width: 95%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: 0.2s ease-in-out;
  opacity: 0;
}
.products__product-image a:hover .products__product-bg {
  opacity: 1;
  border-radius: 0;
  transform: translate(-50%, -50%) scale(1);
}
.products__product-image a:hover .products__product-name {
  display: block;
  animation: 0.4s fadeIn;
  -webkit-animation: 0.4s fadeIn;
  -moz-animation: 0.4s fadeIn;
  -o-animation: 0.4s fadeIn;
  -ms-animation: fadeIn 0.4s;
}
.products__product-name {
  font-size: 3rem;
  display: none;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-o-keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media only screen and (max-width: 768px) {
  .products__product-bg,
  .products__product-image a:hover .products__product-bg {
    transform: unset;
    opacity: 1;
  }
  .products__product-bg {
    position: relative;
    background: no-repeat;
    margin: 1rem 0 0;
    color: var(--dark-color);
    left: unset;
    top: unset;
    height: auto;
    width: auto;
  }
  .products__product-name {
    display: block;
    font-size: 2.5rem;
  }
  .products__product-image a:hover .products__product-name {
    animation: unset;
    -webkit-animation: unset;
    -moz-animation: unset;
    -o-animation: unset;
    -ms-animation: unset;
  }
}
