/* Servis Jelić theme base: site chrome and shared components. Tokens: tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--sj-line-strong) var(--sj-white);
}

body {
  margin: 0;
  background: var(--sj-white);
  color: var(--sj-text);
  font: 400 var(--sj-text-md) / var(--sj-leading) var(--sj-font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--sj-blue-tint);
  color: var(--sj-text);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sj-blue);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--sj-blue-strong);
}

:focus-visible {
  outline: none;
  box-shadow: var(--sj-focus);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sj-font-head);
  font-weight: 700;
  line-height: var(--sj-leading-tight);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.sj-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sj-wrap {
  width: min(100% - 2 * var(--sj-s4), var(--sj-max));
  margin-inline: auto;
}

.sj-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

/* Article codes: same face as the text, semibold, tabular figures (as McMaster part numbers). */
.sj-code {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Column and field labels */
.sj-label {
  font: 700 var(--sj-text-xs) / 1.3 var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
}

/* ---------- Header ---------- */

.site-header {
  /* Only the top bar stays on screen; the navigation band below it scrolls away. */
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sj-blue);
  color: var(--sj-white);
}

.site-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sj-s5);
  min-height: var(--sj-header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--sj-white);
}
.site-logo svg {
  height: 2.5rem;
  width: auto;
}
.site-logo__symbol {
  display: none;
}

.site-search {
  display: flex;
  height: var(--sj-tap);
  width: 100%;
  max-width: 44rem;
  justify-self: center;
}
.site-search:focus-within {
  box-shadow: 0 0 0 3px var(--sj-blue-tint);
}
.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: var(--sj-radius) 0 0 var(--sj-radius);
  background: var(--sj-white);
  padding: 0 var(--sj-s4);
  font: 400 var(--sj-text-md) var(--sj-font);
  color: var(--sj-text);
}
.site-search input:focus {
  outline: none;
}
.site-search input::placeholder {
  color: var(--sj-text-3);
}
.site-search button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  border: 0;
  border-radius: 0 var(--sj-radius) var(--sj-radius) 0;
  background: var(--sj-blue-strong);
  color: var(--sj-white);
  cursor: pointer;
}
.site-search button:hover {
  background: var(--sj-blue);
  box-shadow: inset 0 0 0 1px var(--sj-white);
}

.site-actions {
  display: flex;
  gap: var(--sj-s1);
}
.site-action {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s3);
  color: var(--sj-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--sj-radius);
}
.site-action:hover {
  background: var(--sj-blue-strong);
  color: var(--sj-white);
}
/* Cart count as plain text, "Košarica (3)": no badge. */
.site-action__count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* The count fills in after load (cached HTML): its room is kept on wide screens, so the search
   field beside it does not move when "(1)" appears. */
@media (min-width: 48rem) {
  .site-action__count {
    display: inline-block;
    min-width: 4ch;
  }
  .site-action__count[hidden] {
    display: inline-block;
    visibility: hidden;
  }
}
.site-action__count::before {
  content: "(";
}
.site-action__count::after {
  content: ")";
}

.site-nav {
  position: relative;
  z-index: 40;
  background: var(--sj-blue-deep);
}
.site-nav__row {
  display: flex;
  align-items: stretch;
  gap: var(--sj-s1);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__row > a,
.site-nav__menu > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s1);
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s3);
  color: var(--sj-white);
  text-decoration: none;
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.site-nav__menu > summary::-webkit-details-marker {
  display: none;
}
.site-nav__menu > summary .sj-icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--sj-fast) ease;
}
.site-nav__menu[open] > summary .sj-icon {
  transform: rotate(180deg);
}
.site-nav__row > a,
.site-nav__menu > summary {
  transition:
    background-color var(--sj-fast) ease,
    box-shadow var(--sj-fast) ease;
}
.site-nav__row > a:hover,
.site-nav__menu > summary:hover {
  box-shadow: inset 0 -3px 0 var(--sj-white);
  background: var(--sj-blue-strong);
}
/* "Proizvodi" opens the products; it is the one bright blue tab on the deep blue band. */
.site-nav__menu > summary {
  background: var(--sj-blue);
}
.site-nav__menu > summary:hover,
.site-nav__menu[open] > summary {
  background: var(--sj-blue-strong);
  box-shadow: none;
}
/* Product mega menu: every category with its picture and subcategories, a white floating layer. */
.site-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--sj-white);
  color: var(--sj-text-2);
  border-top: 3px solid var(--sj-blue);
  box-shadow: 0 18px 40px -18px var(--sj-shade);
}
.site-mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--sj-s5) var(--sj-s6);
  padding-block: var(--sj-s6) var(--sj-s7);
}
.site-mega__head {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: var(--sj-s3);
  padding-bottom: var(--sj-s3);
  margin-bottom: var(--sj-s3);
  border-bottom: 1px solid var(--sj-line);
  color: var(--sj-text);
  font: 700 var(--sj-text-md) / 1.2 var(--sj-font-head);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-mega__img {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--sj-radius);
  background: var(--sj-panel);
  color: var(--sj-line-strong);
  overflow: hidden;
}
.site-mega__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sj-base) var(--sj-ease-out);
}
.site-mega__head:hover {
  color: var(--sj-blue);
  border-bottom-color: var(--sj-blue);
}
.site-mega__head:hover .site-mega__img img {
  transform: scale(1.08);
}
.site-mega ul {
  margin: 0;
  padding: 0 0 0 calc(3rem + var(--sj-s3));
  list-style: none;
  display: grid;
  gap: var(--sj-s1);
  font-size: var(--sj-text-sm);
}
.site-mega ul a {
  color: var(--sj-text-2);
  text-decoration: none;
}
.site-mega ul a:hover {
  color: var(--sj-blue);
  text-decoration: underline;
}
/* The whole catalogue first: a blue bar on top of the product menu. */
.site-mega__bar {
  background: var(--sj-blue);
  color: var(--sj-white);
}
.site-mega__barin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sj-s3) var(--sj-s5);
  padding-block: var(--sj-s4);
}
.site-mega__barin p {
  display: grid;
  gap: 0.125rem;
  font-size: var(--sj-text-sm);
  color: var(--sj-blue-deep-text);
}
.site-mega__barin strong {
  color: var(--sj-white);
  font: 700 var(--sj-text-xl) / 1.1 var(--sj-font-head);
  text-transform: uppercase;
}
.site-mega__barin .sj-btn {
  min-height: 3.25rem;
  padding-inline: var(--sj-s6);
  color: var(--sj-blue);
}
/* O nama: a short list of pages in the same white layer. */
.site-nav__menu--plain > summary {
  background: transparent;
}
.site-nav__menu--plain > summary:hover,
.site-nav__menu--plain[open] > summary {
  background: var(--sj-blue-strong);
  box-shadow: inset 0 -3px 0 var(--sj-white);
}
.site-mega__links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--sj-s2) var(--sj-s5);
  margin-block: 0;
  padding-block: var(--sj-s5);
  list-style: none;
}
.site-mega .site-mega__links a {
  display: grid;
  gap: 0.125rem;
  padding: var(--sj-s3) var(--sj-s4);
  border-radius: var(--sj-radius);
  color: var(--sj-text-2);
  text-decoration: none;
}
.site-mega__links strong {
  color: var(--sj-text);
  font: 700 var(--sj-text-md) / 1.2 var(--sj-font-head);
  text-transform: uppercase;
}
.site-mega .site-mega__links a:hover {
  background: var(--sj-panel);
  text-decoration: none;
}
.site-mega__links a:hover strong {
  color: var(--sj-blue);
}

