
header nav .menu > li:nth-child(3) a{
  color: var(--primary-color);
}

#container-diet{
  width: 100%;
  background-color: var(--background);
  color:var(--text-color);
  font-family: 'Nunito', sans-serif;
}
section{
  position: relative;
}

/*==== banner=== */
#banners{
  width: 100%;
  height: 60vh;
  margin: auto;
  overflow: hidden;
}

#banners .slide-wrapper{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#banners .slide-wrapper .slider-item{
  width: 100%;
  height: 100%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transform-origin:center;
  background-image: url(../images/banners/diet.png); 
  display: block;
}

#banners .banner-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  text-shadow: 1px 1px 2px var(--black-4);
}

#banners .banner-text .main-title{
  color: var(--background);
}

#banners .banner-text .description{
  text-align: center;
  color: var(--background);
  font-size: 3rem;
  line-height: 2.6rem;
  letter-spacing: 0.5px;
  font-weight: 400;
  margin-top: 2rem;
}
@media (max-width: 428px){
  #banners{height: 40vh;}
  #banners .banner-text .main-title{
    font-size: 40px; 
    line-height: 40px;
    text-align: center;
  }
  #banners .banner-text{
    right: -40%;
  }
  #banners .banner-text .description{font-size: 1.5rem; line-height: 2rem; text-align: center;}
  #cart_diet .cart-wrapper .title{
    margin-top: 20px;
    font-size: 2.5rem;
  }
}

@media (min-width: 429px) and (max-width: 768px){
  #banners{height: 50vh;}
  #banners .banner-text .main-title{
    text-align: center;
    font-size: 60px;
  }
  #cart_diet .cart-wrapper .title{margin-top: 20px;}
  #banners .banner-text{right: -40%;}
  #banners .banner-text .description{font-size: 2.5rem; line-height: 1.5rem; text-align: center;}
}

@media (min-width:769px) and (max-width:1024px) {
  #banners{height: 50vh;}
  #banners .banner-text .main-title{ text-align: center;}
  #banners .banner-text{right: -40%; }
}
@media (min-width: 996px)
{
  #cart_diet{width: 33%;}
  #banners .banner-text .main-title{ text-align: center;}
  #banners .banner-text{right: -40%; }
}


/*====== Tính BMI===== */

.content{
  width: 84%;
  height: fit-content;
  padding: 5% 0 40px 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.title{
  text-align: center;
  text-decoration: underline;
  font-size: 3rem;
  color: var(--primary-color);

}

.bmi-sex{
  margin-top: 40px; 
  font-size: 25px; 
}
label > input[type="radio"] {
  display: none;
}
label > input[type="radio"] + *::before {
  content: "";
  display: inline-block;
  vertical-align: bottom;
  width: 25px;
  height: 25px;
  margin-right: 0.6rem;
  border-radius: 50%;
  border-style: solid;
  border-width: 0.1rem;
  border-color: gray;
}
label > input[type="radio"]:checked + * {
  color: var(--primary-color);
}
label > input[type="radio"]:checked + *::before {
  background: radial-gradient( var(--primary-color) 40%, transparent 50%, transparent);
  border-color: var(--primary-color);
}

label > input[type="radio"] + * {
  display: inline-block;
  padding: 20px 30px;
}


.bmi-weight, .bmi-height, .txtweight, .txtheight{
    font-size: 25px;
    
}

.weight-slider, .height-slider {
    width: 100%;
    height: 1px;
    border-radius: 30px;
    outline: none; 
    margin: 30px 0;
    background: var(--primary-color);
}
  /* custom slider range */

  input[type=range] {
    appearance: none;
    cursor: pointer;
  }
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 2.5px solid var(--primary-color);
    height: 25px;
    width: 25px;
    border-radius: 50px;
    background: white;
    margin-top: 0px; 
  }

  input[type=number]{
    height: 50px;
    width: 100px;
    outline: 1px solid white;
    border: 2px dashed var(--primary-color);
    font-size: 25px;
    color: var(--text-color);
    margin-left: 100px;
    text-align: center;

  }
  
  .calculateBMI {
    margin-top:30px ;
    font-size: 25px;
    font-weight: bold;
    color: white;
    width: 100%;
    height: 50px ;
    padding-top: 5px;
    border: none;
    background-color: var(--primary-color);
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    border-radius: 5px;
  }

  #indexBMI, #status{
    height: 60px;
    width: 250px;
    border: 2px dashed var(--primary-color);
    margin-top: 30px;
    background-color:white;
    font-size: 25px;
   
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #status{
    margin-left: 20px;
    
  }
  .kq{
    margin-top: 20px;
    font-size: 25px;
  }
  .result{
    display: flex;
    color:var(--primary-color);
    
  }
  .btn-group{
  margin-top: 30px;
  text-align: center;
 
  }
   .retype{
    width: 150px;
    height: 50px;
    font-size: 2rem;
  } 
   


 
  @media (max-width: 428px){
      .content{
        display: block;  
         
      }
      
      label > input[type="radio"] + *{
        padding: 2.5rem 1rem;
      }
      input[type=number]{
        margin-left: 2rem;
      }
      
     .btn-group{
       display: flex;
     }
      .title{
       /* font-size: 2.5rem; */
       margin-top: 2rem;
     }
     /* #cart_diet .cart-wrapper .title{
       font-size: 2.5rem;
     } */
     .calculateBMI{
       font-size: 2rem;
     }
     #cart_diet .wrapper {
       margin-top: 5%;
       
     }    
     #cart_diet .btn-cart{
      margin: 0 30px 0 0;
    
    }
    #diet .wrapper .sort{
      margin: 20px;
      
    }
    .font-xl{
      font-size: 4rem;
    }
 
  }
  @media (min-width: 429px) and (max-width: 768px){
    .content{
      display: block;    
    }
    
    /* label > input[type="radio"] + *{
      margin-left: 4vh;
    }
     */
    .result{
      margin-left: 70px;
    }
    #cart_diet .wrapper{
      margin-top: 5%;
    }
    #cart_diet .btn-cart{
      /* margin: 0 150px; */
      margin: 0 25%;
    }
  }
  @media (min-width:769px) and (max-width:1024px) {
   
    .bmi-calculator{
      width: 60vh;
    }
    
  }
