/* Timeless Totes — data layer */

/* Image URLs — window.__resources is populated by the standalone bundler;
   fallback to live CDN URLs so the prototype works in both contexts. */
const KK_IMG_13x13 = (window.__resources && window.__resources.kkImg13x13) || 'https://media.rainpos.com/2265/674x674_kk_13x13jpg.jpg';
const KK_IMG_13x10 = (window.__resources && window.__resources.kkImg13x10) || 'https://media.rainpos.com/2265/674x674_kk_13x_10jpg.jpg';
const KK_IMG_20x18 = (window.__resources && window.__resources.kkImg20x18) || 'https://media.rainpos.com/2265/674x674_kk_20x18jpg.jpg';

const PRODUCTS = [
  {
    slug: 'kit-keepers',
    name: 'Kit Keepers',
    tag: 'Best Seller',
    accent: 'pink',
    material: '20-gauge clear vinyl · 2" gusset',
    category: 'Project bags',
    useTags: ['Needlepoint', 'Quilting', 'Retail & samples'],
    sizeTags: ['Small', 'Medium', 'Large'],
    cardImg: KK_IMG_13x13,
    blurb: 'The original Timeless Totes design. Eight sizes, trusted by needlepoint shops nationwide.',
    desc: 'The Kit Keeper is the bag that built our name. Heavy 20-gauge clear vinyl with a 2-inch gusset and reinforced binding keeps canvas, threads, and tools in one place while staying fully visible. Available in eight sizes — from the compact KK 4x5 to the generous 20x20.',
    variants: [
      { code: 'KK 4x5',          panel: '6-3/4" x 17" panel' },
      { code: 'Kit keeper 6x8',   panel: '6-3/4" x 17" panel' },
      { code: 'Kit keeper 8x10',  panel: '9" x 21" panel' },
      { code: 'Kit keeper 8x14',  panel: '12" x 28" panel' },
      { code: 'Kit keeper 10x13', panel: '14" x 30" panel' },
      { code: 'Kit keeper 13x13', panel: '14" x 30" panel', img: KK_IMG_13x13 },
      { code: 'Kit keeper 17x17', panel: '18" x 35" panel' },
      { code: 'Kit keeper 20x20', panel: '21" x 42" panel', img: KK_IMG_20x18 },
    ],
    customization: ['1–4 color silkscreen logo', 'Zipper color choice', 'Custom trim / binding', 'Snap or zipper close'],
    moq: '50 units',
    lead: '6–8 weeks',
  },
  {
    slug: 'daisy-bags',
    name: 'Daisy Bag',
    tag: '',
    accent: 'pink',
    material: '20-gauge clear vinyl · 1" webbing',
    category: 'Project bags',
    useTags: ['Needlepoint', 'Quilting', 'Retail & samples'],
    sizeTags: ['Small', 'Medium', 'Large'],
    cardImg: KK_IMG_13x13,
    blurb: 'Clear-vinyl project bags in ten sizes — compact to extra-large. Every size silkscreened with your logo.',
    desc: 'The Daisy Bag covers the full range of project bag sizes, from the compact 7x7 to the 30-inch rectangular. Heavy clear vinyl with webbing handles and zipper close. Choose the size that fits your kit, retail display, or event need.',
    variants: [
      { code: 'Small Daisy Bag: 11" x 26"' },
      { code: 'Medium Daisy Bag: 16" x 31"' },
      { code: 'Dsy 7x7' },
      { code: 'Large Daisy Bag: 20" x 36"' },
      { code: 'Custom Daisy 14x14' },
      { code: 'X-Large Daisy Bag: 23" x 41"' },
      { code: 'XX-Large Daisy Bag: 27" x 50"' },
      { code: 'Daisy 23" Rectangular: 19"x47"' },
      { code: 'Daisy 27" Rectangular: 23" x 57"' },
      { code: 'Daisy 30" Rect. (xmas): 24"x62"' },
    ],
    customization: ['1–4 color silkscreen logo', 'Zipper color choice', 'Custom trim / binding'],
    moq: '50 units',
    lead: '6–8 weeks',
  },
  {
    slug: 'craft-case',
    name: 'Craft Case',
    tag: '',
    accent: 'navy',
    material: 'Clear vinyl · boxed corners',
    category: 'Cases',
    useTags: ['Retail & samples', 'Needlepoint'],
    sizeTags: ['Small', 'Medium', 'Large'],
    cardImg: null,
    blurb: 'Structured clear cases in eighteen sizes — standard and with front pocket. Pocket and no-pocket versions differ in price.',
    desc: 'Built with a firmer gauge vinyl and boxed corners, the Craft Case holds its shape on a shelf or workstation. Available in a wide range of sizes, with and without a front pocket. Pocket variants are priced separately — select your exact variant when requesting a quote.',
    variants: [
      { code: 'Small Craft Case', pocket: false },
      { code: 'Especial 34" x 20" x 6"', pocket: false },
      { code: 'Medium Craft Case', pocket: false },
      { code: 'custom CC 30x12', pocket: false },
      { code: 'Large Craft Case', pocket: false },
      { code: 'Craft Case 16x16', pocket: false },
      { code: 'X-Large Craft Case (18"x18")', pocket: false },
      { code: 'Craft Case 24x24', pocket: false },
      { code: 'XX-Large Craft Case (26"x15")', pocket: false },
      { code: 'Craft Case 30x18  no pocket', pocket: false },
      { code: 'Craft Case 30" x 15"', pocket: false },
      { code: 'Craft Case 16" x 16" Pocket', pocket: true },
      { code: 'Med Craft Case -Pocket', pocket: true },
      { code: 'Craft Case 30x18 with pocket ( new size)', pocket: true },
      { code: 'Large Craft Case -Pocket', pocket: true },
      { code: 'Craft Case 24" x 24" Pocket', pocket: true },
      { code: 'X-LRG Craft Case -Pocket 18x18', pocket: true },
      { code: 'Craft Case XXL.... 26x15 with pocket', pocket: true },
    ],
    customization: ['1–4 color silkscreen logo', 'Zipper color choice', 'Custom trim / binding'],
    moq: '50 units',
    lead: '6–8 weeks',
  },
  {
    slug: 'cross-body',
    name: 'Cross Body Bag',
    tag: '',
    accent: 'teal',
    material: 'Clear vinyl · adjustable strap',
    category: 'Bags',
    useTags: ['Knitting & yarn', 'Events', 'Retail & samples'],
    sizeTags: ['Small', 'Medium'],
    cardImg: null,
    blurb: 'Clear vinyl cross body bag and caddy styles — hands-free carry with silkscreened logo.',
    desc: 'The Cross Body Bag and its caddy siblings give crafters a hands-free, fully visible way to carry their project. Made from the same heavy-gauge clear vinyl as the rest of the Timeless Totes line. Available in single, double, and triple-skein caddy styles plus the cross body.',
    variants: [
      { code: 'Single YARN Caddy-1:  6" x 17"' },
      { code: 'Double YARN Caddy-2:  6" x 19"' },
      { code: 'Cross body bag' },
      { code: 'Triple Yarn Caddy 5.5x 11" NO Holes' },
    ],
    customization: ['1–4 color silkscreen logo', 'Zipper color choice', 'Custom trim'],
    moq: '50 units',
    lead: '6–8 weeks',
  },
  {
    slug: 'tubular',
    name: 'Tubular Bag',
    tag: '',
    accent: 'pink',
    material: 'Clear vinyl · tubular construction',
    category: 'Project bags',
    useTags: ['Quilting', 'Retail & samples', 'Events'],
    sizeTags: ['Small', 'Medium', 'Large'],
    cardImg: null,
    blurb: 'Cylindrical clear-vinyl bags for fabric rolls, yarn skeins, and long-format projects.',
    desc: 'The Tubular Bag is purpose-built for rolled fabrics, long yarn skeins, and any project that needs a cylindrical carry. Clear vinyl construction keeps contents visible. Available in four lengths plus a deep-gusset option.',
    variants: [
      { code: 'Tubular Bag 15.5" long' },
      { code: 'Tubular bag 20" long' },
      { code: 'Tubular Bag 28" long' },
      { code: 'Tubular Bag 12" long x 4" D' },
    ],
    customization: ['1–4 color silkscreen logo', 'Zipper color choice', 'Custom trim'],
    moq: '50 units',
    lead: '6–8 weeks',
  },
  {
    slug: 'flat-vinyl-bag',
    name: 'Flat Vinyl Bag',
    tag: 'New',
    accent: 'navy',
    material: 'Clear vinyl · flat construction',
    category: 'Project bags',
    useTags: ['Quilting', 'Retail & samples'],
    sizeTags: ['Medium'],
    cardImg: null,
    blurb: 'A flat-vinyl bag style — currently in development. Contact us for details and to reserve your spot.',
    desc: 'This new style is currently being developed. Details, sizing, and pricing are being finalized. Reach out directly to learn more or get on the list for first availability.',
    sizes: ['Details coming soon'],
    customization: ['1–4 color silkscreen logo', 'Zipper color choice', 'Custom trim'],
    moq: '50 units',
    lead: '6–8 weeks',
  },
];


