:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
}

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,
    transparent,
    transparent 10px,
    currentColor 10px,
    currentColor 11px
  );
}

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

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

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

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, currentColor, transparent);
  clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, currentColor, transparent);
  clip-path: polygon(0% 100%, 0% 0%, 100% 100%);
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  filter: blur(40px);
  opacity: 0.15;
  z-index: -1;
}

.decor-rings-svg {
  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='%23DC2626' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.decor-subtle { 
  opacity: 0.05; 
}

.decor-moderate { 
  opacity: 0.1; 
}

.decor-bold { 
  opacity: 0.2; 
}

/* Custom form styles */
.form-group {
  position: relative;
}

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

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

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

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

.star {
  color: #fbbf24;
}

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

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Price badge styles */
.price-badge {
  @apply inline-flex items-center px-2 py-1 rounded text-xs font-medium;
}

.price-badge.discount {
  @apply bg-red-100 text-red-600;
}

/* Product badge styles */
.product-badge {
  @apply absolute top-2 left-2 px-2 py-1 rounded text-xs font-semibold;
}

.product-badge.bestseller {
  @apply bg-yellow-400 text-yellow-900;
}

.product-badge.new {
  @apply bg-green-400 text-green-900;
}

.product-badge.popular {
  @apply bg-blue-400 text-blue-900;
}

/* Trust elements */
.trust-element {
  @apply flex items-center gap-2 text-sm;
}

.trust-icon {
  @apply w-4 h-4 text-green-500;
}

/* Testimonial styles */
.testimonial-grid {
  @apply grid md:grid-cols-3 gap-6;
}

.testimonial-card {
  @apply bg-white p-6 rounded-2xl shadow-sm border;
}

.testimonial-rating {
  @apply flex items-center gap-1 mb-3;
}

/* FAQ Styles */
.faq-item {
  @apply border-b border-gray-100 pb-6;
}

.faq-question {
  @apply w-full text-left flex items-center justify-between font-medium hover:text-accent transition-colors;
}

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

.faq-icon {
  @apply w-5 h-5 transition-transform duration-200;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ingredient-list {
    flex-direction: column;
    align-items: center;
  }
}