: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: 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);
}

.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: radial-gradient(circle at 20% 20%, currentColor 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, currentColor 0%, transparent 50%);
}

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

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.08;
  z-index: -1;
}

.decor-corner-tr {
  position: relative;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.1;
}

.decor-corner-bl {
  position: relative;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  opacity: 0.1;
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.15;
  filter: blur(20px);
  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='%23FF8C00' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Ccircle cx='30' cy='30' r='4'/%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; }

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

.form-select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent focus:border-transparent transition-colors appearance-none bg-white;
}

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

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

.rating-star {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

.rating-star.half {
  background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Toast notifications */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease-out;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* Product badge */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 bg-accent text-white text-sm font-medium rounded-full;
}

/* Testimonial cards */
.testimonial-card {
  @apply bg-gray-50 p-6 rounded-xl;
}

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

/* FAQ accordion */
.faq-item {
  @apply py-4 border-b border-gray-200 last:border-b-0;
}

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

.faq-answer {
  @apply mt-3 text-gray-600 overflow-hidden transition-all duration-300;
}

.faq-answer.collapsed {
  max-height: 0;
  margin-top: 0;
}

.faq-answer.expanded {
  max-height: 200px;
}

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

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

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

.original-price {
  @apply text-lg text-gray-400 line-through;
}

.discount-badge {
  @apply inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-sm font-medium rounded-full;
}

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

.guarantee-badge {
  @apply inline-flex items-center gap-2 px-3 py-2 bg-green-50 text-green-700 rounded-lg text-sm;
}

.security-badge {
  @apply inline-flex items-center gap-2 px-3 py-2 bg-blue-50 text-blue-700 rounded-lg text-sm;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .order-form {
    @apply p-6;
  }
  
  .hero-title {
    @apply text-2xl;
  }
  
  .section-title {
    @apply text-xl;
  }
}