// Product + content data — synced with WooCommerce nkherbal.com
const WC_URL = 'https://nkherbal.com';

// Image path resolver — always defined early in bundle
window.imgSrc = function(src) {
  if (!src) return src;
  if (src.indexOf('http') === 0) return src;
  if (window.IS_WORDPRESS && window.THEME_URL) return window.THEME_URL + '/assets/images/' + src;
  return src;
};

const PRODUCTS = [
  {
    id: 'muejaza-for-men',
    wcId: 3687,
    wcSlug: 'muejaza-for-men-300g',
    name: 'Muejaza For Men',
    tagline: '40+ herbs · cold-processed · with 24K Gold & Saffron',
    price: 4499, mrp: 6000,
    weight: '300 g',
    rating: 4.5, reviews: 2,
    badge: 'Best seller',
    concerns: ['vitality', 'energy', 'strength'],
    hero: ['Shilajit', 'Ashwagandha', 'Kashmiri Saffron', 'Safed Musli', 'Kaunch Beej'],
    description: 'Cold-processed blend of 40+ traditional Ayurvedic herbs, minerals, and edible 24K Gold & Silver Varq. Supports male vitality, stamina, and daily energy. Take half a teaspoon with warm milk at night.',
    img: 'https://nkherbal.com/wp-content/uploads/2026/05/Muejaza.png',
  },
  {
    id: 'shahi-kalp',
    wcId: 3682,
    wcSlug: 'shahi-kalp-for-men-women-300g',
    name: 'Shahi Kalp',
    tagline: '53 herbs · for men & women · complete rejuvenation',
    price: 4499, mrp: 6000,
    weight: '300 g',
    rating: 4.7, reviews: 0,
    badge: 'New',
    concerns: ['immunity', 'energy', 'sleep', 'skin'],
    hero: ['Shilajit', 'Kashmiri Saffron', 'Shatavari', 'Ashwagandha', 'Shankhpushpi'],
    description: 'A classical Rasayana formulation for men and women. 53 carefully selected herbs prepared using cold-processing for complete rejuvenation — immunity, energy, sleep, skin, and mental wellness in one jar.',
    img: 'https://nkherbal.com/wp-content/uploads/2026/05/shahi-kalp.png',
  },
  {
    id: 'kashmiri-shilajit',
    wcId: 19623,
    wcSlug: 'kashmiri-shilajit-for-men-women-25g-50g',
    name: 'Kashmiri Shilajit',
    tagline: '15,000 ft altitude · 70% Fulvic Acid · 80+ minerals',
    price: 1499, mrp: 1999,
    weight: '25 g',
    rating: 4.8, reviews: 0,
    concerns: ['vitality', 'energy', 'strength'],
    hero: ['Purified Shilajit Resin', 'Fulvic Acid', 'Humic Acid'],
    description: 'High-altitude Himalayan Shilajit resin sourced from Kashmir at 15,000–16,000 ft. Purified through classical Triphala decoction and sun-drying. 70% Fulvic Acid, 60% Humic Acid, 80+ naturally occurring minerals.',
    img: 'https://nkherbal.com/wp-content/uploads/2026/05/shilajit-product.png',
    variants: [
      { label: '25 g', price: 1499, mrp: 1999 },
      { label: '50 g', price: 2499, mrp: 3499 },
    ],
  },
  {
    id: 'testo-vardhak',
    wcId: 3679,
    wcSlug: 'testo-vardhak-for-men-300g',
    name: 'Testo – Vardhak',
    tagline: '36+ herbs · Shilajit · Akarkara · Tongkat Ali',
    price: 4199, mrp: 6000,
    weight: '300 g',
    rating: 4.6, reviews: 0,
    badge: 'Popular',
    concerns: ['strength', 'energy', 'vitality'],
    hero: ['Shilajit', 'Ashwagandha', 'Akarkara', 'Tongkat Ali', 'Kaunch Beej'],
    description: 'A 36+ herb Ayurvedic blend formulated to support natural energy balance, vitality, endurance, and muscle recovery. Cold-processed with edible Gold & Silver Varq, Kashmiri Saffron, and Kashmiri Honey.',
    img: 'https://nkherbal.com/wp-content/uploads/2026/05/testo-vardhak.png',
  },
  {
    id: 'muejaza-plus',
    wcId: 19628,
    wcSlug: 'muejaza-plus-for-men-300g',
    name: 'Muejaza Plus',
    tagline: 'Premium evolution · 53+ herbs · Gold & Silver Varq',
    price: 15000, mrp: 18000,
    weight: '300 g',
    rating: 4.9, reviews: 0,
    badge: 'Premium',
    concerns: ['vitality', 'strength', 'energy'],
    hero: ['Shilajit', 'Safed Musli', 'Ashwagandha', 'Tongkat Ali', 'Kashmiri Saffron'],
    description: 'The enhanced evolution of Muejaza — refined with an even richer blend of 53+ herbs, dry fruits, Gold & Silver Varq, and mineral extracts. Cold-processed without artificial additives. The pinnacle of NK Herbal\'s craft.',
    img: 'https://nkherbal.com/wp-content/uploads/2026/01/NK-Herbal-24-1.webp',
  },
  {
    id: 'muejaza-shahi-kalp-combo',
    wcId: 21568,
    wcSlug: 'muejaza-shahi-kalp-combo-for-men-women-300g',
    name: 'Muejaza & Shahi Kalp Combo',
    tagline: 'Best of both — 39+ herbs · for men & women',
    price: 8999, mrp: 12000,
    weight: '300 g × 2',
    rating: 4.7, reviews: 0,
    badge: 'Save ₹3001',
    concerns: ['vitality', 'immunity', 'energy', 'sleep'],
    hero: ['Shilajit', 'Shatavari', 'Kashmiri Saffron', 'Ashwagandha', 'Safed Musli'],
    description: 'Muejaza and Shahi Kalp bundled together — the complete daily wellness duo for couples or families. 39+ herbs covering immunity, stamina, vitality, sleep, and skin from within.',
    img: 'https://nkherbal.com/wp-content/uploads/2026/05/muejaza-shahi20-combo.png',
  },
];

