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

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: 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 elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 1px, transparent 12px);
}

.decor-mesh {
  background: radial-gradient(at 40% 20%, currentColor 0, transparent 50%), radial-gradient(at 80% 0%, currentColor 0, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 80%, var(--color-accent) 0%, transparent 50%);
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
}

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

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

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.2;
  filter: blur(30px);
  z-index: -1;
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Form styling */
.form-input {
  @apply w-full px-4 py-3 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-colors;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Order form specific */
#order_form {
  scroll-margin-top: 2rem;
}

/* 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 */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 bg-accent text-white text-xs font-semibold rounded-full;
}

/* Rating stars */
.rating-stars {
  @apply flex items-center gap-1 text-yellow-400;
}

/* Price styling */
.price-old {
  @apply line-through text-gray-400;
}

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

/* Section spacing */
.section-py {
  @apply py-16 lg:py-20;
}

/* Container */
.container-px {
  @apply px-4 sm:px-6 lg:px-8;
}

/* Card styles */
.card {
  @apply bg-white border border-gray-200 rounded-xl shadow-md p-6;
}

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

.spinner {
  @apply w-5 h-5 border-2 border-gray-300 border-t-accent rounded-full animate-spin;
}

/* Testimonial styles */
.testimonial-card {
  @apply border-l-4 border-accent pl-6 bg-gray-50 p-6 rounded-r-xl;
}

/* FAQ styles */
.faq-item {
  @apply border border-gray-200 rounded-xl p-6 hover:shadow-sm transition-shadow;
}

.faq-question {
  @apply flex items-center justify-between w-full text-left font-semibold text-gray-900;
}

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

/* CTA styles */
.cta-primary {
  @apply bg-accent text-white hover:bg-accent/90 rounded-full px-8 py-4 font-bold text-lg shadow-md hover:shadow-xl transition-all duration-300;
}

.cta-secondary {
  @apply bg-white text-accent border-2 border-accent hover:bg-accent hover:text-white rounded-full px-8 py-4 font-bold text-lg transition-all duration-300;
}

/* Ingredient item */
.ingredient-item {
  @apply text-center p-4;
}

.ingredient-image {
  @apply w-16 h-16 mx-auto mb-3 rounded-full bg-gray-100 flex items-center justify-center;
}

/* Benefits alternating layout */
.benefit-row {
  @apply flex flex-col lg:flex-row items-center gap-8 lg:gap-12;
}

.benefit-row:nth-child(even) {
  @apply lg:flex-row-reverse;
}

/* Stats styling */
.stat-item {
  @apply text-center p-6;
}

.stat-number {
  @apply text-4xl font-bold text-accent mb-2;
}

.stat-label {
  @apply text-gray-600 font-medium;
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.overflow-hidden {
  overflow: hidden;
}