* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  background: #f8f6f4;
}

/* TITLE */
.cart-title {
  text-align: center;
  font-size: 36px;
  margin: 40px 0;
  letter-spacing: 1px;
}

/* MAIN */
.cart-wrapper {
  max-width: 1400px;
  margin: auto;
  display: flex;
  gap: 40px;
  padding: 0 30px 60px;
}

/* ITEMS */
.cart-items {
  flex: 2;
  background: #fff;
  padding:0 40px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width:576px) {
  .cart-item img {
  width: 100px;
  height: 100px;
  }
  .cart-items{
    padding: 0 1rem;
  }
    .cart-item {
    flex-direction: column;
    text-align: center;
  }
     
}
.item-info {
  flex: 1;
}

.item-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.item-info p {
  color: #777;
  margin-bottom: 15px;
}

.qty-box {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qty-box button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #7B0036;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.price {
  font-size: 20px;
  font-weight: 600;
}

/* SUMMARY */
.cart-summary {
  flex: 1;
  background: #7B0036;
  color: #fff;
  padding: 40px;
  border-radius: 18px;
  height: fit-content;
}

.cart-summary h2 {
  margin-bottom: 30px;
  font-size: 24px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 16px;
}

.total {
  font-size: 20px;
  font-weight: bold;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
}

.checkout-btn {
  display: block;
  margin-top: 30px;
  text-align: center;
  padding: 16px;
  background: linear-gradient(45deg, #d4af37, #f5d76e);
  color: #7B0036;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .cart-wrapper {
    flex-direction: column;
  }

}
@media (max-width:576px) {
   .cart-summary {
        padding: 1rem;
    }
}
