/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Aclonica&family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(45, 99%, 55%);
  --first-color-alt: hsl(45, 99%, 48%);
  --second-color: rgb(111, 53, 12);
  --white-color: hsl(34, 100%, 96%);
  --title-color: hsl(22, 100%, 8%);
  --text-color: hsl(22, 24%, 32%);
  --text-color-light: hsl(23, 16%, 40%);
  --body-color: hsl(34, 100%, 92%);
  --body-color-alt: hsl(34, 100%, 88%);
  --container-color: hsl(34, 100%, 96%);
  --shadow-small-img: drop-shadow(0 4px 16px hsla(22, 100%, 8%, .2));
  --shadow-big-img: drop-shadow(0 8px 24px hsla(22, 100%, 8%, .2));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Aclonica", sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-regular);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/* loader */
.load{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsl(0,0%,99%);
  display: grid;
  place-items:center;
  z-index: 1000;
}
.load__img{
  width: 210px;
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s ;
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: var(--header-height);
}
.nav__logo{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--title-color);
  font-family: var(--second-font);
  font-size: 1.3rem;
}
.nav__logo img{
  width: 20px;
}
.nav__logo div{
  background-color: chocolate;
  padding: 6px;
  border-radius: .5rem;
}
.nav__toggle,
.nav__close{
  display: flex;
  color: var(--title-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu{
    position: fixed;
    top: -100%;
    left: 0;
    padding-block: 4.5rem 3.5rem;
    width: 100%;
    background-color:var(--body-color) ;
    box-shadow: 0 4px 16px hsla(22,100%,8%,.2) ;
    transition: top .4s;
  }
}
.nav__list{
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}
.nav__link{
  position: relative;
  color: var(--title-color);
  font-family: var(--second-font);
}
.nav__link::after{
  content: '';
  width: 0;
  height: 3px;
  background-color: var(--first-color);
  position: absolute;
  left: 0;
  bottom: -.5rem;
}
.nav__link:hover::after{
  width: 60%;
}
.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
}
.nav__btns {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  justify-content: end;
}
.nav_btn{
  background-color: black;
  color:white;
  padding: 10px;
  font-weight: var(--font-medium);
  transition: .3s;
  border-radius: 10px;
}

.nav_btn:hover {
  background-color: var(--body-color);
  color: black;
}
.nav__shop{
  font-size: 20px;
  font-weight:bold;
}
.nav__shop a{
  color: black;
}
/* Show menu */
.show-menu{
  top: 0;
}

/* Add shadow header */
.shadow-header{
  box-shadow:0 8px 16px hsla(22,100%,8%,.2) ;
}

/* Active link */
.active-link::after{
  width: 60%;
}

/*=============== CART ===============*/
.cart {
  position: fixed;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  width: 100%;
  height: 100%;
  top: 0;
  right: -100%;
  padding: 3.5rem 2rem;
  transition: .4s;
}

.cart__title-center {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 3rem;
}

.cart__close {
  font-size: 2rem;
  color: var(--title-color);
  position: absolute;
  top: 1.25rem;
  right: .9rem;
  cursor: pointer;
}

.cart__container {
  display: grid;
  row-gap: 1.5rem;
}

