@import url('https://fonts.googleapis.com/css2?family=Fasthand&family=Hanuman:wght@100;300;400;700;900&family=Noto+Serif+Khmer:wght@800&family=Poppins:wght@400;600;700;900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family:"Poppins", sans-serif  ,  "Fasthand", cursive;
  }
  
  :root {
    --grey: rgba(128, 128, 128, 0.442);
    --border-color-grey: rgba(128, 128, 128, 0.442);
    --bg-card: #d4d4d440;
    --bg-sale: #3CB043;
    --bg-hover-card: #bfc1be;
    --bg-header: #F6F9F5;
    --dark-text: #333;
    --bg-header: #F6F9F5;
    --text-black: #06150A;
    --text-white: #ffffff;
  }

  body {
    width: 100%;
  }
  

  /* popup */
  
  #popupContainer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(111, 111, 111, 0.253); 
    z-index: 9999;
    transition: right 0.3s ease; 
  }
  
  #popupContent {
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    padding: 10px 0;
    background-color: rgb(255, 255, 255);
  }
  
  #closePopup {
    display: block;
    cursor: pointer;
    color: var(--bg-sale);
    font-size: 43px;
    transition: 0.2s linear;
    margin-right: 20px;
  }
  
  #closePopup:hover {
    color: red;
  }
  
  .cart-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .cart-title {
    color: var(--bg-sale);
    margin-left: 20px;
    font-size: 25px;
    font-weight: 500;
  }
  
  #cart-content {
    margin: 25px 20px;
    position: relative;
    height: 100%;
}
  
#cart-content .empty-product {
  padding: 56px 0;
  text-align: center;
    width: 100%;
    height: 100%;
    position: absolute;
}

#cart-content .empty-product .empty-cart {
  margin-left: 165px;
    width: 100px;
    height: 100px;
    display: block;
    padding: 20px;
    border: 2px solid #3CB043;
    border-radius: 50%;
}

#cart-content .empty-product .empty-cart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cart-content .empty-product p {
    font-size: 20px;
    color: var(--bg-sale);
    padding: 20px;
}
  .show-product {
    width: 100%;
    height: 600px;
    position: absolute;
    overflow: auto;
    padding-right: 10px;
  }
  
  .show-product::-webkit-scrollbar {
    width: 7px;
  }

  .show-product::-webkit-scrollbar-thumb {
    background: var(--color-green);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .product {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    cursor: pointer;
  }
  
  .add-to-cart-btn {
    background-color: var(--bg-sale);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
  }
  
  .list-line {
    display: block;
    border-color: var(--border-color-grey);
    margin: 20px 0;
  }
  
  
  
  .group-list-btn {
    margin: 20px 0;
  }
  
  /* check out */

  
  
  .group-list-btn .btn-checkout {
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 8px 0;
    font-size: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--bg-sale);
    color: var(--bg-sale);
    transition: 0.2s linear;
  }

  .group-list-btn .btn-checkout:hover {
    background-color: var(--bg-sale);
    color: var(--text-white);
  }

  
  
  .btn-view-cart {
    text-decoration: none;
    border: 1px solid var(--bg-sale);
    background-color: var(--bg-sale);
    color: #ffffff;
    padding: 10px 20px;
    margin-right: 25px;
  }

  
  #cart {
    border: 1px solid #ccc;
    padding: 10px;
    width: 250px;
    float: right;
  }
  
  #cart-items {
    list-style: none;
    padding: 0;
  }
  
  #cart-items li {
    margin-bottom: 5px;
    color: var(--bg-sale);
  }
  
  
  #cart {
    display: none;
  }
  
  .cart-btn {
    border: 1px solid var(--bg-sale);
    padding: 10px 25px;
    cursor: pointer;
  }
  
  .pobup-img {
    display: block;
    width: 70px;
  }
  
  .pobup-img img {
    width: 100%;
    object-fit: cover;
  }
  
  .list-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .list-name {
    display: block;
    font-size: 20px;
  }
  
  .list-price {
    text-align: center;
    display: block;
    font-size: 13px;
    color: var(--dark-text);
    
  }

  #total {
    color: var(--dark-text);
    font-size: 20px;
    font-weight: 500;
  }
  
  .btn-trash {
    cursor: pointer;
    color: var(--bg-sale);
    font-size: 20px;
    transition: 0.3s;
  }
  
  .btn-trash:hover {
    color: red;
  }