/* BACKDROP */
.cart-modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* BOX */
.cart-box{
  background: #fff;
  width: min(95%, 380px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* HEADER */
.cart-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-header h3{
  margin: 0;
}

.cart-header span{
  cursor: pointer;
  font-size: 18px;
}

/* ITEMS */
.cart-items{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* SINGLE ITEM */
.cart-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  padding: 8px;
  border-radius: 8px;
}

.cart-item-name{
  font-size: 13px;
}

.cart-item-price{
  font-size: 12px;
  color: #666;
}

/* QTY CONTROLS */
.qty-controls{
  display: flex;
  align-items: center;
  gap: 5px;
}

.qty-controls button{
  border: none;
  background: #eee;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 5px;
}

/* TOTAL */
.cart-summary{
  margin-top: 10px;
  font-size: 15px;
}

/* FORM */
.cart-form input,
.cart-form textarea{
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
}

/* ORDER BUTTON */
.place-order-btn{
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: #16a34a;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.place-order-btn:hover{
  background: #15803d;
}