:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
  --color-bg-light: #FEF2F2;
  --color-bg-alt: #FEE2E2;
}

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

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

/* =====================
   BUTTON BASE 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.7s ease-out, transform 0.7s 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; }

/* =====================
   DECORATIVE ELEMENTS
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(220,38,38,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(220,38,38,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(220,38,38,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(44,24,16,0.06) 0%, transparent 60%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -4rem;
  left: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(220,38,38,0.15) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(44,24,16,0.12) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: linear-gradient(315deg, rgba(220,38,38,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(220,38,38,0.2) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

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

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

/* =====================
   STAR RATING
   ===================== */
.stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
}

/* =====================
   HERO GRADIENT
   ===================== */
.hero-gradient {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 40%, #fff 100%);
}

/* =====================
   CARD STYLES
   ===================== */
.card-soft {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(220,38,38,0.08);
  transition: box-shadow 0.2s ease;
}

.card-soft:hover {
  box-shadow: 0 4px 20px rgba(220,38,38,0.08);
}

/* =====================
   FORM STYLES
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
  font-family: 'Nunito Sans', system-ui, sans-serif;
}

.form-input:focus {
  border-color: #DC2626;
}

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

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

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

/* =====================
   ORDER FORM SECTION
   ===================== */
.order-section {
  background: linear-gradient(135deg, #2C1810 0%, #4A2C20 100%);
}

/* =====================
   PROGRESS BAR
   ===================== */
.progress-bar {
  height: 6px;
  background: #FEE2E2;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #DC2626;
  border-radius: 9999px;
  transition: width 1s ease;
}

/* =====================
   INGREDIENT CARD
   ===================== */
.ingredient-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(220,38,38,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.1);
}

/* =====================
   TESTIMONIAL
   ===================== */
.testimonial-item {
  border-left: 4px solid #DC2626;
  padding-left: 1.5rem;
}

/* =====================
   BADGE
   ===================== */
.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(220,38,38,0.1);
  color: #DC2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================
   SECTION DIVIDER
   ===================== */
.section-divider {
  width: 3rem;
  height: 3px;
  background: #DC2626;
  border-radius: 9999px;
}

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

/* =====================
   PRICE STYLES
   ===================== */
.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: #DC2626;
  line-height: 1;
}

.price-old {
  font-size: 1.125rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-discount {
  background: #DC2626;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

/* =====================
   NEWSLETTER SUBMIT FEEDBACK
   ===================== */
.newsletter-success {
  color: #16a34a;
  font-size: 0.875rem;
  font-weight: 600;
}