/*
 * FRESH — Health & Wellness Ecommerce Theme
 * Vibrant, natural, wholesome — clean green on crisp white.
 * Best for: supplements, organic food, natural beauty, wellness brands.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Brand ─────────────────────────────────────────────── */
  --ec-primary:         #16A34A;
  --ec-primary-dark:    #15803D;
  --ec-primary-light:   rgba(22,163,74,0.10);
  --ec-accent:          #22C55E;
  --ec-accent-dark:     #16A34A;

  /* ── Surface ────────────────────────────────────────────── */
  --ec-bg:              #FFFFFF;
  --ec-surface:         #FFFFFF;
  --ec-surface-2:       #F0FDF4;
  --ec-surface-3:       #DCFCE7;
  --ec-border:          rgba(22,163,74,0.14);
  --ec-border-subtle:   rgba(0,0,0,0.07);

  /* ── Typography ─────────────────────────────────────────── */
  --ec-text-heading:    #052e16;
  --ec-text-body:       #374151;
  --ec-text-muted:      #6B7280;
  --ec-font-heading:    'Inter', system-ui, sans-serif;
  --ec-font-body:       'Inter', system-ui, sans-serif;
  --ec-letter-heading:  -0.02em;

  /* ── Hero ────────────────────────────────────────────────── */
  --ec-hero-bg:         linear-gradient(135deg, #052e16 0%, #166534 50%, #15803D 100%);
  --ec-hero-text:       #FFFFFF;
  --ec-hero-accent:     #22C55E;
  --ec-hero-overlay:    rgba(0,0,0,0.0);

  /* ── Buttons ────────────────────────────────────────────── */
  --ec-btn-bg:          #16A34A;
  --ec-btn-hover:       #15803D;
  --ec-btn-text:        #FFFFFF;
  --ec-btn-radius:      10px;
  --ec-btn-transform:   none;
  --ec-btn-weight:      700;
  --ec-btn-letter:      0;
  --ec-btn-secondary-bg:     transparent;
  --ec-btn-secondary-border: #16A34A;
  --ec-btn-secondary-text:   #16A34A;

  /* ── Cards ──────────────────────────────────────────────── */
  --ec-card-bg:         #FFFFFF;
  --ec-card-border:     rgba(22,163,74,0.10);
  --ec-card-shadow:     0 2px 12px rgba(0,0,0,0.05);
  --ec-card-shadow-hover: 0 8px 28px rgba(22,163,74,0.14);
  --ec-card-radius:     16px;
  --ec-img-radius:      12px;

  /* ── Badges ─────────────────────────────────────────────── */
  --ec-badge-new:       #16A34A;
  --ec-badge-sale:      #DC2626;
  --ec-badge-best:      #D97706;
  --ec-badge-autoship:  #7C3AED;
  --ec-badge-radius:    20px;

  /* ── Inputs ─────────────────────────────────────────────── */
  --ec-input-bg:        #F9FAFB;
  --ec-input-border:    #E5E7EB;
  --ec-input-border-focus: #16A34A;
  --ec-input-text:      #111827;
  --ec-input-radius:    10px;

  /* ── Category pills ─────────────────────────────────────── */
  --ec-pill-bg:         #F0FDF4;
  --ec-pill-bg-active:  #16A34A;
  --ec-pill-text:       #374151;
  --ec-pill-text-active:#FFFFFF;

  /* ── Trust bar ──────────────────────────────────────────── */
  --ec-trust-bg:        #F0FDF4;
  --ec-trust-text:      #374151;
  --ec-trust-icon:      #16A34A;

  /* ── Price ──────────────────────────────────────────────── */
  --ec-price-color:     #16A34A;
  --ec-compare-color:   #9CA3AF;
  --ec-save-color:      #DC2626;

  /* ── Stars ──────────────────────────────────────────────── */
  --ec-star-filled:     #F59E0B;
  --ec-star-empty:      #E5E7EB;

  /* ── Spacing ─────────────────────────────────────────────── */
  --ec-section-py:      5rem;
  --ec-hero-py:         6rem;
}

/* ── Global resets for storefront ─────────────────────────── */
.ec-storefront {
  background: var(--ec-bg);
  color: var(--ec-text-body);
  font-family: var(--ec-font-body);
  min-height: 100vh;
}

.ec-storefront h1,
.ec-storefront h2,
.ec-storefront h3,
.ec-storefront h4 {
  font-family: var(--ec-font-heading);
  letter-spacing: var(--ec-letter-heading);
  color: var(--ec-text-heading);
}

/* ── Fresh-specific: rounded everything ─────────────────────── */
.ec-product-card {
  background: var(--ec-card-bg);
  border: 1px solid var(--ec-card-border);
  border-radius: var(--ec-card-radius);
  box-shadow: var(--ec-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.ec-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-card-shadow-hover) !important;
  border-color: rgba(22,163,74,0.25) !important;
}

/* ── Leaf-green category pills ──────────────────────────────── */
.ec-category-pill {
  background: var(--ec-pill-bg);
  color: var(--ec-pill-text);
  border-radius: 20px;
  border: 1px solid var(--ec-border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ec-category-pill:hover,
.ec-category-pill.active {
  background: var(--ec-pill-bg-active);
  color: var(--ec-pill-text-active);
  border-color: var(--ec-primary);
}

/* ── Natural announcement bar ───────────────────────────────── */
.ec-fresh-announcement {
  background: var(--ec-primary);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0;
  text-align: center;
}

/* ── Organic-feel certification badges ──────────────────────── */
.ec-fresh-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ec-surface-2);
  border: 1px solid var(--ec-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ec-primary-dark);
}

/* ── CTA buttons: rounded, green, friendly ──────────────────── */
.ec-btn-cart {
  background: var(--ec-btn-bg);
  color: var(--ec-btn-text);
  border-radius: var(--ec-btn-radius);
  font-weight: var(--ec-btn-weight);
  transition: background 0.2s, transform 0.15s;
}

.ec-btn-cart:hover {
  background: var(--ec-btn-hover);
  transform: translateY(-1px);
}

/* ── Ingredient / benefit tags on product cards ─────────────── */
.ec-fresh-tag {
  background: var(--ec-surface-2);
  color: var(--ec-primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 2px 10px;
  border: 1px solid var(--ec-border);
}
