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

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

body {
  font-family: 'Plus Jakarta 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: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(255, 140, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(255, 140, 0, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 140, 0, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.15), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), transparent 50%);
  pointer-events: none;
}

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

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

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

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

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

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

.rating-star.empty {
  color: #d1d5db;
}

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

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

/* Testimonial quote marks */
.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 140, 0, 0.2);
  font-family: serif;
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

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

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Order form sticky behavior */
.order-form-sticky {
  position: sticky;
  top: 100px;
}

@media (max-width: 768px) {
  .order-form-sticky {
    position: relative;
    top: auto;
  }
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff40;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Success/error states */
.form-success {
  @apply border-green-500 bg-green-50;
}

.form-error {
  @apply border-red-500 bg-red-50;
}

.error-message {
  @apply text-red-600 text-sm mt-1;
}

.success-message {
  @apply text-green-600 text-sm mt-1;
}

/* Badge styles */
.product-badge {
  @apply absolute -top-2 -right-2 bg-accent text-white text-xs font-bold px-2 py-1 rounded-full shadow-lg;
}

/* Price styling */
.price-old {
  @apply line-through text-gray-500;
}

.price-new {
  @apply text-accent font-bold;
}

.price-save {
  @apply bg-red-100 text-red-600 text-sm px-2 py-1 rounded-full font-semibold;
}

/* Guarantee badge */
.guarantee-badge {
  @apply bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-semibold inline-flex items-center gap-1;
}

/* Security indicators */
.security-indicator {
  @apply flex items-center gap-2 text-sm text-gray-600;
}

.security-indicator i {
  @apply text-green-600;
}