:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #EDE9FE;
}

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

body {
  font-family: 'Work 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: translateX(-2rem);
  transition: all 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Decorative patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  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::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 50%, var(--color-primary) 100%);
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(40px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.05;
  filter: blur(30px);
  pointer-events: none;
}

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

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(315deg, var(--color-primary) 0%, transparent 50%);
  opacity: 0.05;
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at center, var(--color-accent) 0%, transparent 60%);
  opacity: 0.1;
  filter: blur(20px);
  pointer-events: none;
  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='%237C3AED' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='30' cy='30' r='25'/%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;
}

/* Header scroll effect */
.header-scrolled {
  background: white;
  border-bottom-color: #e5e7eb;
}

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

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

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  @apply -translate-y-2 text-xs text-accent;
}

.form-label {
  @apply absolute left-4 top-3 text-gray-500 transition-all duration-200 pointer-events-none;
}

/* Rating stars */
.stars {
  color: #fbbf24;
}

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

/* Price display */
.price-display .old-price {
  @apply line-through text-gray-400 text-sm;
}

.price-display .current-price {
  @apply text-2xl font-bold text-primary;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  @apply inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin;
}

/* Testimonial styles */
.testimonial-card {
  @apply border-l-4 border-accent pl-6 py-4;
}

/* FAQ accordion */
.faq-item {
  @apply border-b border-gray-100 pb-6 mb-6;
}

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

.faq-content {
  @apply mt-3 text-gray-600 text-sm leading-relaxed;
}

.faq-icon {
  @apply w-5 h-5 transform transition-transform duration-200;
}

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

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

/* Cookie banner animation */
#cookie-consent {
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

#cookie-consent.show {
  transform: translateY(0);
}