/*section1-start*/
#section1 .container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  height: 20rem;
  font-size: .5rem;
}

#section1 .title p:first-child{
  font-size: 5em;
  font-family: 'Playfair Display';
}

#section1 .title p{
  font-size: 4.5em;
  font-family: 'Playfair Display';
  font-weight: 500;
}

#section1 .subtitle{
  margin: .9em 0;
  font-size: 2em;
  font-weight: 400;
  color: rgb(81, 81, 81);
}

#section1 .content{
  margin: .9em 0;
  font-size: 1.6em;
  font-weight: 400;
  color: rgb(81, 81, 81);
  line-height: 1.8em;
}

#section1 .right-side{
  align-items: center;
  align-content: center;
  height: 100%;
}

#section1 img{
  height: 80%;
  object-fit: cover;
}
/*section1-end*/

/*section2-start*/
#section2 .title{
  display: flex;  
  justify-content: center;
  align-items: center;
  gap: .8rem;
  font-size: .9rem;
}

#section2 .title p{
  font-size: 1.5em;
  font-weight: 500;
  font-family: 'Playfair Display';
  white-space: nowrap; 
}

#section2 .title .divider-left{
  margin-top: .2em;
  border: none;
  height: .12em;
  width: 12em;
  background: linear-gradient(to left,rgb(130, 130, 130),rgba(244, 244, 244, 0));
}

#section2 .title .divider-right{
  margin-top: .2em;
  border: none;
  height: .12em;
  width: 12em;
  background: linear-gradient(to right,rgb(130, 130, 130),rgba(244, 244, 244, 0));
}
/*section2-end*/

/*section3-start*/
#section3{
  font-size: .9rem;
  text-align: center;
}

#section3 .container{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem 10rem;
}

#section3 .filter{
  display: inline-flex;
  justify-content: center;
  border: solid rgb(241, 241, 241) .1em;
  border-radius: 3em;
  margin-top: 1em;
  font-size: .9em;
}

#section3 .filter .category{
  border-radius: 3em 3em 0 3em;
  padding: .5em 1.5em;
}

#section3 .filter .category:first-child{
  border-radius: 3em 3em 0 3em;
}

#section3 .filter .category:last-child{
  border-radius: 3em 3em 3em 0;
}

#section3 .filter .category:hover{
  background-color: var(--primary-color-hover);
  color: white;
  cursor: pointer;
}

#section3 .filter .category.active{
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
}

#section3 .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: solid rgb(241, 241, 241) .05em;
  border-radius: 1em;
  box-shadow: 0 .5em 1em rgba(0, 0, 0, .1);
  padding: 1.2em .5em;
  gap: .5em;
  cursor: pointer;

  transition: transform 200ms ease, box-shadow 200ms ease;
  transform-origin: center;
}

#section3 .item:hover {
  transform: scale(1.03);
  box-shadow: 0 .5em 1em rgba(0, 0, 0, .15);
}

#section3 .item img{
  width: 100%;
  aspect-ratio: 4/2.8;
  object-fit: fill;
  margin-top: .5em;
}

#section3 .item p{
  font-size: 1.2em;
}

#section3 .item p:first-of-type{
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#section3 .item p:last-of-type{
  font-size: 1.1em;
}

#section3 button{
  font-size: 1em;
  padding: .4em 1.5em;
  margin-top: .4em;
}
/*section3-end*/

.view-all-btn{
  display: flex;
  justify-content: center;
  align-items: center;
}

.view-all-btn button{
  font-size: .8rem;
  gap: .5em;
}

.view-all-btn i{
  font-size: .8em;
}

/*section4-start*/
#section4{
  font-size: 1rem;
}

#section4 .container{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 10rem;
}

#section4 .grid{
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border: solid rgb(241, 241, 241) .05em;
  border-radius: 1em;
  box-shadow: 0 .5em 1em rgba(0, 0, 0, .1);
}

#section4 .item{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1em;
  padding: 1.2em 4em;
  gap: .5em;
  font-weight: 500;
}

#section4 .item p:last-of-type{
  font-size: .8em;
  font-weight: 500;
  color: rgb(82, 82, 82);
  line-height: 1.5em;
}

#section4 .item:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: .08em;
  height: 75%;
  background-color: rgba(128, 128, 128, 0.15);
}

#section4 .item img{
  width: 80%;
  aspect-ratio: 4/2;
  object-fit: fill;
  margin-top: .5em;
}
/*section4-end*/

/*RESPONSİVE*/
@media (max-width: 1160px) {  
  #section3 .container{
    padding: 1rem 5rem;
  }

  #section4 .container{
  padding: 1rem 5rem;
}
}

@media (max-width: 1000px) {  
  #shopping-cart{
    padding: .3em ;
  }


  #section3 .container{
    padding: 1rem 5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {  
  #section1 .container{
    height: 18rem;
    font-size: .45rem;
  }
  #section2 .title{
    font-size: .9rem;
  }
  
  #section3 .container{
    padding: 1rem 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #section4 .container{
    padding: 1rem 2rem;
  }
}

@media (max-width: 780px) {  
  #section1 .container{
    height: 17rem;
    font-size: .4rem;
    gap: 1rem;
  }
  #section2 .title{
    font-size: .8rem;
  }

  #section3 .container{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #section4 .grid{
    grid-template-columns: repeat(3, 1fr);
  }
  #section4 .item{
    padding: 1.2em 2em;
    font-size: .8em;
  }
}

@media (max-width: 650px) {  
  #section1 .container{
    height: 16rem;
    font-size: .35rem;
  }
  #section1 img{
    height: 60%;
  }

  #section2 .title{
    font-size: .7rem;
  }

  #section3 .filter{
  font-size: .8em;
}
}

@media (max-width: 550px) {  
  #section1 .container{
    justify-content: space-between;
    margin: 0 1.5rem;
    gap: 0;
  }
  #section1 img{
    height: 53%;
  }

  #section2 .title{
    font-size: .7rem;
  }

  #section4 .item{
    padding: 1em 2em;
    font-size: .7em;
  }
}

@media (max-width: 510px) {  
  #section1 .container{
    height: 15rem;
    margin: 0 1rem;
    font-size: .34rem;
  }

  #section1 img{
    height: 45%;
  }

  #section2 .title{
    font-size: .5rem;
  }

  #section3{
    font-size: .8rem;
  }

  #section3 .container{
    padding: 1rem 1rem;
  }

  #section4 .container{
    padding: 1rem 1rem;
  }
}

@media (max-width: 440px) {  
  #section1 img{
    height: 60%;
  }

  #section2 .title{
    font-size: .5rem;
  }

  #section3{
    font-size: .7rem;
  }
  
  #section3 .filter .category{
    font-size: 1.2em;
    padding: .7em .5em;
  }

  #section4 .item{
    padding: 1em 2em;
    font-size: .6em;
  }
}