@media (max-width: 47.99rem) {
  .site-header__bar {
    grid-template-columns: auto auto;
    grid-template-areas: "logo actions" "search search";
    gap: var(--sj-s2) var(--sj-s3);
    padding-block: var(--sj-s2);
  }
  .site-logo {
    grid-area: logo;
  }
  .site-logo svg {
    height: 2.125rem;
  }
  .site-actions {
    grid-area: actions;
    justify-self: end;
  }
  .site-action__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-search {
    grid-area: search;
    max-width: none;
  }
  /* On phones the header scrolls away: the catalogue keeps its own bar on screen instead. */
  .site-header {
    position: relative;
  }
}

/* ---------- Footer: deep blue, logo, one call to action, link columns, legal row ---------- */

.site-footer {
  margin-top: var(--sj-s8);
  background: var(--sj-blue-deep);
  color: var(--sj-blue-deep-text);
  font-size: var(--sj-text-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: var(--sj-s6);
  padding-block: var(--sj-s8) var(--sj-s7);
}
.site-footer__brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--sj-s4);
  max-width: 24rem;
}
.site-footer__logo {
  display: inline-block;
  color: var(--sj-white);
}
.site-footer__logo svg {
  display: block;
  height: 3rem;
  width: auto;
}
.site-footer__brand p {
  line-height: 1.6;
}
.site-footer__cta {
  margin-top: var(--sj-s2);
}
.site-footer h2 {
  margin-bottom: var(--sj-s4);
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sj-white);
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sj-s2);
}
.site-footer a {
  color: var(--sj-blue-deep-text);
  text-decoration: none;
  transition: color var(--sj-fast) ease;
}
.site-footer a:hover {
  color: var(--sj-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer .site-footer__all {
  color: var(--sj-white);
  font-weight: 600;
}
.site-footer a.sj-btn {
  color: var(--sj-blue);
  text-decoration: none;
}
.site-footer__contact p {
  display: flex;
  gap: var(--sj-s2);
  align-items: flex-start;
  margin-bottom: var(--sj-s3);
}
.site-footer__contact .sj-icon {
  color: var(--sj-white);
  margin-top: 0.1em;
}
.site-footer__legal {
  border-top: 1px solid var(--sj-blue-deep-line);
  padding-block: var(--sj-s4);
  font-size: var(--sj-text-xs);
}
.site-footer__legal .sj-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sj-s2);
}
@media (max-width: 79.99rem) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: 40rem;
  }
}
@media (max-width: 47.99rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-s5);
    padding-block: var(--sj-s7) var(--sj-s6);
  }
}

/* ---------- Buttons: rectangular, one primary per view, verb labels ---------- */

.sj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sj-s2);
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s5);
  border: 2px solid transparent;
  border-radius: var(--sj-radius);
  font: 600 var(--sj-text-md) / 1 var(--sj-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--sj-fast) ease,
    border-color var(--sj-fast) ease,
    color var(--sj-fast) ease;
}
.sj-btn--primary {
  background: var(--sj-blue);
  color: var(--sj-white);
}
.sj-btn--primary:hover {
  background: var(--sj-blue-strong);
  color: var(--sj-white);
}
.sj-btn--secondary {
  background: var(--sj-white);
  color: var(--sj-blue);
  border-color: var(--sj-blue);
}
.sj-btn--secondary:hover {
  background: var(--sj-blue-tint);
  color: var(--sj-blue-strong);
}
.sj-btn--inverse {
  background: var(--sj-white);
  color: var(--sj-blue);
}
.sj-btn--inverse:hover {
  background: var(--sj-blue-tint);
  color: var(--sj-blue-strong);
}
.sj-btn--ghost {
  background: transparent;
  color: var(--sj-white);
  border-color: var(--sj-white);
}
.sj-btn--ghost:hover {
  background: rgb(255 255 255 / 0.12);
  color: var(--sj-white);
}
.sj-btn--link {
  min-height: auto;
  padding: var(--sj-s2) 0;
  border: 0;
  background: none;
  color: var(--sj-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.sj-btn:disabled,
.sj-btn[aria-disabled="true"] {
  background: var(--sj-panel);
  color: var(--sj-text-3);
  border-color: var(--sj-line);
  cursor: not-allowed;
}

/* ---------- Inputs ---------- */

.sj-field {
  display: grid;
  gap: var(--sj-s1);
}
.sj-field > label {
  font-weight: 600;
  font-size: var(--sj-text-sm);
}
.sj-input {
  min-height: var(--sj-tap);
  width: 100%;
  padding: 0 var(--sj-s3);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-text);
  font: 400 var(--sj-text-md) var(--sj-font);
}
.sj-input::placeholder {
  color: var(--sj-text-3);
}
.sj-input:focus {
  outline: none;
  border-color: var(--sj-blue);
  box-shadow: 0 0 0 1px var(--sj-blue);
}
.sj-input[aria-invalid="true"] {
  border-color: var(--sj-error);
  box-shadow: 0 0 0 1px var(--sj-error);
}
.sj-hint {
  font-size: var(--sj-text-sm);
  color: var(--sj-text-3);
}
.sj-error {
  display: flex;
  gap: var(--sj-s1);
  align-items: flex-start;
  font-size: var(--sj-text-sm);
  color: var(--sj-error);
  font-weight: 600;
}
.sj-error .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1em;
}

/* Quantity stepper */
.sj-qty {
  display: inline-grid;
  grid-template-columns: var(--sj-tap) 3.5rem var(--sj-tap);
  height: var(--sj-tap);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
}
.sj-qty button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--sj-text-2);
  cursor: pointer;
}
.sj-qty button:hover {
  background: var(--sj-panel);
  color: var(--sj-blue);
}
.sj-qty input {
  width: 100%;
  border: 0;
  border-inline: var(--sj-rule);
  text-align: center;
  font: 600 var(--sj-text-md) var(--sj-font);
  font-variant-numeric: tabular-nums;
  color: var(--sj-text);
  -moz-appearance: textfield;
}
.sj-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.sj-qty input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--sj-blue);
}
.sj-qty--filled {
  border-color: var(--sj-blue);
  box-shadow: 0 0 0 1px var(--sj-blue);
}

/* ---------- Availability: icon + words; green and red are the only status colours ---------- */

.sj-avail {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s1);
  font-weight: 600;
  font-size: var(--sj-text-sm);
  white-space: nowrap;
}
.sj-avail .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
}
.sj-avail--ok {
  color: var(--sj-ok);
}
.sj-avail--low {
  color: var(--sj-accent-text);
}
.sj-avail--out {
  color: var(--sj-error);
}

/* ---------- Order progress: a tracking line, not badges ---------- */

