:root {
  --color-primary: #2D3A2D;
  --color-secondary: #4A5D4A;
  --color-accent: #9C27B0;
}

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: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(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,
    transparent,
    transparent 10px,
    currentColor 10px,
    currentColor 11px
  );
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  filter: blur(60px);
  opacity: 0.1;
  z-index: -1;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  opacity: 0.1;
  clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: var(--color-primary);
  opacity: 0.1;
  clip-path: polygon(0% 100%, 0% 0%, 100% 100%);
}

/* Form Styles */
.form-group {
  position: relative;
}

.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-2xl focus:outline-none focus:ring-2 focus:ring-accent focus:border-transparent;
}

.form-error {
  @apply text-red-600 text-sm mt-1;
}

.form-success {
  @apply text-green-600 text-sm mt-1;
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
  display: block;
}

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

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

.rating-stars .star {
  @apply w-4 h-4 text-yellow-400 fill-current;
}

/* Cookie Banner Animation */
#cookie-consent {
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

#cookie-consent.show {
  transform: translateY(0);
}

/* Loading States */
.btn-loading {
  @apply relative pointer-events-none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Testimonial Styles */
.testimonial-quote::before {
  content: '"';
  @apply text-4xl text-gray-300 absolute -top-2 -left-2;
}

.testimonial-quote::after {
  content: '"';
  @apply text-4xl text-gray-300 absolute -bottom-4 -right-2;
}

/* FAQ Accordion */
[data-faq-content] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

[data-faq-content].open {
  max-height: 500px;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Focus Visible */
.focus-visible {
  @apply focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2;
}