:root {
  --color-primary: #1B4332;
  --color-secondary: #2D6A4F;
  --color-accent: #40C057;
  --color-bg-light: #F0FDF4;
  --color-bg-alt: #DCFCE7;
}

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

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

/* ============================================
   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: 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 ELEMENTS
   ============================================ */

/* Pattern Backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(64,192,87,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(64,192,87,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,192,87,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(64,192,87,0.05) 10px,
    rgba(64,192,87,0.05) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(64,192,87,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(27,67,50,0.1) 0%, transparent 50%);
}

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

/* Gradient Blur Blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(64,192,87,0.15);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(27,67,50,0.1);
  bottom: -80px;
  left: -80px;
}

/* Corner Accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(64,192,87,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(64,192,87,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Glow Element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(64,192,87,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Rings SVG */
.decor-rings-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: 'Work Sans', sans-serif;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #40C057;
  box-shadow: 0 0 0 3px rgba(64,192,87,0.12);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  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;
}

/* ============================================
   ORDER FORM
   ============================================ */
#order_form {
  scroll-margin-top: 5rem;
}

/* ============================================
   STAR RATING
   ============================================ */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

.star-rating .star {
  font-size: 1rem;
}

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

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

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
  transition: all 0.25s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-gradient {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 50%, #bbf7d0 100%);
}

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

.card-hover:hover {
  box-shadow: 0 10px 25px -5px rgba(27,67,50,0.12), 0 4px 6px -2px rgba(27,67,50,0.07);
  transform: translateY(-2px);
}

/* ============================================
   BADGE
   ============================================ */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  color: #40C057;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   PRICING
   ============================================ */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1B4332;
  line-height: 1;
}

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

.price-save {
  font-size: 0.875rem;
  color: #16a34a;
  font-weight: 600;
}

/* ============================================
   NOTIFICATION / ALERT
   ============================================ */
.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 0.5rem;
  padding: 1rem;
  color: #15803d;
  font-size: 0.875rem;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  padding: 1rem;
  color: #dc2626;
  font-size: 0.875rem;
}

/* ============================================
   UTILITY
   ============================================ */
.text-balance {
  text-wrap: balance;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,67,50,0.15), transparent);
  margin: 0 auto;
  max-width: 80%;
}

/* Smooth image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

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