@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700&display=swap');

*{
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root{
  font-size: 62.5%;
  --bg-color: #141414;
  --bg-gray: #1F1F1F;
  --bg-input: #2B2B2B;
  --f-color: #FFF;
  --f-color-footer: #5F5F5F;
  --orange: #FE6A0F;
  --hover-color: #999;
}

body{
  font-size: 1.8rem;
  font-family: 'Inter';
  background-color: var(--bg-color);
  color: var(--f-color);
}

.container{
  width: 100%;
  margin: auto;
  max-width: 120rem;
  padding: 0 2rem;
}

.logo a{
  font-family: 'Calistoga';
  font-size: 3.6rem;
  color: var(--f-color);
  text-decoration: none;
}

.logo a span{
  color: var(--orange);
}

/* HEADER */
header .container{
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  gap: 5rem;
}

header nav{
  flex: 1;
  display: flex;
  align-items: center;
}

header nav .leftside{
  display: flex;
  flex: 1;
}
header nav li{
  margin: 0 3rem;
}
header nav li a{
  color: var(--f-color);
  text-decoration: none;
}
header nav li a:hover{
  color: var(--hover-color);
}
header nav .button{
  display: block;
  border: 0.1rem solid #FFF;
  padding: 1.5rem 3rem;
  border-radius: 0.5rem;
  color: var(--f-color);
  text-decoration: none;
}
header nav .button:hover{
  color: var(--hover-color);
  border-color: var(--hover-color);
}

header .menu{
  display: none;
  flex: 1;
  justify-content: flex-end;
}
header .menu-icon{
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
header .menu-icon div{
  height: 0.6rem;
  background-color: #FFF;
}

/* HERO */

.hero .container{
  display: flex;
}

.hero .leftside,
.hero .rightside{
  flex: 1;
}
.hero .leftside{
  padding-bottom: 15rem;
}
.hero .rightside{
  text-align: center;
}
.hero .rightside img{
  width: auto;
  height: 60rem;
}

.hero h1{
  font-family: 'Calistoga';
  font-size: 7rem;
  line-height: 7.4rem;
  margin-top: 5rem;
}
.hero p{
  font-size: 2rem;
  line-height: 2.6rem;
  margin: 4rem 0
}

.hero .button{
  display: inline-block;
  background-color: var(--orange);
  font-weight: 500;
  color: var(--f-color);
  padding: 1.5rem 8rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.hero .button:hover{
  opacity: 0.8;
}

/* SEARCH */

.search{
  background-color: var(--bg-gray);
  padding: 8rem 0;
  margin-top: -10rem;
}
.search .title{
  font-size: 3.2rem;
  font-weight: 500;
}
.search .sides{
  display: flex;
  margin-top: 3rem;
  gap: 10rem;
}
.search .leftside,
.search .rightside{
  flex: 1;
}
.search input,
.search select{
  width: 100%;
  background-color: var(--bg-input);
  color: var(--f-color);
  font-size: 2.4rem;
  outline: none;
  padding: 2rem;
  border: 0;
  border-radius: 0.5rem;
}
.search input{
  background-image: url(../images/searchIcon.png);
  background-repeat: no-repeat;
  background-position: 2rem center;
  padding-left: 5.5rem;
}
.search select{
  border-right: 2rem solid transparent;
}

/* PRODUCTS */

.products-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

.product-item{
  display: block;
  border-radius: 0.8rem;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.product-item:hover{
  opacity: 0.8;
}
.product-item .warning{
  position: absolute;
  top: 3rem;
  left: 3rem;
  background-color: var(--orange);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--f-color);
  padding: 1rem 1.5rem;
  border-radius: 0.4rem;
}
.product-item .photo{
  text-align: center;
  background-color: var(--bg-input);
  padding-top: 3rem;
}
.product-item .photo img{
  max-width: 100%;
}
.product-item .info{
  background-color: var(--bg-gray);
  padding: 6rem 3rem 3rem 3rem;
  margin-top: -5rem;
}
.product-item .product-category{
  color: var(--f-color);
  font-size: 1.8rem;
  font-weight: 500;
}
.product-item .product-name{
  font-family: 'Calistoga';
  font-size: 3.2rem;
  color: var(--f-color);
  margin: 1rem 0;
}
.product-item .product-price{
  font-size: 3.2rem;
  font-weight: bold;
  color: var(--orange);
}

/* FOOTER */
footer{
  background-color: var(--bg-gray);
}
footer .container{
  padding-top: 8rem;
  padding-bottom: 8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .copyrights{
  color: var(--f-color-footer);
  font-size: 2.4rem;
}
footer .copyrights a{
  color: var(--f-color-footer);
  text-decoration: none;
}
footer .copyrights a:hover{
  text-decoration: underline;
}

@media (max-width: 820px) {
  header nav{
    display: none;
  }
  header .menu{
    display: flex;
  }

  .hero .container{
    flex-direction: column;
  }
  .hero .leftside{
    text-align: center;
    padding-bottom: 3rem;
  }
  .hero .rightside{
    padding-bottom: 3rem;
  }
  .hero .rightside img{
    height: 30rem;
  }
  .hero h1{
    font-size: 4.4rem;
    line-height: 5rem;
  }

  .search{
    padding-bottom: 3rem;
  }
  .search .title{
    text-align: center;
  }
  .search .sides{
    flex-direction: column;
    gap: 2rem;
  }

  .products-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  footer .container{
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 500px){
  
  .products-grid{
    grid-template-columns: 1fr;
  }
}