/* NegraPro Custom Styling & Micro-interactions */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  }
  50% {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
  }
}

.glow-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 4px 20px -2px rgba(6, 182, 212, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.4);
}

.glow-card:hover, .glow-card:active {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -4px rgba(6, 182, 212, 0.3), 0 0 25px rgba(6, 182, 212, 0.22);
  border-color: rgba(56, 189, 248, 0.8) !important;
}

.glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-sizing: border-box;
}

.glass-card {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.22);
  box-sizing: border-box;
}

/* Mobile & Global Text Clamping & Containment */
.line-clamp-1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.line-clamp-2 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.line-clamp-3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

/* Ensure all card elements strictly respect their container bounds */
.product-card-contain {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Table typography & layout styling */
table th, table td {
  vertical-align: middle;
}

.overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}

/* Mobile 2-column grid fine-tuning */
@media (max-width: 640px) {
  .product-grid-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Button Loading State & Spinning Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.8s linear infinite !important;
}

.cursor-wait {
  cursor: wait !important;
}

[data-loading-active="true"] {
  position: relative !important;
  pointer-events: none !important;
  user-select: none !important;
}
