// ============================================================
// FACTORY DATA — Market Fit factories across the network
// ============================================================

// Country grouping for factory subnav and breadcrumbs.
const COUNTRY_LABELS = {
  china:   { label: 'China',   href: '/our-network/china' },
  vietnam: { label: 'Vietnam', href: '/our-network/vietnam' },
};

const FACTORIES = {
  // ───────────────────────────────────────────────
  suzhou: {
    num: '01',
    country: 'china',
    name: 'Market Fit Suzhou',
    legal: 'Market Fit Suzhou Manufactory',
    eye: 'Suzhou, China · Owned',
    role: 'Owned smart-factory',
    tagline: 'Our own smart-factory. Internal production and quality control across the network.',
    summary: "Established in 2024 as the group's first owned production facility. Built around stable bulk delivery, low-MOQ flexibility, and full visibility into quality.",
    paras: [
      'Market Fit Suzhou opened in 2024 as the first wholly-owned production site in the group. After fifty years of orchestrating supply through partner factories, we built our own smart-factory to give clients a baseline of stable bulk production, predictable delivery, and quality we control directly — without losing the breadth of the partner network.',
      "The site complements our existing infrastructure: the sample room and showroom in Hangzhou (with seven-day sample turnaround), the fabric sourcing team and inspection warehouse in Shaoxing, and the Shanghai merchandise office covering ladieswear, kidswear, and menswear across woven and knit.",
      'Suzhou is built for flexibility. Production lines handle stable bulk programmes, and the floor is set up to take low-MOQ orders down to 300 pieces — a service most factories of this scale will not offer.',
    ],
    links: <>Market Fit Suzhou is the engine for <a href="/solutions/production">small-batch production</a> and the testbed for <a href="/solutions/quality">our compliance work</a>. It sits inside <a href="/our-network/china">our China network</a> alongside four partner factories.</>,
    address: 'Suzhou, Jiangsu Province, China',
    distances: ['1.5 hrs to Shanghai Pudong Airport', '30 min to Suzhou North Railway'],
    stats: [
      { label: 'Founded', value: '2024' },
      { label: 'Ownership', value: 'Wholly-owned' },
      { label: 'Min order', value: '300 pcs' },
      { label: 'Sample turnaround', value: '7 days' },
    ],
    capabilities: [
      'Bulk production — woven & knit',
      'Low-MOQ programmes from 300 pcs',
      'Ladieswear, kidswear, menswear',
      'Full fabric chain through Shaoxing',
      'Quick-sample programme through Hangzhou',
    ],
    zones: [
      { title: 'Products, Fabric & Trim Warehouse', img: '/assets/factories/suzhou/p05-1.jpg' },
      { title: 'CAD Making Room',                   img: '/assets/factories/suzhou/p06-1.jpg' },
      { title: 'Cutting Room',                      img: '/assets/factories/suzhou/p07-1.jpg' },
      { title: 'Sewing Room',                       img: '/assets/factories/suzhou/p08-1.jpg' },
      { title: 'Ironing Room',                      img: '/assets/factories/suzhou/p09-1.jpg' },
      { title: 'Finishing Room',                    img: '/assets/factories/suzhou/p10-1.jpg' },
      { title: 'Sample Room',                       img: '/assets/factories/suzhou/p11-1.jpg' },
      { title: 'Showroom',                          img: '/assets/factories/suzhou/p12-1.jpg' },
    ],
    portfolio: [
      '/assets/factories/suzhou/p13-1.jpg', '/assets/factories/suzhou/p13-2.jpg',
      '/assets/factories/suzhou/p13-3.jpg', '/assets/factories/suzhou/p13-4.jpg',
      '/assets/factories/suzhou/p13-5.jpg', '/assets/factories/suzhou/p13-6.jpg',
    ],
    audits: [],
  },

  // ───────────────────────────────────────────────
  mupai: {
    num: '02',
    country: 'china',
    name: 'Suzhou Mupai',
    legal: 'Suzhou Mupai Wangzi Garment Co., Ltd.',
    eye: 'Suzhou, China · Partner since 1997',
    role: 'Outerwear specialist',
    tagline: 'Down, padded, woolen, and tailored coats. The outerwear specialist in the network.',
    summary: 'A fashion-oriented outerwear factory founded in 1997. Twenty-nine years of experience in high-end woven and soft garments — strongest in coats, jackets, and padded outerwear.',
    paras: [
      'Suzhou Mupai is the outerwear manufacturing specialist in our China network, established in 1997 and located sixty kilometres from Shanghai port. Twenty-nine years on, they run 600,000 pieces a year across four production lines and 135 staff. Their specialty is sourcing, development, and manufacture of high-end woven and soft garments for export, with particular depth in outerwear.',
      'Twenty-nine years in garment manufacturing has built a strong base in both woven and knit, but the floor is best known for outerwear: down coats, light down, quilted padding, water- and wind-resistant shells, woolen coats, fur and woolen split-padding coats, and woolen-suede jackets. Their products ship to the USA, France, UK, Canada, Australia, Germany, Russia, Dubai, and twenty other markets.',
      'Mupai partners with us as part of the Market Fit group and operates within our quality, audit, and merchandising framework while running independently as an established business.',
    ],
    links: <>Mupai is the network's outerwear specialist, anchoring <a href="/solutions/production">small-batch production</a> on coats and tailoring. For lighter categories the work routes to <a href="/our-network/china/tongxiang-yinshi">Tongxiang Yinshi</a>. The factory sits inside <a href="/our-network/china">our China network</a>.</>,
    address: 'No. 306 Xianglu Road, Luxiang, Yangchenghu Town, Xiangcheng District, Suzhou, Jiangsu',
    distances: ['2 hrs to Shanghai Pudong Airport', '1 hr to Wuxi Sufang Airport', '30 min to Suzhou North Railway'],
    stats: [
      { label: 'Founded', value: '1997' },
      { label: 'Workers', value: '135' },
      { label: 'Daily capacity', value: '2,000 pcs' },
      { label: 'Annual capacity', value: '600,000 pcs' },
    ],
    workforce: [
      { label: 'Sewing workers', value: '90' },
      { label: 'R&D', value: '10' },
      { label: 'QC system', value: '6' },
      { label: 'Production lines', value: '4' },
    ],
    capabilities: [
      'Down coats — full and light',
      'Quilted padding jackets and coats',
      'Water and wind-resistant shells',
      'Woolen and fur split padding',
      'Woolen and suede jackets',
      'Twill, velvet, sequin tailoring',
    ],
    equipment: [
      { label: 'Brother & Juki sewing machines', value: '300' },
      { label: 'Template sewing machines', value: '10' },
      { label: 'Buttonhole machines', value: '8' },
      { label: 'Bartack machines', value: '8' },
      { label: 'Overlock machines', value: '8' },
      { label: 'Patch sewing machines', value: '2' },
      { label: 'Automatic cutting machines', value: '2' },
      { label: 'Automatic spreading & cutting', value: '2' },
      { label: 'Automatic button machines', value: '4' },
      { label: 'Ultrasonic cut & fusing', value: '8' },
      { label: 'Filled machines', value: '4' },
      { label: 'Laser cut', value: '1' },
      { label: 'CAD marking systems', value: '2' },
      { label: 'Fabric inspection', value: '1' },
      { label: 'Needle detection', value: '1' },
    ],
    audits: [
      { group: 'Human rights', items: ['SMETA', 'Major European retailers'] },
      { group: 'Quality', items: ['GRS'] },
    ],
    zones: [
      { title: 'Cutting Room',                       img: '/assets/photography/cad-digital-cutter.jpg' },
      { title: 'Sewing Room',                        img: '/assets/photography/sewing-room-wide.jpg' },
      { title: 'Filled Room',                        img: '/assets/photography/seamstress-jack-machine.jpg' },
      { title: 'Finishing Room',                     img: '/assets/photography/hand-finishing-green-blouse.jpg' },
      { title: 'Products, Fabric & Trim Warehouse',  img: '/assets/photography/sampling-burgundy.jpg' },
      { title: 'CAD, R&D, Sample Room',              img: '/assets/photography/cad-room-mannequin.jpg' },
      { title: 'Showroom',                           img: '/assets/photography/cad-room-mannequin.jpg' },
    ],
  },

  // ───────────────────────────────────────────────
  tongxiang: {
    num: '03',
    country: 'china',
    name: 'Tongxiang Yinshi',
    legal: 'Tongxiang Yinshi Silk Textiles Co., Ltd.',
    eye: 'Tongxiang, China · Partner since 1997',
    role: 'Silk and light-woven',
    tagline: 'Light-woven and silk specialist. Dresses, blouses, tops, fashion apparel.',
    summary: 'A silk and light-woven house founded in 1997. Two buildings, four floors each, eight thousand square metres of floor space.',
    paras: [
      'Tongxiang Yinshi was founded in 1997 starting from silk fabric and silk production — that heritage still runs through the floor today. The site sits in the Wutong Street Industrial Park in Tongxiang, Jiaxing, Zhejiang, with two buildings of four floors each totalling eight thousand square metres.',
      "More than a hundred workers run dresses, blouses, tops, and fashion apparel for women's wear programmes. The factory is set up for high-value-added orders, small-batch production, and technical prototyping — the combination clients need when they're shipping seasonal silk and light-woven into European retail.",
      "Yinshi is part of the Market Fit group's China network and works under the same quality and audit framework as our other partner factories.",
    ],
    links: <>Tongxiang Yinshi is where <a href="/solutions/sampling">most sample work</a> on light-woven categories happens. The fabric runs through <a href="/solutions/fabric">our owned warehouse in Shaoxing</a>; outerwear pairs with <a href="/our-network/china/suzhou-mupai">Suzhou Mupai</a> when a programme spans both.</>,
    address: 'Wutong Street Industrial Park, Tongxiang, Jiaxing, Zhejiang',
    distances: [],
    stats: [
      { label: 'Founded', value: '1997' },
      { label: 'Floor area', value: '8,000 m²' },
      { label: 'Workers', value: '100+' },
      { label: 'Buildings', value: '2 × 4 floors' },
    ],
    capabilities: [
      "Women's dresses",
      'Blouses and tops',
      'Silk and light-woven specialist',
      'High-value-added orders',
      'Small-batch production',
      'Technical prototyping',
    ],
    audits: [
      { group: 'Certifications', items: ['Held — see facility for current list'] },
    ],
    zones: [
      { title: 'Cutting Room',                      img: '/assets/factories/tongxiang/p02-1.jpg' },
      { title: 'Sewing Room',                       img: '/assets/factories/tongxiang/p03-1.jpg' },
      { title: 'Sample Room',                       img: '/assets/factories/tongxiang/p04-1.jpg' },
      { title: 'Finishing Room',                    img: '/assets/factories/tongxiang/p05-1.jpg' },
      { title: 'Products, Fabric & Trim Warehouse', img: '/assets/factories/tongxiang/p06-1.jpg' },
      { title: 'Showroom',                          img: '/assets/factories/tongxiang/p07-1.jpg' },
    ],
    portfolio: [
      '/assets/factories/tongxiang/p08-1.jpg', '/assets/factories/tongxiang/p08-2.jpg',
      '/assets/factories/tongxiang/p09-1.jpg', '/assets/factories/tongxiang/p09-2.jpg',
      '/assets/factories/tongxiang/p10-1.jpg', '/assets/factories/tongxiang/p10-2.jpg',
    ],
  },

  // ───────────────────────────────────────────────
  sainty: {
    num: '04',
    country: 'china',
    name: 'Jiangsu Sainty Suho',
    legal: 'Jiangsu Sainty Suho Fashion Co., Ltd.',
    eye: 'Nanjing, China · Partner since 1994',
    role: 'Suits, coats, shirts',
    tagline: "Men's and women's suits, coats, shirts, workwear, and casual. Built around tailoring depth.",
    summary: 'A wholly-owned subsidiary of Suho Fashion Co., Ltd., founded in 1994. Forty mu of land — roughly 2.67 hectares — with thirty thousand square metres of floor space.',
    paras: [
      'Sainty Suho sits in the Jianye District of Nanjing on roughly 2.67 hectares — a substantial industrial footprint with thirty thousand square metres of floor space across the site. Founded in 1994 as a wholly-owned subsidiary of Suho Fashion Co., Ltd., the factory has thirty years of continuous operation behind it.',
      "Specialty is structured product: men's and women's suits, coats, shirts, workwear, and casual apparel. More than two hundred workers run programmes that range from high-value-added bulk orders to small-batch production with full technical prototyping support.",
      'Sainty is one of our oldest partner factories and a core capability for any client building a tailored or workwear programme out of China.',
    ],
    links: <>Suho Fashion Nanjing is the home for <a href="/solutions/odm">ODM development</a> on tailoring, and a core <a href="/solutions/production">small-batch production</a> partner. For outerwear pairings, work routes to <a href="/our-network/china/suzhou-mupai">Suzhou Mupai</a>. The factory sits inside <a href="/our-network/china">our China network</a>.</>,
    address: 'No. 8 Taishan Road, Jianye District, Nanjing',
    distances: [],
    stats: [
      { label: 'Founded', value: '1994' },
      { label: 'Floor area', value: '30,000 m²' },
      { label: 'Site area', value: '2.67 ha' },
      { label: 'Workers', value: '200+' },
    ],
    capabilities: [
      "Men's and women's suits",
      'Tailored coats',
      'Shirts',
      'Workwear',
      'Casual apparel',
      'Small-batch and prototyping support',
    ],
    audits: [
      { group: 'Certifications', items: ['Held — see facility for current list'] },
    ],
    zones: [
      { title: 'Production Floor',                  img: '/assets/factories/sainty/p03-1.jpg' },
      { title: 'Cutting Room',                      img: '/assets/factories/sainty/p04-1.jpg' },
      { title: 'Sewing Room',                       img: '/assets/factories/sainty/p05-1.jpg' },
      { title: 'Tailoring & Pressing',              img: '/assets/factories/sainty/p06-1.jpg' },
      { title: 'Finishing & Inspection',            img: '/assets/factories/sainty/p07-1.jpg' },
      { title: 'Products & Sample',                 img: '/assets/factories/sainty/p08-1.jpg' },
    ],
    portfolio: [
      '/assets/factories/sainty/p09-1.jpg', '/assets/factories/sainty/p09-2.jpg',
      '/assets/factories/sainty/p08-2.jpg', '/assets/factories/sainty/p06-2.jpg',
      '/assets/factories/sainty/p05-2.jpg', '/assets/factories/sainty/p04-2.jpg',
    ],
  },

  // ───────────────────────────────────────────────
  hubei: {
    num: '05',
    country: 'china',
    name: 'Hubei Hongxiang',
    legal: 'Hubei Hongxiang Garment Co., Ltd.',
    eye: 'Qichun, Hubei · Partner since 2011',
    role: 'Light-woven volume',
    tagline: 'Light-woven capacity for higher-volume programmes. Dresses, shirts, skirts, casual.',
    summary: 'A wholly-owned light-woven facility founded in 2011 in Qichun County, Huanggang Prefecture. Two buildings, three floors each, three thousand five hundred square metres.',
    paras: [
      "Hubei Hongxiang opened in 2011 as a wholly-owned operation in Qichun County, Huanggang Prefecture, Hubei Province — central China rather than the eastern coastal cluster where most of our China network sits. The geography matters: it gives us light-woven capacity outside the Shanghai-Suzhou corridor for clients who need volume diversification within China.",
      "The site has two buildings of three floors each, totalling three thousand five hundred square metres, with more than two hundred workers. Specialty is men's and women's dresses, shirts, skirts, and casual apparel — the light-woven categories where lead time and unit economics matter most.",
      'The floor is set up for high-value-added bulk, small-batch production, and technical prototyping support — flexibility built in alongside the volume capability.',
    ],
    links: <>The Hubei facility carries higher-volume light-woven capacity for <a href="/solutions/production">small-batch production</a>, with <a href="/solutions/fabric">fabric placed</a> through our network. For tailored programmes the work pairs with <a href="/our-network/china/suho-fashion-nanjing">Suho Fashion Nanjing</a>. Sits inside <a href="/our-network/china">our China network</a>.</>,
    address: '3 Road, Qichun County, Huanggang Prefecture, Hubei',
    distances: [],
    stats: [
      { label: 'Founded', value: '2011' },
      { label: 'Floor area', value: '3,500 m²' },
      { label: 'Workers', value: '200+' },
      { label: 'Buildings', value: '2 × 3 floors' },
    ],
    capabilities: [
      "Men's and women's dresses",
      'Shirts and blouses',
      'Skirts',
      'Casual apparel',
      'Light-woven volume',
      'Small-batch and prototyping',
    ],
    audits: [
      { group: 'Certifications', items: ['Held — see facility for current list'] },
    ],
    zones: [
      { title: 'Production Floor',                  img: '/assets/factories/hubei/p06-1.jpg' },
      { title: 'Cutting Room',                      img: '/assets/factories/hubei/p07-1.jpg' },
      { title: 'Sewing Lines',                      img: '/assets/factories/hubei/p08-1.jpg' },
      { title: 'Finishing',                         img: '/assets/factories/hubei/p09-1.jpg' },
      { title: 'Inspection & Pack',                 img: '/assets/factories/hubei/p10-1.jpg' },
      { title: 'Sample & Warehouse',                img: '/assets/factories/hubei/p11-1.jpg' },
    ],
    portfolio: [
      '/assets/factories/hubei/p11-2.jpg', '/assets/factories/hubei/p11-3.jpg',
      '/assets/factories/hubei/p10-2.jpg', '/assets/factories/hubei/p09-2.jpg',
      '/assets/factories/hubei/p08-2.jpg', '/assets/factories/hubei/p06-2.jpg',
    ],
  },

  // ───────────────────────────────────────────────
  vietnam: {
    num: '01',
    country: 'vietnam',
    name: 'Market Fit Vietnam',
    legal: 'Market Fit Viet Nam Manufacturing Co., Ltd.',
    eye: 'Tien Giang, Vietnam · Owned since 2024',
    role: 'Owned floor · premium handling',
    tagline: 'Owned floor. Owned timing. The floor where the work other factories return still gets made.',
    summary: 'Wholly-owned factory in Tien Giang, fully operational since late 2024. 3,400 sqm under one roof. Trend-led womenswear, knit and woven, every step from fabric in to finished carton.',
    paras: [
      "Market Fit Vietnam opened in late 2024 as the group's second wholly-owned production site after Suzhou. The Tien Giang floor runs at 3,400 sqm with a 600 sqm fabric warehouse on the same plot. Fifteen sewing lines, four hundred and eighty workers. Yearly capacity of four million pieces.",
      "What this floor is built for is the work other factories return. Low-GSM jersey. Fine lace. Hand-cut sequin. Semi-tailored casual with fusing and shoulder pads. Knit and woven mixed in one construction. Strings worked through light fabrics without distortion. Eight high-fashion-specified pattern makers and an in-house sample room keep the read-through accurate before bulk.",
      "Sampling runs 150 collection samples per month with a seven-day turnaround from tech-pack to costed sample. Eight live audit standards across social, environmental, and material traceability: amfori BSCI, Higg FSLM, Higg FEM, ISO 14001, GRS, OEKO-TEX, Textile Genesis, and quarterly self-assessment. Reports on request. Ninety per cent renewable today. Net zero by Q1 2027.",
    ],
    links: <>Sits under <a href="/our-network/vietnam">our Vietnam operation</a>, alongside the Ho Chi Minh City design office. Premium-handling work routes here from the homepage's <a href="/">premium-handling programme</a>. Compliance posture sits with <a href="/sustainability">sustainability</a>.</>,
    address: 'No. 341, Street 30, Quang Tho Hamlet, Tan Thuan Binh Commune, Cho Gao District, Tien Giang Province, Vietnam',
    distances: [],
    stats: [
      { label: 'Founded (group arm)', value: '2010' },
      { label: 'Owned floor since',   value: '2024' },
      { label: 'Workers',              value: '480' },
      { label: 'Annual capacity',      value: '4M pcs' },
    ],
    workforce: [],
    capabilities: [
      'Trend-led knit and woven womenswear',
      'Premium handling, low-GSM jersey, fine lace, hand-cut sequin',
      'Semi-tailored casual with fusing and shoulder pads',
      'Mixed knit and woven construction',
      'Day dresses, tops, jumpsuits, trousers, skirts, shorts',
      'Small kidswear capacity alongside',
      'AQL 2.5 and AQL 1.5',
    ],
    equipment: [
      { label: 'Single-needle sewing machines', value: '210' },
      { label: 'Overlock machines',             value: '140' },
      { label: 'Kansai machines',               value: '60' },
      { label: 'Button-attaching machines',     value: '8' },
      { label: 'Label-pressing machines',       value: '4' },
      { label: 'Fabric-inspection machines',    value: '2' },
    ],
    audits: [
      { group: 'Social',        items: ['amfori BSCI', 'Higg FSLM', 'Quarterly self-assessment'] },
      { group: 'Environmental', items: ['Higg FEM', 'ISO 14001'] },
      { group: 'Material',      items: ['GRS', 'OEKO-TEX', 'Textile Genesis'] },
    ],
    zones: [
      { title: 'Showroom',          img: '/assets/photography/cad-room-mannequin.jpg' },
      { title: 'Sewing Line',       img: '/assets/photography/sewing-room-wide.jpg' },
      { title: 'Factory Floor',     img: '/assets/photography/seamstress-jack-machine.jpg' },
      { title: 'Fabric Warehouse',  img: '/assets/photography/sampling-burgundy.jpg' },
      { title: 'Cutting Area',      img: '/assets/photography/cad-digital-cutter.jpg' },
      { title: 'Water System',      img: '/assets/photography/hand-finishing-green-blouse.jpg' },
    ],
    portfolio: [],
    facts: { mode: 'factory', size: '3,400 sqm', warehouse: '600 sqm', lines: 15, moq: '500–1,000 pcs/style' },
    faqs: [
      {
        q: "What is the production capacity of Market Fit Vietnam?",
        a: "Fifteen sewing lines, four hundred and eighty workers, four million pieces of yearly capacity. The factory floor is 3,400 sqm with a 600 sqm fabric warehouse on the same site."
      },
      {
        q: "What is the MOQ at Market Fit Vietnam?",
        a: "Five hundred to one thousand pieces per style. The floor is built for premium runs without the volume floor most factories demand."
      },
      {
        q: "What audit standards does the Vietnam factory hold?",
        a: "Eight live standards across social, environmental, and material traceability: amfori BSCI, Higg FSLM, Higg FEM, ISO 14001, GRS, OEKO-TEX, Textile Genesis, and quarterly self-assessment. Reports available on request to verified buyers."
      },
      {
        q: "Is the Vietnam factory wholly-owned by Market Fit?",
        a: "Yes. The operating entity is Market Fit Viet Nam Manufacturing Co., Ltd., part of Market Fit Group. The floor opened in late 2024 and is the second wholly-owned production site in the group after Suzhou."
      },
      {
        q: "How fast can Market Fit Vietnam turn a sample?",
        a: "Seven days from tech-pack to costed sample. The in-house sample room runs 150 collection samples per month."
      },
    ],
  },
};