/* ======END BMI====== */


/* ========CART========= */

#cart_diet .cart-wrapper hr{
  border-top: 1px solid var(--inactive);
}

#cart_diet .cart-wrapper .title{font-size: 3rem; line-height: 4.8rem;width: 100%;text-align: center;color: var(--primary-color);}

#cart_diet .cart-wrapper .item-list{margin: 40px 0;}

#cart_diet .cart-wrapper .item-list .item{
  display: flex;
  width: 100%;
  height: 80px;
  margin: 4px 0;
  position: relative;
}

#cart_diet .cart-wrapper .item-list .item .thumb{
  width: 80px;
  height: 80px;
}

#cart_diet .cart-wrapper .item-list .item .detail {
  width: 75%;
  height: 80px;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: left;
}

#cart_diet .cart-wrapper .item-list .item .detail .name{
  font-size: 2.2rem;
  line-height: 2rem;
  width: 100%;
}

#cart_diet .cart-wrapper .item-list .item .detail .quantity,
#cart_diet .cart-wrapper .item-list .item .detail .price{
  font-size: 1.8rem;
}

#cart_diet .cart-wrapper .total{
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2rem;
}

#cart_diet .cart-wrapper .btn-group{
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 !important;
}

/*======== END CART========= */

/*===== product diet==== */

#diet .wrapper .title-suggest{
    text-align: center;
    text-decoration: underline;
    margin-bottom: 3rem;
}
  
#diet .wrapper .sort{
  float: right;
  border: 2px solid var(--primary-color);
}
#diet .wrapper .sort select{   
  height: 35px;
  width: 250px; 
  font-size: 15px;
  outline: 1px solid white;
  outline-offset: -1px;
  cursor: pointer;
  color: var(--primary-color);

}
#diet .wrapper{
  padding-bottom: 40px;
  width: 84%;
  margin: 0 auto;
}

/* ẩn hiện container */

#diet{
  display: none;
  padding: 44px 0;
}

#diet .wrapper .container{
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

#diet .wrapper .container .item{
  width: 30%;
  margin: 12px 0;
}

del {display: none;}


#diet .wrapper .container .item:first-child .product-item, 
#diet .wrapper .container .item:last-child .product-item{background-color: var(--item-1);}

#diet .wrapper .container .item:nth-child(2) .product-item, 
#diet .wrapper .container .item:nth-child(4) .product-item{background-color: var(--item-3);}

#diet .wrapper .container .item:nth-child(3) .product-item, 
#diet .wrapper .container .item:nth-child(5) .product-item{background-color: var(--item-4);}

@media (min-width: 429px) and (max-width: 768px){
  #diet .wrapper .container .item{
      width: 45%;height: max-content;}
  #diet .wrapper .container{margin: 40px 0;}
}

@media (max-width: 428px){
  #diet .wrapper .container{display: block;position: relative;margin-top: 16p;}
  #diet .wrapper .container .item{
    width: 100%;
    position: relative;}
}
/*===== End product diet==== */

/* Load more */

#more-btn{
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

/* =======Page number======== */
#pagination {
    display:flex;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
  
}
#pagination .page-item{
  margin: 1rem;
   
}
.page-item{
  text-align: center;
  justify-content: center;
}
 
#pagination .current-page{
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
}
#pagination .current{
  color: white;
}
#pagination .page-item .page-link{
  display: block;
  width: 4rem;
  line-height: 4rem;
  border-radius: 50%;
  justify-content: center;
}
.page-link:hover{
  color: white;
  background: var(--primary-color);
}
 