:root {
  --color-primary: #2E2440;
  --color-secondary: #453660;
  --color-accent: #A78BFA;
}

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(32px);
  transition: all 0.7s 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: 24px 24px;
}

.decor-grid-lines {
  background-image: 
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    currentColor,
    currentColor 1px,
    transparent 1px,
    transparent 12px
  );
}

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, var(--color-accent), transparent 50%),
              radial-gradient(circle at 80% 80%, var(--color-secondary), transparent 50%);
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.decor-gradient-blur::before {
  top: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  opacity: 0.1;
}

.decor-gradient-blur::after {
  bottom: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  opacity: 0.1;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, var(--color-accent), transparent);
  opacity: 0.1;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-secondary), transparent);
  opacity: 0.1;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.1;
  filter: blur(40px);
  z-index: -1;
}

.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='%23A78BFA' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3Ccircle cx='30' cy='30' r='16'/%3E%3Ccircle cx='30' cy='30' r='24'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.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-300 rounded-xl focus:ring-2 focus:ring-accent/20 focus:border-accent transition-colors;
}

.form-select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-accent/20 focus:border-accent transition-colors bg-white;
}

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

/* Order Form Enhancements */
.order-form {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
}

.product-card {
  background: white;
  border: 2px solid #E5E7EB;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 25px rgba(167, 139, 250, 0.1);
}

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

.rating-star {
  color: #FCD34D;
  font-size: 1rem;
}

/* Trust Badges */
.trust-badge {
  @apply inline-flex items-center gap-2 px-3 py-2 bg-green-50 text-green-700 rounded-lg text-sm font-medium;
}

.security-badge {
  @apply inline-flex items-center gap-2 px-3 py-2 bg-blue-50 text-blue-700 rounded-lg text-sm;
}

/* Testimonial Cards */
.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.3;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .mobile-stack > * {
    margin-bottom: 1rem;
  }
  
  .mobile-text-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}