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

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

body { 
  font-family: 'Source Sans 3', 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: translateX(32px);
  transition: all 0.6s ease-out;
}

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

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent), transparent, var(--color-primary));
  filter: blur(40px);
  z-index: -1;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent), transparent);
  filter: blur(60px);
  opacity: 0.3;
  z-index: -1;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary), transparent);
  filter: blur(40px);
  opacity: 0.2;
  z-index: -1;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, 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-primary), transparent);
  border-radius: 0 100% 0 0;
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  filter: blur(20px);
  opacity: 0.4;
  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='%23" + var(--color-accent).substring(1) + "' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='20'/%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; }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Focus styles */
button:focus, 
a:focus, 
input:focus, 
textarea:focus, 
select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

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

/* Hero gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
}

/* Product showcase */
.product-showcase {
  position: relative;
  transform-style: preserve-3d;
}

.product-showcase:hover {
  transform: rotateY(5deg) rotateX(2deg);
  transition: transform 0.3s ease-out;
}

/* Testimonial slider */
.testimonial-slider {
  display: flex;
  animation: slide 30s linear infinite;
}

.testimonial-slider:hover {
  animation-play-state: paused;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.875);
  color: var(--color-accent);
}

.form-group label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  transition: all 0.2s ease-out;
  pointer-events: none;
  color: #6b7280;
}

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

.rating-stars .star {
  color: #fbbf24;
  fill: currentColor;
}

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

#mobile-menu.show {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge styles */
.product-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
}

/* Price display */
.price-highlight {
  background: linear-gradient(135deg, var(--color-accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust indicators */
.trust-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(156, 39, 176, 0.1);
  border-radius: 9999px;
  border: 1px solid rgba(156, 39, 176, 0.2);
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-stack > * + * {
    margin-top: 1rem;
  }
  
  .mobile-full {
    width: 100% !important;
  }
}