.sj-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.sj-steps li {
  position: relative;
  padding-top: var(--sj-s6);
  font-size: var(--sj-text-sm);
  color: var(--sj-text-3);
}
.sj-steps li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sj-line);
}
.sj-steps li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sj-white);
  border: 2px solid var(--sj-line-strong);
}
.sj-steps li.is-done,
.sj-steps li.is-current {
  color: var(--sj-text);
}
.sj-steps li.is-done::before,
.sj-steps li.is-current::before {
  background: var(--sj-blue);
}
.sj-steps li.is-done::after {
  background: var(--sj-blue);
  border-color: var(--sj-blue);
}
.sj-steps li.is-current::after {
  border-color: var(--sj-blue);
  border-width: 5px;
}
.sj-steps li.is-current {
  font-weight: 700;
}
.sj-steps small {
  display: block;
  font-weight: 400;
  color: var(--sj-text-3);
}

/* ---------- Catalogue table ---------- */

.sj-table-wrap {
  border: var(--sj-rule);
  border-radius: var(--sj-radius);
}
/* No scroll container around the table: overflow on any ancestor would stop the head from
   sticking under the site header. Narrower screens drop secondary columns instead (shop.css). */
.sj-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--sj-text-sm);
}
.sj-table th {
  position: sticky;
  top: var(--sj-header-h);
  z-index: 2;
  background: var(--sj-panel);
  text-align: left;
  padding: var(--sj-s2);
  vertical-align: top;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--sj-line-strong);
}
.sj-table td {
  padding: var(--sj-s1) var(--sj-s2);
  border-bottom: var(--sj-rule);
  vertical-align: middle;
  height: 2.75rem;
}
/* Every column shrinks to its content; the name takes the free width. */
.sj-table td:not([data-col="name"]),
.sj-table th {
  width: 1%;
  white-space: nowrap;
}
.sj-table td[data-col="group"] .sj-table__meta {
  display: block;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sj-table .sj-qty {
  height: 2.25rem;
  grid-template-columns: 2.25rem 3rem 2.25rem;
}
.sj-table tbody tr:hover td {
  background: var(--sj-panel);
}
.sj-table tbody tr.is-filled td[data-col="qty"] {
  background: var(--sj-blue-tint);
}
.sj-table .num {
  text-align: right;
  white-space: nowrap;
}
.sj-table .sj-code {
  font-size: var(--sj-text-md);
}
/* The picture column keeps its width: every other column shrinks to its content, and a squeezed
   cell would shrink the picture with it. Pictures are framed square by the bridge (ProductImage). */
:root:not([data-sj-view="cards"]) .sj-table td[data-col="img"] {
  width: calc(3.5rem + 2 * var(--sj-s2));
}
.sj-table td[data-col="img"] a {
  display: block;
}
.sj-table__img {
  display: block;
  width: 3.5rem;
  max-width: none;
  height: 3.5rem;
  padding: 2px;
  object-fit: contain;
  background: var(--sj-white);
  border: var(--sj-rule);
  border-radius: var(--sj-radius);
}
.sj-table__name {
  font-weight: 600;
}
.sj-table td[data-col="name"] {
  min-width: 15rem;
}
.sj-table__meta {
  color: var(--sj-text-2);
}
.sj-table__unit {
  color: var(--sj-text-2);
  font-size: var(--sj-text-xs);
  font-weight: 400;
}
.sj-table__docs {
  display: inline-flex;
  gap: var(--sj-s1);
  margin-left: var(--sj-s2);
  vertical-align: middle;
}
@media (min-width: 48rem) {
  .sj-table__docs {
    display: none;
  }
}
/* Documents (KIS allows up to five per article): a labelled disclosure, one line per row. */
.sj-docs {
  position: relative;
}
.sj-docs summary {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 var(--sj-s2);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  color: var(--sj-blue);
  font-size: var(--sj-text-xs);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.sj-docs summary::-webkit-details-marker {
  display: none;
}
.sj-docs summary:hover,
.sj-docs[open] summary {
  border-color: var(--sj-blue);
  background: var(--sj-blue-tint);
}
.sj-docs ul {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  min-width: 14rem;
  margin: 0;
  padding: var(--sj-s1) 0;
  list-style: none;
  background: var(--sj-white);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-lift);
}
.sj-docs a {
  display: flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: 2.25rem;
  padding: 0 var(--sj-s3);
  font-size: var(--sj-text-sm);
  text-decoration: none;
}
.sj-docs a:hover {
  background: var(--sj-blue-tint);
}
.sj-table__docs a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 1.75rem;
  font-size: var(--sj-text-xs);
  font-weight: 600;
}
.sj-table__docs .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
}
.sj-filter {
  width: 100%;
  min-width: 5rem;
  height: 2.25rem;
  padding: 0 var(--sj-s2);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  font: 400 var(--sj-text-sm) var(--sj-font);
  color: var(--sj-text);
}
.sj-table th .sj-filter {
  width: 5rem;
  min-width: 0;
}
.sj-table th [data-bb-filter="2"] {
  width: 100%;
}
.sj-filter:focus {
  outline: none;
  border-color: var(--sj-blue);
  box-shadow: 0 0 0 1px var(--sj-blue);
}
.sj-filter::placeholder {
  color: var(--sj-text-3);
}

/* Search matches: bold on a light blue ground. */
.sj-hit {
  padding: 0;
  background: var(--sj-blue-tint);
  color: inherit;
  font-weight: 700;
}

.sj-count {
  margin-bottom: var(--sj-s2);
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-count strong {
  color: var(--sj-text);
}

/* Order bar: appears when quantities are typed. */
.sj-orderbar {
  position: sticky;
  z-index: 10;
  bottom: calc(var(--sj-s3) + var(--sj-tabbar));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sj-s4);
  margin-top: var(--sj-s3);
  padding: var(--sj-s2) var(--sj-s2) var(--sj-s2) var(--sj-s4);
  background: var(--sj-white);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-lift);
  transition:
    transform var(--sj-base) var(--sj-ease-out),
    opacity var(--sj-base) var(--sj-ease-out);
}
.sj-orderbar[hidden] {
  display: flex;
  transform: translateY(0.75rem);
  opacity: 0;
  pointer-events: none;
}
.sj-orderbar__vat {
  color: var(--sj-text-2);
  font-size: var(--sj-text-sm);
  white-space: nowrap;
}

