: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: 'Source Sans 3', 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;
}

/* ===== 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);
}

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

/* ===== ROTATE UTILITY ===== */
.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(to right, var(--color-accent) 1px, transparent 1px),
    linear-gradient(to bottom, 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 0,
    transparent 12px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, var(--color-accent) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, var(--color-secondary) 0%, transparent 60%);
}

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

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

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  opacity: 0.15;
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  opacity: 0.12;
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 0 0 0 9999px;
  opacity: 0.08;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 0 9999px 0 0;
  opacity: 0.08;
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.18;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Rings SVG */
.decor-rings-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
}

/* ===== STAR RATING ===== */
.stars {
  display: inline-flex;
  gap: 1px;
  color: #F59E0B;
}

/* ===== FORM STYLES ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E9D5FF;
  border-radius: 9999px;
  font-size: 0.95rem;
  color: #111827;
  background: #ffffff;
  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;
}

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 0.25rem;
  padding-left: 0.75rem;
  display: none;
}

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

/* ===== HERO GRADIENT ===== */
.hero-gradient {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 50%, #EDE9FE 100%);
}

/* ===== CARD HOVER ===== */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(46, 36, 64, 0.12);
}

/* ===== INGREDIENT CARD ===== */
.ingredient-card {
  background: linear-gradient(145deg, #ffffff, var(--color-bg-light));
}

/* ===== SECTION ACCENTS ===== */
.section-accent-top {
  position: relative;
}

.section-accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 9999px;
}

/* ===== PILL BADGE ===== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== ACCORDION ===== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-content.open {
  max-height: 600px;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-8px);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  background: #F9F5FF;
  border: 1px solid #EDE9FE;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46, 36, 64, 0.10);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 9999px;
}

/* ===== HIGHLIGHT TEXT ===== */
.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 2px;
  z-index: -1;
}

/* ===== PRINT ===== */
@media print {
  header, footer, #cookie-consent { display: none !important; }
  main { padding-top: 0 !important; }
}