/* =====================================================
   RAZORPAY PRODUCTS PAGE
===================================================== */

.products-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.product-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}


.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 4px 0 0;
}
.product-card .subject {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.exam-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  width: fit-content;
}




.price-row {
  margin-top: 14px;
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  flex-direction: column;   /* 🔑 vertical layout */
  gap: 10px;
  margin-top: 12px;
}

.price {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.buy-btn {
  width: 100%;              /* 🔥 full width */
  padding: 14px 0;
  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;

  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.buy-btn:active {
  transform: scale(0.98);
}



.buy-btn.done {
  background: #16a34a;
  cursor: default;
}

.buy-btn:disabled {
  opacity: 0.8;
}

/* Empty state */
.empty-state {
  text-align: center;
  color: #6b7280;
  margin-top: 80px;
}
.rzp-note {
  font-size: 0.7rem;
  color: #6b7280;
  text-align: left;
  margin-top: 4px;
}
/* Mobile */
@media (max-width: 640px) {
  .products-container {
    margin: 40px auto;
  }
}

@media (max-width: 640px) {
  .product-card img {
    border-radius: 6px;
  }
}
