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

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

body { 
  font-family: 'Plus Jakarta 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); 
}

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

.form-select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent focus:border-transparent bg-white;
}

/* Custom checkbox */
.custom-checkbox {
  @apply relative inline-flex items-center;
}

.custom-checkbox input[type="checkbox"] {
  @apply sr-only;
}

.custom-checkbox .checkmark {
  @apply w-5 h-5 border-2 border-gray-300 rounded bg-white flex items-center justify-center cursor-pointer transition-colors;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  @apply bg-gray-900 border-gray-900;
}

/* Hero gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

/* Product image hover effects */
.product-image {
  transition: transform 0.3s ease-out;
}

.product-image:hover {
  transform: scale(1.05);
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Order form styling */
.order-form {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease-out;
  transform: translateY(-100%);
  opacity: 0;
}

#mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

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

.rating-star {
  color: #fbbf24;
}

/* Price styling */
.price-old {
  position: relative;
}

.price-old::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #ef4444;
  transform: rotate(-5deg);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility classes */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-pattern {
  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='%23f1f5f9' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Success/error states */
.success-message {
  @apply text-green-600 bg-green-50 border border-green-200 rounded-lg p-4;
}

.error-message {
  @apply text-red-600 bg-red-50 border border-red-200 rounded-lg p-4;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}