/* ── Estimated unit prices from Custom Printed Order Form (effective 1-1-2026) ─ */
/* Source of truth: typed pricing data in project docs. Update here to change     */
/* all estimate displays throughout the site.                                     */
const VARIANT_PRICES = {
  // Kit Keepers
  'KK 4x5':             5.25,
  'Kit keeper 6x8':     null,
  'Kit keeper 8x10':    8.20,
  'Kit keeper 8x14':    8.90,
  'Kit keeper 10x13':   9.90,
  'Kit keeper 13x13':   10.30,
  'Kit keeper 17x17':   10.75,
  'Kit keeper 20x20':   null,
  // Daisy Bags
  'Small Daisy Bag: 11" x 26"':       11.35,
  'Medium Daisy Bag: 16" x 31"':      13.00,
  'Dsy 7x7':                           null,
  'Large Daisy Bag: 20" x 36"':       14.00,
  'Custom Daisy 14x14':                null,
  'X-Large Daisy Bag: 23" x 41"':     15.00,
  'XX-Large Daisy Bag: 27" x 50"':    17.00,
  'Daisy 23" Rectangular: 19"x47"':   16.00,
  'Daisy 27" Rectangular: 23" x 57"': 19.00,
  'Daisy 30" Rect. (xmas): 24"x62"':  24.00,
  // Craft Cases — no pocket
  'Small Craft Case':                  12.20,
  'Especial 34" x 20" x 6"':          null,
  'Medium Craft Case':                 16.50,
  'custom CC 30x12':                   null,
  'Large Craft Case':                  18.50,
  'Craft Case 16x16':                  22.00,
  'X-Large Craft Case (18"x18")':      24.85,
  'Craft Case 24x24':                  29.50,
  'XX-Large Craft Case (26"x15")':     28.00,
  'Craft Case 30x18  no pocket':       null,
  'Craft Case 30" x 15"':             31.00,
  // Craft Cases — with pocket
  'Craft Case 16" x 16" Pocket':       32.00,
  'Med Craft Case -Pocket':            25.30,
  'Craft Case 30x18 with pocket ( new size)': 44.00,
  'Large Craft Case -Pocket':          29.50,
  'Craft Case 24" x 24" Pocket':       40.50,
  'X-LRG Craft Case -Pocket 18x18':   35.00,
  'Craft Case XXL.... 26x15 with pocket': 42.50,
  // Tubular Bags
  'Tubular Bag 15.5" long':            null,
  'Tubular bag 20" long':              18.00,
  'Tubular Bag 28" long':              20.00,
  'Tubular Bag 12" long x 4" D':       13.00,
  // Cross Body / Yarn Caddies
  'Single YARN Caddy-1:  6" x 17"':   null,
  'Double YARN Caddy-2:  6" x 19"':   null,
  'Cross body bag':                    21.00,
  'Triple Yarn Caddy 5.5x 11" NO Holes': null,
};

