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

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

body { 
  font-family: 'Nunito Sans', 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: translateX(2rem);
  transition: all 0.6s ease-out;
}

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

/* FAQ Accordion */
.faq-item {
  transition: all 0.3s ease;
}

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

.faq-answer.open {
  max-height: 500px;
}

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

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

.form-checkbox {
  @apply w-4 h-4 text-accent bg-white border-gray-300 rounded focus:ring-accent focus:ring-2;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

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

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

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

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

/* Loading animation */
.loading-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); }
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}

#mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

/* Badge styles */
.badge {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-bestseller {
  @apply bg-yellow-100 text-yellow-800;
}

.badge-new {
  @apply bg-green-100 text-green-800;
}

.badge-popular {
  @apply bg-blue-100 text-blue-800;
}

/* Testimonial quote styling */
.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
}

.testimonial-quote {
  position: relative;
  padding-left: 2rem;
}

/* Stats counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}