/* Phones: each row becomes a card with one decision. */
@media (max-width: 47.99rem) {
  .sj-table-wrap {
    max-height: none;
    border: 0;
    overflow: visible;
  }
  .sj-table thead {
    display: none;
  }
  .sj-table,
  .sj-table tbody {
    display: block;
  }
  .sj-table tbody tr {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    grid-template-areas:
      "img name price"
      "img code code"
      "avail avail qty";
    gap: var(--sj-s1) var(--sj-s3);
    padding: var(--sj-s3);
    margin-bottom: var(--sj-s2);
    border: var(--sj-rule);
    border-radius: var(--sj-radius);
  }
  .sj-table tbody tr.is-filled {
    border-color: var(--sj-blue);
    box-shadow: inset 0 0 0 1px var(--sj-blue);
  }
  .sj-table tbody tr[hidden] {
    display: none;
  }
  .sj-table td {
    display: block;
    padding: 0;
    border: 0;
    height: auto;
    background: transparent;
  }
  .sj-table tbody tr:hover td,
  .sj-table tbody tr.is-filled td {
    background: transparent;
  }
  .sj-table td[data-col="img"] {
    grid-area: img;
  }
  .sj-table td[data-col="code"] {
    grid-area: code;
  }
  .sj-table td[data-col="name"] {
    grid-area: name;
    min-width: 0;
  }
  .sj-table td[data-col="avail"] {
    grid-area: avail;
    align-self: center;
  }
  .sj-table td[data-col="price"] {
    grid-area: price;
    text-align: right;
    font-size: var(--sj-text-md);
    font-weight: 700;
  }
  .sj-table td[data-col="qty"] {
    grid-area: qty;
    justify-self: end;
  }
  .sj-table td[data-col="docs"],
  .sj-table td[data-col="mfr"],
  .sj-table td[data-col="supplier"],
  .sj-table td[data-col="maker"],
  .sj-table td[data-col="group"],
  .sj-table td[data-col="unit"],
  .sj-table td[data-col="disc"] {
    display: none;
  }
  .sj-table .sj-code {
    font-size: var(--sj-text-sm);
    font-weight: 500;
  }
  .sj-table .sj-table__name {
    font-size: var(--sj-text-md);
    font-weight: 600;
  }
  .sj-table__img {
    width: 3.5rem;
    height: 3.5rem;
  }
  .sj-table__docs {
    display: flex;
    gap: 0 var(--sj-s3);
    margin-left: 0;
  }
  .sj-table__docs a {
    min-height: var(--sj-tap);
  }
  .sj-table .sj-qty {
    height: var(--sj-tap);
    grid-template-columns: var(--sj-tap) 3.5rem var(--sj-tap);
  }
  .sj-table td:not([data-col="name"]) {
    width: auto;
  }
  .sj-orderbar {
    bottom: calc(var(--sj-s2) + var(--sj-tabbar));
  }
  .sj-steps {
    grid-auto-flow: row;
    gap: var(--sj-s4);
  }
  .sj-steps li {
    padding: 0 0 0 var(--sj-s6);
  }
  .sj-steps li::before {
    top: 1.25rem;
    bottom: calc(-1 * var(--sj-s4));
    left: 0.5rem;
    right: auto;
    width: 4px;
    height: auto;
  }
  .sj-steps li:last-child::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* ---------- Propeller: the logo symbol is the loading mark everywhere ---------- */

.sj-prop {
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  mask: url("../logo/servis-jelic-symbol.svg") center / contain no-repeat;
  animation: sj-spin 900ms cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
/* A propeller spins up, turns and settles; the symbol repeats every quarter turn. */
@keyframes sj-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Page loader: shown only when the page or the next one takes longer than a moment. */
.sj-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--sj-s4);
  background: rgb(255 255 255 / 0.94);
  color: var(--sj-blue);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Turns only while the loader shows: a hidden infinite animation still costs every frame. */
.sj-loader .sj-prop {
  width: 4.5rem;
  height: 4.5rem;
  animation: none;
}
.sj-leaving .sj-loader .sj-prop {
  animation: sj-spin 1100ms cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.sj-loader__text {
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
}
/* Only on the way to the next page; the first load needs no cover, its HTML shows as it arrives. */
.sj-leaving .sj-loader {
  animation: sj-loader 8s linear forwards;
  animation-delay: 250ms;
}
/* Fades in, stays, and gives the page back after 8 s whatever happens. */
@keyframes sj-loader {
  0% {
    opacity: 0;
    visibility: visible;
    pointer-events: auto;
  }
  3% {
    opacity: 1;
  }
  97% {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Busy controls: the propeller replaces the button's icon while the request runs. */
.sj-btn[aria-busy="true"] {
  cursor: progress;
}
.sj-btn--primary[aria-busy="true"]:disabled {
  background: var(--sj-blue);
  border-color: transparent;
  color: var(--sj-white);
}
.sj-btn[aria-busy="true"] > .sj-icon {
  display: none;
}
.sj-btn[aria-busy="true"]::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  mask: url("../logo/servis-jelic-symbol.svg") center / contain no-repeat;
  animation: sj-spin 900ms cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* WooCommerce block spinners (cart, checkout) turn into the propeller too. */
.wc-block-components-spinner::after,
.wc-block-components-button .wc-block-components-spinner::after {
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor;
  mask: url("../logo/servis-jelic-symbol.svg") center / contain no-repeat;
  animation: sj-spin 900ms cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
}
.blockUI.blockOverlay::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  background: var(--sj-blue);
  mask: url("../logo/servis-jelic-symbol.svg") center / contain no-repeat;
  animation: sj-spin 900ms cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sj-prop,
  .sj-btn[aria-busy="true"]::before {
    animation: sj-pulse 1.4s ease-in-out infinite !important;
    animation-duration: 1.4s !important;
  }
  .sj-leaving .sj-loader {
    animation-duration: 8s !important;
  }
  @keyframes sj-pulse {
    50% {
      opacity: 0.35;
    }
  }
}

/* ---------- Search suggestions (bridge search.js). Shown while typing, so no motion. ---------- */
.klikoteka-suggest-host {
  position: relative;
}
.klikoteka-suggest {
  position: absolute;
  inset: calc(100% + var(--sj-s1)) 0 auto;
  z-index: 60;
  max-height: min(32rem, calc(100dvh - var(--sj-header-h) - var(--sj-s5)));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sj-white);
  border: var(--sj-rule);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-lift);
  color: var(--sj-text);
}
.klikoteka-suggest[hidden] {
  display: none;
}
.klikoteka-suggest__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: var(--sj-s3);
  align-items: center;
  min-height: var(--sj-row-h);
  padding: var(--sj-s2) var(--sj-s4);
  border-bottom: var(--sj-rule);
  color: inherit;
  text-decoration: none;
}
.klikoteka-suggest__item[aria-selected="true"] {
  background: var(--sj-blue-tint);
}
@media (hover: hover) and (pointer: fine) {
  .klikoteka-suggest__item:hover {
    background: var(--sj-blue-tint);
  }
}
.klikoteka-suggest__pic {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  background: var(--sj-panel);
}
.klikoteka-suggest__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.klikoteka-suggest__text {
  display: grid;
  min-width: 0;
}
.klikoteka-suggest__name {
  overflow: hidden;
  font: 600 var(--sj-text-sm) / var(--sj-leading-tight) var(--sj-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.klikoteka-suggest__meta {
  display: flex;
  gap: var(--sj-s2);
  font-size: var(--sj-text-xs);
  color: var(--sj-text-3);
}
.klikoteka-suggest__sku {
  font-variant-numeric: tabular-nums;
}
.klikoteka-suggest__stock {
  font-size: var(--sj-text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.klikoteka-suggest__stock.is-ok {
  color: var(--sj-ok);
}
.klikoteka-suggest__stock.is-low {
  color: var(--sj-text);
}
.klikoteka-suggest__stock.is-out {
  color: var(--sj-error);
}
.klikoteka-suggest__empty {
  margin: 0;
  padding: var(--sj-s4);
  font-size: var(--sj-text-sm);
  color: var(--sj-text-3);
}
.klikoteka-suggest__all {
  display: block;
  padding: var(--sj-s3) var(--sj-s4);
  font: 600 var(--sj-text-sm) var(--sj-font);
  color: var(--sj-blue-strong);
}
@media (max-width: 40rem) {
  .klikoteka-suggest__brand {
    display: none;
  }
}

/* ---------- Cookie consent (bridge Consent.php). Shown once, no motion needed. ---------- */
.klikoteka-consent {
  position: fixed;
  inset: auto var(--sj-s4) var(--sj-s4);
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s4);
  align-items: end;
  justify-content: space-between;
  max-width: 60rem;
  margin-inline: auto;
  padding: var(--sj-s5);
  background: var(--sj-white);
  border: var(--sj-rule);
  border-top: 3px solid var(--sj-blue);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-lift);
  color: var(--sj-text);
}
.klikoteka-consent[hidden] {
  display: none;
}
.klikoteka-consent__body {
  flex: 1 1 24rem;
}
.klikoteka-consent__title {
  margin: 0 0 var(--sj-s2);
  font: 700 var(--sj-text-lg) / var(--sj-leading-tight) var(--sj-font-head);
}
.klikoteka-consent__text {
  margin: 0;
  font-size: var(--sj-text-sm);
}
.klikoteka-consent__text a {
  color: var(--sj-blue-strong);
}
.klikoteka-consent__choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s2) var(--sj-s5);
  margin: var(--sj-s3) 0 0;
  padding: 0;
  border: 0;
  font-size: var(--sj-text-sm);
}
.klikoteka-consent__choices[hidden] {
  display: none;
}
.klikoteka-consent__choices label {
  display: inline-flex;
  gap: var(--sj-s2);
  align-items: center;
  min-height: var(--sj-tap);
}
.klikoteka-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s2);
}
/* Equal weight: rejecting is as easy as accepting. */
.klikoteka-consent__button {
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s4);
  border: 1px solid var(--sj-blue-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-blue-strong);
  font: 600 var(--sj-text-sm) var(--sj-font);
  cursor: pointer;
  transition: transform var(--sj-fast) var(--sj-ease-out);
}
.klikoteka-consent__button--primary {
  background: var(--sj-blue-strong);
  color: var(--sj-white);
}
.klikoteka-consent__button:active {
  transform: scale(0.97);
}
.klikoteka-consent__button:focus-visible {
  outline: none;
  box-shadow: var(--sj-focus);
}
@media (max-width: 40rem) {
  .klikoteka-consent {
    inset: auto 0 0;
    border-radius: 0;
  }
  .klikoteka-consent__actions {
    width: 100%;
  }
  .klikoteka-consent__button {
    flex: 1 1 auto;
  }
}

