/* Reset & Base */
/* Base Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

h1 {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 2rem;
  color: #007bff;
}

.brand {
  color: #ffc107;
  font-weight: bold;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  max-width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}

.product-img:hover {
  transform: scale(1.05);
}

.product-card h2 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.price {
  font-size: 1.2rem;
  color: #28a745;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Buttons */
button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

.view-cart-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: #ffc107;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  .product-card {
    padding: 0.8rem;
  }

  button {
    width: 100%;
  }
}
.cart-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 40px 20px;
}

.cart-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#cart-summary {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
}

#cart-summary h3 {
  font-size: 1.4rem;
  color: #28a745;
}

.btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.continue-link {
  display: inline-block;
  margin: 20px;
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.continue-link:hover {
  color: #0056b3;
}


form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.upi-button {
  display: inline-block;
  padding: 10px 18px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.upi-button:hover {
  background-color: #218838;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}




.summary-total h3 {
  font-size: 1.4rem;
  color: #28a745;
  text-align: center;
}

.payment-section h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.btn {
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-success {
  background-color: #28a745;
  color: white;
  border: none;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-outline-primary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: white;
}

.continue-link {
  display: inline-block;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.continue-link:hover {
  color: #0056b3;
}

/* Mobile-friendly ......................form layout */
.checkout-container {
  width: 100%;
  max-width: 500px;
  background: #fff;
  padding: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.checkout-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
}


/* Form styling */
#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}





/* Button styling */
.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* UPI section */
.upi-section {
  margin-top: 2rem;
  text-align: center;
}

.upi-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}

.upi-button:hover {
  background-color: #218838;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  

  .btn-primary,
  .upi-button {
    width: 100%;
    font-size: 1rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
  }
}