#!/bin/bash
echo "=== SNEAKERS PAGE ==="
curl -s http://localhost:3001/sneakers | grep -oP '\d+ sneakers gevonden'

echo "=== MERKEN PAGE ==="
curl -s http://localhost:3001/merken | grep -oP '\d+ merken'

echo "=== DEALS PAGE ==="
curl -s -o /dev/null -w "HTTP %{http_code}\n" http://localhost:3001/deals

echo "=== BRAND PAGE (adidas) ==="
curl -s http://localhost:3001/merken/adidas | grep -oP '\d+ sneakers beschikbaar'

echo "=== BRAND PAGE (nike) ==="
curl -s http://localhost:3001/merken/nike | grep -oP '\d+ sneakers beschikbaar'

echo "=== BRAND PAGE (new-balance) ==="
curl -s http://localhost:3001/merken/new-balance | grep -oP '\d+ sneakers beschikbaar'

echo "=== PRODUCT LINKS ==="
curl -s http://localhost:3001/sneakers | grep -oP 'href="/sneakers/[^"]+"' | head -3

echo "=== BRAND LOGOS ON MERKEN ==="
curl -s http://localhost:3001/merken | grep -oP '/brands/[^"]+\.svg' | head -10

echo "=== BRAND LOGOS ON CAROUSEL ==="
curl -s http://localhost:3001/ | grep -oP '/brands/[^"]+\.svg' | head -10

echo "=== CHECK PRODUCT DETAIL ==="
SLUG=$(curl -s http://localhost:3001/sneakers | grep -oP 'href="/sneakers/[^"]+"' | head -1 | sed 's|href="/sneakers/||;s|"||')
echo "Testing product: $SLUG"
curl -s "http://localhost:3001/sneakers/$SLUG" | grep -oP '(shops op voorraad|Beschikbare maten|Meer van|brand-logo)' | sort -u
