:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
}

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

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

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

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

/* Decorative Elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(15, 23, 42, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 23, 42, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(15, 23, 42, 0.05) 10px,
    rgba(15, 23, 42, 0.05) 20px
  );
}

.decor-mesh {
  background: radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.1) 0px, transparent 50%),
              radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
              radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, var(--color-accent), transparent);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--color-accent), transparent);
  opacity: 0.1;
  pointer-events: none;
}

.decor-glow-element {
  box-shadow: 0 0 100px rgba(100, 116, 139, 0.3);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%236B7280' fill-opacity='0.05' fill-rule='nonzero'%3e%3ccircle cx='30' cy='30' r='6'/%3e%3ccircle cx='30' cy='30' r='12'/%3e%3ccircle cx='30' cy='30' r='18'/%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; }

/* Order form animations */
.order-form-slide-in {
  animation: slideInFromBottom 0.5s ease-out;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Star rating */
.rating-stars {
  color: #fbbf24;
}

/* Product badge */
.badge-bestseller {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  color: white;
}

.badge-new {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
}

.badge-popular {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  color: white;
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: inherit;
}

.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

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

/* FAQ accordion */
.faq-item[aria-expanded="false"] .faq-answer {
  max-height: 0;
  overflow: hidden;
}

.faq-item[aria-expanded="true"] .faq-answer {
  max-height: 200px;
}

.faq-answer {
  transition: max-height 0.3s ease-out;
}

/* Testimonial styles */
.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-accent);
  position: absolute;
  top: -10px;
  left: -10px;
}

.testimonial-quote {
  position: relative;
  padding-left: 20px;
}