/* ---------- Business layer (DESIGN.md, B2B sloj) ----------
   html.is-b2b is set before paint (header.php) for a logged-in company: the navigation band swaps
   the public links for the business ones, and phones get the bottom bar. */

.site-nav__b2b {
  display: none !important;
}
.is-b2b .site-nav__b2b {
  display: inline-flex !important;
}
.is-b2b .site-nav__pub {
  display: none !important;
}

.sj-tabbar {
  display: none;
}
@media (max-width: 47.99rem) {
  /* Bottom bar on phones for everyone (DESIGN.md, Donja traka). */
  :root {
    --sj-tabbar: calc(3.5rem + env(safe-area-inset-bottom));
  }
  body {
    padding-bottom: var(--sj-tabbar);
  }
  /* The bar carries the business links on phones; the band keeps only Proizvodi. */
  .is-b2b .site-nav__b2b {
    display: none !important;
  }
  .sj-tabbar {
    position: fixed;
    z-index: 60;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--sj-blue-deep);
  }
  .sj-tabbar a,
  .sj-tabbar button {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.125rem;
    height: 3.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sj-blue-deep-text);
    font: 600 0.75rem / 1.1 var(--sj-font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .sj-tabbar .sj-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .sj-tabbar [aria-current="page"] {
    color: var(--sj-white);
  }
  .sj-tabbar [aria-current="page"]::before {
    content: "";
    position: absolute;
    inset: 0 20% auto;
    height: 3px;
    background: var(--sj-white);
  }
  .sj-tabbar a:active,
  .sj-tabbar button:active {
    background: var(--sj-blue-strong);
  }
  /* The cart is the bar's one action: a white block with the blue icon. */
  .sj-tabbar a.sj-tabbar__cart {
    margin: 0.375rem 0.375rem 0.375rem 0;
    height: 2.75rem;
    border-radius: var(--sj-radius);
    background: var(--sj-white);
    color: var(--sj-blue);
  }
  .sj-tabbar a.sj-tabbar__cart[aria-current="page"]::before {
    display: none;
  }
  .sj-tabbar a.sj-tabbar__cart:active {
    background: var(--sj-blue-tint);
  }
  .sj-tabbar__cart span {
    white-space: nowrap;
  }
  .sj-tabbar__cart b::before,
  .sj-tabbar__cart b::after {
    content: none;
  }
  .sj-tabbar b {
    font-variant-numeric: tabular-nums;
  }
  .sj-tabbar b::before {
    content: "(";
  }
  .sj-tabbar b::after {
    content: ")";
  }
  .sj-tabbar b[hidden] {
    display: none;
  }
}

/* ---------- WooCommerce and bridge parts drawn by others, in the house style ---------- */

/* Staff code field on the login form (bridge TwoFactor). */
.klikoteka-otp {
  display: grid;
  gap: var(--sj-s2);
  margin-block: var(--sj-s4);
}
.klikoteka-otp label {
  font-size: var(--sj-text-sm);
  font-weight: 600;
}
.klikoteka-otp input {
  width: 100%;
  height: var(--sj-tap);
  padding: 0 var(--sj-s3);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  font: 600 var(--sj-text-md) var(--sj-font);
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}
.klikoteka-otp input:focus {
  outline: none;
  border-color: var(--sj-blue);
  box-shadow: 0 0 0 1px var(--sj-blue);
}

/* Empty cart (cart block): no sad face and no "new in the shop" grid of placeholders; the way back
   to the catalogue is the one action. */
.wp-block-woocommerce-empty-cart-block {
  display: grid;
  justify-items: center;
  gap: var(--sj-s4);
  padding-block: var(--sj-s7);
  text-align: center;
}
.wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before {
  display: none !important;
}
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  font: 700 var(--sj-text-xl) / 1.15 var(--sj-font-head);
  text-transform: uppercase;
}
.wp-block-woocommerce-empty-cart-block .wp-block-separator,
.wp-block-woocommerce-empty-cart-block .wp-block-separator ~ * {
  display: none;
}
.wp-block-woocommerce-empty-cart-block p a {
  display: inline-flex;
  align-items: center;
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s5);
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
  font-weight: 600;
  text-decoration: none;
}
.wp-block-woocommerce-empty-cart-block p a:hover {
  background: var(--sj-blue-strong);
  color: var(--sj-white);
}

