:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
  --color-bg-light: #F8FAFC;
  --color-bg-alt: #F1F5F9;
}

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

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

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

/* =============================
   HEADER SCROLL BEHAVIOR
   ============================= */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

#site-header.scrolled .header-logo-text {
  color: #1F2937;
}

#site-header.scrolled .header-icon {
  color: #64748B;
}

#site-header.scrolled nav a {
  color: #6b7280;
}

#site-header.scrolled nav a:hover {
  color: #1F2937;
  background-color: #f3f4f6;
}

#site-header.scrolled #mobile-menu-btn {
  color: #1F2937;
}

#site-header.scrolled .header-cta {
  background-color: #1F2937;
  color: #ffffff;
}

/* =============================
   SCROLL ANIMATIONS (JS-gated)
   ============================= */
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; }

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

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(100,116,139,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,116,139,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(100,116,139,0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(31,41,55,0.08) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(55,65,81,0.06) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,116,139,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(31,41,55,0.12) 0%, transparent 70%);
  filter: blur(40px);
  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(100,116,139,0.15) 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(100,116,139,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(100,116,139,0.2) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

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

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

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* =============================
   INGREDIENT CARDS
   ============================= */
.ingredient-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

/* =============================
   ORDER FORM
   ============================= */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.875rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #1F2937;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #64748B;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

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

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

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

/* =============================
   TESTIMONIAL CARDS
   ============================= */
.testimonial-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* =============================
   FAQ
   ============================= */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.25rem;
}

.faq-item:last-child {
  border-bottom: none;
}

/* =============================
   BADGE
   ============================= */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

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

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section gradient backgrounds */
.bg-section-light { background-color: var(--color-bg-light); }
.bg-section-alt { background-color: var(--color-bg-alt); }

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

.price-current {
  color: #1F2937;
  font-weight: 700;
}

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

#mobile-menu.menu-open {
  display: block;
}

/* =============================
   HERO GRADIENT
   ============================= */
.hero-gradient {
  background: linear-gradient(135deg, #1F2937 0%, #374151 50%, #4b5563 100%);
}

/* =============================
   SCROLL INDICATOR
   ============================= */
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  animation: bounce-gentle 2s ease-in-out infinite;
}

/* =============================
   PRODUCT IMAGE GLOW
   ============================= */
.product-glow {
  filter: drop-shadow(0 20px 40px rgba(100,116,139,0.30));
}

/* =============================
   PROGRESS BAR (rating)
   ============================= */
.rating-bar {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #64748B, #374151);
  transition: width 0.8s ease;
}