/* Dark colors are generated by theme.js from the site's own CSS; this file only holds the toggle. */
html[data-theme="dark"] { color-scheme: dark; }

.theme-toggle {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e3dcf3;
  background: #fff;
  color: #2a2452;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(60, 40, 120, .18);
}
.theme-toggle:focus-visible { outline: 3px solid var(--pink, #ff2f8e); outline-offset: 2px; }
/* sit right above the floating WhatsApp button (56px tall desktop, 52px mobile) */
body:has(.floating-whatsapp) .theme-toggle { bottom: calc(90px + env(safe-area-inset-bottom)); }
@media (max-width: 767px) {
  .theme-toggle { right: 20px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  body:has(.mobile-bottom-nav) .theme-toggle { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.floating-whatsapp) .theme-toggle { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.floating-whatsapp):has(.mobile-bottom-nav) .theme-toggle { bottom: calc(148px + env(safe-area-inset-bottom)); }
}

/* Dark mode: brighter gradient for the dashboard greeting (vivid colors, so theme.js keeps them as-is). */
html[data-theme="dark"] .admin-layout .hero h1 { background-image: linear-gradient(90deg, #b77cff, #ff6ec7); }
/* Dark mode: the storefront headline uses the brand color as text; lift it so a dark brand color stays readable. */
html[data-theme="dark"] .hero h1 em { background-image: linear-gradient(90deg, oklch(from var(--pink, #ff2f8e) max(l, 0.72) c h), oklch(from var(--pink2, #ff5fa9) max(l, 0.78) c h)); }