// Index used for the in-page facility switcher and footer cross-links.
// `num` is scoped per country (Vietnam's only factory is 01, not 06).
const FACTORY_INDEX = [
  { slug: 'suzhou',    num: '01', country: 'china',   name: 'Market Fit Suzhou',   role: 'Owned smart-factory',  href: '/our-network/china/market-fit-suzhou' },
  { slug: 'mupai',     num: '02', country: 'china',   name: 'Suzhou Mupai',        role: 'Outerwear',             href: '/our-network/china/suzhou-mupai' },
  { slug: 'tongxiang', num: '03', country: 'china',   name: 'Tongxiang Yinshi',    role: 'Silk & light-woven',    href: '/our-network/china/tongxiang-yinshi' },
  { slug: 'sainty',    num: '04', country: 'china',   name: 'Jiangsu Sainty Suho', role: 'Suits & tailoring',     href: '/our-network/china/suho-fashion-nanjing' },
  { slug: 'hubei',     num: '05', country: 'china',   name: 'Hubei Hongxiang',     role: 'Light-woven volume',    href: '/our-network/china/hubei' },
  { slug: 'vietnam',   num: '01', country: 'vietnam', name: 'Market Fit Vietnam',  role: 'Owned floor · premium handling', href: '/our-network/vietnam/market-fit-vietnam' },
];

Object.assign(window, { FACTORIES, FACTORY_INDEX, COUNTRY_LABELS });
