 /* -------------------cart icon container----------------------------- */
 .container-cart{
    /* border: solid; */
    position: fixed;
    margin-left: 95%;
    /* margin-top: 10%; */
    transition: transform .5s;
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    cursor: pointer;
    .icon-cart{
      /* border: solid orange; */
      color: rgb(49, 49, 49);
    }
  }
  svg{
    width: 30px;
  }
  /*--------------------- trolley icon -----------------------*/
 
  /*-------------------- item number-------------------- */
  .icon-cart span{
    /* border: solid green; */
    position: absolute;
    background-color: red;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    /* top: 30%;
    left: 20px; */
  }
  /*------------------------- cart display----------------------------- */
  .cartTab{
    width: 400px;
    background-color: #353432e7;
    color: #eee;
    position: fixed;
    top: 40px;
    right: -400px;
    bottom: 0px;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    transition: .5s;
  }
  body.showCart .cartTab{
    position: fixed;
    right: 0;
  }
  body.showCart .container{
    transform: translateX(-250px);
  }
  .cartTab h1{
    padding: 20px;
    margin: 0;
    font-weight: 300;
  }
  .cartTab .btn{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 50px;
  }
  .cartTab button{
    background-color: #7abb60;
    font-family: Poppins;
    font-weight: 500;
    cursor: pointer;
    margin-left: 5%;
  }
  .cartTab .close{
    background-color: #ad6868;
  }
  .listCart .item img{
    width: 100%;
  }
  .listCart .item{
    display: grid;
    grid-template-columns: 70px 150px 50px 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
    font-size: x-small;
  }
  .listCart .quantity span{
    padding-top: 5%;
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.623);
    border-radius: 20%;
    color: whitesmoke;
    cursor: pointer;
  }
  .listCart .quantity span:nth-child(2){
    background-color: transparent;
    color: #eee;
    cursor: auto;
  }
  .listCart .item:nth-child(even){
    background-color: #eee1;
  }
  .listCart{
    height: 80%;
    overflow: auto;
  }
  .listCart::-webkit-scrollbar{
    width: 0;
  }
  .userDetails{
    margin-top: -80px;
    display: grid;
    gap:5%;
    width: 80%;
    padding: 2%;
  }
  @media screen and (max-width: 990px){
    .cartTab{
      width: 390px;
    }
    .cartTab h1{
      margin-left: 5%;
      
    }
    .listCart .item{
      padding-left: 10%;
      grid-template-columns: 50px 100px 100px 1fr;
      gap: 1px;
    }
    .userDetails{
      margin-left: 10%;
    }
    .container-cart{
        margin-left: 85%;
        margin-top: -10%;
    }
  }
  @media screen and (max-width: 600px){
    .container-cart{
      margin-left: 86%;
      /* margin-top: -80%; */
    }
    .cartTab{
      top: 70px;
    }
  }