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

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

body { 
  font-family: 'Plus Jakarta 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: 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); 
}

.transition-transform {
  transition: transform 0.3s ease;
}

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

.decor-grid-lines {
  background-image: linear-gradient(rgba(156, 39, 176, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(156, 39, 176, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(156, 39, 176, 0.03) 10px,
    rgba(156, 39, 176, 0.03) 20px
  );
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(45, 58, 45, 0.1));
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Order form specific */
#order_form {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
}

/* Header transparency for hero sections */
.hero-transparent .fixed {
  background: transparent;
  border-bottom: none;
}

.hero-transparent .fixed .text-primary {
  color: white;
}

.hero-transparent .fixed .text-gray-600 {
  color: rgba(255, 255, 255, 0.8);
}

.hero-transparent .fixed .text-gray-600:hover {
  color: white;
}

/* Mobile menu animations */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

#mobile-menu.show {
  max-height: 300px;
}

/* Loading states */
.loading {
  position: relative;
  color: transparent;
}

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

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

/* Success message */
.success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Testimonial slider */
.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

/* Star ratings */
.stars {
  color: #fbbf24;
}

/* Product badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #9C27B0, #7c3aed);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Country origin badge */
.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(45, 58, 45, 0.1);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}