/* Dark mode uses neutral surfaces, with blue reserved for actions. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --page-background: #0d1117;
    --surface: #171e28;
    --surface-tint: #1d2734;
    --surface-muted: #111720;
    --text-color: #edf2f7;
    --link-color: #a3c9eb;
    --action-background: #256da8;
    --action-hover: #2b78b7;
    --color-sky-blue: #79b8ed;
    --color-slate: #a4b0bf;
    --color-border: #354151;
    --color-error: #ffb4ab;

  .site-header { background: var(--page-background); }
  .site-header .utility-bar { background: var(--surface-muted); color: var(--color-slate); }
  .desktop-navigation a { color: var(--text-color); }
  .site-footer { background: #090d12; }
  .catalogue-hero { background: #121923; }
  .catalogue-card-title { color: var(--text-color); }
  .product-config-card, .size-quantity-card, .quantity-stepper { background: var(--surface); }
  .form-control { background: var(--surface-muted); }
  .choice-chip span { color: var(--text-color); }
  .product-badge, .cart-count { background: #233a50; color: #c8e1f5; }
  .product-image-viewer { background: var(--page-background); }
  .product-image-viewer::backdrop { background: rgb(0 0 0 / 80%); }

  :is(.site-header, .editing-card, .photo-editor, .product-configuration, .product-image-viewer, .product-image-expand, .product-add-ons) img[src$=".svg"] {
    filter: brightness(0) invert(1);
  }
}
