body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #fff0f5;
  color: #333;
  padding: 1rem;
}

header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f7cad0;
  margin-bottom: 1.5rem;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #d65a8a;
  margin: 0.2rem 0;
}

.back-btn {
  text-decoration: none;
  color: #d65a8a;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.back-btn:hover {
  color: #b84c76;
}

main {
  max-width: 900px;
  margin: 0 auto;
}

.cart-items table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-items th,
.cart-items td {
  padding: 12px 10px;
  border-bottom: 1px solid #f7cad0;
  text-align: center;
}

.cart-items th {
  background-color: #fce4ec;
  font-weight: 700;
  color: #d65a8a;
}

.qty-input {
  width: 50px;
  padding: 5px;
  border: 1px solid #d65a8a;
  border-radius: 6px;
  text-align: center;
}

.remove-btn {
  background-color: #d65a8a;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.remove-btn:hover {
  background-color: #b84c76;
}

.cart-summary {
  background-color: #fce4ec;
  padding: 20px;
  border-radius: 12px;
  text-align: right;
  font-size: 1.2rem;
  color: #d65a8a;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cart-summary button {
  background-color: #d65a8a;
  border: none;
  padding: 10px 25px;
  font-size: 1.1rem;
  color: white;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cart-summary button:disabled {
  background-color: #f7cad0;
  cursor: not-allowed;
}

.cart-summary button:hover:not(:disabled) {
  background-color: #b84c76;
}

.checkout-form {
  background-color: #fff0f5;
  padding: 20px;
  border-radius: 12px;
  max-width: 450px;
  margin: 0 auto 3rem;
  box-shadow: 0 4px 12px rgba(182, 74, 123, 0.15);
}

.checkout-form.hidden {
  display: none;
}

.checkout-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #b8407d;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #d65a8a;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.checkout-form button {
  background-color: #d65a8a;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkout-form button:hover {
  background-color: #b84c76;
}

.order-success {
  text-align: center;
  max-width: 450px;
  margin: 3rem auto;
  background-color: #fce4ec;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(182, 74, 123, 0.15);
  font-family: 'Playfair Display', serif;
  color: #d65a8a;
}

.order-success.hidden {
  display: none;
}

.order-success a.back-btn {
  margin-top: 1rem;
  display: inline-block;
}
/* Responsive for cart and checkout */

@media (max-width: 900px) {
  main {
    padding: 0 1rem;
  }

  .checkout-form {
    max-width: 90%;
    padding: 15px;
  }

  .cart-summary {
    font-size: 1.1rem;
    padding: 15px;
    margin-bottom: 1.5rem;
  }

  .cart-summary button {
    padding: 8px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .cart-items table {
    font-size: 0.9rem;
  }

  .cart-items th,
  .cart-items td {
    padding: 8px 6px;
  }

  .qty-input {
    width: 40px;
    padding: 4px;
  }

  .remove-btn {
    padding: 5px 8px;
    font-size: 0.9rem;
  }

  .checkout-form {
    padding: 12px;
  }

  .checkout-form input,
  .checkout-form textarea {
    font-size: 0.95rem;
  }

  .checkout-form button {
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .order-success {
    max-width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 400px) {
  header h1 {
    font-size: 2rem;
  }

  .back-btn {
    font-size: 0.9rem;
  }
}
