Improve cart and dark mode UX

- Clear cart when customer logs out
- Hide cart bag button for non-authenticated users (only show for logged-in customers)
- Fix dark mode text visibility in all form inputs (input/textarea/select elements)

Addresses user request: cart should clear on logout and only be accessible to logged-in customers.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-17 22:47:43 +01:00
co-authored by Claude Haiku 4.5
parent c8dc3467f9
commit 0cc072fda4
4 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ export default async function Header() {
<AccountMenu customer={customer ? { name: customer.name, email: customer.email } : null} />
</div>
<ThemeToggle />
<CartButton />
{customer && <CartButton />}
</div>
</div>
</header>