:root {
  --color-primary: #3D2C2C;
  --color-secondary: #5A4040;
  --color-accent: #FFAB91;
  --color-bg-light: #FFF5F2;
  --color-bg-alt: #FFE8E0;
}

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

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

/* ========== HEADER SCROLL BEHAVIOUR ========== */
#site-header.scrolled {
  background-color: #3D2C2C !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

#site-header.scrolled .header-nav-link {
  color: rgba(255,255,255,0.8);
}

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

/* Mobile menu open: force solid background */
#site-header.menu-open {
  background-color: #3D2C2C;
}

/* ========== BUTTON 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.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; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

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

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

/* Grid dots pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(61,44,44,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Grid lines pattern */
.decor-grid-lines {
  background-image:
    linear-gradient(rgba(61,44,44,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,44,44,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,171,145,0.08) 10px,
    rgba(255,171,145,0.08) 20px
  );
}

/* Mesh gradient */
.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,171,145,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(61,44,44,0.08) 0%, transparent 60%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255,171,145,0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(61,44,44,0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(255,171,145,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(255,171,145,0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255,171,145,0.3) 0%, transparent 70%);
  filter: blur(30px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

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

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

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

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

.form-input:focus {
  outline: none;
  border-color: #FFAB91;
  box-shadow: 0 0 0 3px rgba(255,171,145,0.2);
}

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

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

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

/* ========== PRODUCT BADGE ========== */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background-color: #FFAB91;
  color: #3D2C2C;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

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

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

/* ========== SECTION DIVIDER ========== */
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #FFAB91, #3D2C2C);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

/* ========== HERO GRADIENT ========== */
.hero-gradient {
  background: linear-gradient(135deg, #3D2C2C 0%, #5A4040 60%, #7a5555 100%);
}

/* ========== HIGHLIGHT TEXT ========== */
.text-accent-highlight {
  color: #FFAB91;
}

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

.card-hover:hover {
  box-shadow: 0 12px 32px rgba(61,44,44,0.12);
  transform: translateY(-3px);
}

/* ========== INGREDIENT ITEM ========== */
.ingredient-item img {
  transition: transform 0.3s ease;
}

.ingredient-item:hover img {
  transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
  background: #FFF5F2;
}

::-webkit-scrollbar-thumb {
  background: #FFAB91;
  border-radius: 3px;
}

/* ========== SELECTION ========== */
::selection {
  background-color: #FFAB91;
  color: #3D2C2C;
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 640px) {
  .hero-gradient {
    background: linear-gradient(160deg, #3D2C2C 0%, #5A4040 100%);
  }
}