

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* TOP BAR */
.topbar {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  font-size: 40px;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid #ddd;
}

.menu {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 15px;
}
.menu li {
  position: relative;
}
.menu li a{
  text-decoration: none;
  color: black;
  font-size: 20px;
  transition: 0.3s;
  padding: 5px 0;
}
.menu li a:hover{
  color: #0f6e38;
}
/* SEARCH */
.search-box {
  position: right;
  margin-right: 10px;
}

.search-box input {
  padding: 10px 1px 10px 15px;
  border: 4px solid #cccccca0;
}
/* ICON BÊN NGOÀI */
.icon-img {
  width: 25px;
  height: 30px;
  opacity: 1;
  cursor: pointer;
  gap: 40px;
  transition: 0.2s;
  margin-left: 30px;
}
.icon-img:hover {
  transform: translateY(-5px);
}
/* =========================
   CART
========================= */
.cart-container{
    width: 1300px;
    margin: 40px auto;
    display: flex;
    gap: 40px;
}

/* LEFT */

.cart-left{
    flex: 2;
}

.cart-title{
    font-size: 45px;
    font-weight: 900;
}

.cart-title span{
    font-size: 20px;
    color: gray;
}


.cart-alert{
    background: #ececec;
    padding: 25px;
    margin: 30px 0;
}

.cart-alert h3{
    margin-bottom: 8px;
    font-size: 16px;
}

/* ITEM */

.cart-item{
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
}

.cart-img{
    width: 180px;
    height: 180px;
    background: #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-img img{
    width: 150px;
}

.cart-info{
    flex: 1;
    margin-left: 20px;
}

.cart-info h3{
    font-size: 24px;
    margin-bottom: 10px;
}

.cart-info p{
    margin-bottom: 8px;
}

.cart-bottom{
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.cart-bottom select{
    width: 80px;
    height: 40px;
    padding-left: 10px;
}

.remove-btn{
    width: 100px;
    height: 40px;
    border: 1px solid black;
    background: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.remove-btn:hover{
    background: black;
    color: white;
}

.cart-price{
    font-size: 24px;
    font-weight: bold;
}

/* RIGHT */

.cart-right{
    flex: 1;
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
    height: fit-content;
}

.cart-right h1{
    font-size: 40px;
    line-height: 45px;
    margin-bottom: 30px;
}

.summary-row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
}

.total{
    font-weight: bold;
    font-size: 22px;
    margin-top: 30px;
}

.checkout-btn{
    width: 100%;
    height: 60px;
    background: black;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    margin-top: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover{
    background: #333;
}

.payment-box{
    margin-top: 35px;
}

.payment-box p{
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: bold;
}

.payment-icons{
    display: flex;
    gap: 10px;
}

.payment-icons img{
    width: 60px;
}
.back-btn{
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 30px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}

.back-btn:hover{
    color: red;
}
@media screen and (max-width: 992px){

  .cart-container{
    width: 100%;
    padding: 20px;
    flex-direction: column;
  }

  .cart-right{
    width: 100%;
  }

  .cart-left{
    width: 100%;
  }

  .cart-title{
    font-size: 36px;
  }

  .cart-item{
    flex-direction: column;
    text-align: center;
  }

  .cart-img{
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .cart-info{
    margin-left: 0;
    margin-top: 15px;
  }

  .cart-bottom{
    justify-content: center;
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 768px){

  .navbar{
    flex-direction: column;
    gap: 15px;
  }

  .menu{
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .search-box input{
    width: 90%;
  }

  .cart-container{
    padding: 10px;
  }

  .cart-title{
    font-size: 28px;
    text-align: center;
  }

  .cart-item{
    padding: 15px;
  }

  .cart-info h3{
    font-size: 20px;
  }

  .cart-price{
    font-size: 20px;
  }

  .cart-right h1{
    font-size: 28px;
    line-height: 34px;
  }

  .checkout-btn{
    height: 50px;
    font-size: 16px;
  }

  .payment-icons img{
    width: 45px;
  }
}