/* kupgdyspadnie.pl — Custom CSS overrides */
/* Tailwind handles most styling; this file contains only non-Tailwind additions */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --color-brand: #4f46e5;
  --color-brand-hover: #4338ca;
  --color-success: #059669;
  --color-danger: #dc2626;
  --radius: 0.75rem;
}

* {
  font-family: var(--font-sans);
}

/* Smooth page transitions */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Toast animation */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.toast-enter { animation: slideInRight 0.3s ease-out forwards; }
.toast-exit  { animation: fadeOut 0.3s ease-in forwards; }

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Price badge */
.badge-discount {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

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

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
}

/* CTA button pulse on landing */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
}
.btn-cta-pulse {
  animation: subtlePulse 2.5s ease-in-out infinite;
}
