*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  max-width: 100vw;
  min-height: 100vh;
  font-family: "Advent Pro", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  background-color: #f8fafc;
  color: #121314;
}

.dark {
  background-color: #111111;
  color: #f8fafc;
}
.dark .search-box input {
  color: #f8fafc;
}
.dark .description {
  background-color: #121314;
  color: #dc2626;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

@-webkit-keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-webkit-keyframes spin {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
    transform: rotate(360deg);
  }
}
header {
  width: 100%;
  height: 320px;
  background-image: url("../assets/images/lightheader.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
          clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
  position: relative;
}
header .header-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
header nav {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header nav h2 {
  background: linear-gradient(25deg, #f8fafc, #dc2626, #f8fafc);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-animation: gradient 15s ease infinite;
          animation: gradient 15s ease infinite;
}
header nav .logo img {
  width: 50px;
  margin-right: 6px;
}
header .light-toggler svg {
  width: 30px;
  color: #f8fafc;
  cursor: pointer;
}
header .nav-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
header .nav-right {
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .nav-right .sun {
  -webkit-animation: 4s spin infinite;
          animation: 4s spin infinite;
}
header .nav-right .github img,
header .nav-right .twitter img {
  width: 26px;
}
header hr {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  opacity: 0.1;
}
header h1 {
  font-size: calc(2.8rem + 0.33vw);
  font-weight: 700;
  color: #f8fafc;
  margin-top: 60px;
}

main {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}
main .main-child {
  width: 100%;
  height: auto;
  position: relative;
}
main .main-child .search-box {
  background-color: #f8fafc;
  position: absolute;
  inset: -10px 50% auto 50%;
  transform: translate(-50%, -50%);
  width: 87%;
  height: 160px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
main .main-child .search-box input {
  width: 60%;
  max-width: 1280px;
  font-family: "Advent Pro", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  outline: none;
  border: none;
  border-radius: 3px;
  background-color: #fff;
  caret-color: #b91c1c;
  transition: border 200ms ease-in;
}
main .main-child .search-box input::-moz-placeholder {
  color: #b91c1c;
}
main .main-child .search-box input:-ms-input-placeholder {
  color: #b91c1c;
}
main .main-child .search-box input::placeholder {
  color: #b91c1c;
}
main .main-child .search-box input:focus {
  border: 2px solid #dc2626;
}
main .main-child .search-box .filters {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
main .main-child .search-box .filters .btn {
  background: linear-gradient(25deg, #dc2626, #b91c1c, #dc2626);
  background-size: 400% 400%;
  transition: all 250ms ease-in-out;
  -webkit-animation: gradient 15s ease infinite;
          animation: gradient 15s ease infinite;
}
main .main-child .search-box .filters .btn:hover, main .main-child .search-box .filters .btn:active {
  background: transparent;
  color: #dc2626;
}
main .main-child .search-box .filters a {
  display: block;
  width: 70px;
  color: #f8fafc;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 1.6rem;
  font-weight: 700;
}
main .main-child .products {
  width: 100%;
  height: auto;
  min-height: 90vh;
  padding: 115px 30px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  -moz-column-gap: 15px;
       column-gap: 15px;
  row-gap: 25px;
  justify-content: center;
}
main .main-child .products .product {
  width: 300px;
  height: 300px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 0.5px 1px rgba(94, 94, 94, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 250ms ease-in-out;
}
main .main-child .products .product:hover, main .main-child .products .product:active {
  transform: scale(1.02);
}
main .main-child .products .product img {
  width: 100%;
  height: 80%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  transition: all 200ms ease-in-out;
}
main .main-child .products .product .description {
  width: 100%;
  height: 20%;
  padding: 0 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
main .main-child .products .product .price {
  font-size: 1.4rem;
  font-family: sans-serif, "Advent Pro";
}

footer {
  width: 100%;
  height: 20px;
  display: grid;
  place-content: center;
  background-color: #b91c1c;
}
footer h4 {
  font-size: 1.4rem;
  color: #f8fafc;
}

.loader {
  background: #f8fafc;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 600ms ease-in-out;
}
.loader svg path,
.loader svg rect {
  fill: #b91c1c;
}/*# sourceMappingURL=style.css.map */
