/* General */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #5584ad;
  color: #333;
}

/* Header */
header {
  background-color: #4CAF50;
  padding: 20px;
  color: white;
  text-align: center;
}

/* Product grid */
#product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Product card */
.product {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 200px;
  text-align: center;
  padding: 20px;
  flex-shrink: 0;
  margin: auto;
}

.product img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.product h2 {
  font-size: 18px;
  margin: 10px 0 5px;
}

.product p {
  font-size: 14px;
  margin: 5px 0;
}

/* Product controls */
.controls {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.controls button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.controls button:hover {
  background-color: #388e3c;
}

.counter {
  font-weight: bold;
  padding: 0 8px;
  min-width: 24px;
  text-align: center;
}


@media (max-width: 768px) {
  .form-container {
    padding: 20px;
  }
}


/* Order section and all forms */
#order-section {
  background-color: #d4e8fa;
  padding: 30px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#order-section h2,
#order-section h3 {
  margin: 10px 0;
  color: #333;
}

/* Uniform input fields */
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form input[type="password"] {
  width: 90%;
  max-width: 250px;
  font-size: 1rem;
  padding: 8px 10px;
  margin: 6px 0;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Submit button (slim style) */

.checkout-form button[type="submit"] {
  background-color: #586a7a;
  color: white;
  font-size: 1rem;
  padding: 6px 0;          /* Less height */
  width: 90%;               /* Full width like inputs */
  max-width: 250px;     /* Same width as inputs */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.checkout-form button[type="submit"]:hover {
  background-color: #2e7d32;
}


/* Auth links */
.auth-options {
  margin: 20px 0 10px;
  text-align: center;
}

.auth-options a {
  display: inline-block;
  margin: 0 10px;
  padding: 6px 14px;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  background-color: #4CAF50;
  transition: background-color 0.3s ease;
}

.auth-options a:hover {
  background-color: #388e3c;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  #product-container {
    flex-direction: column;
    padding: 10px;
  }

  .product {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
  }

  .product img {
    width: 100%;
    max-width: 160px;
    display: block;
    margin: 0 auto;
  }

  #floating-cart, #cart-bar {
    bottom: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 75vh;
  }

  .checkout-form input {
    width: 100%;
  }
}


textarea {
  width: 90%;
  max-width: 250px;
  font-size: 1rem;
  padding: 8px 10px;
  margin: 6px 0;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}