const TESTIMONIALS = [
  { quote: 'The clarity and stitching quality are a step above anything we found overseas. Our customers notice — and they reorder.', name: 'Placeholder Name', role: 'Owner, Needlepoint Retailer', accent: 'teal' },
  { quote: 'Timeless Totes handled our logo silkscreen perfectly and the proof process gave us total confidence before production.', name: 'Placeholder Name', role: 'Brand Buyer, Craft Co.', accent: 'navy' },
  { quote: 'We needed 500 branded bags for a festival on a tight timeline. They walked us through every step and delivered early.', name: 'Placeholder Name', role: 'Events Coordinator', accent: 'forest' },
];

const CLIENT_LOGOS = ['Needlepoint Co.', 'Stitch Studio', 'Fiber Fest', 'Quilt Lane', 'Craft House', 'The Yarn Shop'];

const FAQS = [
  { q: 'Is there a minimum order quantity?', a: 'The minimum total order is 50 pieces across your entire quote. Custom sizes or special SKUs typically require a 100-piece minimum. Custom ink or trim colors may require a larger order — confirm with us before finalizing specs.' },
  { q: 'What artwork files do you accept?', a: 'Vector files (.ai, .eps, .pdf, .svg) are strongly preferred for crisp silkscreen results. PNG and JPG are accepted for review, but raster files may require cleanup or conversion — typically $25–$50 depending on complexity. Our team will advise before quoting.' },
  { q: 'How do setup and screen fees work?', a: 'Silkscreen requires a screen per ink color, per print size. A common structure is $100 (1 color), $150 (2 color), $200 (3 color) for a single print size — additional print sizes may add screens. These are placeholder figures confirmed on your quote.' },
  { q: 'How many ink colors can I print?', a: 'Standard silkscreen supports 1–4 ink colors. 1 color is included in the base setup fee; each additional color adds to the screen fee and a small per-unit upcharge. For complex or photographic artwork, our team will advise during the proof process.' },
  { q: 'What is the typical turnaround?', a: 'Standard production is 6–8 weeks after artwork approval. If your deadline falls outside our standard 6–8 week lead time, include your needed-by date and we\'ll let you know what\'s possible. Rush options may be available for an additional fee.' },
  { q: 'Do you offer samples?', a: 'Yes. You can request a product sample or material swatch before committing to a full custom run. Use the Request a Sample option in the quote flow.' },
  { q: 'How is payment handled?', a: 'We never collect payment on the website. Once you approve your proof and final quote, Timeless Totes will send an invoice through QuickBooks. Payment is due after approval — never before.' },
  { q: 'Can I choose a custom trim or zipper color?', a: 'Yes. Zipper and trim colors are selected during the quote process. Trim matches the webbing and tape. Custom ink or trim colors may require a larger minimum order — contact us to confirm before finalizing your specs.' },
  { q: 'Are products made entirely in the USA?', a: 'Yes — our totes are manufactured entirely in the USA with quality vinyl and components sourced from long-term domestic suppliers. We are a family-owned business with over 20 years of vendor relationships, focused on durable, consistent, American-made products.' },
];

const QUOTE_STEPS = ['Products & Specs', 'Artwork', 'Timing', 'Contact', 'Review'];

Object.assign(window, { PRODUCTS, TESTIMONIALS, CLIENT_LOGOS, FAQS, QUOTE_STEPS, VARIANT_PRICES });
