:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
}

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: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

/* Decorative patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(100, 116, 139, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(100, 116, 139, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(100, 116, 139, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Custom form styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent/20 focus:border-accent outline-none transition-colors;
}

.form-select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent/20 focus:border-accent outline-none transition-colors bg-white;
}

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

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

#mobile-menu.show {
  display: block;
}

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

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

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

.rating-stars .star.empty {
  fill: #d1d5db;
  color: #d1d5db;
}

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

.loading button {
  position: relative;
}

.loading button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Testimonial slider */
.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* FAQ accordion */
[data-faq-content] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

[data-faq-content].expanded {
  max-height: 500px;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom shadows */
.shadow-product {
  box-shadow: 0 20px 40px -12px rgba(31, 41, 55, 0.15);
}

.shadow-card-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-card-hover:hover {
  box-shadow: 0 10px 30px -5px rgba(31, 41, 55, 0.15);
}

/* Price styling */
.price-display {
  @apply text-3xl font-bold text-gray-900;
}

.price-old {
  @apply text-lg text-gray-500 line-through;
}

.price-save {
  @apply text-sm text-green-600 font-medium;
}

/* Trust badges */
.trust-badge {
  @apply inline-flex items-center gap-2 px-3 py-2 bg-green-50 text-green-700 rounded-full text-sm font-medium;
}

.trust-badge .icon {
  @apply w-4 h-4;
}