nav .gnb a:nth-child(3) {
  background-color: #f39220;
  color: white;
}

/* ########## ITEMS CSS ########## */
body {
  margin-top: 80px;
}
.container {
  min-height: 100%;
  min-width: 1024px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.items .item {
  width: 350px;
  height: 500px;
  margin: 20px;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.149);
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}
.item .item-overlay {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.105);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.item-overlay span {
  color: white;
  padding: 10px;
  background-color: #f39120ae;
  border-radius: 5px;
  font-size: 0.5rem;
}
.item-overlay span em {
  font-weight: bold;
}

.items .item .img-wrapper {
  width: 300px;
  height: 330px;
}
.items .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.items .item:hover {
  transform: scale(1.05);
  z-index: 1;
}
.items .item:hover h1 {
  text-decoration: underline;
}

.items .item .items_text {
  height: 100px;
  width: 300px;
}
.items .item h1 {
  font-weight: normal;
  font-size: 26px;
  transition: 0.3s;
}
.items .item p {
  display: inline-block;
  margin: 0;
}

.outofstock {
  font-size: 20px;
  color: crimson;
}
.sale {
  color: #777;
  text-decoration: line-through;
  font-style: normal;
}
.afterSalePrice {
  font-style: normal;
  color: red;
}
@media (min-width: 1550px) {
  body {
    height: calc(100vh - 80px);
  }
}
@media (max-width: 1180px) {
  .container {
    min-width: 767px;
  }
  .items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 790px) {
  body {
    margin-top: 80px;
    height: calc(100% - 80px);
  }

  .container {
    min-width: 100%;
    margin-bottom: 30px;
  }
  .items .item {
    width: calc(350px / 2);
    height: calc(500px / 2);
    margin: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(248, 249, 250);
    overflow: hidden;
  }

  .items .item-overlay {
    opacity: 1;
    pointer-events: all;
  }
  .items .item span.end {
    text-decoration: line-through;
  }
  .items .item p {
    font-weight: bold;
    color: crimson;
  }
  .items .item img {
    object-fit: cover;
  }
  .items .item .items_text {
    display: none;
  }
}
