:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
}

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

body {
  font-family: 'Urbanist', system-ui, sans-serif;
}

/* =====================
   Button / CTA 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%;
  display: flex;
}

/* =====================
   Scroll Animations
   ===================== */
html.js-anim html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* =====================
   Utility
   ===================== */
.rotate-180 {
  transform: rotate(180deg);
}

/* =====================
   Decorative Backgrounds
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, #e5e7eb 1px, transparent 1px),
    linear-gradient(to bottom, #e5e7eb 1px, transparent 1px);
  background-size: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.03) 10px,
    rgba(0,0,0,0.03) 11px
  );
}

.decor-mesh {
  background-image:
    linear-gradient(135deg, rgba(17,17,17,0.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(17,17,17,0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(17,17,17,0.04) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(17,17,17,0.04) 25%, transparent 25%);
  background-size: 20px 20px;
}

/* Intensity modifiers */
.decor-subtle   { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold     { opacity: 0.20; }

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  width: 300px;
  height: 300px;
  background: rgba(17,17,17,0.08);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 200px;
  height: 200px;
  background: rgba(64,64,64,0.06);
  bottom: -80px;
  left: -60px;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(225deg, rgba(17,17,17,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(17,17,17,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17,17,17,0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* =====================
   FAQ Accordion
   ===================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 400px;
}

/* =====================
   Testimonial Slider
   ===================== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
}

/* =====================
   Star Rating
   ===================== */
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* =====================
   Order Form
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

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

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

.form-error.visible {
  display: block;
}

/* =====================
   Price display
   ===================== */
.price-old {
  text-decoration: line-through;
  color: #9ca3af;
}

/* =====================
   Badge
   ===================== */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =====================
   Newsletter submit feedback
   ===================== */
.newsletter-success {
  display: none;
  color: #6ee7b7;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}