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

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

body {
  font-family: 'Space Grotesk', 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-mesh {
  background: radial-gradient(circle at 20% 80%, currentColor 15%, transparent 50%),
              radial-gradient(circle at 80% 20%, currentColor 15%, transparent 50%);
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(ellipse, var(--color-accent) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  opacity: 0.3;
}

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

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

.decor-glow-element {
  box-shadow: 0 0 60px rgba(167, 139, 250, 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='%23A78BFA' 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");
}

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

.form-field:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(167, 139, 250, 0.2);
}

/* Product image styling */
.product-image {
  filter: drop-shadow(0 20px 40px rgba(46, 36, 64, 0.2));
}

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

.rating-star {
  color: #fbbf24;
  width: 16px;
  height: 16px;
}

/* Testimonial slider */
.testimonial-slider {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.testimonial-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
}

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

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

/* Ingredient cards */
.ingredient-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.ingredient-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

/* Stats counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-counter {
  animation: countUp 0.6s ease-out;
}

/* Benefit list styling */
.benefit-item {
  position: relative;
  padding-left: 2rem;
}

.benefit-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item::after {
  content: '✓';
  position: absolute;
  left: 0.3rem;
  top: 0.15rem;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}