:root {
  --color-primary: #1C1917;
  --color-secondary: #2C2825;
  --color-accent: #D4B896;
}

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(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: 20px 20px;
}

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

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

.decor-mesh {
  background: radial-gradient(circle at 20% 50%, currentColor 25%, transparent 26%),
              radial-gradient(circle at 80% 50%, currentColor 25%, transparent 26%);
  background-size: 40px 40px;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: -1;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  z-index: -1;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, currentColor 0%, transparent 50%);
  opacity: 0.1;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, currentColor 0%, transparent 50%);
  opacity: 0.1;
}

.decor-glow-element {
  position: relative;
  z-index: 1;
}

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

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='currentColor' stroke-width='1' stroke-opacity='0.1'%3E%3Ccircle cx='20' cy='20' r='5'/%3E%3Ccircle cx='20' cy='20' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.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-300 rounded-lg focus:ring-2 focus:ring-accent focus:border-transparent transition-all;
}

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

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

/* Order form specific */
.order-form {
  @apply bg-white rounded-xl shadow-lg p-6 border border-gray-100;
}

.product-card {
  @apply bg-gray-50 rounded-xl p-6 border border-gray-200;
}

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

.rating-stars .star {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rating-stars .star.filled {
  color: #F59E0B;
}

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

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

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

/* Cookie consent animation */
#cookie-consent.show {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

/* Testimonial styling */
.testimonial-card {
  @apply border-l-4 border-accent pl-6 py-4;
}

.testimonial-quote {
  @apply text-gray-600 italic mb-3;
}

.testimonial-author {
  @apply text-sm font-medium text-gray-900;
}

/* FAQ styling */
.faq-item {
  @apply bg-gray-50 p-6 rounded-xl;
}

.faq-question {
  @apply font-semibold text-gray-900 mb-2;
}

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

/* Benefit cards */
.benefit-card {
  @apply bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow;
}

.benefit-icon {
  @apply w-12 h-12 bg-accent/10 text-accent rounded-xl flex items-center justify-center mb-4;
}

/* Ingredient cards */
.ingredient-card {
  @apply text-center;
}

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

/* Stats display */
.stat-item {
  @apply text-center;
}

.stat-number {
  @apply text-3xl font-bold text-primary block;
}

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

/* Price display */
.price-display {
  @apply text-center;
}

.price-current {
  @apply text-3xl font-bold text-primary;
}

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

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

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

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

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-stack {
    @apply flex-col;
  }
  
  .mobile-full {
    @apply w-full;
  }
  
  .mobile-center {
    @apply text-center;
  }
}