.sj-btn--lg {
  min-height: 3.25rem;
  padding-inline: var(--sj-s6);
  font-size: 1.0625rem;
}

/* Section spacing shared by the home page, the portal page and other landing pages. */
.sj-home-block {
  padding-block: var(--sj-s8) 0;
}
@media (max-width: 47.99rem) {
  .sj-home-block {
    padding-top: var(--sj-s7);
  }
}

/* ---------- Page not found ---------- */

.sj-404 {
  padding-block: var(--sj-s6) var(--sj-s7);
}
.sj-404__lead {
  max-width: 60ch;
  margin-block: var(--sj-s4);
  color: var(--sj-text-2);
  font-size: var(--sj-text-lg);
}
.sj-404__search {
  display: flex;
  gap: var(--sj-s2);
  max-width: 40rem;
}
.sj-404__search .sj-input {
  flex: 1;
  width: auto;
  min-width: 0;
}
.sj-404__search .sj-btn {
  flex: none;
}
.sj-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s2) var(--sj-s5);
  margin: var(--sj-s6) 0 0;
  padding: 0;
  list-style: none;
}
.sj-404__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: var(--sj-tap);
  font-weight: 600;
}

/* ---------- Business registration (page-registracija.php) ---------- */

.sj-reg__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: var(--sj-s7);
  align-items: start;
  padding-bottom: var(--sj-s7);
}
.sj-reg__form {
  display: grid;
  gap: var(--sj-s5);
  max-width: 44rem;
}
.sj-reg__form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sj-s4);
  margin: 0;
  padding: var(--sj-s5);
  border: var(--sj-rule);
  border-top: 4px solid var(--sj-blue);
  border-radius: var(--sj-radius);
}
.sj-reg__form legend {
  padding: 0 var(--sj-s2);
  font: 700 var(--sj-text-lg) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-regfield {
  display: grid;
  gap: var(--sj-s1);
  /* A field next to one with a hint keeps its own height. */
  align-content: start;
}
.sj-regfield--company,
.sj-regfield--address,
.sj-regfield--email {
  grid-column: 1 / -1;
}
.sj-regfield label {
  font-size: var(--sj-text-sm);
  font-weight: 600;
}
.sj-regfield .sj-input {
  width: 100%;
}
.sj-regfield.is-invalid .sj-input {
  border-color: var(--sj-error);
  box-shadow: 0 0 0 1px var(--sj-error);
}
.sj-regfield__err,
.sj-reg__formerr {
  color: var(--sj-error);
  font-size: var(--sj-text-sm);
  font-weight: 600;
}
.sj-reg__formerr {
  display: flex;
  align-items: center;
  gap: var(--sj-s2);
}
.sj-reg__hp {
  position: absolute;
  left: -9999px;
}
.sj-reg__consent {
  display: flex;
  gap: var(--sj-s3);
  align-items: flex-start;
  font-size: var(--sj-text-sm);
}
.sj-reg__consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
}
.sj-reg__form > .sj-btn {
  justify-self: start;
}
/* Who registers: two choices side by side, the chosen one in blue (DESIGN.md: 2 px corners,
   selected state blue with the light blue tint). */
.sj-reg__choice {
  display: flex;
  gap: var(--sj-s3);
  align-items: flex-start;
  padding: var(--sj-s4);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  cursor: pointer;
  transition:
    border-color var(--sj-fast) ease,
    background-color var(--sj-fast) ease;
}
.sj-reg__choice:hover {
  border-color: var(--sj-blue);
}
.sj-reg__choice:has(input:checked) {
  border-color: var(--sj-blue);
  background: var(--sj-blue-tint);
  box-shadow: inset 0 0 0 1px var(--sj-blue);
}
.sj-reg__choice input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--sj-blue);
}
.sj-reg__choice-text {
  display: grid;
  gap: var(--sj-s1);
}
.sj-reg__choice-text strong {
  font-size: var(--sj-text-md);
}
.sj-reg__choice-text span {
  color: var(--sj-text-2);
  font-size: var(--sj-text-sm);
}
.sj-regfield--trade,
.sj-regfield--fullname {
  grid-column: 1 / -1;
}
.sj-reg__agree {
  display: grid;
  gap: var(--sj-s3);
}
/* A business already in the ERP, and the access mail that went out. */
.sj-reg__known,
.sj-reg__done {
  display: flex;
  gap: var(--sj-s3);
  align-items: flex-start;
  padding: var(--sj-s4);
  border-radius: var(--sj-radius);
  font-size: var(--sj-text-sm);
}
.sj-reg__known {
  border: 1px solid var(--sj-accent);
  background: var(--sj-accent-tint);
}
.sj-reg__known {
  flex-direction: column;
}
.sj-reg__known p {
  margin: 0;
}
.sj-reg__done {
  border: var(--sj-rule);
  background: var(--sj-blue-tint);
  font-weight: 600;
}
.sj-reg__done .sj-icon {
  flex: none;
  color: var(--sj-ok);
}
/* Fields of the other kind of customer: hidden wins over the grid display of the field. */
.sj-reg [hidden] {
  display: none;
}
.sj-reg__side {
  display: grid;
  gap: var(--sj-s4);
  padding: var(--sj-s5);
  border-radius: var(--sj-radius);
  background: var(--sj-blue-tint);
  position: sticky;
  top: calc(var(--sj-header-h) + var(--sj-s4));
}
.sj-reg__side h2 {
  font: 700 var(--sj-text-lg) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-reg__steps {
  display: grid;
  gap: var(--sj-s3);
  margin: 0;
  padding-left: 1.25rem;
  color: var(--sj-text-2);
  font-size: var(--sj-text-sm);
}
.sj-reg__steps strong {
  color: var(--sj-text);
}
.sj-reg__help {
  display: flex;
  align-items: center;
  gap: var(--sj-s2);
  font-size: var(--sj-text-sm);
}
@media (max-width: 63.99rem) {
  .sj-reg__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-reg__side {
    position: static;
    order: -1;
  }
}
@media (max-width: 47.99rem) {
  .sj-reg__form fieldset {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--sj-s4);
  }
  .sj-reg__form > .sj-btn {
    justify-self: stretch;
  }
}

