:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
}

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

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

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;
}

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);
}

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

/* Decorative backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, #64748B 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(100,116,139,0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100,116,139,0.1) 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) 20px
  );
}

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

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(100,116,139,0.2) 0%, transparent 70%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(31,41,55,0.15) 0%, transparent 70%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}

.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(31,41,55,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  filter: drop-shadow(0 0 2rem rgba(100,116,139,0.3));
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

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

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

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1F2937;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

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

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

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

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

/* Star rating */
.stars {
  color: #F59E0B;
  letter-spacing: 0.05em;
}

/* Smooth mobile menu */
#mobile-menu {
  transition: opacity 0.2s ease;
}

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

/* Scroll lock */
body.menu-open {
  overflow: hidden;
}

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

/* Order form highlight */
#order_form {
  scroll-margin-top: 5rem;
}

/* Badge */
.badge-bestseller {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
}

/* Ingredient cards hover */
.ingredient-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Product image glow */
.product-glow {
  filter: drop-shadow(0 8px 24px rgba(100,116,139,0.25));
}

/* Trust badge row */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4B5563;
}