:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
}

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

body { 
  font-family: 'DM 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: 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 patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(var(--color-primary) 1px, transparent 1px),
                    linear-gradient(90deg, var(--color-primary) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, var(--color-primary), var(--color-primary) 1px, transparent 1px, transparent 10px);
}

.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%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.1;
  z-index: -1;
}

/* Form styling */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors;
}

.form-input:focus {
  outline: none;
}

.form-error {
  @apply text-red-500 text-sm mt-1;
}

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

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

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

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

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

.star.empty {
  color: #d1d5db;
}

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

/* FAQ accordion */
.faq-item[data-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

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

.price-highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Hero section enhancements */
.hero-gradient {
  background: linear-gradient(135deg, #f0faff 0%, #e0f5ff 50%, #ffffff 100%);
}

/* Product badge */
.product-badge {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}