:root {
  --color-primary: #2D3A2D;
  --color-secondary: #4A5D4A;
  --color-accent: #9C27B0;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #F3E8FF;
}

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

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

/* ─── Button & CTA base ─── */
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;
}

/* ─── Animations ─── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ─── Header scroll state ─── */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#site-header.scrolled #header-logo-text {
  color: #2D3A2D;
}

#site-header.scrolled .header-nav-link {
  color: #4b5563;
}

#site-header.scrolled .header-nav-link:hover {
  color: #2D3A2D;
}

#site-header.scrolled #mobile-menu-btn {
  color: #2D3A2D;
}

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

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

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

/* ─── Testimonial Slider ─── */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

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

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
  }
}

/* ─── Decorative elements ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(156, 39, 176, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(156, 39, 176, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 39, 176, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(156, 39, 176, 0.04) 10px,
    rgba(156, 39, 176, 0.04) 11px
  );
}

.decor-mesh {
  background-image: radial-gradient(ellipse at 30% 50%, rgba(156, 39, 176, 0.12) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 50%, rgba(45, 58, 45, 0.1) 0%, transparent 60%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 58, 45, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(156, 39, 176, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(45, 58, 45, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold { opacity: 1.5; }

/* ─── Star rating ─── */
.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* ─── Form styles ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.12);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

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

/* ─── Order form loading state ─── */
.btn-loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

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

.price-new {
  color: #9C27B0;
  font-weight: 700;
}

/* ─── Badge ─── */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Utility ─── */
.section-bg-light { background-color: var(--color-bg-light); }
.section-bg-alt { background-color: var(--color-bg-alt); }
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }

/* ─── Mobile menu transition ─── */
#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ─── Smooth image loading ─── */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ─── Ingredient card hover ─── */
.ingredient-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(156, 39, 176, 0.15);
}

/* ─── Benefit card hover ─── */
.benefit-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ─── Focus visible ─── */
:focus-visible {
  outline: 2px solid #9C27B0;
  outline-offset: 2px;
}

/* ─── Selection color ─── */
::selection {
  background-color: rgba(156, 39, 176, 0.2);
  color: #2D3A2D;
}