@font-face {
  font-family: sahel;
  src: url("fonts/sahel/Sahel.eot");
  src: url("fonts/sahel/Sahel.eot?#iefix") format("FontName-opentype"),
    url("fonts/sahel/Sahel.woff") format("woff"),
    url("fonts/sahel/Sahel.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sahel, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
}
a {
  text-decoration: none;
}
img {
  width: 100%;
}

.sr-only {
  position: absolute;
  /* rtl directory */
  right: -10000px;
  top: auto;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.product-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 6px;
  padding: 6px;
  min-height: 520px;
}
.product-box {
  text-align: center;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background-color: white;
  display: grid;
  grid-template-rows: 1fr 3fr 0.5fr;
}
.max-line-title {
  overflow: hidden;
  white-space: normal;
  height: 80px;
  text-overflow: -o-ellipsis-lastline;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
}
.product-title {
  background-color: darkcyan;
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 6px;
  line-height: 1.5rem;
}
.product-title h2 {
  font-size: 1em;
  font-weight: 600;
}
.product-box footer {
  padding: 6px;
  color: white;
  background-color: #35bff0;
  border-radius: 0 0 12px 12px;
  text-align: center;
}
.product-img {
  background-color: white;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.product-img a {
  display: block;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}
.product-img a:hover {
  transform: scale(1.1);
}


@media screen and (max-width: 500px) {
  .product-list-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .product-box {
    grid-template-rows: 1fr 2.5fr 0.5fr;
  }
}
@media screen and (max-width: 950px){
  .product-list-container {
    width: 100%;
  }
}
@media screen and (min-width: 990px) {
  .product-list-container {
    max-width: 1024px;
    min-width: 990px;
  }
}
@media screen and (min-width: 1200px) {
  .product-list-container {
    max-width: 1300px;
    min-width: 1200px;
  }
}
