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

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

body {
  font-family: 'Outfit', 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(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(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),
    var(--color-accent) 2px,
    transparent 2px,
    transparent 20px
  );
}

.decor-mesh {
  background: 
    radial-gradient(at 40% 20%, var(--color-accent) 0px, transparent 50%),
    radial-gradient(at 80% 0%, var(--color-secondary) 0px, transparent 50%),
    radial-gradient(at 0% 50%, var(--color-primary) 0px, transparent 50%);
}

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

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-secondary), transparent 70%);
  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, var(--color-accent), transparent);
  border-radius: 0 0 0 100%;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-secondary), transparent);
  border-radius: 0 100% 0 0;
}

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

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

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='10' fill='none' stroke='%23FF8C00' stroke-width='0.5' opacity='0.3'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23FF8C00' stroke-width='0.3' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23FF8C00' stroke-width='0.2' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: no-repeat;
  background-position: center;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

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

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

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

.form-error {
  @apply text-red-600 text-sm mt-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 {
  @apply flex items-center gap-1 text-yellow-400;
}

/* Price display */
.price-display {
  @apply text-3xl font-bold text-gray-900;
}

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

/* Trust badges */
.trust-badge {
  @apply flex items-center gap-2 text-sm text-gray-600;
}

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

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

.faq-question {
  @apply flex items-center justify-between w-full text-left font-semibold text-gray-900;
}

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

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

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

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-accent: #FF6600;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}