/*
 * Servis Jelić design tokens. Direction: the American industrial standard (Caterpillar, McMaster-Carr,
 * Milwaukee): one brand colour on white, neutral text, plain rectangular controls, status as words.
 * Colour: the logo blue and white only. Greys exist for text and lines; green and red only as
 * status text (in stock / out of stock, error). Contrast ratios against white are noted.
 */
:root {
  /* Brand */
  --sj-blue: #0069aa; /* logo; white on it 5.83 */
  --sj-blue-strong: #00558a; /* hover and pressed; white on it 7.88 */
  --sj-blue-tint: #e6f0f7; /* selection, search match ground; blue on it 5.05 */
  --sj-white: #ffffff;

  /* Deep blue: the logo blue darkened, for the large dark blocks (navigation band, hero, footer).
     Two colours only, blue and white: no graphite. White on it 9.0; light text on it 6.9. */
  --sj-blue-deep: #004b7c;
  --sj-blue-deep-line: rgb(255 255 255 / 0.2);
  --sj-blue-deep-text: #cfe2f0;
  --sj-shade: rgb(0 60 100 / 0.35); /* blue-tinted shadow colour */

  /* Neutrals: text and structure, never decoration */
  --sj-text: #1a1a1a; /* 17.4 */
  --sj-text-2: #4d4d4d; /* 8.45 */
  --sj-text-3: #6b6b6b; /* 5.33, meta and placeholders */
  --sj-panel: #eef4f9; /* light blue: table header row, quiet panels, picture grounds */
  --sj-line: #d5e0e9; /* 1 px rules, a blue-grey */
  --sj-line-strong: #8c8c8c; /* input borders (3.36, non-text UI) */

  /* Attention (9. 11. 2026., user request): industrial amber, the one colour beside the blue. Only
     for what needs the customer's attention: waiting for payment, overdue, waiting for approval,
     limited stock. As a fill with dark text, or as the darker text tone on white. Never decoration. */
  --sj-accent: #f2a900; /* fill; dark text on it 8.8 */
  --sj-accent-tint: #fff4d6; /* quiet attention ground; text on it 16.0 */
  --sj-accent-text: #8a5a00; /* amber as text on white 6.0 */

  /* Status (text and icon only) */
  --sj-ok: #1b7a3a; /* 5.4: Na zalihi */
  --sj-error: #c41e1e; /* 5.91: Nema na zalihi, greške */

  /* Type: the Caterpillar pairing */
  --sj-font: "Noto Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --sj-font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

  --sj-text-xs: 0.8125rem; /* 13 */
  --sj-text-sm: 0.875rem; /* 14 */
  --sj-text-md: 1rem; /* 16 */
  --sj-text-lg: 1.25rem; /* 20 */
  --sj-text-xl: 1.75rem; /* 28 */
  --sj-text-2xl: 2.25rem; /* 36 */
  --sj-leading: 1.5;
  --sj-leading-tight: 1.15;

  /* Space: 4 px grid */
  --sj-s1: 0.25rem;
  --sj-s2: 0.5rem;
  --sj-s3: 0.75rem;
  --sj-s4: 1rem;
  --sj-s5: 1.5rem;
  --sj-s6: 2rem;
  --sj-s7: 3rem;
  --sj-s8: 4rem;

  /* Shape */
  --sj-radius: 2px;
  --sj-rule: 1px solid var(--sj-line);
  --sj-focus: 0 0 0 2px var(--sj-white), 0 0 0 4px var(--sj-blue);
  --sj-lift: 0 4px 16px -6px rgb(0 0 0 / 0.25); /* floating layers only */

  /* Layout */
  --sj-max: 90rem;
  --sj-header-h: 4rem; /* top bar; what stays on screen while scrolling */
  --sj-nav-h: 2.8125rem; /* second header row, scrolls away */
  --sj-tap: 2.75rem; /* 44 px: buttons, steppers, tap targets */
  --sj-row-h: 3.5rem;
  --sj-tabbar: 0px; /* bottom bar on phones (base.css); fixed bars sit above it */

  --sj-fast: 120ms;
  --sj-base: 200ms;
  --sj-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Phones: nothing of the site header stays on screen, so sticky parts start at the top. */
@media (max-width: 47.99rem) {
  :root {
    --sj-header-h: 0px;
  }
}
@media (max-width: 47.99rem) {
  /* The bottom bar's height lives here, next to its zero, so stylesheet order never resets it
     (11. 11. 2026.: base.css loaded first and the buy bar and page end hid under the bar). */
  :root {
    --sj-tabbar: calc(3.5rem + env(safe-area-inset-bottom));
  }
}
