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

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: translateX(2rem);
  transition: all 0.6s ease-out;
}

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

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

/* Decorative elements */
.decor-grid-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.decor-grid-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(220, 38, 38, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

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

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

/* Product showcase */
.product-glow {
  filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.2));
}

/* Form styling */
.form-floating {
  position: relative;
}

.form-floating input {
  padding: 1rem 0.75rem 0.5rem 0.75rem;
}

.form-floating label {
  position: absolute;
  top: 1rem;
  left: 0.75rem;
  color: #6b7280;
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 0.875rem;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
  top: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-accent);
}

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

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

/* Progress bar */
.progress-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #ef4444);
  transition: width 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.active {
  max-height: 300px;
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-accent);
  line-height: 1;
}

/* FAQ styles */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #6b7280;
  line-height: 1.6;
}

.faq-answer.active {
  max-height: 200px;
  padding-top: 1rem;
}

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

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success/error states */
.success { color: #10b981; }
.error { color: #ef4444; }

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-center { text-align: center; }
  .mobile-stack > * + * { margin-top: 1rem; }
}