:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
  --color-bg-light: #FFFFFF;
  --color-bg-alt: #F8F8F8;
}

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

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================
   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: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

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

/* =====================
   DECORATIVE BACKGROUNDS
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.03) 10px,
    rgba(0,0,0,0.03) 20px
  );
}

.decor-mesh {
  background-image: radial-gradient(at 40% 20%, rgba(26,26,26,0.08) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, rgba(64,64,64,0.06) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, rgba(17,17,17,0.05) 0px, transparent 50%);
}

/* =====================
   ACCENT ELEMENTS
   ===================== */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,26,26,0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(26,26,26,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(26,26,26,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,26,26,0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* =====================
   INTENSITY MODIFIERS
   ===================== */
.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 50%, #f0f0f0 100%);
  position: relative;
  overflow: hidden;
}

/* =====================
   SECTION STYLES
   ===================== */
.section-dark {
  background-color: #1A1A1A;
  color: #ffffff;
}

.section-alt {
  background-color: #F8F8F8;
}

/* =====================
   PRODUCT IMAGE
   ===================== */
.product-image-glow {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.product-image-glow:hover {
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
  transform: translateY(-4px);
}

/* =====================
   STAR RATING
   ===================== */
.stars {
  color: #F59E0B;
  letter-spacing: 2px;
}

/* =====================
   ORDER FORM
   ===================== */
.order-form-wrapper {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  outline: none;
  background: white;
  color: #1a1a1a;
}

.form-input:focus {
  border-color: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

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

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

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

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

/* =====================
   BADGE
   ===================== */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #1A1A1A;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =====================
   BENEFIT CARDS
   ===================== */
.benefit-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.benefit-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background: #1A1A1A;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* =====================
   TESTIMONIAL STYLES (minimal)
   ===================== */
.testimonial-minimal {
  border-left: 4px solid #111111;
  padding-left: 1.5rem;
}

.testimonial-minimal blockquote {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.testimonial-minimal cite {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111111;
  font-style: normal;
}

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

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #111111;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  white-space: normal;
  min-width: unset;
  gap: 1rem;
  font-family: 'Nunito Sans', system-ui, sans-serif;
}

.faq-trigger:hover {
  color: #404040;
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

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

.faq-content-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #9ca3af;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* =====================
   INGREDIENT CARDS
   ===================== */
.ingredient-card {
  text-align: center;
  width: 160px;
}

.ingredient-img-wrap {
  width: 100px;
  height: 100px;
  background: #F8F8F8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

/* =====================
   TRUST BAR
   ===================== */
.trust-bar {
  background: #F8F8F8;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

/* =====================
   GUARANTEE BOX
   ===================== */
.guarantee-box {
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  background: white;
}

/* =====================
   PRICE DISPLAY
   ===================== */
.price-current {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1;
}

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

.price-badge {
  display: inline-flex;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  align-items: center;
}

/* =====================
   SUBMIT BUTTON STATES
   ===================== */
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit .spinner {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text {
  opacity: 0.7;
}

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

/* =====================
   STICKY ORDER BUTTON (mobile)
   ===================== */
.sticky-cta {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 40;
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta.visible {
    display: block;
  }
}

/* =====================
   SCROLL TO TOP
   ===================== */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  width: 2.75rem;
  height: 2.75rem;
  background: #1A1A1A;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  background: #404040;
}

/* =====================
   COOKIE TOGGLE
   ===================== */
#cookie-consent {
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =====================
   FORM SUCCESS / ERROR MESSAGES
   ===================== */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 0.625rem;
}

.form-message.success {
  display: flex;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  display: flex;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* =====================
   RESPONSIVE HELPERS
   ===================== */
@media (max-width: 640px) {
  .price-current {
    font-size: 1.875rem;
  }
}