:root {
  --color-primary: #0A0A0A;
  --color-secondary: #1A1A1A;
  --color-accent: #D4AF37;
}

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

body { 
  font-family: 'Manrope', 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) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* Header scroll effect */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Custom gradient backgrounds */
.bg-gradient-accent {
  background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
}

/* FAQ accordion */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

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

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* 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 {
  color: #fbbf24;
}

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

.price-old::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ef4444;
  transform: translateY(-50%);
}

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

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

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Testimonial quotes */
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.3;
}

/* Ingredient cards hover effect */
.ingredient-card {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

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

/* Order form enhancement */
.order-form {
  background: linear-gradient(135deg, #FFFDF5 0%, #FEF9E7 100%);
}

/* Cookie consent animation */
#cookie-consent {
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

#cookie-consent.show {
  transform: translateY(0);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  [data-animate] {
    transform: translateY(10px) scale(0.98);
  }
  
  .quote-mark {
    font-size: 2.5rem;
  }
}