/* Shared storefront and catalog-editor theme. Brand artwork keeps its own colours. */
.brand-art--custom, .mini-brand--custom, .product-image--logo { background: var(--surface-alt); }
.product-image--logo .image-open img { width: 82px; height: 82px; }
.noscript-message { margin: 24px 24px 24px 140px; padding: 20px; background: var(--surface-alt); color: var(--ink); }
@media (max-width: 700px) { .noscript-message { margin: 20px; } .product-image--logo .image-open img { width: 52px; height: 52px; } }
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f1f5fa;
  --field-bg: #f1f5fa;
  --ink: #162033;
  --muted: #657185;
  --line: #e0e7ef;
  --wash: #f1f5fa;
  --accent: #7dd3fc;
  --accent-ink: #082f49;
  --accent-hover: #bae6fd;
  --accent-soft: #eaf5fe;
  --accent-text: #08608d;
  --focus: #1685cc;
  --danger: #b4233c;
  --danger-soft: #fff0f2;
  --positive: #19764d;
  --positive-soft: #e9f7ef;
  --card-hover: #a8bfd3;
  --button-bg: #122033;
  --button-text: #ffffff;
  --button-hover: #25394e;
  --shadow: 0 14px 36px #0e274117;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #10151e;
  --surface: #1a2230;
  --surface-alt: #222d3d;
  --field-bg: #202b3b;
  --ink: #eef4fb;
  --muted: #a7b1c0;
  --line: #303d50;
  --wash: #222d3d;
  --accent: #7dd3fc;
  --accent-ink: #082f49;
  --accent-hover: #bae6fd;
  --accent-soft: #17354b;
  --accent-text: #94d9fd;
  --focus: #7dd3fc;
  --danger: #ffa4b1;
  --danger-soft: #452532;
  --positive: #86dcb0;
  --positive-soft: #183b30;
  --card-hover: #57738d;
  --button-bg: #293b50;
  --button-text: #eef4fb;
  --button-hover: #354e67;
  --shadow: 0 14px 36px #00000040;
}

body { background: var(--page-bg); color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline-color: var(--focus); }
::selection { background: #7dd3fc66; color: var(--ink); }
.sidebar { background: #080f1a; }
.rail-link { color: #a1afbf; }
.rail-link:hover { background: #162438; }
.rail-link.is-active { background: #17334a; color: var(--accent); }
.rail-count, .favorite-count { color: var(--accent-ink); }
.favorite-count { border-color: var(--page-bg); }
.search-shell { background: var(--field-bg); }
#product-search::placeholder { color: var(--muted); }
#search-form:focus-within { box-shadow: inset 0 -2px var(--focus); }
.menu-button, .square-button, .button-dark { background: var(--button-bg); color: var(--button-text); }
.menu-button:hover, .square-button:hover, .button-dark:hover { background: var(--button-hover); }
.square-button.is-active { color: var(--accent); }
.currency-label span { color: var(--muted); }
.catalog-menu { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.catalog-menu button:hover { background: var(--surface-alt); }
.category-bar button { background: var(--surface-alt); }
.category-bar button span { color: var(--muted); }
.category-bar button:hover { border-color: var(--card-hover); }
.category-bar button.is-active { background: var(--button-bg); color: var(--button-text); }
.category-bar button.is-active span { color: #b9c9dc; }
.button-accent { color: var(--accent-ink); background: var(--accent); }
.button-accent:hover { background: var(--accent-hover); }
.text-link:hover { color: var(--accent-text); }
.spotify-promo { background: var(--accent-soft); color: var(--ink); }
.spotify-promo:hover { background: #d9edfc; }
.promo-kicker { color: var(--accent-text); }
.sort-control select { color: var(--ink); border-color: var(--line); background: var(--surface); }
.product-card { background: var(--surface); border-color: var(--line); }
.product-card:hover { border-color: var(--card-hover); box-shadow: 0 4px 16px #0e274111; }
.product-tags span { color: var(--muted); background: var(--surface-alt); }
.product-bottom { border-color: var(--line); }
.product-bottom .price-pending { color: var(--muted); }
.product-cta { background: var(--surface-alt); color: var(--ink); }
.product-cta:hover { background: var(--accent); color: var(--accent-ink); }
.save-button[aria-pressed="true"] { color: var(--accent-ink); }
.empty-state { border-color: var(--card-hover); }
.empty-state > .icon { color: var(--muted); }
.browse-grid > button { background: var(--surface-alt); }
.browse-grid > button:hover { background: var(--accent-soft); }
.browse-grid .arrow, .eyebrow { color: var(--muted); }
.footer-bottom { color: var(--muted); }
.support-float { color: var(--accent-ink); border-color: var(--page-bg); }
.support-float:hover { background: var(--accent-hover); }
.toast { background: #142a40; color: #f1f7ff; }
dialog { background: var(--surface); color: var(--ink); }
.dialog-close { background: var(--surface-alt); color: var(--ink); }
.dialog-close:hover { background: var(--line); }
.dialog-image-wrap { background: #101824; }
.dialog-content ul { color: var(--muted); }
.launch-note { background: var(--accent-soft); color: var(--accent-text); }
.support-icon .icon { color: var(--accent-text); }
.skip-link { background: var(--button-bg); color: var(--button-text); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--accent-soft); border-color: var(--card-hover); }
.theme-toggle.square-button { width: 52px; height: 52px; }
.theme-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

[data-theme="dark"] .category-bar button.is-active { background: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .category-bar button.is-active span { color: #17506b; }
[data-theme="dark"] .spotify-promo:hover { background: #1d425c; }
[data-theme="dark"] .product-card:hover { box-shadow: 0 4px 16px #00000026; }
[data-theme="dark"] .button-dark { background: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .button-dark:hover { background: var(--accent-hover); }
[data-theme="dark"] .toast { background: #c5eaff; color: #10324b; }
[data-theme="dark"] dialog::backdrop { background: #030812bf; }

@media (max-width: 700px) {
  .theme-toggle.square-button { width: 39px; height: 39px; border-radius: 11px; }
  .theme-toggle .theme-icon { width: 19px; height: 19px; }
  .header-actions { gap: 8px; }
}