/* ---------- Add to cart: the flying fan and the note (site.js, window.sjCart) ---------- */
.sj-fly {
  position: fixed;
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
  pointer-events: none;
  color: var(--sj-blue);
}
/* The fan rides on a white disc, so it reads over the blue button and the blue bar alike. */
.sj-fly svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.375rem;
  border-radius: 50%;
  background: var(--sj-white);
  box-shadow: 0 4px 14px -4px var(--sj-shade);
}
.sj-toast {
  position: fixed;
  z-index: 70;
  right: var(--sj-s4);
  bottom: calc(var(--sj-s4) + var(--sj-tabbar, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sj-s1) var(--sj-s3);
  max-width: min(26rem, calc(100vw - 2 * var(--sj-s4)));
  padding: var(--sj-s3) var(--sj-s4);
  border-radius: var(--sj-radius);
  background: var(--sj-blue-deep);
  color: var(--sj-white);
  box-shadow: 0 4px 16px -6px rgb(0 0 0 / 0.25);
  font-size: var(--sj-text-sm);
  animation: sj-toast-in 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sj-toast[hidden] {
  display: none;
}
.sj-toast span {
  color: var(--sj-blue-deep-text);
}
.sj-toast a {
  margin-left: auto;
  color: var(--sj-white);
  font-weight: 600;
}
.sj-toast.is-error {
  background: var(--sj-white);
  color: var(--sj-error);
  border: 1px solid var(--sj-line-strong);
}
.sj-toast.is-error span {
  color: var(--sj-text-2);
}
@keyframes sj-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sj-toast {
    animation: none;
  }
}

/* The fan of the logo, hidden large and very faint on the deep-blue planes (hero, portal,
   business catalogue band, footer): there if you look, never competing with the content. */
.sj-fanmark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--sj-white);
  opacity: 0.05;
}
.site-footer {
  position: relative;
  overflow: hidden;
}
.site-footer > :not(.sj-fanmark) {
  position: relative;
  z-index: 1;
}
.sj-fanmark--footer {
  top: -7rem;
  right: -7rem;
  width: 26rem;
  height: 26rem;
}

/* Registration: what the registry lookup found */
.sj-reg__lookup {
  display: flex;
  gap: var(--sj-s2);
  margin-top: var(--sj-s2);
  padding: var(--sj-s2) var(--sj-s3);
  border-radius: var(--sj-radius);
  background: var(--sj-panel);
  color: var(--sj-text-2);
  font-size: var(--sj-text-sm);
}
.sj-reg__lookup[hidden] {
  display: none;
}
.sj-reg__lookup[data-tone="ok"] {
  background: var(--sj-blue-tint);
  color: var(--sj-text);
}
.sj-reg__lookup[data-tone="error"] {
  color: var(--sj-error);
}

/* ---------- Band and bottom bar on phones (11. 11. 2026.) ----------
   The band carries Katalog, Narudžbe and Računi (company) or B2B portal (everyone else). The
   bottom bar swaps Katalog for "Po šifri" and B2B portal for Narudžbe when a company is in. */
@media (max-width: 47.99rem) {
  .is-b2b .site-nav__b2b.site-nav__keep {
    display: inline-flex !important;
  }
  .sj-tabbar .sj-tabbar__b2b,
  .is-b2b .sj-tabbar .sj-tabbar__pub {
    display: none;
  }
  .is-b2b .sj-tabbar .sj-tabbar__b2b {
    display: grid;
  }
}

/* ---------- Band and its menus (11. 11. 2026., user: fuller, with icons) ----------
   Menu items: an icon on a light blue tile, the title and one line. Band links carry a small icon;
   the right end holds the company and Odjava, or Prijava. Phones show Katalog, Narudžbe,
   Računi or B2B portal, and Odjava or Prijava; the wide-screen extras hide. */
.site-mega__links--icons a {
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--sj-s3);
}

.site-mega__txt {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}
.site-nav__row > a > .sj-icon,
.site-nav__right > a > .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.85;
}
.site-nav__right {
  display: flex;
  align-items: stretch;
  gap: var(--sj-s1);
  margin-left: auto;
}
.site-nav__right > a {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s3);
  color: var(--sj-white);
  text-decoration: none;
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color var(--sj-fast) ease,
    box-shadow var(--sj-fast) ease;
}
.site-nav__right > a:hover {
  box-shadow: inset 0 -3px 0 var(--sj-white);
  background: var(--sj-blue-strong);
}
.site-nav__right > .site-nav__who {
  font: 600 var(--sj-text-sm) var(--sj-font);
  letter-spacing: 0;
  text-transform: none;
}
/* Language switcher (ADR 0016): codes in the nav type, the current one marked like the current
   nav tab, with a white bottom line. A thin divider keeps it apart from the account links. */
.site-lang {
  display: flex;
  align-items: stretch;
  margin-left: var(--sj-s2);
  padding-left: var(--sj-s2);
  border-left: 1px solid rgb(255 255 255 / 0.2);
}
.site-lang__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--sj-tap);
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s2);
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.06em;
  transition:
    background-color var(--sj-fast) ease,
    box-shadow var(--sj-fast) ease,
    color var(--sj-fast) ease;
}
.site-lang__opt:hover {
  color: var(--sj-white);
  background: var(--sj-blue-strong);
}
.site-lang__opt[aria-current] {
  color: var(--sj-white);
  box-shadow: inset 0 -3px 0 var(--sj-white);
}
.site-lang__opt:focus-visible {
  outline: 2px solid var(--sj-white);
  outline-offset: -4px;
}
@media (max-width: 47.99rem) {
  /* Phones keep only the way out: the other language. */
  .site-lang {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .site-lang__opt[aria-current] {
    display: none;
  }
  .site-lang__opt {
    min-width: 2.75rem;
    font-size: 0.8125rem;
  }
}
.site-nav__who span {
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav__row > a,
.site-nav__right > a {
  gap: var(--sj-s2);
}
@media (max-width: 47.99rem) {
  .site-nav__wide,
  .is-b2b .site-nav__b2b.site-nav__wide {
    display: none !important;
  }
  .site-nav__right > a {
    padding: 0 var(--sj-s2);
  }
  .site-mega__links {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
    padding-block: var(--sj-s2);
  }
  .site-mega .site-mega__links a {
    padding: var(--sj-s3);
  }
}
@media (min-width: 64rem) {
  /* Five order links in one row on wide screens. */
  .site-mega__links--icons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 47.99rem) {
  /* Four items fit a phone: Katalog, Narudžbe, Računi or B2B portal, Odjava or Prijava. */
  .site-nav__row,
  .site-nav__row.sj-wrap {
    gap: 0;
    padding-inline: var(--sj-s2);
  }
  .site-nav__row > a,
  .site-nav__menu > summary,
  .site-nav__right > a {
    padding: 0 var(--sj-s2);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
  }
  .site-nav__row > a > .sj-icon,
  .site-nav__right > a > .sj-icon {
    display: none;
  }
  .site-nav__menu > summary .sj-icon {
    width: 0.875rem;
    height: 0.875rem;
  }
  .site-mega__links,
  .site-mega__links.sj-wrap {
    margin: 0;
    padding: var(--sj-s2) var(--sj-s3) var(--sj-s3);
  }
}

/* ---------- Brand icons (11. 11. 2026., DESIGN.md Ikone) ----------
   Drawn for Servis Jelić on a 24 grid with a 1.75 stroke. Large ones sit on a tile: deep blue with
   the brand's -14° diagonal in blue, as in the hero; the attention tile takes the yellow-orange
   diagonal. On hover the diagonal moves and the icon lifts. */
.sj-bicon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.sj-btile {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: var(--sj-radius);
  background: var(--sj-blue-deep);
  color: var(--sj-white);
  box-shadow: 0 6px 14px -8px rgb(0 60 100 / 0.55);
}
.sj-btile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -45% 0 52%;
  background: var(--sj-blue);
  transform: skewX(-14deg);
  transition: transform 260ms var(--sj-ease-out);
}
.sj-btile .sj-bicon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 260ms var(--sj-ease-out);
}
.sj-btile--attn::before {
  background: var(--sj-accent);
}
.sj-btile--attn .sj-bicon {
  color: var(--sj-white);
}
a:hover > .sj-btile::before,
a:focus-visible > .sj-btile::before {
  transform: skewX(-14deg) translateX(-18%);
}
a:hover > .sj-btile .sj-bicon,
a:focus-visible > .sj-btile .sj-bicon {
  transform: translateY(-1px) scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .sj-btile::before,
  .sj-btile .sj-bicon {
    transition: none;
  }
}

