:root {
  --color-primary: #1B4332;
  --color-secondary: #2D6A4F;
  --color-accent: #40C057;
}

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

body {
  font-family: 'Source Sans 3', 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(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.fade-up-enter {
  opacity: 0;
  transform: translateY(20px);
}

.fade-up-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Decorative patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle, #40C057 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(#40C057 1px, transparent 1px), linear-gradient(90deg, #40C057 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, #40C057 10px, #40C057 11px);
}

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, #40C057, transparent 50%), 
              radial-gradient(circle at 75% 75%, #2D6A4F, transparent 50%);
  filter: blur(40px);
  opacity: 0.1;
  z-index: -1;
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #40C057, transparent);
  opacity: 0.1;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #40C057, transparent);
  opacity: 0.1;
}

.decor-glow-element {
  filter: drop-shadow(0 0 30px rgba(64, 192, 87, 0.3));
}

/* Utility classes */
.rotate-180 {
  transform: rotate(180deg);
}

.transition-transform {
  transition: transform 0.2s ease-in-out;
}

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

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

/* Star rating */
.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating .star {
  color: #fbbf24;
}

.star-rating .star.empty {
  color: #e5e7eb;
}

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

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

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

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

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

/* Product badge styles */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 bg-accent text-white text-sm font-semibold rounded-full;
}

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

.price-current {
  @apply text-2xl font-bold text-gray-900;
}

.price-discount {
  @apply bg-red-100 text-red-800 px-2 py-1 rounded text-sm font-semibold;
}

/* Testimonial cards */
.testimonial-card {
  @apply bg-gray-50 p-6 rounded-xl hover:shadow-md transition-shadow;
}

/* FAQ styles */
.faq-item {
  @apply border border-gray-200 rounded-lg overflow-hidden;
}

.faq-question {
  @apply w-full text-left px-6 py-4 font-semibold hover:bg-gray-50 transition-colors flex items-center justify-between;
}

.faq-answer {
  @apply px-6 pb-4 text-gray-600 hidden;
}

.faq-answer.show {
  @apply block;
}

/* Order form styles */
.order-form {
  @apply bg-white rounded-2xl shadow-xl p-8 border border-gray-100;
}

.quantity-selector {
  @apply flex items-center border border-gray-300 rounded-lg overflow-hidden;
}

.quantity-btn {
  @apply px-4 py-2 bg-gray-100 hover:bg-gray-200 transition-colors font-semibold;
}

.quantity-input {
  @apply w-16 text-center py-2 border-0 focus:ring-0 outline-none;
}