.cart__card {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.cart__box {
  background-color: var(--container-color);
  padding: .75rem 1.25rem;
  border: 1px solid  hsl(0, 0%, 94%);
}

.cart__img {
  width: 50px;
}

.cart__title {
  font-size: var(--normal-font-size);
  margin-bottom: .5rem;
}

.cart__price {
  display: block;
  font-size: var(--small-font-size);
  color: rgb(80, 77, 77);
  margin-bottom: 1.5rem;
}

.cart__amount,
.cart__amount-content{
  display: flex;
  align-items: center;
}

.cart__amount{
  column-gap: 3rem;
}

.cart__amount-content{
  column-gap: 1rem;
}

.cart__amount-box {
  display: inline-flex;
  padding: .25rem;
  background-color: var(--container-color);
  border: 1px solid  hsl(0, 0%, 94%);
  cursor: pointer;
}

.cart__prices {
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
}

.cart__prices-item, 
.cart__prices-total {
  color: var(--title-color);
}

.cart__prices-item {
  font-size: var(--small-font-size);
}

.cart__prices-total {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

/* Show cart */
.show-cart {
  right: 0;
}

/*=============== HOME ===============*/
.home__container{
  padding-block: 3rem 2rem;
  justify-content: center;
  row-gap: 3.5rem;
}
.home__data{
  position: relative;
  text-align: center;
}
.home__title{
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
}
.home__title img{
  position: absolute;
  right: -.75px;
  top: 5.5rem;
  width: 50px;
  rotate: 15deg;
}
.home__descreption{
  margin-bottom: 2.5rem;
  font-size: 17px;
}
/*=============== BUTTON ===============*/
.button{
  display: inline-flex;
  background-color: chocolate;
  color: var(--title-color);
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  font-family: var(--second-font);
  transition: box-shadow .4s;
}
.button:hover{
  box-shadow: 0 8px 24px hsla(22,100%,8%,.2);
}
.home__img img{
  width: 250px;
}
.home__img{
  display: flex;
  align-items: center;
  justify-content: center;
}



/*=============== Steps ===============*/
.steps__bg{
  background-color: var(--second-color);
  border-radius: 2rem;
}
.steps__container{
  padding-top: 2rem;
  position: relative;
}
.steps__title{
  color: white;
  font-family:var(--second-font);
}
.steps__description{
  color:rgba(195, 188, 179, 0.958);
}
.steps__content{
  display: grid;
  row-gap: 3.5rem;
  position: relative;
}
.steps__card{
  width: 250px;
  z-index: 10;
}

.steps__circle{
  width: 150px;
  height: 150px;
  background-color: rgba(69, 39, 17, 0.523);
  border-radius: 50%;
  box-shadow: 0 8px 32px hsla(12,32%,8%,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
}
.steps__img{
  width: 120px;
  filter: drop-shadow(0 4px 16px hsl(12,32%,16%));
  transition: transform .3s;
}
.steps__img:hover{
  transform: translateY(-.35rem);
}
.steps__subcircle{
  width: 50px;
  height: 50px;
  background-color:var(--first-color) ;
  position: absolute;
  left: 0;
  top: -.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: black;
  outline: 10px solid rgb(111, 53, 12);
}
.steps__card-move,
.steps__card-move .steps__circle{
  margin-left: auto;
}
.steps__card-move .steps__description{
  text-align: right;
}
.steps__border{
  position: absolute;
  left: 3rem;
  right: 0;
  top: 7.5rem;
  margin: 0 auto;
}
.steps__bg-img{
  position: absolute;
  top: 14rem;
  left: 0;
  width: 100%;
  height: 70%;
  object-fit: cover;
  object-position: 30px;
  opacity: .15;
}
/*=============== Products ===============*/
.product__filters{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  justify-content: center;
  gap: 2rem 2rem ;
  margin-bottom: 3.5rem;
}
.product__btn{
  background-color: rgb(89, 36, 17);
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-weight: var(--font-medium);
  font-family: var(--second-font);
  padding: 1rem 1rem;
  border-radius: 4rem;
  transition: box-shadow .4s;
}
.product__btn:hover{
  box-shadow: 0 8px 24px hsla(22,100%,8%,.2);
}

/* .product__line{
  position: relative;
} */
/* .product__line::before{
  content: '';
  position: absolute;
  width: 1px;
  background-color: rgb(79, 80, 81);
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto 0;
} */
/* .product__item{
  cursor: pointer;
} */
/* .product__title{
  font-size: var(--h3-font-size);
  color: var(--text-color) ;
  margin-bottom: .5rem;
} */
/* .product__stock{
  font-size: var(--small-font-size);
} */
.product__content{
  grid-template-columns:repeat(2,170px) ;
  justify-content: center;
}
.product__card{
  background-color: var(--container-color);
  border-radius: .5rem;
}
.product__img{
  width: 180px;
  transition: .4s;
}
.product__shape{
  background-color: rgba(212, 202, 202, 0.374);
  border-radius: .5rem .5rem 0 0 ;
  text-align: center;
  padding: .25rem 0;
}
.product__data{
  padding: 1rem 0 1.25rem 1rem;
  position: relative;
}
.product__price{
  font-size: var(--h3-font-size);
  margin-bottom: 5px;
}
.product__name{
  font-size: var(--normal-font-size);
}
.product__button{
  cursor: pointer;
  border-radius: 50%;
  padding:.625rem ;
  display: inline-block;
  font-size: 1.25rem;
  position: absolute;
  right:1rem;
  top: -1.25rem;
  box-shadow:  0 4px 12px hsla(206, 4%, 4% ,.2) ;
}

.product__card:hover .product__img{
  transform: translateY(-.25rem);
}

/* active product */
.active-product .product__title{
  color: blue;
}

/*=============== special ===============*/
.special_box{
  text-align: center;
}
.special__button{
  display: inline-block;
  background-color: black;
  color: white;
  padding: 1rem 1.75rem ;
  border-radius: .25rem;
  font-size: var(--normal-font-size);
  text-transform: uppercase;
  margin: 2rem 0 0 1.25rem;
}
.special__category{
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 200px;
  justify-content: center;
  row-gap: 2.5rem;
}

.special__img{
  width: 60px;
  margin-bottom: 1rem;
  transition: .4s;
}

.special__group{
  text-align: center;
}

.special__image{
  display: flex;
  justify-content: center;
}

.special__title{
  font-size: var(--h3-font-size);
  margin-bottom: .25rem;
}

.special__group:hover .special__img{
  transform: translateY(-.25rem);
}



/*=============== logo ===============*/

.logo__container{
  grid-template-columns: repeat(4,1fr);
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid var(--text-color-light);
  padding-bottom: 1.5rem;
}
.logo__img{
  transition: .4s;
  opacity: .6;
}
.logo__img:hover{
  transform: translateY(-.25rem);
  opacity: .9;
}

/*=============== CONTACT ===============*/
.contact__container{
  background-color: var(--second-color);
  border-radius: 3rem;
  position: relative;
  padding-top: 3.5rem;
  overflow: hidden;
}
.contact__content{
  row-gap: 3rem;
}
.contact__container .section__title{
  color: white;
} 

.contact__title,
.content__info{
  color: rgba(224, 213, 213, 0.914);
}
.contact__data{
  text-align: center;
  row-gap: 2rem;
}
.contact__title{
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}
.contact__social{
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}
.contact__social a {
  width: 32px;
  height: 32px;
  font-size: 25px;
  background-color: var(--first-color);
  color: black;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  transition: .4;

}
.contact__social a:hover {
  transform: translateY(-.25rem);
}
.contact__info{
  font-style: normal;
  color: rgb(158, 164, 168);
}
.contact__img{
  justify-self: center;
}
.contact__img img{
  width: 280px;
}


/*=============== FOOTER ===============*/
.footer{
  padding-block: 3rem 2rem;
}
.footer__container{
  row-gap: 2rem;
}
.footer__logo{
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  color: var(--title-color);
  justify-self: center;
}
.footer__content{
  grid-template-columns: repeat(2 , max-content);
  justify-content: center;
}
.footer__link{
  color: var(--text-color);
}
.footer__social{
  grid-column: 1 / 3;
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}
.footer__social a{
  width: 32px;
  height: 32px;
  font-size: 25px;
  color: black;
  background-color: var(--first-color);
  border-radius: .5rem;
  display: grid;
  place-items: center;
  transition: .4;
  margin-bottom: 2rem;
}
.footer__social a:hover {
  transform: translateY(-.25rem);
}
.footer__copy{
  display: block;
  text-align: center;
  font-size: 15px;
  margin-bottom: 2rem;
  font-weight: bold;
}
/*=============== SCROLL Up ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  color: var(--title-color)  ;
  display: inline-block;
  box-shadow: 0 4px 16px hsla(22,100%,8%,.2);
  font-size: 1.25rem;
  padding: 6px;
  border-radius: .4rem;
  transition: bottom .4s , transform .4s;
}

.scrollup:hover{
  transform: translateY(-.5rem);
}
/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== SCROLL Bar ===============*/
::-webkit-scrollbar{
  width: .8rem;
  background-color: hsl(34, 16%, 75%) ;
}
::-webkit-scrollbar-thumb{
  background-color: hsl(34, 16%, 65%) ;
}
::-webkit-scrollbar-thumb:hover{
  background-color: hsl(34, 16%, 55%) ;
}



/*=============== BREAKPOINTS ===============*/

/* ----------------------For small devices--------------------------------------- */
 @media screen and (max-width:330px) {
  .container{
    margin-inline: 1rem;
  }
  .home__img{
    display: none;
  }
  .home__title{
    font-size: 2.5rem;
  }
  .steps__content{
    row-gap: 3rem;
  }
  .steps__card{
    width: initial;
  }
  .footer__social{
    grid-column: 1;
  }
  .footer__content{
    grid-template-columns: 1fr;
    justify-content: center;
  }
  
} 
@media screen and (min-width:400px){
  .home__container{
    grid-template-columns: 360px;
    justify-content: center;
  }
  /* .home__img{
    display: none;
  } */
  .steps__content{
    grid-template-columns: 325px;
    justify-content: center;
  }
}

/* -------------------------------For medium devices------------------------------------------------ */

  @media screen and (max-width:540px){
  .home__container{
    grid-template-columns: 360px;
    justify-content: center;
  }
  .contact{
    max-width: 3200px;
    justify-content: center;
  }
}  

@media screen and (min-width:576px){
  .product__content{
    grid-template-columns: repeat(2,200px);
    padding-bottom: 3rem;
  }
  .special__category{
    grid-template-columns:repeat(2,200px);
    column-gap: 4rem;
  }
  .logo__container{
    grid-template-columns: repeat(4,200px);
  }
  .logo__img{
    width: 80px;
  }
  .logo__container{
    grid-template-columns: repeat(4,100px);
    gap: 1rem;
  }
}

/* ------------------------------------------- */

@media screen and (min-width:767px){
  .cart {
    width: 420px;
    box-shadow: -2px 0 4px hsla(0, 0%, 15%, .1);
  }
  .product__filters{
    grid-template-columns: repeat(4,150px);
  }
  .product__content{
    grid-template-columns: repeat(3,200px);
    justify-content: center;
    column-gap: 4rem;
  }
  .special__category{
    grid-template-columns:repeat(3,200px);
    column-gap: 4rem;
  }
  .logo__img{
    width: 100px;
  }
  .logo__container{
    grid-template-columns: repeat(4,150px);
    gap: 1rem;
  }
  .footer__social{
    grid-column: initial;
  }
  .footer__content{
    grid-template-columns: repeat(3,1fr);
    align-items: center;
  }
  .footer__link{
    justify-self: start;
  }
  .footer__link:nth-child(2){
    order: 2;
    justify-self: end;
  }
  .contact{
    max-width:initial;
  }
  .contact__container{
    border-radius: 4rem;
    padding-block: 4rem 6.5rem;
  }
  .contact__content{
    grid-template-columns: repeat(2,1fr);
    justify-content: center;
    column-gap: 6.5rem;
  }
  .contact__data{
    grid-template-columns: repeat(2,max-content);
    text-align: initial;
    gap: 4.5rem 3rem;
    order: 1;
  }
  .contact__social{
    justify-content: initial;
  }
  .contact__title{
    margin-bottom: 1rem;
  }
  .contact__img{
    position: relative;
    width: 100%;
  }
  .contact__img img{
    width: 350px;
    position: absolute;
     top:-2.5rem ;
  } 
}

/* --------------------------For large devices -----------------------------*/

@media screen and (min-width: 1150px){
  .container{
    margin-inline: auto;
  }
  .section{
    padding-block: 7rem 2rem;
  }
  .section__title{
    margin-bottom: 4.5rem;
  }
  .nav{
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }

  .home__container{
    grid-template-columns: 550px 505px;
    align-items: center;
    column-gap: 4rem;
    padding-block:6rem ;
  }
  .home__title{
    font-size: var(--h1-font-size);
  }
  .home__data{
    text-align: initial;
  }
  .home__descreption{
    margin-bottom: 3.5rem;
    padding-right:3rem ;
    font-size: 18px;
  }
  .home__img{
    display: flex;
    justify-content: end;
    align-items: center;
  }
  .steps__content{
    grid-template-columns: repeat(3,max-content);
    column-gap: 6.5rem;
  }
  .product__filters{
    grid-template-columns: repeat(4,150px);
    padding-top: 1rem;
  }
  .product__content{
    grid-template-columns: repeat(3,260px);
    justify-content: center;
    column-gap: 6rem;
  }
  .steps__card{
    width: 272px;
  }
  .steps__card-move{
    display: flex;
    flex-direction: column;
    margin-top: 7rem;
  }
  .steps__card-move .steps__circle{
    margin-left: initial;
  }
  .steps__card-move .steps__description{
    order: -1;
    text-align: initial;
    margin-bottom: 3rem;
  }
  .steps__circle{
    width: 260px;
    height: 260px;
  }
  .steps__img{
    width: 210px;
  }
  .steps__subcircle{
    width: 85px;
    height: 85px;
    top: -1.25rem;
    outline:15px solid rgb(111, 53, 12) ;
  }
  .steps__border{
    transform: rotate(85deg);
    width: 200px;
    left: 0;
    top: 2rem;
  }
  .steps__bg-img{
    top: 6rem;
    height: 99%;
    object-position: initial;
  }
  .logo__container{
    grid-template-columns: repeat(4,200px);
    gap: .6rem;
  }
  
  .footer{
    padding-block: 5rem 3.5rem;
  }
  .footer__container{
    row-gap: 3.5rem;
  }
  .footer__copy{
    margin-top: 4rem;
  }
  .scrollup{
    right: 2.5rem;
  }
}