/* ---------- Band spacing and the Narudžbe menu (11. 11. 2026., user: equal spacing, logout sign) ----------
   The right group no longer pushes Odjava to the far end: its links join the row, so every item
   sits at the same gap. On phones the four items share the width evenly and Odjava keeps its
   logout sign. Menu items: the tile and the text start together; a short text centres on the tile. */
.site-nav__right {
  display: contents;
}
.site-mega__links--icons a {
  align-items: start;
}
.site-mega__links--icons .site-mega__txt {
  min-height: 2.75rem;
  align-content: center;
}
.site-mega__links--icons .site-mega__txt > span {
  line-height: 1.35;
}
@media (max-width: 47.99rem) {
  .site-nav__row,
  .site-nav__row.sj-wrap {
    justify-content: space-between;
  }
  .site-nav__right > a.site-nav__keep > .sj-icon {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
  }
  .site-nav__right > a.site-nav__keep {
    gap: 0.3125rem;
  }
}
@media (min-width: 48rem) {
  /* Wide screens have Prijava in the header already; the band keeps it on phones only. */
  .site-nav__right > .site-nav__pub[data-sj-login] {
    display: none;
  }
}
@media (min-width: 48rem) {
  /* 11. 11. 2026. (user): on wide screens the logged-in company and Odjava sit at the right end of
     the band again; the left items keep their even gap. */
  .site-nav__right {
    display: flex;
    align-items: stretch;
    gap: var(--sj-s1);
    margin-left: auto;
  }
}

/* ---------- Band menus: sections and Zatvori (20. 11. 2026., user: clearer sections, a close
   button at the bottom, phones above all) ----------
   The open menu ends at the bottom of the screen (--sj-menu-top comes from site.js, where the band
   ends) and scrolls on its own, so the Zatvori row under it never leaves the screen. Katalog has
   three sections: the whole catalogue (blue bar), the groups, and the other ways in on a light blue
   ground; each starts with a label and a rule. */
.site-mega {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--sj-menu-top, 7rem));
}
.site-mega__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-mega__foot {
  flex: none;
  border-top: 1px solid var(--sj-line);
  background: var(--sj-white);
  box-shadow: 0 -10px 18px -14px var(--sj-shade);
}
.site-mega__footin {
  display: flex;
  justify-content: flex-start;
  padding-block: var(--sj-s3);
}
.site-mega__close .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
}
.site-mega__close:focus-visible {
  outline: none;
  box-shadow: var(--sj-focus);
}
.site-mega__sec {
  padding-block: var(--sj-s5) var(--sj-s6);
}
.site-mega__title {
  display: flex;
  align-items: center;
  gap: var(--sj-s3);
  margin: 0 0 var(--sj-s4);
  color: var(--sj-blue);
  font: 700 var(--sj-text-sm) / 1.2 var(--sj-font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-mega__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sj-line);
}
.site-mega__num {
  color: var(--sj-text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.site-mega .site-mega__grid {
  padding-block: 0;
}
/* The other ways in: a light blue ground across the whole width. */
.site-mega__sec + .site-mega__sec {
  background: var(--sj-panel);
  box-shadow: 0 0 0 100vmax var(--sj-panel);
  clip-path: inset(0 -100vmax);
}
.site-mega .site-mega__quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--sj-s2) var(--sj-s5);
  margin-inline: calc(-1 * var(--sj-s2));
  padding: 0;
  font-size: var(--sj-text-sm);
}
.site-mega .site-mega__quick a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--sj-s3);
  padding: var(--sj-s2);
  border-radius: var(--sj-radius);
  color: var(--sj-text-2);
}
.site-mega .site-mega__quick a:hover {
  background: var(--sj-white);
  text-decoration: none;
}
.site-mega__quick .sj-icon {
  box-sizing: content-box;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0.6875rem;
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-blue);
}
.site-mega__quick strong {
  color: var(--sj-text);
  font: 700 var(--sj-text-md) / 1.2 var(--sj-font-head);
  text-transform: uppercase;
}
.site-mega__quick a:hover strong {
  color: var(--sj-blue);
}
.site-mega__b2b,
.is-b2b .site-mega__pub {
  display: none;
}
.is-b2b .site-mega__b2b {
  display: block;
}
@media (min-width: 48rem) {
  /* Narudžbe on wide screens: the list lines up with the page again. ".site-mega ul" (the
     subgroup indent) took its auto margins and gave it a 60 px left padding. */
  .site-mega .site-mega__links {
    margin-inline: auto;
    padding-inline: 0;
  }
}
/* Nothing floats over an open menu (the AI launcher sat on its bottom right). */
.sj-menu-open .sj-ai-launch,
.sj-menu-open .sj-ai-tip {
  visibility: hidden;
}

@media (max-width: 47.99rem) {
  /* Phones: the menu is a sheet from the band down to the bottom bar; the page behind stays still. */
  html.sj-menu-open {
    overflow: hidden;
  }
  /* The page under a short menu (Narudžbe) is dimmed, so the menu's edge is clear; a tap on it is
     a tap outside the menu and closes it (site.js). */
  .sj-menu-open .site-nav::after {
    content: "";
    position: fixed;
    z-index: 0;
    inset: var(--sj-menu-top, 6.5rem) 0 0;
    background: rgb(0 40 70 / 0.45);
  }
  .site-mega {
    position: fixed;
    z-index: 1;
    top: var(--sj-menu-top, 6.5rem);
    max-height: calc(100dvh - var(--sj-menu-top, 6.5rem) - var(--sj-tabbar));
  }
  .site-mega__barin {
    padding-block: var(--sj-s3) var(--sj-s4);
  }
  .site-mega__barin strong {
    font-size: var(--sj-text-lg);
  }
  .site-mega__barin .sj-btn {
    width: 100%;
    min-height: var(--sj-tap);
  }
  .site-mega__sec {
    padding-block: var(--sj-s4) var(--sj-s5);
  }
  .site-mega__title {
    margin-bottom: var(--sj-s2);
  }
  /* Groups as a list: one rule between groups, the subgroups indented under their group. */
  .site-mega .site-mega__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .site-mega__col {
    padding-block: var(--sj-s2);
    border-bottom: 1px solid var(--sj-line);
  }
  .site-mega__head {
    min-height: var(--sj-tap);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: var(--sj-text-sm);
  }
  .site-mega__col > ul {
    gap: 0;
    padding-bottom: var(--sj-s1);
  }
  .site-mega__col > ul a {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
  }
  .site-mega .site-mega__quick {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sj-s1);
  }
  .site-mega__footin {
    padding-block: var(--sj-s2);
  }
  .site-mega__close {
    width: 100%;
    min-height: 3rem;
  }
}
