:root {
  --color-primary: #3D2914;
  --color-secondary: #5C4020;
  --color-accent: #FF8C00;
}

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;
  transition: all 0.2s ease;
}

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, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

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

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

.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(80px);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, var(--color-accent) 0%, transparent 50%);
  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) 0%, transparent 50%);
  opacity: 0.1;
}

.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) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

/* Form styles */
.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-error {
  @apply text-sm text-red-600 mt-1;
}

/* Custom utilities */
.text-balance {
  text-wrap: balance;
}

.container-custom {
  @apply mx-auto max-w-7xl px-4 sm:px-6 lg:px-8;
}

/* Product image effects */
.product-glow {
  filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.3));
}

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

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

/* Testimonial cards */
.testimonial-card {
  @apply bg-gray-50 p-6 rounded-xl border border-gray-100 hover:border-gray-200 transition-colors;
}

/* FAQ accordion */
.faq-item {
  @apply border-b border-gray-100 pb-6 transition-all duration-200;
}

.faq-question {
  @apply w-full text-left font-medium text-gray-900 hover:text-accent transition-colors;
}

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

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

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

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

.order-summary {
  @apply bg-gray-50 rounded-xl p-6 space-y-4;
}

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

.spinner {
  @apply inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin;
}

/* Success/error states */
.success-message {
  @apply text-green-600 bg-green-50 border border-green-200 rounded-lg p-3 text-sm;
}

.error-message {
  @apply text-red-600 bg-red-50 border border-red-200 rounded-lg p-3 text-sm;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .container-custom {
    @apply px-4;
  }
  
  .order-form {
    @apply p-6;
  }
}