:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Decorative Elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(currentColor 1px, transparent 1px),
                    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, currentColor, currentColor 1px, transparent 1px, transparent 20px);
}

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(64, 116, 187, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
  filter: blur(40px);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(64, 116, 187, 0.1), rgba(34, 197, 94, 0.1));
  filter: blur(60px);
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, currentColor, transparent);
  opacity: 0.1;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, currentColor, transparent);
  opacity: 0.1;
}

.decor-glow-element {
  position: absolute;
  background: radial-gradient(circle, rgba(var(--color-accent), 0.3), transparent);
  filter: blur(40px);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='currentColor' stroke-width='1' opacity='0.1'%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3Ccircle cx='50' cy='50' r='35'/%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/g%3E%3C/svg%3E");
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Form Styles */
.form-field {
  @apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-accent focus:border-transparent outline-none transition-all;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Product Badge */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 text-xs font-semibold rounded-full;
}

.badge-bestseller {
  @apply bg-orange-100 text-orange-800;
}

.badge-new {
  @apply bg-green-100 text-green-800;
}

.badge-popular {
  @apply bg-blue-100 text-blue-800;
}

/* Rating Stars */
.rating-stars {
  @apply flex items-center gap-1;
}

.star {
  @apply w-4 h-4 text-yellow-400;
}

/* Price Styling */
.price-current {
  @apply text-2xl font-bold text-gray-900;
}

.price-old {
  @apply text-lg text-gray-500 line-through;
}

.price-save {
  @apply text-sm text-green-600 font-medium;
}

/* Trust Elements */
.trust-badge {
  @apply flex items-center gap-2 text-sm text-gray-600 bg-gray-50 px-3 py-2 rounded-lg;
}

.security-badge {
  @apply flex items-center gap-1 text-xs text-green-700 bg-green-50 px-2 py-1 rounded-md;
}

/* Loading States */
.loading {
  @apply opacity-50 pointer-events-none;
}

.spinner {
  @apply animate-spin inline-block w-4 h-4 border-2 border-current border-r-transparent rounded-full;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .section-padding {
    @apply py-12;
  }
  
  .container-padding {
    @apply px-4;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #111827;
    --text-primary: #f9fafb;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}