/* DigiTool custom overrides */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #9333ea; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* Product card hover */
.product-card { transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }

/* Badge discount */
.badge-discount {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Line clamp utility */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* UPI QR code container */
#qr-code canvas, #qr-code img { display: block; margin: 0 auto; }

/* Pulse animation for payment checking */
@keyframes pulse-ring {
  0% { transform: scale(.9); opacity: 1; }
  80%, 100% { transform: scale(1.4); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 1.5s cubic-bezier(.215,.61,.355,1) infinite; }

/* Admin sidebar active link */
.sidebar .nav-link.active i { color: #fff; }

/* Table responsive fix */
.table-responsive { border-radius: .5rem; overflow: hidden; }
