class ToolCard extends HTMLElement { connectedCallback() { const icon = this.getAttribute('icon') || 'tool'; const title = this.getAttribute('title') || 'Tool'; const category = this.getAttribute('category') || 'General'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `

${title}

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

${category}
`; } } customElements.define('tool-card', ToolCard);