/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;900&display=swap');

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

  /*========== Colors ==========*/
  --hue: 14;
  --first-color: hsl(var(--hue), 91%, 54%);
  --first-color-alt: hsl(var(--hue), 91%, 50%);
  --title-color: hsl(var(--hue), 4%, 100%);
  --text-color: hsl(var(--hue), 4%, 85%);
  --text-color-light: hsl(var(--hue), 4%, 55%);

  /*Green gradient*/
  --body-color: linear-gradient(90deg, hsl(104, 28%, 40%) 0%, hsl(58, 28%, 40%) 100%);
  --container-color: linear-gradient(136deg, hsl(104, 28%, 35%) 0%, hsl(58, 28%, 35%) 100%);
  
  /*Red gradient*/
  /* --body-color: linear-gradient(90deg, hsl(360, 28%, 40%) 0%, hsl(18, 28%, 40%) 100%);
  --container-color: linear-gradient(136deg, hsl(360, 28%, 35%) 0%, hsl(18, 28%, 35%) 100%); */

  /*Black solid*/
  /* --body-color: hsl(30, 8%, 8%);
  --container-color: hsl(30, 8%, 10%); */

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-black: 900;

  /*========== Margenes Bottom ==========*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

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

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

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

html{
  scroll-behavior: smooth;
}

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

h1,h2,h3,h4{
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul{
  list-style: none;
}

a{
  text-decoration: none;
}

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

button,
input{
  border: none;
  outline: none;
}

button{
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section{
  padding: 4.5rem 0 2rem;
}

.section_title{
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
  text-align: center;
}

/*=============== LAYOUT ===============*/
.container{
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid{
  display: grid;
}

.main{
  overflow: hidden; /*For animation*/
}

/*=============== HEADER ===============*/
.header{
  width: 100%;
  background: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_logo{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-medium);
}

.nav_logo-img{
  width: 1.25rem;
}

.nav_link,
.nav_logo,
.nav_toggle,
.nav_close{
  color: var(--title-color);
}

.nav_toggle{
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav_menu{
    position: fixed;
    width: 100%;
    background: var(--container-color);
    top: -150%;
    left: 0;
    padding: 3.5rem 0;
    transition: .4s;
    z-index: var(--z-fixed);
    border-radius: 0 0 1.5rem 1.5rem;
  }
}

  .nav_img{
    width: 100px;
    position: absolute;
    top: 0;
    left: 0;
  }

  .nav_close{
    font-size: 1.8rem;
    position: absolute;
    top: .5rem;
    right: .7rem;
    cursor: pointer;
  }

  .nav_list{
   display: flex;
   flex-direction: column;
   align-items: center;
   row-gap: 1.5rem;
  }

  .nav_link{
    text-transform: uppercase;
    font-weight: var(--font-black);
    transition: .4s;
  }

  .nav_link:hover{
    color: black;
  }


/* Show menu */
.show-menu{
  top: 0;
}

/* Change background header */
.scroll-header{
  background: var(--container-color);
}

/* Active link */
.active-link{
  position: relative;
}

.active-link::before{
  content: '';
  position: absolute;
  bottom: -.75rem;
  left: 45%;
  width: 5px;
  height: 5px;
  background-color: var(--title-color);
  border-radius: 50%;
}

/*=============== HOME ===============*/
.home_content{
  row-gap: 1rem;
}

.home_group{
  display: grid;
  position: relative;
  padding-top: 2rem;
}

.home_img{
  height: 250px;
  justify-self: center;
}

.home_indicator{
  width: 8px;
  height: 8px;
  background-color: var(--title-color);
  border-radius: 50%;
  position: absolute;
  top: 7rem;
  right: 2rem;
}

.home_indicator::after{
  content: '';
  position: absolute;
  width: 1px;
  height: 48px;
  background-color: var(--title-color);
  top: -3rem;
  right: 45%;
}

.home_details-img{
  position: absolute;
  right: .5rem;
}
 
.homo_details-title,
.home_details-subtitle{
  display: block;
  font-size: var(--small-font-size);
  text-align: right;
}

.home_subtitle{
  font-size: var(--h3-font-size);
  text-transform: uppercase;
  margin-bottom: var(--mb-1);
}

.home_title{
  font-size: var(--biggest-font-size);
  font-weight: var(--font-black);
  line-height: 109%;
  margin-bottom: var(--mb-1);
}

.home_description{
  margin-bottom: var(--mb-1);
}

.home_buttons{                                
  display: flex;
  justify-content: space-between;
}

/* ===============SWIPER================ */
.swiper-pagination{
  position: initial;
  margin-top: var(--mb-1);
}

.swiper-pagination-bullet{
  width: 5px;
  height: 5px;
  background-color: var(--title-color);
  opacity: 1;
}

.swiper-pagination-horizontal .swiper-pagination-bullets .swiper-pagination-bullet{
  margin: 0 .5rem;
}

.swiper-pagination-bullet-active{
  width: 1.5rem;
  height: 5px;
  border-radius: .5rem;
}



/*=============== BUTTONS ===============*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: var(--title-color);
  padding: 1rem 1.75rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

.button:hover{
  background-color: aqua;
}

.button_icon{
  font-size: 1.25rem;
}

.button--ghost{
 border: 2px solid;
 background-color: transparent;
 border-radius: 3rem;
 padding: .75rem 1.5rem;
}

.button--ghost:hover{
  background: none;
}

.button--link{
  color: var(--title-color);
}

.button--flex{
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
}



/*=============== CATEGORY ===============*/
.category_container{
  grid-template-columns:repeat(2, 1fr);
  gap: 1rem 2rem;
}

.category_data{ 
 text-align: center;
}

.category_img{
 width: 120px;
 margin-bottom: var(--mb-0-75);
 transition: .3s;
}

.category_title{
 margin-bottom: var(--mb-0-25);
}

.category_data:hover .category_img{
  transform: translateY(-.5rem);
}       

/*=============== ABOUT ===============*/
.about_container{
  row-gap: 2rem;
}

.about_data{
  text-align: center;
}

.about_description{
  margin-bottom: var(--mb-2);
}

.about_img{
  width: 200px;
  justify-self: center;
}

.about_img:hover{
  transform: translateY(-.5rem);
}

/*=============== TRICK OR TREAT ===============*/
.trick_container{
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
}

.trick_content{
  position: relative;
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1.5rem 0 1rem 0;
  text-align: center;
  overflow: hidden;
}

.trick_img{
  width: 90px;
  transition: .3s;
}

.trick_subtitle,
.trick_price{
  display: block;
}

.trick_subtitle{
  font-size: var(--smaller-font-size);
  margin-bottom: var(--mb-0-5);
}

.trick_title,
.trick_price{
  color: (--title-color);
  font-weight: var(--font_medium);
  font-size: var(--normal-font-size);
}

.trick_button{
  display: inline-flex;
  padding: .5rem;
  border-radius: .25rem .25rem .75rem .25rem;
  position: absolute;
  right: -3rem;
  bottom: 0;
}

.trick_icon{
  font-size: 1.25rem;
  color: var(--title-color);
}

.trick_content:hover .trick_img{
  transform: translateY(-.5rem);
}

.trick_content:hover .trick_button{
  right: 0;
}

/*=============== DISCOUNT ===============*/
.discount_container{
  background: var(--container-color);
  border-radius: 1rem;
  padding: 2.5rem 0 1.5rem;
  row-gap: .75rem;
}

.discount_data{
  text-align: center;
}

.discount_title{
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
}

.discount_img{
  width: 200px;
  justify-self: center;
}

/*=============== NEW ARRIVALS ===============*/
.new_container{
  padding-top: 1rem;
}

.new_img{
  width: 120px;
  margin-bottom: var(--mb-0-5);
  transition: .3s;
}

.new_content{
  position: relative;
  background: var(--container-color);
  width: 242px;
  padding: 2rem 0 1.5rem 0;
  border-radius: .75rem;
  text-align: center;
  overflow: hidden;
}  

.new_tag{
  position: absolute;
  top: 8%;
  left: 8%;
  background-color: var(--first-color);
  color: var(--title-color);
  font-size: var(--small-font-size);
  padding: .25rem .5rem;
  border-radius: .25rem;
}

.new_title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.new_subtitle{
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-0-5);
}

