/* Small reusable classes. Tailwind handles layout; these keep buttons/inputs consistent
   and support dark mode through the ".dark" class on <html>. */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.62rem 1.1rem;
  border-radius:.75rem; font-weight:600; font-size:.875rem; transition:all .15s; cursor:pointer; white-space:nowrap; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-primary { background:#2563eb; color:#fff; }
.btn-primary:hover:not(:disabled) { background:#1d4ed8; }
.btn-soft { background:#eff6ff; color:#1d4ed8; }
.btn-soft:hover:not(:disabled) { background:#dbeafe; }
.dark .btn-soft { background:#1e293b; color:#93c5fd; }
.dark .btn-soft:hover:not(:disabled) { background:#334155; }
.btn-outline { border:1px solid #cbd5e1; color:#334155; background:transparent; }
.btn-outline:hover:not(:disabled) { background:#f1f5f9; }
.dark .btn-outline { border-color:#334155; color:#e2e8f0; }
.dark .btn-outline:hover:not(:disabled) { background:#1e293b; }
.btn-danger { background:#dc2626; color:#fff; }
.btn-danger:hover:not(:disabled) { background:#b91c1c; }
.btn-sm { padding:.35rem .7rem; font-size:.78rem; border-radius:.6rem; }

.input { width:100%; padding:.62rem .85rem; border-radius:.7rem; border:1px solid #cbd5e1; background:#fff;
  color:#0f172a; font-size:.9rem; }
.input:focus { outline:2px solid #3b82f6; outline-offset:0; border-color:#3b82f6; }
.dark .input { background:#0f172a; border-color:#334155; color:#f1f5f9; }
.label { display:block; font-size:.8rem; font-weight:600; margin-bottom:.3rem; color:#475569; }
.dark .label { color:#94a3b8; }

.card { background:#fff; border:1px solid #e2e8f0; border-radius:1rem; }
.dark .card { background:#0f172a; border-color:#1e293b; }

.badge { display:inline-block; padding:.15rem .6rem; border-radius:999px; font-size:.7rem; font-weight:700; text-transform:capitalize; }
.badge-pending { background:#fef3c7; color:#92400e; }
.badge-processing { background:#dbeafe; color:#1e40af; }
.badge-shipped { background:#e0e7ff; color:#3730a3; }
.badge-delivered { background:#dcfce7; color:#166534; }
.badge-cancelled { background:#fee2e2; color:#991b1b; }

.product-card { transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(15,23,42,.25); }

.skeleton { background:linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%); background-size:200% 100%;
  animation: shimmer 1.3s infinite; border-radius:.75rem; }
.dark .skeleton { background:linear-gradient(90deg,#1e293b 25%,#334155 50%,#1e293b 75%); background-size:200% 100%; }
@keyframes shimmer { to { background-position:-200% 0; } }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
