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

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

body {
  font-family: 'DM Sans', 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: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(31, 41, 55, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Form improvements */
input, textarea, select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(31, 41, 55, 0.2);
}

/* Price styling */
.price-crossed {
  position: relative;
}

.price-crossed::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: #dc2626;
  transform: rotate(-5deg);
}

/* Rating stars */
.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-star {
  color: #fbbf24;
}

/* Testimonial quotes */
.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  line-height: 1;
  color: rgba(31, 41, 55, 0.1);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
}

.testimonial-quote {
  position: relative;
  padding-left: 2rem;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cookie consent positioning */
#cookie-consent {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.2s ease-out;
}

#mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
}

/* Product badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-radius: 9999px;
}

.badge-new {
  background-color: #dcfce7;
  color: #166534;
}

.badge-bestseller {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-popular {
  background-color: #ddd6fe;
  color: #5b21b6;
}