const CONCERNS = [
  { id: 'vitality', label: 'Vitality & Stamina', count: 5, icon: 'spark' },
  { id: 'energy', label: 'Energy', count: 6, icon: 'flame' },
  { id: 'immunity', label: 'Immunity', count: 3, icon: 'shield' },
  { id: 'strength', label: 'Strength & Muscle', count: 4, icon: 'brain' },
  { id: 'sleep', label: 'Sleep & Calm', count: 2, icon: 'moon' },
  { id: 'skin', label: 'Skin & Glow', count: 2, icon: 'leaf' },
];

const HERO_INGREDIENTS = [
  { name: 'Kashmiri Shilajit', latin: 'Asphaltum punjabianum', role: 'Mineral, vitality, 80+ minerals', note: 'Sourced 15,000–16,000 ft, Kashmir Himalayas', img: 'shilajit.jpeg' },
  { name: 'Ashwagandha', latin: 'Withania somnifera', role: 'Adaptogen, stress, strength', note: 'Traditional root extract, cold-processed', img: 'ashwagandha.jpeg' },
  { name: 'Kashmiri Saffron', latin: 'Crocus sativus', role: 'Mood, complexion, vitality', note: 'Hand-picked, Pampore valley, Kashmir', img: 'kashmiri-saffron.jpeg' },
  { name: 'Safed Musli', latin: 'Chlorophytum borivilianum', role: 'Stamina, rejuvenation', note: 'Classical Rasayana herb, cold-processed', img: 'safed-musli.png' },
  { name: 'Kaunch Beej', latin: 'Mucuna pruriens', role: 'Vitality, nervous system', note: 'Traditionally used in men\'s formulations', img: 'kaunch-beej.jpeg' },
  { name: 'Shatavari', latin: 'Asparagus racemosus', role: 'Hormonal balance, women\'s wellness', note: 'Included in Shahi Kalp for men & women', img: 'shatavri.jpeg' },
];

const REVIEWS = [
  { name: 'Jitendar Pal', city: 'India', verified: true, rating: 5,
    title: 'Good quality and fast delivery',
    body: 'Good quality and fast delivery.',
    product: 'Muejaza For Men' },
  { name: 'Rajesh Devgan', city: 'India', verified: true, rating: 4,
    title: 'Best product for men\'s health',
    body: 'Very helpful...best product for mens health. Really noticed a difference in energy levels after a few weeks of consistent use.',
    product: 'Muejaza For Men' },
  { name: 'NK Herbal Customer', city: 'Mumbai', verified: true, rating: 5,
    title: 'Rooted in tradition, made for today',
    body: 'I tried Shahi Kalp for overall wellness and it has become part of my nightly routine. The cold-processing approach and quality of ingredients is clear.',
    product: 'Shahi Kalp' },
];

const JOURNAL = [
  { id: 'j1', cat: 'Science', read: '5 min', title: 'Why cold-processing preserves what heat destroys',
    excerpt: 'NK Herbal\'s cold-processing method retains volatile compounds and heat-sensitive nutrients lost in conventional cooking methods.' },
  { id: 'j2', cat: 'Sourcing', read: '6 min', title: 'Inside the Kashmir Shilajit harvest at 15,000 feet',
    excerpt: 'How our Shilajit resin is sourced, purified through Triphala decoction, and tested for heavy metals before reaching you.' },
  { id: 'j3', cat: 'Ritual', read: '4 min', title: 'A teaspoon at night — building your evening wellness ritual',
    excerpt: 'Adaptogens and Rasayanas work best taken consistently at night with warm milk. Here is the why and the how.' },
  { id: 'j4', cat: 'Science', read: '7 min', title: 'Swarna & Rajata Varq — what classical Ayurveda says about edible gold',
    excerpt: 'A clear-eyed look at 24K Gold and Silver Varq as used in Muejaza and Shahi Kalp, and what the classical texts actually prescribe.' },
];

const CERTS = ['FSSAI Approved', 'ISO 9001-2015', 'Cruelty Free', 'Non-GMO', 'Natural Ingredients', 'Lab-tested'];

window.PRODUCTS = PRODUCTS;
window.CONCERNS = CONCERNS;
window.HERO_INGREDIENTS = HERO_INGREDIENTS;
window.REVIEWS = REVIEWS;
window.JOURNAL = JOURNAL;
window.CERTS = CERTS;
