/** * Top Bar Component * Contains menu icon, logo, and action buttons (profile, basket) * Uses slots for content customization from index.html */ class TopBar extends HTMLElement { constructor() { super(); this.attachShadow({ mode: "open" }); } connectedCallback() { this.render(); } render() { this.shadowRoot.innerHTML = `
`; } } customElements.define("top-bar", TopBar);