.new_prices{
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
}

.new_discount{
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  text-decoration: line-through;
  font-weight: var(--font-medium);
}

.new_button{
  display: inline-flex;
  padding: .5rem;
  border-radius: .23rem .25rem .75rem .25rem;
  position: absolute;
  bottom: 0;
  right: -3rem;
}

.new_icon{
  font-size: 1.25rem;
}

.new_content:hover .new_img{
  transform: translateY(-.5rem);
}

.new_content:hover .new_button{
  right: 0;
}
/*=============== NEWSLETTER ===============*/
.newsletter_description{
  text-align: center;
  margin-bottom: var(--mb-1-5);
}

.newsletter_form{
  background: var(--container-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  border-radius: .75rem;
}

.newsletter_input{
  width: 70%;
  padding: 0 .5rem;
  background: none;
  color: var(--title-color);
}

.newsletter_input::placeholder{
  color: var(--text-color);
}

/*=============== FOOTER ===============*/
.footer{
  position: relative;
  overflow: hidden;
}

.footer_img-one,
.footer_img-two{
  position: absolute;
  transition: .3s;
}

.footer_img-one{
  width: 100px;
  top: 6rem;
  right: -2rem;
}

.footer_img-two{
  width: 150px;
  bottom: 4rem;
  right: 4rem;
}

.footer_img-one:hover,
.footer_img-two:hover{
  transform: translateY(-.5rem);
}

.footer_container{
  row-gap: 2rem;
}

.footer_logo{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.footer_logo-img{
  width: 20px;
}

.footer_description{
  margin-bottom: var(--mb-2-5);
}

.footer_social{
  display: flex;
  column-gap: .75rem;
}

.footer_social-link{
  display: inline-flex;
  background: var(--container-color);
  padding: .25rem;
  border-radius: .25rem;
  color: var(--title-color);
  font-size: 1rem;
}

.footer_social-link:hover{
  background: var(--body-color);
}

.footer_title{
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.footer_links{
  display: grid;
  row-gap: .35rem;
}

.footer_link{
  font-size: var(--small-font-size);
  color: var(--text-color);
  transition: .3s;
}

.footer_link:hover{
  color: var(--title-color);
}

.footer_copy{
  display: block;
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-top: 4.5rem;
}


/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  background: var(--container-color);
  right: 1rem;
  bottom: -20%;
  display: inline-flex;
  padding: .3rem;
  border-radius: .25rem;
  z-index: var(--z-tooltip);
  opacity: .8;
  transition: .4s;
}

.scrollup_icon{
  font-size: 1.25rem;
  color: var(--title-color);
}

.scrollup:hover{
  background: var(--container-color);
  opacity: 1;
}

.show-scroll{
  bottom: 3rem;
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: 0.6rem;
  background: #413e3e;
}

::-webkit-scrollbar-thumb{
  background:#272525;
  border-radius: .5rem ;
}

/*===============  BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px){
  .container{
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .home_img{
    height: 200px;
  }

  .home_buttons{
    flex-direction: column;
    width: max-content;
    row-gap: 1rem;
  }

  .category_container,
  .trick_container{
    grid-template-columns: .8fr;
    justify-content: center;
  }
}

/* For medium devices */
@media screen and (min-width: 576px){
  .about_container{
    grid-template-columns: .8fr;
    justify-content: center;
  }

  .newsletter_container{
    display: grid;
    grid-template-columns: .7fr;
    justify-content: center;
  }
  .newsletter_description{
    padding: 0 3rem;
  }
}

@media screen and (min-width: 767px) {
  body{
    margin: 0;
  }

  .section{
    padding: 7rem 0 2rem;
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav_img,
  .nav_close,
  .nav_toggle{
    display: none;
  }

  .nav_list{
    flex-direction: row;
    column-gap: 3rem;
  }

  .nav_link{
    text-transform: initial;
    font-weight: initial;
  }

  .home_content{
    padding: 8rem 0 2rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .home_img{
    height: 300px;
  }

  .swiper-pagination{
    margin-top: var(--mb-2);
  }

  .category_container{
    grid-template-columns: repeat(3, 200px);
    justify-content: center;
  }

  .about_container{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about_title,
  .about_data{
    text-align: initial;
  }

  .about_img{
    width: 250px;
  }

  .trick_container{
    grid-template-columns: repeat(3, 200px);
    justify-content: center;
    gap: 2rem;
  }

  .discount_container{
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    align-items: center;
    column-gap: 3rem;
    padding: 3rem 0;
    border-radius: 3rem;
  }

  .discount_img{
    width: 350px;
    order: -1;
  }

  .discount_data{
    padding-right: 6rem;
  }

  .newsletter_container{
    grid-template-columns: .5fr;
  }

  .footer_container{
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    column-gap: 1rem;
  }

  .footer_img-two{
    right: initial;
    bottom: 0;
    left: 15%;
  } 
}

/* For large devices */
@media screen and (min-width: 992px) {
  .container{
    margin-left: auto;
    margin-right: auto;
  }

  .section_title{
    font-size: var(--h1-font-size);
    margin-bottom: 3rem;
  }

  .home_content{
    padding-top: 9rem;
    gap: 3rem;
  }

  .home_group{
    padding-top: 0;
  }

  .home_img{
    height: 400px;
    transform: translateY(-3rem);
  }

  .home_indicator{
    top: initial;
    right: initial;
    bottom: 15%;
    left: 45%;
  }

  .home_indicator::after{
    top: 0;
    height: 75px;
  }

  .home_details-img{
    bottom: 0;
    right: 58%;
  }

  .home_title{
    margin-bottom: var(--mb-1-5);
  }

  .home_description{
    margin-bottom: var(--mb-2-5);
    padding-right: 2rem;
  }

  .category_container{
    column-gap: 8rem;
  }

  .category_img{
    width: 200px;
  }

  .about_img{
    width: 350px;
  }

  .about_description{
    padding-right: 2rem;
  }

  .trick_container{
    gap: 3.5rem;
  }

  .trick_content{
    border-radius: 1.5rem;
  }

  .trick_img{
    width: 110px;
  }

  .trick_title{
    font-size: var(--h3-font-size);
  }

  .discount_container{
    column-gap: 7rem;
  }

  .new_content{
    width: 310px;
    border-radius: 1rem;
    padding: 2rem 0;
  }

  .new_img{
    width: 150px;
  }

  .new_img,
  .new_subtitle{
    margin-bottom: var(--mb-1);
  }

  .new_title{
    font-size: var(--h3-font-size);
  }

  .footer_copy{
    margin-top: 6rem;
  }
}

@media screen and (min-width: 1200px) {
  .home_img{
    height: 420px;
  }

  .swiper-pagination{
    margin-top: var(--mb-2-5);
  }

  .footer_img-one{
    width: 120px;
  }

  .footer_img-two{
    width: 180px;
    top: 30%;
    left: -3%;
  }
}