:root {
  --color-primary: #2E2440;
  --color-secondary: #453660;
  --color-accent: #A78BFA;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #F3E8FF;
}

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

body {
  font-family: 'Manrope', 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%;
  display: flex;
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

/* =====================
   DECORATIVE ELEMENTS
   ===================== */

/* Pattern Backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(var(--color-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-accent),
    var(--color-accent) 1px,
    transparent 1px,
    transparent 12px
  );
}

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(69, 54, 96, 0.12) 0%, transparent 60%);
}

/* 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(60px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(69, 54, 96, 0.20) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(167, 139, 250, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

/* Glow element */
.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.30) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Concentric rings */
.decor-rings-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.decor-rings-svg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(167, 139, 250, 0.06),
    0 0 0 120px rgba(167, 139, 250, 0.04),
    0 0 0 180px rgba(167, 139, 250, 0.02);
}

/* =====================
   FORM STYLES
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

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

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

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

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

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

/* =====================
   STAR RATINGS
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* =====================
   HERO PRODUCT IMAGE GLOW
   ===================== */
.product-img-glow {
  filter: drop-shadow(0 20px 40px rgba(167, 139, 250, 0.35));
}

/* =====================
   TRUST BADGES
   ===================== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

/* =====================
   INGREDIENT CARDS
   ===================== */
.ingredient-card {
  background: #fff;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.ingredient-card:hover {
  box-shadow: 0 12px 32px rgba(167, 139, 250, 0.20);
  transform: translateY(-4px);
}

/* =====================
   TESTIMONIAL – MINIMAL
   ===================== */
.testimonial-minimal {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
}

/* =====================
   ORDER FORM SECTION
   ===================== */
.order-form-wrap {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
  border: 1px solid rgba(167, 139, 250, 0.20);
}

/* =====================
   SECTION DIVIDERS
   ===================== */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* =====================
   NOTIFICATION TOAST
   ===================== */
#form-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(120%);
  transition: transform 0.35s ease-out;
  pointer-events: none;
}

#form-toast.show {
  transform: translateY(0);
}

#form-toast.success {
  background: #2E2440;
  color: #fff;
}

#form-toast.error {
  background: #ef4444;
  color: #fff;
}

/* =====================
   SCROLL TO TOP
   ===================== */
#scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(46, 36, 64, 0.30);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =====================
   MOBILE MENU TRANSITION
   ===================== */
#mobile-menu {
  transition: max-height 0.3s ease-out;
}

/* =====================
   UTILITY
   ===================== */
.text-balance {
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-bg-alt);
  color: var(--color-secondary);
  border: 1px solid rgba(167, 139, 250, 0.30);
  margin-bottom: 0.75rem;
}