: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: 'Urbanist', 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: opacity 0.6s ease-out, transform 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, 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: conic-gradient(from 230.29deg at 51.63% 52.16%, #7C3AED 0deg, #1A1625 67.5deg, #7C3AED 198.75deg, #2E2540 251.25deg, #7C3AED 301.88deg, #1A1625 360deg);
  filter: blur(100px);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--color-accent), transparent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}

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

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-accent), transparent);
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
  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)20, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.3;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg opacity='0.05'%3e%3ccircle cx='30' cy='30' r='25' stroke='%237C3AED' stroke-width='1'/%3e%3ccircle cx='30' cy='30' r='15' stroke='%237C3AED' stroke-width='1'/%3e%3ccircle cx='30' cy='30' r='5' stroke='%237C3AED' stroke-width='1'/%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 Styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-2xl focus:outline-none focus:ring-2 focus:ring-accent focus:border-transparent transition-all;
}

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

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

/* Product Card Styles */
.product-card {
  @apply bg-white rounded-3xl shadow-md p-7 border border-gray-100 hover:shadow-xl transition-all duration-300;
}

/* Testimonial Card */
.testimonial-card {
  @apply bg-white p-6 rounded-2xl shadow-sm border hover:shadow-md transition-shadow;
}

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

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

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

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

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

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

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

/* Responsive Utilities */
@media (max-width: 640px) {
  .mobile-stack > * {
    @apply w-full;
  }
}

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

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Visible */
.focus-visible {
  @apply ring-2 ring-accent ring-offset-2;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

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

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