/* Cart Page */
.cart-heading {
  margin: 20px 0;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: #023e8a;
}

/* Container for items and summary */
.cartItems-summary-div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

/* Each cart item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 15px auto;
  padding: 20px;
  width: 100%;
  max-width: 750px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.cart-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-details h3 {
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
  font-size: x-large;
}

.item-details p {
  text-align: center;
  font-size: 14px;
  color: #777;
}

/* Quantity controls */
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity button {
  padding: 4px 10px;
  border: 1px solid #ccc;
  background: #f1f1f1;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.quantity button:hover {
  background: #ddd;
}

.quantity span {
  font-weight: bold;
}

/* Remove button */
.remove-btn {
  background-color: #ff4d4d;
  border: none;
  color: white;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.remove-btn:hover {
  background-color: #d93636;
}

/* Cart Summary */
#cartContainer > p {
  font-size: large;
  color: #023e8a;
}

#cartSummary {
  flex: 1;
  background: #f0f9ff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#cartSummary h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #023e8a;
}

#cartSummary button {
  padding: 12px 24px;
  background: #00b39f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s;
}

#cartSummary button:hover {
  background: #008b76;
}

/* Responsive */
@media (max-width: 768px) {
  .cartItems-summary-div {
    flex-direction: column;
    align-items: center;
  }

  #cartSummary {
    width: 100%;
    margin-top: 20px;
  }

  .cart-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cart-item img {
    margin-bottom: 10px;
  }
}
