body {
  color: #182c00;
}

main {
  margin-left: 5%;
  margin-right: 5%;
}

main .intro {
  text-align: center;
  margin: 4% 0;
}

.search_filter {
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: flex-end;
  gap: 1%;
}

.sort_filter {
  text-align: right;
}

#sortOptions {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  color: #222222;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-sizing: border-box;
  margin-top: 1%;
  font-family: "Montserrat", sans-serif;
  background-image: url(index_img/arrow-down-short.svg);
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sort option {
  text-align: left;
}

main .search {
  text-align: right;
  margin-top: 5%;
}

main .search h2 {
  color: #182c00;
  margin-left: 2%;
}

main .search input {
  width: 100%;
  padding: 12px 20px;
  margin-top: 1%;
}

#searchInput:focus {
  outline: none;
}

/*------------------ Button ------------------*/

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100px;
  min-height: 56px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.5s linear;
}

.button span {
  padding: 0 10px;
}

ion-icon {
  transition: all 0.5s linear;
}

.btn:hover ion-icon {
  transform: rotate(-90deg);
}

.button {
  position: relative;
  width: 350px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  z-index: 4;
  margin-top: 1px;
}

.red {
  background: none;
  color: #182c00;
}

.red::before {
  content: "";
  display: block;
  width: 100px;
  height: 100%;
  background-color: #f82536;
  position: absolute;
  border-radius: 100px;
  left: 1em;
  z-index: -1;
  transition: all 600ms ease;
}

.red:hover::before {
  width: 95%;
}

.red:hover ion-icon {
  transform: translateX(10px);
}

.red:hover {
  color: rgb(255, 255, 255);
}

/*------------------ Products_display ------------------*/

.box-up img {
  width: 100%;
  height: 100%;
}

.row {
  margin-top: 1%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

.page-wrapper {
  height: 100%;
}

.wrapper {
  width: 300px;
  padding: 15px;
  margin: 15px auto;
  background-color: #fff;
}

.wrapper:hover .h-bg {
  left: 0px;
}

.wrapper:hover .price {
  color: #f82536;
}

.wrapper:hover .see-more {
  left: 50%;
}

.wrapper:hover .img {
  filter: blur(7px);
  opacity: 0.4;
}

.wrapper:hover .info-inner {
  bottom: 200px;
}

.wrapper:hover .description {
  transition-delay: 100ms;
  top: 70%;
  transform: translate(-50%, -70%);
  opacity: 1;
}

.wrapper .box-down {
  width: 100%;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.wrapper .box-up {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.wrapper .img {
  padding: 0 5% 15% 5%;
  transition: all 800ms cubic-bezier(0, 0, 0.18, 1);
  transition-timing-function: cubic-bezier(0, 0, 0.18, 1);
}

.h-bg {
  transition: all 800ms cubic-bezier(0, 0, 0.18, 1);
  transition-timing-function: cubic-bezier(0, 0, 0.18, 1);
  width: 660px;
  height: 100%;
  background-color: #182c00;
  position: absolute;
  left: -660px;
}

.h-bg .h-bg-inner {
  width: 50%;
  height: 100%;
  background-color: #f82536;
}

.info-inner {
  transition: all 400ms cubic-bezier(0, 0, 0.18, 1);
  transition-timing-function: cubic-bezier(0, 0, 0.18, 1);
  position: absolute;
  width: 100%;
  bottom: 1%;
}

.info-inner .p-id {
  display: none;
}

.info-inner .p-name,
.info-inner .p-name2 {
  display: block;
}

.info-inner .p-name {
  color: #252525;
}

.info-inner .p-name2 {
  color: #8c8c8c;
}

.description {
  transition: all 300ms cubic-bezier(0, 0, 0.18, 1);
  transition-timing-function: cubic-bezier(0, 0, 0.18, 1);
  transform: translate(-50%, 0);
  position: absolute;
  width: 100%;
  top: 100%;
  left: 50%;
  bottom: -20px;
  color: #828282;
  opacity: 0;
}

.description .size {
  color: #252525;
}

.cart {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.cart .price {
  transition: all 600ms cubic-bezier(0, 0, 0.18, 1);
  transition-timing-function: cubic-bezier(0, 0, 0.18, 1);
  transition-delay: 100ms;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #182c00;
}

.cart .see-more {
  transition: all 600ms cubic-bezier(0, 0, 0.18, 1);
  transition-timing-function: cubic-bezier(0, 0, 0.18, 1);
  transition-delay: 100ms;
  display: block;
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

/*------------------ Products_display_end ------------------*/

main #pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

main #pagination button {
  margin: 4px;
  padding: 8px 13px;
  cursor: pointer;
  transition: all 0.2s;
  border-width: thin;
  border-radius: 6rem;
  background-color: white;
  color: #000000;
  border: #f82536 solid 0.5px;
}

#pagination .pagination-button:hover {
  background-color: #f82536;
  color: #ffffff;
}

#pagination .pagination-button.active {
  background-color: #f82536;
  color: #ffffff;
}

#pagination .pagination-button:focus {
  background-color: #f82536;
  color: #ffffff;
}

/*------------------ Media_query ------------------*/

@media (max-width: 990px) {
  main .cover img {
    display: none;
  }

  main .intro h1 {
    text-align: center;
    margin-top: 10%;
    color: #182c00;
    padding-left: 2%;
    padding-right: 2%;
  }

  main .button button {
    padding: 10px 12px;
    margin-bottom: 3%;
    background-color: #f82536;
    color: #fff;
    margin-top: 10%;
  }

  .search_filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  #sortOptions {
    order: 2;
  }

  .sort_filter {
    order: 2;
    margin-top: 1%;
  }

  .search {
    padding-top: 10%;
    order: 1;
    width: 90%;
  }

  .button {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 30%;
  }

  .button span {
    text-align: center;
  }

  .red {
    background: none;
    color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    background-color: #f82536;
    padding: 10% 15%;
  }

  .btn {
    min-width: 300px;
    min-height: 60px;
  }
}
