const products = [ { id: 1, name: "Костюм Classic Navy", category: "suits", categoryRu: "Костюмы", price: 185000, image: "https://loremflickr.com/400/500/suit,man" }, { id: 2, name: "Костюм Charcoal Grey", category: "suits", categoryRu: "Костюмы", price: 195000, image: "https://loremflickr.com/400/500/suit,business" }, { id: 3, name: "Костюм Black Elegance", category: "suits", categoryRu: "Костюмы", price: 210000, image: "https://loremflickr.com/400/500/tuxedo" }, { id: 4, name: "Рубашка White Classic", category: "shirts", categoryRu: "Рубашки", price: 28000, image: "https://loremflickr.com/400/500/shirt,white" }, { id: 5, name: "Рубашка Blue Stripe", category: "shirts", categoryRu: "Рубашки", price: 32000, image: "https://loremflickr.com/400/500/shirt,blue" }, { id: 6, name: "Рубашка Slim Fit", category: "shirts", categoryRu: "Рубашки", price: 35000, image: "https://loremflickr.com/400/500/dress,shirt" }, { id: 7, name: "Туфли Oxford Black", category: "shoes", categoryRu: "Обувь", price: 65000, image: "https://loremflickr.com/400/500/shoes,dress" }, { id: 8, name: "Туфли Derby Brown", category: "shoes", categoryRu: "Обувь", price: 68000, image: "https://loremflickr.com/400/500/leather,shoes" }, { id: 9, name: "Лоферы Classic", category: "shoes", categoryRu: "Обувь", price: 58000, image: "https://loremflickr.com/400/500/loafers" }, { id: 10, name: "Галстук Silk Navy", category: "accessories", categoryRu: "Аксессуары", price: 12000, image: "https://loremflickr.com/400/500/tie,necktie" }, { id: 11, name: "Ремень Leather Black", category: "accessories", categoryRu: "Аксессуары", price: 15000, image: "https://loremflickr.com/400/500/belt,leather" }, { id: 12, name: "Запонки Silver Classic", category: "accessories", categoryRu: "Аксессуары", price: 18000, image: "https://loremflickr.com/400/500/cufflinks" } ]; let currentFilter = 'all'; function formatPrice(price) { return price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ") + " ₸"; } function renderProducts(filter) { const container = document.getElementById('products'); const filtered = filter === 'all' ? products : products.filter(p => p.category === filter); container.innerHTML = filtered.map(product => `