/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/
  html, body {
    /* min-height, not height: `height: 100%` pinned the document to the viewport,
       so the page never scrolled the document itself — window.scrollY stayed 0,
       which broke scroll-to-top, scroll progress and navbar scroll state. */
    min-height: 100%;
    background: #121212;
    font-family: 'Roboto', sans-serif;
  }

  /* `overflow-x: hidden` turns an element into a scroll container, and on <html>
     that hijacks document scrolling (and breaks position: sticky). `clip` stops the
     sideways overflow without creating one. */
  body {
    overflow-x: clip;
  }

  /* Anchor jumps (e.g. Products -> /#products) glide instead of teleporting. */
  html {
    scroll-behavior: smooth;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
  /* Desktop nav links keep their icons in the markup for the mobile menu, and
     the navbar component hides them with `.nav__links svg { display: none }`.
     That rule lives in a body-level <style>, so the browser painted the icons
     first and hid them a frame later — a visible flash on every page load.
     Declaring it here (head stylesheet) means it applies before first paint.
     The mobile menu uses .mob-menu__link and is unaffected. */
  .nav__links svg { display: none; }
  /* ── Custom scrollbars ──────────────────────────────────────────────
     Replaces the OS default everywhere (page, search modal, mobile menu).
     Components that already define their own bar — the guide nav, the
     products page — are more specific and keep theirs. */

  /* Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }

  /* WebKit / Blink */
  *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  *::-webkit-scrollbar-track {
    background: transparent;
  }
  *::-webkit-scrollbar-thumb {
    /* transparent border + background-clip leaves breathing room around the
       thumb, so it reads as a floating pill rather than a full-width slab */
    background-color: rgba(255, 255, 255, 0.16);
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
    transition: background-color 0.2s ease;
  }
  *::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--cl-accent-rgb, 0, 255, 0), 0.55);
  }
  *::-webkit-scrollbar-thumb:active {
    background-color: rgba(var(--cl-accent-rgb, 0, 255, 0), 0.75);
  }
  /* Stops the little blank square where the two bars meet. */
  *::-webkit-scrollbar-corner {
    background: transparent;
  }