class CategoryCard extends HTMLElement {
connectedCallback() {
const title = this.getAttribute('title') || 'Category';
const image = this.getAttribute('image') || '';
const link = this.getAttribute('link') || '#';
const icon = this.getAttribute('icon') || 'fa-box';
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
`;
}
}
customElements.define('category-card', CategoryCard);