:root {
  --color-primary: #1C1917;
  --color-secondary: #2C2825;
  --color-accent: #D4B896;
}

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

body { 
  font-family: 'Work 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(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 patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  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,
    currentColor,
    currentColor 1px,
    transparent 1px,
    transparent 10px
  );
}

.decor-mesh {
  background: radial-gradient(ellipse at top, currentColor, transparent),
              radial-gradient(ellipse at bottom, currentColor, transparent);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, var(--color-accent), transparent 50%),
              radial-gradient(circle at 70% 30%, var(--color-primary), transparent 50%);
  filter: blur(60px);
  opacity: 0.1;
  pointer-events: none;
}

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

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

.decor-glow-element::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.15;
  filter: blur(40px);
  pointer-events: none;
  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%3Ccircle cx='30' cy='30' r='20' stroke='%23D4B896' stroke-width='1' opacity='0.1'/%3E%3Ccircle cx='30' cy='30' r='10' stroke='%23D4B896' stroke-width='1' opacity='0.2'/%3E%3C/g%3E%3C/svg%3E");
}

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

/* Form styles */
.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

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

.star {
  color: #fbbf24;
}

/* Product badges */
.product-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  z-index: 10;
}

/* Pulse animation for CTAs */
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 184, 150, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(212, 184, 150, 0); }
}

.pulse-accent {
  animation: pulse-accent 2s infinite;
}

/* Guarantee badge */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Mobile optimization */
@media (max-width: 640px) {
  [data-animate] {
    transform: translateY(20px);
  }
  
  [data-animate].is-visible {
    transform: translateY(0);
  }
}