:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
}

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, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

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

.decor-mesh {
  background: radial-gradient(circle at 20% 50%, var(--color-accent) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--color-primary) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, var(--color-secondary) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-accent), transparent);
  border-radius: 0 0 0 100%;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-accent), transparent);
  border-radius: 0 100% 0 0;
}

.decor-glow-element {
  box-shadow: 0 0 100px rgba(124, 58, 237, 0.3);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237C3AED' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%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-input {
  @apply w-full px-4 py-3 border border-gray-200 rounded-full focus:ring-2 focus:ring-accent focus:border-transparent outline-none transition-all;
}

.form-select {
  @apply w-full px-4 py-3 border border-gray-200 rounded-full focus:ring-2 focus:ring-accent focus:border-transparent outline-none transition-all bg-white;
}

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

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

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

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

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

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

.price-currency {
  @apply text-lg font-medium;
}

/* Testimonial styles */
.testimonial-quote::before {
  content: '"';
  @apply text-4xl text-accent font-bold leading-none;
}

.testimonial-quote::after {
  content: '"';
  @apply text-4xl text-accent font-bold leading-none;
}

/* FAQ accordion */
.faq-item {
  @apply border-b border-gray-200;
}

.faq-trigger {
  @apply w-full py-4 text-left font-medium text-gray-900 hover:text-accent transition-colors flex items-center justify-between;
}

.faq-content {
  @apply pb-4 text-gray-600 leading-relaxed;
}

.faq-icon {
  @apply w-5 h-5 text-gray-400 transition-transform;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-stack {
    @apply space-y-4;
  }
  
  .mobile-center {
    @apply text-center;
  }
  
  .mobile-full {
    @apply w-full;
  }
}

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

.spinner {
  @apply animate-spin w-5 h-5 border-2 border-gray-300 border-t-accent rounded-full;
}

/* Success/Error states */
.success {
  @apply text-green-600 bg-green-50 border-green-200;
}

.error {
  @apply text-red-600 bg-red-50 border-red-200;
}

/* Image optimization */
img {
  @apply max-w-full h-auto;
}

.product-image {
  @apply w-full h-auto object-contain;
}

.ingredient-image {
  @apply w-16 h-16 object-cover rounded-full;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
  }
}