/* General */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fefefe;
  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: 10px;
  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;
}

/* Toggle Cart Button */
#toggle-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background-color: transparent;
  border: none;
  padding: 0;
  width: 50px;
  height: 50px;
  cursor: pointer;
}

#toggle-cart img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floating Cart */
#floating-cart, #cart-bar {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #4CAF50;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 14px;
  display: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#floating-cart.open, #cart-bar.open {
  display: block;
}

#floating-cart h3, #cart-bar h3 {
  margin-top: 0;
  font-size: 16px;
  color: #333;
}

/* Cart Items */
#cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

/* Cart image */
.cart-thumb {
  width: 60px;
  height: 30px;
  object-fit: fill;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Item text next to image */
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 8px;
}

.cart-title {
  flex-grow: 1;
  white-space: nowrap;
  font-weight: normal;
  font-size: 13px;
}

.cart-controls {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.cart-controls button {
  padding: 2px 8px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

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

/* Total price */
#cart-total {
  margin-top: 10px;
  font-weight: bold;
  font-size: 15px;
  color: #222;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

/* Order section and all forms */
#order-section {
  background-color: #d9ead3;
  padding: 20px;
  border-radius: 10px;
  margin: 30px 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: #388e3c;
  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;
}



    footer {
      text-align: left;
      padding: 20px;
      font-size: 14px;
      color: #FFF;
      width:100%;
      background-color: olive;
    }

