:root {
  --color-primary: #0F1729;
  --color-secondary: #1E293B;
  --color-accent: #3B82F6;
}

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

body {
  font-family: 'Inter', 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(2rem);
  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);
}

/* Custom backgrounds */
.gradient-radial {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.pattern-dots {
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* 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, transparent, transparent 10px, currentColor 10px, currentColor 11px);
}

.decor-mesh {
  background: 
    radial-gradient(at 40% 20%, hsla(228, 96%, 67%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(189, 68%, 75%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

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

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, currentColor, transparent);
  opacity: 0.1;
  pointer-events: none;
}

.decor-glow-element {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Form styling */
.form-input {
  @apply w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-accent focus:border-accent transition-colors;
}

.form-checkbox {
  @apply w-5 h-5 text-accent bg-white border-gray-300 rounded focus:ring-accent focus:ring-2;
}

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

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

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

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

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

.rating-star {
  @apply w-4 h-4 fill-amber-400 text-amber-400;
}

.rating-star.empty {
  @apply fill-gray-200 text-gray-200;
}

/* Price styling */
.price-current {
  @apply text-2xl font-bold text-primary;
}

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

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

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

.spinner {
  @apply animate-spin rounded-full border-2 border-gray-200 border-t-accent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}