/* Shop templates: catalogue list, product page, home, WooCommerce forms. Tokens: tokens.css. */

.sj-page {
  padding-block: var(--sj-s4) var(--sj-s7);
}
.sj-muted {
  color: var(--sj-text-3);
  font-size: var(--sj-text-sm);
}
.sj-mobile-only {
  display: none;
}

/* Breadcrumbs */
.sj-crumbs {
  margin-bottom: var(--sj-s3);
  font-size: var(--sj-text-sm);
  color: var(--sj-text-3);
}
.sj-crumbs a {
  color: var(--sj-text-2);
}

/* Page head */
.sj-page-head {
  display: grid;
  gap: var(--sj-s2);
  padding-bottom: var(--sj-s4);
  margin-bottom: var(--sj-s4);
  border-bottom: 2px solid var(--sj-text);
}
.sj-page-head h1 {
  font-size: var(--sj-text-2xl);
}
.sj-page-head p {
  color: var(--sj-text-2);
  max-width: 68ch;
}

/* Toolbar above the table: count, availability switch, clear; phone adds search and sort. */
.sj-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sj-s2) var(--sj-s5);
  min-height: var(--sj-tap);
  margin-bottom: var(--sj-s3);
}
.sj-toolbar__count {
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-toolbar__count strong {
  color: var(--sj-text);
}
.sj-toolbar__note {
  margin-left: auto;
  font-size: var(--sj-text-sm);
  color: var(--sj-text-3);
}
.sj-toolbar__clear {
  display: inline-flex;
  gap: var(--sj-s1);
  align-items: center;
  font-size: var(--sj-text-sm);
}
.sj-toolbar__clear[hidden] {
  display: none;
}
.sj-toolbar__clear .sj-icon {
  width: 1rem;
  height: 1rem;
}
.sj-mobile-flex {
  display: none;
}
.sj-toolbar__search {
  align-items: center;
  gap: var(--sj-s2);
  flex: 1 1 100%;
  height: var(--sj-tap);
  padding-left: var(--sj-s3);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-text-2);
}
.sj-toolbar__search:focus-within {
  border-color: var(--sj-blue);
  box-shadow: 0 0 0 1px var(--sj-blue);
}
.sj-toolbar__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: 400 var(--sj-text-md) var(--sj-font);
  color: var(--sj-text);
}
.sj-toolbar__search input:focus,
.sj-toolbar__search input:focus-visible {
  outline: none;
  box-shadow: none;
}
/* Switch: a checkbox drawn as a track; label stays clickable. */
.sj-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: var(--sj-tap);
  font-size: var(--sj-text-sm);
  font-weight: 600;
  cursor: pointer;
}
.sj-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sj-switch__track {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 1rem;
  background: var(--sj-line-strong);
  transition: background-color var(--sj-fast) ease;
}
.sj-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.25rem - 4px);
  height: calc(1.25rem - 4px);
  border-radius: 50%;
  background: var(--sj-white);
  transition: transform var(--sj-fast) var(--sj-ease-out);
}
.sj-switch input:checked + .sj-switch__track {
  background: var(--sj-blue);
}
.sj-switch input:checked + .sj-switch__track::after {
  transform: translateX(1rem);
}
.sj-switch input:focus-visible + .sj-switch__track {
  box-shadow: var(--sj-focus);
}

/* Table head: one sticky row, each column a sort button with its filter beneath. */
.sj-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  font: 700 var(--sj-text-xs) / 1.3 var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
  cursor: pointer;
}
.sj-sort:hover {
  color: var(--sj-blue);
}
.sj-sort__icon .sj-icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.35;
  transition: transform var(--sj-fast) ease;
}
[aria-sort="ascending"] .sj-sort,
[aria-sort="descending"] .sj-sort {
  color: var(--sj-blue);
}
[aria-sort="ascending"] .sj-sort__icon .sj-icon,
[aria-sort="descending"] .sj-sort__icon .sj-icon {
  opacity: 1;
}
[aria-sort="ascending"] .sj-sort__icon .sj-icon {
  transform: rotate(180deg);
}
.sj-th__label {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  font: 700 var(--sj-text-xs) / 1.3 var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
}
.sj-th .sj-filter {
  display: block;
  margin-top: var(--sj-s1);
}
.sj-th.num .sj-sort {
  justify-content: flex-end;
  width: 100%;
}
.sj-table .sj-th--name .sj-filter {
  width: 100%;
}
.sj-table th select.sj-filter {
  width: auto;
  min-width: 6.5rem;
  max-width: 11rem;
  padding-right: var(--sj-s1);
  cursor: pointer;
}
.sj-filter.is-active {
  border-color: var(--sj-blue);
  background: var(--sj-blue-tint);
  box-shadow: 0 0 0 1px var(--sj-blue);
}
.sj-table__codelink {
  color: var(--sj-text);
  text-decoration: none;
}
/* Manufacturer's code: its own column in the table, on the code line on phones and cards. */
.sj-table__mfr {
  font-weight: 500;
  color: var(--sj-text-2);
}
.sj-mfr--code {
  display: none;
  color: var(--sj-text-3);
  white-space: nowrap;
}
.sj-mfr--code::before {
  content: "·";
  margin-inline: var(--sj-s2);
}
.sj-product__mfr {
  color: var(--sj-text-2);
}
.sj-product__mfr .sj-code {
  color: var(--sj-text);
  font-weight: 600;
}
.sj-table__codelink:hover,
.sj-table__name:hover {
  color: var(--sj-blue);
  text-decoration: underline;
}
a.sj-table__name {
  color: var(--sj-text);
  text-decoration: none;
}
.sj-table__ask {
  font-size: var(--sj-text-sm);
}
.sj-noimg {
  display: grid;
  place-items: center;
  color: var(--sj-line-strong);
}
.sj-empty td {
  height: 6rem;
  text-align: center;
  color: var(--sj-text-2);
}
.sj-orderbar__status {
  flex: 1;
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}

.sj-empty-state {
  display: grid;
  gap: var(--sj-s2);
  padding: var(--sj-s7) 0;
}
.sj-empty-state h2 {
  font-size: var(--sj-text-xl);
}
.sj-empty-state p {
  color: var(--sj-text-2);
  max-width: 60ch;
}

/* Product page: picture left, the decision right (code, price, availability, quantity, one
   primary action, delivery and returns beside it); specs as one ruled column. */
.sj-product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 1fr);
  gap: var(--sj-s7);
  align-items: start;
}
.sj-product__media {
  position: sticky;
  top: calc(var(--sj-header-h) + var(--sj-s4));
}
.sj-product__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: var(--sj-rule);
  background: var(--sj-white);
}
div.sj-product__img {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sj-s2);
  background: var(--sj-panel);
  color: var(--sj-text-3);
}
div.sj-product__img .sj-icon {
  width: 4rem;
  height: 4rem;
  color: var(--sj-line-strong);
}
.sj-gallery {
  margin: 0;
}
.sj-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s2);
  margin: var(--sj-s3) 0 0;
  padding: 0;
  list-style: none;
}
.sj-gallery__thumbs a {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  padding: var(--sj-s1);
  border: var(--sj-rule);
  background: var(--sj-white);
}
.sj-gallery__thumbs a:hover {
  border-color: var(--sj-line-strong);
}
.sj-gallery__thumbs a[aria-current="true"] {
  border-color: var(--sj-blue);
  box-shadow: inset 0 0 0 1px var(--sj-blue);
}
.sj-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sj-product__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sj-s5);
}
.sj-product__head {
  display: grid;
  gap: var(--sj-s2);
}
.sj-product__brand {
  justify-self: start;
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.sj-product__brand:hover {
  text-decoration: underline;
}
.sj-product__title {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  text-wrap: balance;
}
.sj-product__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sj-s1) var(--sj-s3);
  color: var(--sj-text-2);
}
.sj-product__code .sj-code {
  color: var(--sj-text);
  font-size: var(--sj-text-lg);
}
.sj-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s1);
  min-height: 2rem;
  padding: 0 var(--sj-s2);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-blue);
  font: 600 var(--sj-text-xs) var(--sj-font);
  cursor: pointer;
}
.sj-copy:hover {
  border-color: var(--sj-blue);
  background: var(--sj-blue-tint);
}
.sj-copy .sj-icon {
  width: 1rem;
  height: 1rem;
}
.sj-copy[hidden] {
  display: none;
}

.sj-buybox {
  display: grid;
  gap: var(--sj-s4);
  padding: var(--sj-s5);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
}
.sj-buybox__price {
  display: grid;
  gap: var(--sj-s1);
}
/* The price leads: largest, boldest and in the brand blue. Base and lowest price sit under it,
   smaller and quiet, each with its name, so nobody mistakes one for the other. */
.sj-price {
  font: 800 2.5rem / 1.1 var(--sj-font);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--sj-blue);
}
.sj-pricenotes {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 2px var(--sj-s4);
  margin: var(--sj-s2) 0 0;
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-pricenotes__row {
  display: contents;
}
.sj-pricenotes dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sj-text);
}
.sj-pricenotes--full {
  padding-top: var(--sj-s2);
  border-top: 1px solid var(--sj-line);
}
.sj-pricenotes--full dd {
  text-align: right;
}
.sj-pricenotes--short {
  display: block;
  margin: 1px 0 0;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sj-text-3);
  white-space: nowrap;
}
.sj-pricenotes--short span {
  font-variant-numeric: tabular-nums;
  color: var(--sj-text-2);
}
/* A business customer sees its own price; the retail references are not about it. */
.is-b2b .sj-pricenotes {
  display: none;
}
.sj-table__price {
  font-weight: 800;
  color: var(--sj-blue);
}
.sj-pcard__price {
  color: var(--sj-blue);
}
.sj-buybox__self {
  margin: var(--sj-s2) 0 0;
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-price span {
  font-size: var(--sj-text-md);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sj-text-2);
}
.sj-price--ask {
  font-size: var(--sj-text-xl);
}
.sj-price__note,
.sj-price__who {
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-buybox__avail {
  display: grid;
  gap: var(--sj-s1);
  padding-top: var(--sj-s3);
  border-top: var(--sj-rule);
}
.sj-buybox__avail .sj-avail {
  font-size: var(--sj-text-md);
}
.sj-buybox__hint {
  max-width: 48ch;
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-buybox__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "qty add";
  gap: var(--sj-s1) var(--sj-s3);
}
.sj-buybox__qtylabel {
  grid-area: 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);
}
.sj-buybox__qtylabel span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.sj-buybox__form .sj-qty {
  grid-area: qty;
  height: 3rem;
}
.sj-buybox__add {
  grid-area: add;
  min-height: 3rem;
  font-size: 1.0625rem;
}
.sj-buybox > .sj-buybox__add {
  width: 100%;
}
.sj-buybox__ask {
  justify-self: start;
  font-size: var(--sj-text-sm);
}

/* Delivery, returns, help: next to the decision, not on another page. */
.sj-assure {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sj-rule);
}
.sj-assure li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--sj-s3);
  padding: var(--sj-s3) 0;
  border-bottom: var(--sj-rule);
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-assure li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.sj-assure .sj-icon {
  margin-top: 0.1em;
  color: var(--sj-blue);
}
.sj-assure strong {
  display: block;
  color: var(--sj-text);
}
.sj-assure a {
  white-space: nowrap;
}

.sj-product__section {
  display: grid;
  gap: var(--sj-s3);
}
.sj-product__section h2 {
  font-size: var(--sj-text-lg);
}
/* Specs: one column, label and value, light striping for scanning long sheets. */
.sj-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sj-text-sm);
  border-top: var(--sj-rule);
}
.sj-specs th,
.sj-specs td {
  padding: var(--sj-s2) var(--sj-s3);
  border-bottom: var(--sj-rule);
  text-align: left;
  vertical-align: top;
}
.sj-specs tr:nth-child(even) {
  background: var(--sj-panel);
}
.sj-specs th {
  width: 40%;
  font-weight: 400;
  color: var(--sj-text-2);
}

.sj-product__media,
.sj-product__info {
  min-width: 0;
}
@media (max-width: 47.99rem) {
  .sj-buybox {
    padding: var(--sj-s4);
  }
  .sj-buybox__form {
    column-gap: var(--sj-s2);
  }
  .sj-buybox__form .sj-qty {
    grid-template-columns: 2.75rem 3rem 2.75rem;
  }
  .sj-buybox__add {
    padding-inline: var(--sj-s3);
  }
  .sj-price {
    font-size: 2rem;
  }
}

/* Phone buy bar: price and the action, fixed to the bottom once the main button is passed. */
.sj-buybar {
  display: none;
}
@media (max-width: 63.99rem) {
  .sj-buybar {
    position: fixed;
    z-index: 30;
    inset: auto 0 var(--sj-tabbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-s3);
    padding: var(--sj-s2) var(--sj-s4) calc(var(--sj-s2) + env(safe-area-inset-bottom));
    background: var(--sj-white);
    border-top: 1px solid var(--sj-line-strong);
    box-shadow: var(--sj-lift);
    transition:
      transform var(--sj-base) var(--sj-ease-out),
      opacity var(--sj-base) var(--sj-ease-out);
  }
  .sj-buybar[hidden] {
    display: flex;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
  .sj-buybar__price {
    display: grid;
    min-width: 0;
    line-height: 1.25;
  }
  .sj-buybar__price strong {
    font-size: var(--sj-text-lg);
    font-variant-numeric: tabular-nums;
  }
  .sj-buybar__price span {
    font-size: var(--sj-text-xs);
    color: var(--sj-text-2);
  }
  .single-product .site-footer {
    padding-bottom: 4.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sj-buybar {
    transition: none;
  }
}
.sj-table thead tr[hidden] {
  display: none;
}
.sj-table thead tr:first-child th {
  border-bottom: 1px solid var(--sj-line-strong);
}
.sj-related {
  margin-top: var(--sj-s8);
}
.sj-related h2 {
  font-size: var(--sj-text-xl);
  margin-bottom: var(--sj-s4);
}

/* WooCommerce notices, classic forms (Moj račun) and buttons */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 var(--sj-s4);
  padding: var(--sj-s3) var(--sj-s4);
  list-style: none;
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-panel);
}
.woocommerce-error {
  border-color: var(--sj-error);
  color: var(--sj-error);
}
.woocommerce form .form-row {
  display: grid;
  gap: var(--sj-s1);
  margin: 0 0 var(--sj-s4);
}
.woocommerce form .form-row label {
  font-weight: 600;
  font-size: var(--sj-text-sm);
}
.woocommerce form .input-text,
.woocommerce form select {
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s3);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  font: 400 var(--sj-text-md) var(--sj-font);
  background: var(--sj-white);
}
.woocommerce form .input-text:focus {
  outline: none;
  border-color: var(--sj-blue);
  box-shadow: 0 0 0 1px var(--sj-blue);
}
.woocommerce .button,
.woocommerce button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s5);
  border: 0;
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
  font: 600 var(--sj-text-md) var(--sj-font);
  cursor: pointer;
}
.woocommerce .button:hover {
  background: var(--sj-blue-strong);
}
.woocommerce-password-strength,
.show-password-input {
  font-size: var(--sj-text-sm);
}

/* Block cart and checkout: brand colour on the primary actions */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  border-radius: var(--sj-radius) !important;
  background: var(--sj-blue) !important;
  color: var(--sj-white) !important;
  font-family: var(--sj-font) !important;
  font-weight: 600 !important;
}
.wc-block-components-button:not(.is-link):hover {
  background: var(--sj-blue-strong) !important;
}
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  font-family: var(--sj-font);
}
/* Cart in two parts (bridge CartSplit, ADR 0013): a flat panel above the block cart in the
   attention colour (the customer must decide), and a labelled head row for each group. */
.klikoteka-split {
  margin: 0 0 var(--sj-s5);
  padding: var(--sj-s4) var(--sj-s5);
  border: 1px solid var(--sj-accent);
  border-radius: var(--sj-radius);
  background: var(--sj-accent-tint);
  color: var(--sj-text);
}
.klikoteka-split__head {
  display: flex;
  align-items: center;
  gap: var(--sj-s2);
  color: var(--sj-accent-text);
}
.klikoteka-split__title {
  margin: 0;
  font-family: var(--sj-font-head);
  font-size: var(--sj-text-lg);
  font-weight: 700;
  line-height: var(--sj-leading-tight);
  color: var(--sj-text);
}
.klikoteka-split__lead {
  max-width: 68ch;
  margin: var(--sj-s2) 0 0;
  font-size: var(--sj-text-sm);
  line-height: var(--sj-leading);
}
.klikoteka-split__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sj-s4);
  margin-top: var(--sj-s4);
}
.klikoteka-split__label {
  margin: 0 0 var(--sj-s1);
  font-family: var(--sj-font-head);
  font-size: var(--sj-text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
}
.klikoteka-split__items {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: var(--sj-text-sm);
}
.klikoteka-split__part {
  color: var(--sj-text-2);
}
.klikoteka-split__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sj-s2) var(--sj-s3);
  margin-top: var(--sj-s4);
}
.klikoteka-split__keep,
.klikoteka-split__drop {
  display: inline-flex;
  align-items: center;
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s4);
  border-radius: var(--sj-radius);
  font: 600 var(--sj-text-md) / 1 var(--sj-font);
  text-decoration: none;
  cursor: pointer;
}
.klikoteka-split__keep {
  border: 0;
  background: var(--sj-blue);
  color: var(--sj-white);
}
.klikoteka-split__keep:hover {
  background: var(--sj-blue-strong);
}
.klikoteka-split__drop {
  border: 2px solid var(--sj-blue);
  background: var(--sj-white);
  color: var(--sj-blue);
}
.klikoteka-split__drop:hover {
  background: var(--sj-blue-tint);
}
.klikoteka-split__empty {
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s2);
  border: 0;
  background: none;
  font: 600 var(--sj-text-sm) / 1 var(--sj-font);
  color: var(--sj-text-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.klikoteka-split__empty.is-armed {
  color: var(--sj-error);
}
.klikoteka-split button:disabled {
  cursor: progress;
  opacity: 0.6;
}
.klikoteka-split :is(a, button):focus-visible {
  outline: 3px solid var(--sj-focus);
  outline-offset: 2px;
}
.klikoteka-split__status:empty {
  display: none;
}
.klikoteka-split__status {
  margin: var(--sj-s2) 0 0;
  font-size: var(--sj-text-sm);
  color: var(--sj-error);
}
.klikoteka-split.is-compact {
  padding: var(--sj-s3) var(--sj-s4);
}
.klikoteka-split.is-compact .klikoteka-split__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sj-s2);
  margin: 0;
}
.klikoteka-split.is-compact svg {
  color: var(--sj-accent-text);
}
/* Group head rows in the cart table: a label above the first line of each group. */
.wc-block-cart-items .klikoteka-split-head-now > td,
.wc-block-cart-items .klikoteka-split-head-later > td {
  position: relative;
  padding-top: calc(var(--sj-s6) + var(--sj-s2));
}
.wc-block-cart-items .klikoteka-split-head-later > td {
  border-top: 2px solid var(--sj-line-strong);
}
.wc-block-cart-items .klikoteka-split-head-now > td:first-child::before,
.wc-block-cart-items .klikoteka-split-head-later > td:first-child::before {
  position: absolute;
  top: var(--sj-s3);
  left: 0;
  white-space: nowrap;
  font: 700 var(--sj-text-xs) / 1.3 var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wc-block-cart-items .klikoteka-split-head-now > td:first-child::before {
  content: var(--klikoteka-split-now);
  color: var(--sj-ok);
}
.wc-block-cart-items .klikoteka-split-head-later > td:first-child::before {
  content: var(--klikoteka-split-later);
  color: var(--sj-accent-text);
}

/* A company is billed as KIS holds it (the bridge's CompanyBilling sets it on every order), so its
   billing card has nothing to edit. */
.is-b2b #billing-fields .wc-block-components-address-card__edit {
  display: none;
}

/* Narrow desktops and tablets: keep the head sticky by dropping secondary columns, never by
   scrolling the table sideways. */
@media (min-width: 48rem) and (max-width: 89.99rem) {
  .sj-table th:nth-child(7),
  .sj-table td[data-col="group"] {
    display: none;
  }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .sj-table th:nth-child(5),
  .sj-table td[data-col="maker"],
  .sj-table th:nth-child(1),
  .sj-table td[data-col="img"] {
    display: none;
  }
  .sj-table td[data-col="name"] {
    min-width: 12rem;
  }
}
@media (max-width: 63.99rem) {
  .sj-product {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sj-s5);
  }
  .sj-product__media {
    position: static;
  }
}
@media (max-width: 47.99rem) {
  .sj-page-head h1,
  .sj-product__title {
    font-size: var(--sj-text-xl);
  }
  .sj-desktop-only {
    display: none;
  }
  .sj-mobile-only {
    display: inline;
  }
  .sj-mobile-flex {
    display: flex;
  }
  .sj-orderbar {
    flex-wrap: wrap;
    gap: var(--sj-s2) var(--sj-s3);
    margin-inline: calc(-1 * var(--sj-s2));
    padding: var(--sj-s2) var(--sj-s2) var(--sj-s2) var(--sj-s3);
  }
  .sj-orderbar > span:first-child {
    flex: 1 1 0;
    min-width: 0;
    font-size: var(--sj-text-sm);
  }
  .sj-orderbar [data-sj-add] {
    flex: none;
  }
  .sj-orderbar__status {
    order: 3;
    flex-basis: 100%;
  }
  /* Phones: a shorter picture so price and the button reach the first screen. */
  .sj-product__img {
    max-height: 16rem;
  }
  .sj-gallery__thumbs a {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Combobox filter: suggestions under the field, with match highlight and row counts. */
.sj-combo {
  position: relative;
  margin-top: var(--sj-s1);
}
.sj-table th .sj-combo .sj-filter {
  width: 100%;
  min-width: 7rem;
  margin-top: 0;
}
.sj-combo__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 18rem;
  max-height: 18rem;
  overflow-y: auto;
  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);
  text-align: left;
  white-space: nowrap;
}
.sj-combo__list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sj-s4);
  padding: var(--sj-s2) var(--sj-s3);
  font: 400 var(--sj-text-sm) var(--sj-font);
  text-transform: none;
  letter-spacing: 0;
  color: var(--sj-text);
  cursor: pointer;
}
.sj-combo__list li:hover,
.sj-combo__list li[aria-selected="true"] {
  background: var(--sj-blue-tint);
}
.sj-combo__count {
  color: var(--sj-text-3);
  font-variant-numeric: tabular-nums;
}
.sj-combo__list .sj-combo__none {
  color: var(--sj-text-3);
  cursor: default;
}
.sj-combo__list .sj-combo__none:hover {
  background: none;
}

/* Price range and the "only typed quantities" check in the head. */
.sj-range {
  display: flex;
  gap: var(--sj-s1);
  margin-top: var(--sj-s1);
  justify-content: flex-end;
}
.sj-table th .sj-range .sj-filter {
  width: 4.25rem;
  min-width: 0;
  margin-top: 0;
  text-align: right;
  -moz-appearance: textfield;
}
.sj-range .sj-filter::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.sj-th__check {
  display: flex;
  align-items: center;
  gap: var(--sj-s1);
  min-height: 2.25rem;
  margin-top: var(--sj-s1);
  font: 400 var(--sj-text-sm) var(--sj-font);
  color: var(--sj-text-2);
  cursor: pointer;
}
.sj-th__check input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--sj-blue);
}

/* ---------- Shared catalogue presentation: headings, category grid, logo wall, product card ---------- */

.sj-section-title {
  font-size: var(--sj-text-xl);
}
.sj-section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: var(--sj-s3);
  background: var(--sj-blue);
}
.sj-blockhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sj-s3) var(--sj-s5);
  margin-bottom: var(--sj-s5);
}
.sj-blockhead__more {
  font-weight: 600;
}
.sj-blockhead__note {
  color: var(--sj-text-2);
  font-size: var(--sj-text-sm);
}

/* Category grid: picture on white, name with count, subcategories as a sentence of links. */
.sj-catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: var(--sj-s6) var(--sj-s5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-catgrid__item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--sj-s2);
}
.sj-catgrid__media {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border: var(--sj-rule);
  background: #e8eff5;
  overflow: hidden;
  transition: border-color var(--sj-base) var(--sj-ease-out);
}
/* Category pictures share one studio backdrop (inc/category-images.php), so they fill the frame. */
.sj-catgrid__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sj-base) var(--sj-ease-out);
}
.sj-catgrid__item:hover .sj-catgrid__media {
  border-color: var(--sj-line-strong);
}
.sj-catgrid__item:hover .sj-catgrid__media img {
  transform: scale(1.03);
}
.sj-catgrid__name {
  margin-top: var(--sj-s2);
  font-size: var(--sj-text-lg);
}
.sj-catgrid__name a {
  color: var(--sj-text);
  text-decoration: none;
}
.sj-catgrid__name a:hover {
  color: var(--sj-blue);
  text-decoration: underline;
}
.sj-catgrid__name span {
  font: 400 var(--sj-text-sm) var(--sj-font);
  color: var(--sj-text-3);
}
.sj-catgrid__subs {
  font-size: var(--sj-text-sm);
  line-height: 1.6;
  color: var(--sj-text-3);
}
.sj-catgrid__subs a {
  color: var(--sj-text-2);
  text-decoration: none;
}
.sj-catgrid__subs a:hover {
  color: var(--sj-blue);
  text-decoration: underline;
}

/* Subcategory tiles on a category page. */
.sj-subtiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--sj-s3);
  margin: 0 0 var(--sj-s6);
  padding: 0;
  list-style: none;
}
.sj-subtiles a {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--sj-s3);
  align-items: center;
  height: 100%;
  padding: var(--sj-s3);
  border: var(--sj-rule);
  color: var(--sj-text);
  text-decoration: none;
  transition: border-color var(--sj-fast) ease;
}
.sj-subtiles a:hover {
  border-color: var(--sj-blue);
}
.sj-subtiles img {
  grid-row: 1 / span 2;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}
.sj-subtiles__name {
  font: 700 var(--sj-text-md) / 1.2 var(--sj-font-head);
  align-self: end;
}
.sj-subtiles__count {
  font-size: var(--sj-text-xs);
  color: var(--sj-text-3);
  align-self: start;
}

/* Logo wall: manufacturer marks in grey, full colour on hover. */
.sj-logowall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 45%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sj-rule);
  border-left: var(--sj-rule);
}
.sj-logowall li {
  min-width: 0;
  border-right: var(--sj-rule);
  border-bottom: var(--sj-rule);
}
.sj-logowall a {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: var(--sj-s2);
  height: 100%;
  min-height: 8.5rem;
  padding: var(--sj-s5) var(--sj-s4) var(--sj-s3);
  background: var(--sj-white);
  text-decoration: none;
  transition:
    background-color var(--sj-fast) ease,
    box-shadow var(--sj-fast) ease;
}
.sj-logowall__logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 3.5rem;
}
.sj-logowall img {
  max-width: 100%;
  max-height: 3.25rem;
  object-fit: contain;
}
.sj-logowall__n {
  color: var(--sj-text-3);
  font-size: var(--sj-text-xs);
  font-variant-numeric: tabular-nums;
}
.sj-logowall a:hover,
.sj-logowall a:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sj-blue);
}
.sj-logowall a:hover .sj-logowall__n {
  color: var(--sj-blue);
}
/* The last tile on the home leads to every manufacturer. */
.sj-logowall__all a {
  background: var(--sj-blue);
}
.sj-logowall__all .sj-logowall__logo {
  color: var(--sj-white);
  font: 700 var(--sj-text-lg) / 1.1 var(--sj-font-head);
  text-transform: uppercase;
  text-align: center;
}
.sj-logowall__all .sj-logowall__n,
.sj-logowall__all a:hover .sj-logowall__n {
  color: var(--sj-blue-deep-text);
}
.sj-logowall__all a:hover {
  background: var(--sj-blue-strong);
  box-shadow: none;
}

/* Product card for featured rows. */
.sj-pcard {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto auto;
  gap: var(--sj-s1);
  padding: var(--sj-s4);
  background: var(--sj-white);
  border: var(--sj-rule);
}
.sj-pcard__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: var(--sj-s2);
}
.sj-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sj-pcard__brand {
  font: 700 var(--sj-text-xs) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-blue);
}
.sj-pcard__name {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font: 600 var(--sj-text-md) / 1.3 var(--sj-font);
  overflow-wrap: anywhere;
}
.sj-pcard__name a {
  color: var(--sj-text);
  text-decoration: none;
}
.sj-pcard__name a:hover {
  color: var(--sj-blue);
  text-decoration: underline;
}
.sj-pcard__code {
  font-size: var(--sj-text-xs);
  color: var(--sj-text-3);
}
.sj-pcard__price {
  margin-top: var(--sj-s2);
  font: 700 var(--sj-text-lg) var(--sj-font);
}
.sj-pcard .sj-avail {
  margin-bottom: var(--sj-s2);
}
.sj-pcard__btn {
  width: 100%;
}

@media (max-width: 47.99rem) {
  .sj-catgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-s5) var(--sj-s3);
  }
  .sj-catgrid__name {
    font-size: var(--sj-text-md);
  }
  .sj-catgrid__subs {
    font-size: var(--sj-text-xs);
  }

  .sj-logowall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sj-logowall a {
    min-height: 6.5rem;
    padding: var(--sj-s4) var(--sj-s3) var(--sj-s2);
  }
  .sj-logowall img {
    max-height: 2.5rem;
  }
  /* Subcategories on a phone: one row that scrolls sideways. */
  .sj-subtiles {
    display: flex;
    gap: var(--sj-s2);
    margin: 0 calc(-1 * var(--sj-s4)) var(--sj-s4);
    padding: 0 var(--sj-s4) var(--sj-s1);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sj-subtiles li {
    flex: 0 0 auto;
  }
  .sj-subtiles a {
    grid-template-columns: 2.5rem auto;
    padding: var(--sj-s2) var(--sj-s3) var(--sj-s2) var(--sj-s2);
  }
  .sj-subtiles img {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ---------- Phone catalogue: the desktop table, folded into dense rows ----------
   The filter bar and the column head stay on screen; rows are ruled lines, not cards; "+" adds
   one piece at once and turns into a stepper; the other column filters live in a bottom sheet. */

.sj-mfilter,
.sj-mhead,
.sj-mactive,
.sj-sheet {
  display: none;
}

@media (max-width: 47.99rem) {
  .sj-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "search filter"
      "head head"
      "active active";
    gap: var(--sj-s2);
    margin: 0 calc(-1 * var(--sj-s4));
    padding: var(--sj-s2) var(--sj-s4) 0;
    background: var(--sj-white);
    border-bottom: 1px solid var(--sj-line-strong);
  }
  .sj-toolbar__search {
    grid-area: search;
  }
  .sj-toolbar__count,
  .sj-toolbar > .sj-switch,
  .sj-toolbar__clear,
  .sj-toolbar__note {
    display: none !important;
  }
  .sj-mfilter {
    grid-area: filter;
    display: inline-flex;
    align-items: center;
    gap: var(--sj-s2);
    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);
    color: var(--sj-text);
    font: 600 var(--sj-text-sm) var(--sj-font);
  }
  .sj-mfilter .sj-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--sj-blue);
  }
  .sj-mfilter.is-active {
    border-color: var(--sj-blue);
    box-shadow: inset 0 0 0 1px var(--sj-blue);
  }
  .sj-mfilter__n {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--sj-blue);
    color: var(--sj-white);
    font-size: var(--sj-text-xs);
  }
  .sj-mfilter__n[hidden] {
    display: none;
  }

  /* Column head: the same columns as the rows below. */
  .sj-mhead {
    grid-area: head;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--sj-s3);
    min-height: 2.25rem;
    margin: 0 calc(-1 * var(--sj-s4));
    padding: 0 var(--sj-s4) 0 calc(var(--sj-s4) + 2.75rem + var(--sj-s3));
    background: var(--sj-panel);
    border-top: var(--sj-rule);
  }
  .sj-mhead__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    min-height: 2.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sj-text-2);
    font: 700 var(--sj-text-xs) var(--sj-font-head);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .sj-mhead__sort .sj-icon {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.4;
  }
  .sj-mhead__sort[data-dir] {
    color: var(--sj-blue);
  }
  .sj-mhead__sort[data-dir] .sj-icon {
    opacity: 1;
  }
  .sj-mhead__sort[data-dir="asc"] .sj-icon {
    transform: rotate(180deg);
  }
  .sj-mhead__price {
    justify-self: end;
  }
  .sj-mhead__qty {
    justify-self: end;
    padding-left: var(--sj-s2);
    border-left: var(--sj-rule);
    font: 700 var(--sj-text-xs) var(--sj-font-head);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sj-text-2);
  }

  /* Active filters as removable chips with the count; only while something narrows the list. */
  .sj-mactive {
    grid-area: active;
    display: flex;
    gap: var(--sj-s2);
    align-items: center;
    margin: 0 calc(-1 * var(--sj-s4));
    padding: var(--sj-s2) var(--sj-s4);
    overflow-x: auto;
    scrollbar-width: none;
    font-size: var(--sj-text-sm);
    white-space: nowrap;
  }
  .sj-mactive[hidden] {
    display: none;
  }
  .sj-mactive::-webkit-scrollbar {
    display: none;
  }
  .sj-mactive strong {
    font-variant-numeric: tabular-nums;
  }

  /* Rows: picture, code with price, name, availability, quantity. */
  .sj-table-wrap {
    margin-inline: calc(-1 * var(--sj-s4));
  }
  .sj-table tbody tr {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    grid-template-areas:
      "img name price"
      "img code qty"
      "img avail qty";
    gap: 0 var(--sj-s3);
    align-items: start;
    margin: 0;
    padding: var(--sj-s2) var(--sj-s4);
    border: 0;
    border-bottom: var(--sj-rule);
    border-radius: 0;
  }
  .sj-table tbody tr.is-filled {
    background: var(--sj-blue-tint);
    box-shadow: none;
    border-color: var(--sj-line);
  }
  .sj-table__img {
    width: 3.5rem;
    height: 3.5rem;
  }
  /* The name leads; our code and the manufacturer's sit under it. */
  .sj-table td[data-col="code"] {
    font-size: var(--sj-text-xs);
    line-height: 1.35;
    color: var(--sj-text-3);
  }
  .sj-table td[data-col="code"] .sj-code {
    font-size: var(--sj-text-xs);
    font-weight: 500;
    color: var(--sj-text-2);
  }
  .sj-table td[data-col="name"] {
    font-size: var(--sj-text-md);
    line-height: 1.3;
  }
  .sj-table td[data-col="name"] .sj-table__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 600;
    color: var(--sj-text);
  }
  .sj-table td[data-col="mfr"] {
    display: none;
  }
  .sj-table .sj-mfr--code {
    display: inline;
  }
  .sj-table td[data-col="avail"] {
    margin-top: 0.125rem;
  }
  .sj-table td[data-col="avail"] .sj-avail {
    font-size: var(--sj-text-xs);
  }
  .sj-table td[data-col="avail"] .sj-icon {
    width: 1rem;
    height: 1rem;
  }
  .sj-table td[data-col="price"] {
    font-size: var(--sj-text-md);
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
  }
  .sj-table td[data-col="qty"] {
    align-self: end;
  }

  /* "+" alone until the first piece; then the stepper with the number. */
  .sj-table .sj-qty {
    height: 2.75rem;
    grid-template-columns: 2.5rem 2.5rem 2.5rem;
  }
  .sj-table .sj-qty:not(.sj-qty--filled) {
    grid-template-columns: 2.75rem;
    border-color: var(--sj-blue);
  }
  .sj-table .sj-qty:not(.sj-qty--filled) > button:first-child,
  .sj-table .sj-qty:not(.sj-qty--filled) > input {
    display: none;
  }
  .sj-table .sj-qty:not(.sj-qty--filled) > button:last-child {
    color: var(--sj-blue);
  }
  .sj-table .sj-qty button {
    touch-action: manipulation;
  }
  .sj-table__ask {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: var(--sj-text-sm);
  }

  /* Filter panel: the whole screen, as on AutoScout24 (DESIGN.md, Filteri kataloga). The count
     on the button at the thumb updates live; the list redraws when the panel closes. */
  .sj-sheet[open] {
    position: fixed;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--sj-white);
    color: var(--sj-text);
    animation: sj-sheet-in 240ms var(--sj-ease-out);
  }
  .sj-sheet::backdrop {
    background: rgb(10 25 40 / 0.45);
  }
  .sj-sheet__form {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
  }
  .sj-sheet__head {
    display: grid;
    grid-template-columns: var(--sj-tap) minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sj-s2);
    padding: var(--sj-s2) var(--sj-s4) var(--sj-s2) var(--sj-s2);
    padding-top: calc(var(--sj-s2) + env(safe-area-inset-top));
    border-bottom: var(--sj-rule);
  }
  .sj-sheet__head h2 {
    font: 700 var(--sj-text-lg) var(--sj-font-head);
    text-transform: uppercase;
    text-align: center;
  }
  .sj-sheet__reset {
    min-height: var(--sj-tap);
    padding: 0;
  }
  .sj-sheet__close {
    display: grid;
    place-items: center;
    width: var(--sj-tap);
    height: var(--sj-tap);
    border: 0;
    background: none;
    color: var(--sj-text-2);
  }
  .sj-sheet__body {
    display: grid;
    align-content: start;
    flex: 1;
    padding: 0 var(--sj-s4);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sj-sheet__row {
    display: flex;
    min-height: 3.5rem;
    border-bottom: var(--sj-rule);
  }
  /* One row per kind of filter (uzor AutoScout24): name, what is picked, chevron; a tap opens it. */
  .sj-sheet__group {
    margin: 0;
    border: 0;
    border-bottom: var(--sj-rule);
  }
  .sj-sheet__group > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sj-s3);
    min-height: 3.5rem;
    list-style: none;
    cursor: pointer;
  }
  .sj-sheet__group > summary::-webkit-details-marker {
    display: none;
  }
  .sj-sheet__label {
    font-weight: 600;
  }
  .sj-sheet__sum {
    overflow: hidden;
    color: var(--sj-text-3);
    font-size: var(--sj-text-sm);
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sj-sheet__sum.is-set {
    color: var(--sj-blue);
    font-weight: 600;
  }
  .sj-sheet__group > summary .sj-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--sj-text-2);
    transition: rotate var(--sj-fast);
  }
  .sj-sheet__group[open] > summary .sj-icon {
    rotate: 180deg;
  }
  .sj-sheet__group[open] {
    padding-bottom: var(--sj-s3);
  }
  /* Inside a row, values are a list with ticks: several can be picked. */
  .sj-sheet .sj-chips {
    display: grid;
    gap: 0;
  }
  .sj-sheet .sj-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--sj-s3);
    width: 100%;
    min-height: 3rem;
    padding: 0 var(--sj-s1);
    border: 0;
    border-top: 1px solid var(--sj-line);
    border-radius: 0;
    background: none;
    color: var(--sj-text);
    font-weight: 400;
    text-align: left;
  }
  .sj-sheet .sj-chip::before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--sj-line-strong);
    border-radius: var(--sj-radius);
    background: var(--sj-white) center / 0.875rem no-repeat;
  }
  .sj-sheet .sj-chip[aria-pressed="true"] {
    background: none;
    color: var(--sj-text);
    font-weight: 600;
  }
  .sj-sheet .sj-chip[aria-pressed="true"]::before {
    border-color: var(--sj-blue);
    background-color: var(--sj-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='white' d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
  }
  .sj-sheet .sj-chip[aria-pressed="true"] small {
    color: var(--sj-text-3);
  }
  .sj-sheet__find {
    position: relative;
    display: block;
    margin-bottom: var(--sj-s3);
  }
  .sj-sheet__find[hidden] {
    display: none;
  }
  .sj-sheet__find .sj-icon {
    position: absolute;
    top: 50%;
    left: var(--sj-s3);
    width: 1.125rem;
    height: 1.125rem;
    color: var(--sj-text-3);
    translate: 0 -50%;
  }
  .sj-sheet__find input {
    width: 100%;
    padding-left: 2.5rem;
  }
  .sj-sheet__group[hidden] {
    display: none;
  }
  .sj-sheet__range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--sj-s2);
  }
  .sj-sheet__foot {
    display: flex;
    padding: var(--sj-s3) var(--sj-s4) calc(var(--sj-s3) + env(safe-area-inset-bottom));
    border-top: var(--sj-rule);
    background: var(--sj-white);
  }
  .sj-sheet__foot .sj-btn--primary {
    flex: 1;
    height: 3rem;
  }
}
@keyframes sj-sheet-in {
  from {
    transform: translateY(1.5rem);
    opacity: 0;
  }
}

/* Chips: one tap picks a value, a second tap clears it. */
.sj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s2);
}
.sj-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: 2.5rem;
  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: 600 var(--sj-text-sm) var(--sj-font);
  cursor: pointer;
  touch-action: manipulation;
}
.sj-chip small {
  color: var(--sj-text-3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.sj-chip[aria-pressed="true"] {
  border-color: var(--sj-blue);
  background: var(--sj-blue);
  color: var(--sj-white);
}
.sj-chip[aria-pressed="true"] small {
  color: rgb(255 255 255 / 0.8);
}
.sj-chip[hidden] {
  display: none;
}
/* Applied filter in the strip above the list: light blue, the filter's name, × removes it. */
.sj-chip--remove {
  flex: none;
  min-height: 2.25rem;
  border-color: var(--sj-line-strong);
  background: var(--sj-blue-tint);
  color: var(--sj-text);
}
.sj-chip--remove:hover {
  border-color: var(--sj-blue);
}
.sj-chip--remove .sj-icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* ---------- Catalogue list: count, compact categories, pager ---------- */

/* Shop page: categories fold into one line above the articles; the articles are the page. */
.sj-catnav {
  margin-bottom: var(--sj-s4);
  border-bottom: var(--sj-rule);
}
.sj-catnav summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: var(--sj-tap);
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sj-text);
  cursor: pointer;
  list-style: none;
}
.sj-catnav summary::-webkit-details-marker {
  display: none;
}
.sj-catnav summary .sj-icon {
  color: var(--sj-blue);
}
.sj-catnav summary .sj-icon:last-child {
  width: 1rem;
  height: 1rem;
  color: var(--sj-text-2);
  transition: transform var(--sj-fast) var(--sj-ease-out);
}
.sj-catnav[open] summary .sj-icon:last-child {
  transform: rotate(180deg);
}
.sj-catnav summary:hover {
  color: var(--sj-blue);
}
.sj-catnav ul {
  columns: 15rem auto;
  column-gap: var(--sj-s6);
  margin: 0;
  padding: var(--sj-s1) 0 var(--sj-s4);
  list-style: none;
}
.sj-catnav li {
  break-inside: avoid;
}
.sj-catnav a {
  display: flex;
  justify-content: space-between;
  gap: var(--sj-s3);
  padding: var(--sj-s2) 0;
  border-bottom: var(--sj-rule);
  font-size: var(--sj-text-sm);
  color: var(--sj-text);
  text-decoration: none;
}
.sj-catnav a:hover {
  color: var(--sj-blue);
}
.sj-catnav a span {
  color: var(--sj-text-3);
  font-variant-numeric: tabular-nums;
}

.sj-pager {
  margin-top: var(--sj-s6);
}
.sj-pager[hidden] {
  display: none;
}
/* One horizontal bar. paginate_links() gives the list itself the class "page-numbers", so only the
   items are styled as buttons. */
.sj-pager ul,
.sj-pager ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sj-s1);
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.sj-pager li > .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: var(--sj-tap);
  min-height: var(--sj-tap);
  margin: 0;
  padding: 0 var(--sj-s3);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-text);
  font: 600 var(--sj-text-md) var(--sj-font);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
}
.sj-pager li > a.page-numbers:hover,
.sj-pager li > button.page-numbers:hover {
  border-color: var(--sj-blue);
  color: var(--sj-blue);
}
.sj-pager li > .page-numbers.current {
  border-color: var(--sj-blue);
  background: var(--sj-blue);
  color: var(--sj-white);
}
.sj-pager li > .page-numbers.dots {
  border-color: transparent;
  cursor: default;
}

/* Notice above the list: whole-catalogue limits, or that only this page is filtered. */
.sj-note {
  margin: 0 0 var(--sj-s3);
  padding: var(--sj-s2) var(--sj-s3);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-panel);
  font-size: var(--sj-text-sm);
  color: var(--sj-text-2);
}
.sj-note[hidden] {
  display: none;
}
/* While whole-catalogue results load, the old rows stay in place, dimmed: nothing jumps. */
.sj-catalog.is-loading .sj-table tbody {
  opacity: 0.55;
  transition: opacity var(--sj-base) ease;
}

/* ---------- View switch: "Tablica" (dense, the default) or "Kartice" (larger pictures) ---------- */

.sj-view {
  display: inline-flex;
  align-items: center;
}
.sj-view__label {
  margin-right: var(--sj-s2);
  font: 700 var(--sj-text-xs) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
}
.sj-view__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s3);
  border: 1px solid var(--sj-line-strong);
  background: var(--sj-white);
  color: var(--sj-text-2);
  font: 600 var(--sj-text-sm) var(--sj-font);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--sj-fast) ease,
    color var(--sj-fast) ease;
}
.sj-view__btn:first-of-type {
  border-radius: var(--sj-radius) 0 0 var(--sj-radius);
}
.sj-view__btn + .sj-view__btn {
  margin-left: -1px;
  border-radius: 0 var(--sj-radius) var(--sj-radius) 0;
}
.sj-view__btn:hover {
  color: var(--sj-blue);
}
.sj-view__btn[aria-pressed="true"] {
  position: relative;
  border-color: var(--sj-blue);
  background: var(--sj-blue);
  color: var(--sj-white);
}
.sj-view__btn:focus-visible {
  position: relative;
  z-index: 1;
}

/* Parts of a row that only the card and phone layouts show. */
@media (min-width: 48rem) {
  .sj-table__cur {
    display: none;
  }
}

/* ---------- Cards: the same rows laid out as a product grid ----------
   Ruled like the logo wall (shared 1 px lines, no shadows, no rounded cards). The column head
   becomes a filter bar above the grid, so every filter and sort stays in reach. */

:root[data-sj-view="cards"] [data-sj-views] .sj-table,
:root[data-sj-view="cards"] [data-sj-views] .sj-table thead,
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody {
  display: block;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table-wrap {
  border: 0;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table thead tr {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sj-s3) var(--sj-s4);
  margin-bottom: var(--sj-s4);
  padding: var(--sj-s3) var(--sj-s4);
  border: var(--sj-rule);
  border-radius: var(--sj-radius);
  background: var(--sj-panel);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table th {
  position: static;
  width: auto;
  padding: 0;
  box-shadow: none;
  background: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table .sj-th--img {
  display: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table .sj-th--name {
  flex: 1 1 14rem;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table th.num .sj-sort {
  justify-content: flex-start;
}

:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  border-top: var(--sj-rule);
  border-left: var(--sj-rule);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto auto auto auto;
  grid-template-areas:
    "img"
    "maker"
    "name"
    "code"
    "price"
    "avail"
    "qty";
  gap: var(--sj-s1);
  margin: 0;
  padding: var(--sj-s4);
  border: 0;
  border-right: var(--sj-rule);
  border-bottom: var(--sj-rule);
  border-radius: 0;
  background: var(--sj-white);
  box-shadow: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr[hidden] {
  display: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr.sj-empty {
  display: block;
  grid-column: 1 / -1;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr.sj-empty[hidden] {
  display: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr.is-filled {
  background: var(--sj-blue-tint);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: normal;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr:hover td {
  background: transparent;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="img"] {
  grid-area: img;
  margin-bottom: var(--sj-s3);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="img"] a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table__img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  transition: transform var(--sj-base) var(--sj-ease-out);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr:hover img.sj-table__img {
  transform: scale(1.03);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-noimg {
  background: var(--sj-panel);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-noimg .sj-icon {
  width: 2.5rem;
  height: 2.5rem;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="maker"] {
  grid-area: maker;
  display: block;
  min-height: 1.1em;
  font: 700 var(--sj-text-xs) / 1.3 var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-blue);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="group"] {
  display: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="name"] {
  grid-area: name;
  font-size: var(--sj-text-md);
  line-height: 1.35;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="name"] .sj-table__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-weight: 600;
  color: var(--sj-text);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="code"] {
  grid-area: code;
  font-size: var(--sj-text-xs);
  color: var(--sj-text-3);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="code"]::before {
  content: "Šifra ";
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="code"] .sj-code {
  font-size: var(--sj-text-sm);
  font-weight: 600;
  color: var(--sj-text-2);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="mfr"] {
  display: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table .sj-mfr--code {
  display: inline;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="price"] {
  grid-area: price;
  margin-top: var(--sj-s2);
  text-align: left;
  font: 700 var(--sj-text-lg) / 1.25 var(--sj-font);
  font-variant-numeric: tabular-nums;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="price"] .sj-table__cur {
  display: inline;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="price"] .sj-table__unit {
  font-size: var(--sj-text-sm);
  font-weight: 400;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="avail"] {
  grid-area: avail;
  margin: 0 0 var(--sj-s2);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="qty"] {
  grid-area: qty;
  align-self: end;
  justify-self: stretch;
}

/* In cards one button puts one piece in the cart at once (classic shop); the table keeps the
   stepper and the order bar for many lines. */
:root[data-sj-view="cards"] [data-sj-views] .sj-table .sj-qty {
  display: none;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-cardadd {
  display: inline-flex;
}
.sj-cardadd {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sj-s2);
  width: 100%;
  min-height: var(--sj-tap);
  padding: 0 var(--sj-s3);
  border: 2px solid transparent;
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
  font: 600 var(--sj-text-md) / 1.2 var(--sj-font);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--sj-fast) ease;
}
.sj-cardadd:hover {
  background: var(--sj-blue-strong);
}
.sj-cardadd[aria-busy="true"] {
  cursor: progress;
  opacity: 0.8;
}
.sj-cardadd.is-added {
  border-color: var(--sj-ok);
  background: var(--sj-white);
  color: var(--sj-ok);
}
.sj-cardadd.is-error {
  border-color: var(--sj-error);
  background: var(--sj-white);
  color: var(--sj-error);
}
.sj-cardadd .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table__ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--sj-tap);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  text-decoration: none;
}

/* Phones: two cards a row; the filter sheet and sort head stay as in the table. */
@media (max-width: 47.99rem) {
  .sj-view {
    grid-area: view;
  }
  .sj-view__label,
  .sj-view__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sj-view__btn {
    justify-content: center;
    width: var(--sj-tap);
    padding: 0;
  }
  [data-sj-views] .sj-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "search filter view"
      "head head head"
      "active active active";
  }
  [data-sj-views] .sj-mfilter > span:not(.sj-mfilter__n) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table thead {
    display: none;
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-mhead__qty {
    visibility: hidden;
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-mhead {
    padding-left: var(--sj-s4);
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table-wrap {
    margin-inline: 0;
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--sj-s3);
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr {
    padding: var(--sj-s3);
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="name"] {
    font-size: var(--sj-text-sm);
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="price"] {
    font-size: var(--sj-text-md);
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="avail"] .sj-avail {
    white-space: normal;
  }
  :root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="maker"] {
    display: block;
  }
  .sj-cardadd {
    padding: 0 var(--sj-s2);
    font-size: var(--sj-text-sm);
  }
  .sj-cardadd .sj-icon {
    display: none;
  }
}

/* ==========================================================================
   Richer presentation (client reference: wipcool.com/hr), in Servis Jelić's colours:
   deep and light blue bands (no graphite), a blue diagonal stripe, uppercase display headings, photo-led cards.
   ========================================================================== */

/* Display headings: Roboto Condensed in capitals with a short blue rule. Section titles of the
   home, catalogue banners and product bands; never for running text. */
.sj-display {
  display: grid;
  justify-items: center;
  gap: var(--sj-s3);
  font: 700 clamp(1.9rem, 3.4vw, 2.75rem) / 1.02 var(--sj-font-head);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.sj-display::after {
  content: "";
  width: 3.5rem;
  height: 4px;
  background: var(--sj-blue);
}
.sj-display--left {
  justify-items: start;
  text-align: left;
}

/* ---------- Category banner: light blue, a blue stripe, the title and leading packshots ---------- */

.sj-catbanner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--sj-blue-tint);
  color: var(--sj-text-2);
}
.sj-catbanner__band {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 5.5rem;
  background: var(--sj-blue);
  transform: skewX(-14deg);
  box-shadow: 1rem 0 0 rgb(0 105 170 / 0.3);
}
/* The logo's fan, small and faint, behind the title. */
.sj-catbanner__fan {
  position: absolute;
  z-index: -1;
  left: 34%;
  top: 50%;
  width: 11rem;
  height: 11rem;
  translate: 0 -50%;
  color: rgb(0 105 170 / 0.08);
  pointer-events: none;
}
.sj-catbanner__fan svg {
  width: 100%;
  height: 100%;
}
.sj-catbanner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sj-s6);
  min-height: 13rem;
  padding-block: var(--sj-s5) var(--sj-s6);
}
.sj-catbanner__text {
  display: grid;
  align-content: center;
  gap: var(--sj-s2);
  min-width: 0;
}
.sj-catbanner .sj-crumbs {
  margin: 0 0 var(--sj-s2);
}
.sj-catbanner h1 {
  font: 700 clamp(2rem, 4vw, 3.25rem) / 1 var(--sj-font-head);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--sj-text);
  text-wrap: balance;
}
.sj-catbanner__desc {
  max-width: 60ch;
}
.sj-catbanner__count {
  font-size: var(--sj-text-sm);
  font-variant-numeric: tabular-nums;
}
.sj-catbanner__count strong {
  color: var(--sj-blue);
  font-size: var(--sj-text-lg);
}
.sj-catbanner__shots {
  display: flex;
  gap: var(--sj-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-catbanner__shots li {
  display: grid;
  place-items: center;
  width: 9rem;
  aspect-ratio: 1;
  padding: var(--sj-s2);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  box-shadow: 0 14px 30px -16px var(--sj-shade);
}
.sj-catbanner__shots li:nth-child(even) {
  transform: translateY(0.75rem);
}
.sj-catbanner__shots img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sj-catbanner + .sj-page {
  padding-top: var(--sj-s5);
}
/* Shop and search: a photograph of the goods under a blue wash that keeps the title white and legible. */
.sj-catbanner--photo {
  background: #0a3d5f;
  color: rgb(255 255 255 / 0.92);
}
.sj-catbanner__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.sj-catbanner__media img,
.sj-catbanner__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.sj-catbanner--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(0 52 88 / 0.94) 0%,
    rgb(0 74 122 / 0.82) 36%,
    rgb(0 90 145 / 0.35) 68%,
    rgb(0 90 145 / 0.05) 100%
  );
}
.sj-catbanner--photo .sj-catbanner__inner {
  min-height: 17rem;
  grid-template-columns: minmax(0, 1fr);
}
.sj-catbanner--photo h1 {
  color: var(--sj-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 2px 18px rgb(0 30 52 / 0.35);
}
.sj-catbanner--photo .sj-crumbs,
.sj-catbanner--photo .sj-crumbs a,
.sj-catbanner--photo .sj-catbanner__desc {
  color: rgb(255 255 255 / 0.88);
}
.sj-catbanner--photo .sj-catbanner__count strong {
  color: var(--sj-accent);
}

/* ---------- Quick documents in rows and cards ---------- */

.sj-rowdocs {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: var(--sj-s2);
}
.sj-rowdocs__one,
.sj-rowdocs summary {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 1.75rem;
  padding: 0 0.35rem;
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-error);
  font: 700 var(--sj-text-xs) / 1 var(--sj-font);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition:
    border-color var(--sj-fast) ease,
    background-color var(--sj-fast) ease;
}
.sj-rowdocs summary::-webkit-details-marker {
  display: none;
}
.sj-rowdocs .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
}
.sj-rowdocs__n {
  color: var(--sj-text-2);
  font-variant-numeric: tabular-nums;
}
.sj-rowdocs__one:hover,
.sj-rowdocs summary:hover,
.sj-rowdocs[open] summary {
  border-color: var(--sj-blue);
  background: var(--sj-blue-tint);
}
.sj-rowdocs ul {
  position: absolute;
  z-index: 25;
  top: calc(100% + 4px);
  right: 0;
  min-width: 16rem;
  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-rowdocs__item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--sj-s2);
  align-items: start;
  padding: var(--sj-s2) var(--sj-s3);
  color: var(--sj-text);
  font-size: var(--sj-text-sm);
  text-decoration: none;
  white-space: normal;
}
.sj-rowdocs__item .sj-icon {
  color: var(--sj-error);
}
.sj-rowdocs__item small {
  display: block;
  color: var(--sj-text-3);
  font-size: var(--sj-text-xs);
}
.sj-rowdocs__item:hover {
  background: var(--sj-blue-tint);
}

/* Cards: the documents sit on the picture's corner. */
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr {
  position: relative;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="name"] .sj-rowdocs,
.sj-pcard > .sj-rowdocs {
  position: absolute;
  z-index: 2;
  top: var(--sj-s3);
  right: var(--sj-s3);
  margin: 0;
}

/* ---------- Product cards (featured, related): picture on a light panel, lift on hover ---------- */

.sj-pcard {
  position: relative;
  display: grid;
  /* One column that never grows past the card: long names and the button stay inside. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto auto auto auto;
  gap: var(--sj-s1);
  min-width: 0;
  overflow: hidden;
  padding: 0 var(--sj-s4) var(--sj-s4);
  background: var(--sj-white);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  transition:
    border-color var(--sj-base) var(--sj-ease-out),
    box-shadow var(--sj-base) var(--sj-ease-out),
    transform var(--sj-base) var(--sj-ease-out);
}
.sj-pcard:hover {
  border-color: var(--sj-blue);
  box-shadow: 0 18px 36px -22px var(--sj-shade);
  transform: translateY(-3px);
}
.sj-pcard__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  /* Full-bleed picture field across the top of the card. */
  margin: 0 calc(-1 * var(--sj-s4)) var(--sj-s3);
  padding: var(--sj-s5);
  border-bottom: 1px solid var(--sj-line);
  background: var(--sj-white);
  color: var(--sj-line-strong);
  overflow: hidden;
}
.sj-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 500ms var(--sj-ease-out);
}
.sj-pcard:hover .sj-pcard__media img {
  transform: scale(1.05);
}
.sj-pcard__media .sj-icon {
  width: 3rem;
  height: 3rem;
}
.sj-pcard__name {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font: 600 var(--sj-text-md) / 1.3 var(--sj-font);
  overflow-wrap: anywhere;
}
.sj-pcard__price {
  margin-top: var(--sj-s2);
  font: 700 var(--sj-text-xl) / 1.1 var(--sj-font);
  font-variant-numeric: tabular-nums;
}
.sj-pcard__btn {
  width: 100%;
  min-width: 0;
  margin-top: var(--sj-s2);
  padding-inline: var(--sj-s3);
}

/* ---------- Catalogue cards view: richer pictures and hover ---------- */

:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="img"] a {
  padding: var(--sj-s3);
  background: linear-gradient(180deg, #fff 0%, var(--sj-panel) 100%);
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table__img {
  mix-blend-mode: multiply;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr {
  transition:
    box-shadow var(--sj-base) var(--sj-ease-out),
    z-index 0s;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table tbody tr:hover {
  z-index: 3;
  box-shadow:
    inset 0 0 0 1px var(--sj-blue),
    0 18px 36px -24px var(--sj-shade);
}
@media (min-width: 48rem) {
  :root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="price"] {
    font-size: var(--sj-text-xl);
  }
}

/* ---------- Product page ---------- */

.sj-pband {
  background: var(--sj-blue-tint);
  color: var(--sj-text-2);
}
.sj-pband__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sj-s2) var(--sj-s4);
  min-height: 3rem;
  padding-block: var(--sj-s2);
}
.sj-pband .sj-crumbs {
  margin: 0;
}
.sj-pband__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  color: var(--sj-blue);
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.sj-pband__back .sj-icon {
  width: 1rem;
  height: 1rem;
  transform: rotate(180deg);
}
.sj-pband__back:hover {
  text-decoration: underline;
}
.sj-page--product {
  padding-top: var(--sj-s6);
}
/* The picture in a frame with the blue rule on top, as the reference frames its products. */
.sj-gallery__main,
.sj-product__media > .sj-noimg {
  position: relative;
  border: 1px solid var(--sj-line);
  border-top: 4px solid var(--sj-blue);
  background: linear-gradient(180deg, #fff 0%, var(--sj-panel) 100%);
}
.sj-gallery__main .sj-product__img {
  border: 0;
  background: transparent;
  mix-blend-mode: multiply;
}
.sj-product__title {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.05;
}
.sj-buybox {
  border-top: 4px solid var(--sj-blue);
  box-shadow: 0 22px 44px -32px var(--sj-shade);
}
.sj-buybox__docs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sj-s1) var(--sj-s2);
  margin: 0;
  padding: var(--sj-s2) var(--sj-s3);
  border-radius: var(--sj-radius);
  background: var(--sj-panel);
  font-size: var(--sj-text-sm);
}
.sj-buybox__docs .sj-icon {
  color: var(--sj-error);
}
.sj-buybox__docs a {
  font-weight: 600;
}
.sj-buybox__docs span {
  color: var(--sj-text-3);
}

/* Section bar: the reference's product tabs, as anchors, so nothing is hidden. */
.sj-ptabs {
  position: sticky;
  z-index: 15;
  top: var(--sj-header-h);
  margin-top: var(--sj-s8);
  background: var(--sj-white);
  border-bottom: 2px solid var(--sj-blue);
}
.sj-ptabs__row {
  display: flex;
  gap: var(--sj-s1);
  overflow-x: auto;
  scrollbar-width: none;
}
.sj-ptabs a {
  display: inline-flex;
  align-items: center;
  gap: var(--sj-s2);
  min-height: 3rem;
  padding: 0 var(--sj-s5);
  background: var(--sj-panel);
  color: var(--sj-text);
  font: 700 var(--sj-text-sm) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--sj-fast) ease,
    color var(--sj-fast) ease;
}
.sj-ptabs a:first-child {
  background: var(--sj-blue-deep);
  color: var(--sj-white);
}
.sj-ptabs a:hover {
  background: var(--sj-blue);
  color: var(--sj-white);
}
.sj-ptabs a span {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
  font: 700 var(--sj-text-xs) var(--sj-font);
}
.sj-pdetails {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--sj-s7);
  align-items: start;
  padding-top: var(--sj-s6);
}
.sj-pdetails__main {
  display: grid;
  gap: var(--sj-s6);
}
.sj-pdetails [id] {
  scroll-margin-top: calc(var(--sj-header-h) + 4rem);
}
.sj-pdetails h2 {
  font: 700 var(--sj-text-xl) / 1.1 var(--sj-font-head);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
/* Specs in a full bordered grid, as data sheets print them. */
.sj-specs {
  border: 1px solid var(--sj-line-strong);
}
.sj-specs th,
.sj-specs td {
  border-bottom: 1px solid var(--sj-line);
}
.sj-specs th {
  border-right: 1px solid var(--sj-line);
  font-weight: 600;
  color: var(--sj-text-2);
}
.sj-pdocs {
  padding: var(--sj-s5);
  background: var(--sj-blue-tint);
  color: var(--sj-text-2);
  border-radius: var(--sj-radius);
}
.sj-pdocs__list {
  display: grid;
  gap: var(--sj-s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-pdocs__list a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sj-s3);
  padding: var(--sj-s3);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-text);
  text-decoration: none;
  transition:
    border-color var(--sj-fast) ease,
    background-color var(--sj-fast) ease;
}
.sj-pdocs__list a:hover {
  border-color: var(--sj-blue);
}
.sj-pdocs__type {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--sj-radius);
  background: var(--sj-blue-tint);
  color: var(--sj-error);
}
.sj-pdocs__type .sj-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.sj-pdocs__name {
  font-weight: 600;
  line-height: 1.3;
}
.sj-pdocs__name small {
  display: block;
  margin-top: 0.125rem;
  color: var(--sj-text-3);
  font-weight: 400;
  font-size: var(--sj-text-xs);
}
.sj-pdocs__go {
  padding: var(--sj-s1) var(--sj-s3);
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
  font: 600 var(--sj-text-sm) var(--sj-font);
}
.sj-related {
  margin-top: var(--sj-s8);
  padding: var(--sj-s7) 0 var(--sj-s2);
  border-top: 1px solid var(--sj-line);
}
.sj-related .sj-rail {
  grid-auto-columns: minmax(13rem, calc((100% - 4 * var(--sj-s4)) / 5));
  scrollbar-color: var(--sj-line-strong) transparent;
}
.sj-related .sj-railnav button {
  border-color: var(--sj-line-strong);
  background: var(--sj-white);
  color: var(--sj-text);
}
.sj-related .sj-railnav button:hover:not(:disabled) {
  border-color: var(--sj-blue);
  background: var(--sj-blue);
  color: var(--sj-white);
}

@media (max-width: 63.99rem) {
  .sj-catbanner--photo::before {
    background: linear-gradient(180deg, rgb(0 52 88 / 0.9) 0%, rgb(0 74 122 / 0.78) 100%);
  }
  .sj-catbanner--photo .sj-catbanner__inner {
    min-height: 12rem;
  }
  .sj-pdetails {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sj-s6);
  }
  .sj-catbanner__shots li:nth-child(n + 3) {
    display: none;
  }
}
@media (max-width: 47.99rem) {
  .sj-catbanner__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: var(--sj-s4) var(--sj-s5);
  }
  .sj-catbanner__shots {
    display: none;
  }
  .sj-catbanner__band {
    left: auto;
    right: -2rem;
    width: 3.5rem;
  }
  .sj-catbanner__fan {
    left: auto;
    right: 2rem;
    width: 7rem;
    height: 7rem;
  }
  .sj-ptabs {
    top: 0;
    margin-top: var(--sj-s7);
    margin-inline: calc(-1 * var(--sj-s4));
  }
  .sj-ptabs a {
    padding: 0 var(--sj-s4);
  }
  .sj-related .sj-rail {
    grid-auto-columns: 72%;
  }
  .sj-pdocs {
    margin-inline: calc(-1 * var(--sj-s4));
    border-radius: 0;
  }
}

/* ---------- Product rails (home, product page): shared ---------- */
.sj-featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sj-s4);
  margin-bottom: var(--sj-s5);
}
.sj-featured__head p {
  margin-top: var(--sj-s2);
  font-size: var(--sj-text-sm);
}
.sj-railnav {
  display: flex;
  gap: var(--sj-s2);
}
.sj-railnav[hidden] {
  display: none;
}
.sj-railnav button {
  display: grid;
  place-items: center;
  width: var(--sj-tap);
  height: var(--sj-tap);
  border: 1px solid var(--sj-line-strong);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-text);
  cursor: pointer;
  transition:
    background-color var(--sj-fast) ease,
    border-color var(--sj-fast) ease;
}
.sj-railnav button:first-child .sj-icon {
  transform: rotate(180deg);
}
.sj-railnav button:hover:not(:disabled) {
  background: var(--sj-blue);
  border-color: var(--sj-blue);
}
.sj-railnav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.sj-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, calc((100% - 4 * var(--sj-s4)) / 5));
  gap: var(--sj-s4);
  overflow-x: auto;
  padding-bottom: var(--sj-s3);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--sj-line-strong) transparent;
}
.sj-rail > * {
  scroll-snap-align: start;
}
@media (max-width: 79.99rem) {
  .sj-rail {
    grid-auto-columns: minmax(14rem, calc((100% - 3 * var(--sj-s4)) / 4));
  }
}
@media (max-width: 47.99rem) {
  .sj-rail,
  .sj-related .sj-rail {
    grid-auto-columns: 72%;
  }
}
/* Cards keep their own dark text on any band. */
.sj-pcard {
  color: var(--sj-text);
}
/* "Cijena na upit" reads as a note, not as a price. */
.sj-pcard__price:not([data-sj-price]) {
  font-size: var(--sj-text-md);
  color: var(--sj-text-2);
}

/* ---------- Documentation column: between maker and price, PDFs for a quick download ---------- */

.sj-table th.sj-th--docs,
.sj-table td[data-col="docs"] {
  width: 1%;
  white-space: nowrap;
}
.sj-table td[data-col="docs"] .sj-rowdocs {
  margin: 0;
}

/* Cards: the documents sit on the picture's corner. */
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="docs"] {
  grid-area: img;
  z-index: 2;
  justify-self: end;
  align-self: start;
  width: auto;
  margin: var(--sj-s3) var(--sj-s3) 0 0;
}
:root[data-sj-view="cards"] [data-sj-views] .sj-table td[data-col="docs"]:empty {
  display: none;
}

/* Phones (list rows): next to the availability, so a sheet is one tap away. */
@media (max-width: 47.99rem) {
  :root:not([data-sj-view="cards"]) .sj-table td[data-col="docs"]:not(:empty) {
    display: block;
    grid-area: avail;
    justify-self: end;
    align-self: center;
  }
}

/* ---------- Manufacturer page (inc/brands.php): head, story, questions ---------- */

.sj-brandhero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--sj-blue-deep);
  color: var(--sj-white);
}
.sj-brandhero__band {
  position: absolute;
  z-index: -1;
  inset: 0 -20% 0 62%;
  background: var(--sj-blue);
  transform: skewX(-14deg);
  transform-origin: bottom left;
}
.sj-brandhero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: center;
  gap: var(--sj-s7);
  padding-block: var(--sj-s6) var(--sj-s7);
}
.sj-brandhero__text {
  display: grid;
  gap: var(--sj-s3);
  max-width: 46rem;
}
.sj-brandhero .woocommerce-breadcrumb,
.sj-brandhero .woocommerce-breadcrumb a {
  color: var(--sj-blue-deep-text);
}
.sj-brandhero h1 {
  font: 700 clamp(2.25rem, 5vw, 4rem) / 0.95 var(--sj-font-head);
  text-transform: uppercase;
}
.sj-brandhero__tagline {
  font: 700 var(--sj-text-lg) / 1.25 var(--sj-font-head);
  color: var(--sj-white);
}
.sj-brandhero__intro {
  max-width: 62ch;
  color: var(--sj-blue-deep-text);
  font-size: var(--sj-text-md);
}
.sj-brandhero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s3);
  margin-top: var(--sj-s2);
}
.sj-brandhero__actions .sj-btn--secondary {
  border-color: var(--sj-white);
  background: transparent;
  color: var(--sj-white);
}
.sj-brandhero__actions .sj-btn--secondary:hover {
  background: var(--sj-white);
  color: var(--sj-blue-deep);
}
.sj-brandhero__card {
  display: grid;
  gap: var(--sj-s4);
  padding: var(--sj-s5);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
  color: var(--sj-text);
  box-shadow: 0 18px 40px -20px var(--sj-shade);
}
.sj-brandhero__logo {
  display: grid;
  place-items: center;
  height: 6rem;
}
.sj-brandhero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sj-brandhero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: var(--sj-rule);
}
.sj-brandhero__facts > div {
  padding: var(--sj-s3) 0;
  border-bottom: var(--sj-rule);
}
.sj-brandhero__facts > div:nth-child(odd) {
  padding-right: var(--sj-s3);
}
.sj-brandhero__facts dt {
  font: 700 var(--sj-text-xs) var(--sj-font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sj-text-2);
}
.sj-brandhero__facts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sj-brandstory {
  margin-top: var(--sj-s8);
  padding-top: var(--sj-s8);
  border-top: var(--sj-rule);
}
.sj-brandstory__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: var(--sj-s7);
  align-items: start;
}
.sj-brandstory__main {
  display: grid;
  gap: var(--sj-s4);
  max-width: 68ch;
  font-size: var(--sj-text-md);
  line-height: 1.65;
}
.sj-brandstory__main h3 {
  margin-top: var(--sj-s3);
  font: 700 var(--sj-text-lg) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-brandstory__side {
  display: grid;
  gap: var(--sj-s4);
  position: sticky;
  top: calc(var(--sj-header-h) + var(--sj-s4));
}
.sj-brandstory__box {
  display: grid;
  gap: var(--sj-s3);
  padding: var(--sj-s5);
  border: var(--sj-rule);
  border-top: 4px solid var(--sj-blue);
  border-radius: var(--sj-radius);
}
.sj-brandstory__box h3 {
  font: 700 var(--sj-text-lg) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-brandstory__box--b2b {
  border-color: var(--sj-blue-tint);
  border-top-color: var(--sj-blue);
  background: var(--sj-blue-tint);
}
.sj-brandstory__range {
  display: grid;
  gap: var(--sj-s2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--sj-text-sm);
}
.sj-brandstory__range li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sj-s2);
}
.sj-brandstory__range .sj-icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  color: var(--sj-blue);
}
.sj-brandstory__web {
  display: flex;
  align-items: center;
  gap: var(--sj-s2);
  font-weight: 600;
  font-size: var(--sj-text-sm);
}
.sj-brandfaq {
  display: grid;
  gap: var(--sj-s2);
  margin-top: var(--sj-s8);
}
.sj-brandfaq > .sj-faq {
  max-width: 60rem;
}
.sj-brandfaq .sj-display {
  margin-bottom: var(--sj-s3);
}
.sj-faq {
  border: var(--sj-rule);
  border-radius: var(--sj-radius);
}
.sj-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sj-s3);
  min-height: 3.5rem;
  padding: var(--sj-s3) var(--sj-s4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.sj-faq summary::-webkit-details-marker {
  display: none;
}
.sj-faq summary .sj-icon {
  flex: none;
  color: var(--sj-blue);
  transition: transform var(--sj-fast) var(--sj-ease-out);
}
.sj-faq[open] summary .sj-icon {
  transform: rotate(180deg);
}
.sj-faq p {
  max-width: 68ch;
  padding: 0 var(--sj-s4) var(--sj-s4);
  color: var(--sj-text-2);
}
.sj-brandmore {
  margin-top: var(--sj-s8);
}

@media (max-width: 63.99rem) {
  .sj-brandhero__inner,
  .sj-brandstory__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-brandhero__band {
    inset: 55% -40% 0 30%;
  }
  .sj-brandhero__card {
    max-width: 30rem;
  }
  .sj-brandstory__side {
    position: static;
  }
}
@media (max-width: 47.99rem) {
  .sj-brandhero__inner {
    gap: var(--sj-s5);
    padding-block: var(--sj-s4) var(--sj-s6);
  }
  .sj-brandstory {
    margin-top: var(--sj-s7);
    padding-top: var(--sj-s7);
  }
}
@keyframes sj-blink {
  50% {
    opacity: 0;
  }
}

/* Portal page parts: how it starts, who it is for, questions */
.sj-howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sj-s5);
  margin: var(--sj-s5) 0 0;
  padding: 0;
  list-style: none;
}
.sj-howto li {
  display: grid;
  align-content: start;
  gap: var(--sj-s2);
  padding: var(--sj-s5);
  border: var(--sj-rule);
  border-top: 4px solid var(--sj-blue);
  border-radius: var(--sj-radius);
}
.sj-howto__n {
  color: var(--sj-blue);
  font: 700 2.5rem / 1 var(--sj-font-head);
  font-variant-numeric: tabular-nums;
}
.sj-howto h3,
.sj-who h3 {
  font: 700 var(--sj-text-lg) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-howto p,
.sj-who p {
  color: var(--sj-text-2);
}
.sj-howto__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s3);
  margin-top: var(--sj-s5);
}
.sj-who {
  margin-top: var(--sj-s8);
  padding-block: var(--sj-s8);
  background: var(--sj-panel);
}
.sj-who__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sj-s5);
  margin: var(--sj-s5) 0 0;
  padding: 0;
  list-style: none;
}
.sj-who__list li {
  display: grid;
  align-content: start;
  gap: var(--sj-s2);
  padding: var(--sj-s5);
  border-radius: var(--sj-radius);
  background: var(--sj-white);
}
.sj-who__list .sj-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: var(--sj-radius);
  background: var(--sj-blue);
  color: var(--sj-white);
}
@media (max-width: 47.99rem) {
  .sj-who {
    margin-top: var(--sj-s7);
    padding-block: var(--sj-s7);
  }
}

/* Portal page: photo band from the field */
.sj-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sj-s7);
  margin-top: var(--sj-s8);
}
.sj-field__img {
  width: 100%;
  height: auto;
  border-radius: var(--sj-radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.sj-field__text {
  display: grid;
  gap: var(--sj-s4);
  max-width: 34rem;
}
.sj-field__text p {
  color: var(--sj-text-2);
}
.sj-field__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s3);
}
@media (max-width: 63.99rem) {
  .sj-field {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sj-s5);
  }
}

/* Category text under the list (inc/seo.php): what is in the category and what to watch for */
.sj-cattext {
  display: grid;
  gap: var(--sj-s3);
  margin-top: var(--sj-s7);
  padding-top: var(--sj-s6);
  border-top: var(--sj-rule);
}
.sj-cattext > * {
  max-width: 72ch;
}
.sj-cattext__title {
  font: 700 var(--sj-text-xl) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-cattext p {
  color: var(--sj-text-2);
  line-height: 1.65;
}
.sj-cattext__b2b {
  font-weight: 600;
}

/* Empty results: the way on (search again, catalogue, contact, top categories) */
.sj-empty-state {
  display: grid;
  gap: var(--sj-s4);
  padding-block: var(--sj-s6);
}
.sj-empty-state > p {
  max-width: 60ch;
  color: var(--sj-text-2);
}
.sj-empty-state__more {
  margin-top: var(--sj-s4);
  font: 700 var(--sj-text-lg) var(--sj-font-head);
  text-transform: uppercase;
}
.sj-empty-state__cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sj-rule);
}
.sj-empty-state__cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--sj-tap);
  padding-right: var(--sj-s4);
  border-bottom: var(--sj-rule);
  font-weight: 600;
  text-decoration: none;
}
.sj-empty-state__cats span {
  color: var(--sj-text-3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 47.99rem) {
  .sj-howto,
  .sj-who__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- B2B portal showcase (inc/portal.php): home and /b2b-portal/, 10. 11. 2026. ----------
   Deep-blue plane with the logo's fan hidden large in the corner; four benefits on the left, real
   screens of the portal on the right (assets/img/portal: home, invoices, phone), stacked like
   sheets on a desk. The screens float, so they carry the one shadow of the system. */

.sj-portal {
  position: relative;
  overflow: hidden;
  background: var(--sj-blue-deep);
  color: var(--sj-white);
}
.sj-portal__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sj-s7);
  align-items: center;
  padding-block: var(--sj-s8);
}
.sj-portal__title {
  font: 700 clamp(2.25rem, 4vw, 3.25rem) / 0.98 var(--sj-font-head);
  text-transform: uppercase;
}
.sj-portal__lead {
  max-width: 34ch;
  margin-top: var(--sj-s4);
  color: var(--sj-blue-deep-text);
  font-size: var(--sj-text-lg);
  line-height: 1.4;
}
.sj-portal__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sj-s5);
  margin: var(--sj-s6) 0 0;
  padding: var(--sj-s6) 0 0;
  border-top: 1px solid var(--sj-blue-deep-line);
  list-style: none;
}
.sj-portal__benefits li {
  display: grid;
  align-content: start;
  gap: var(--sj-s1);
}
.sj-portal__benefits .sj-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--sj-s1);
  color: var(--sj-white);
}
.sj-portal__benefits strong {
  font: 700 var(--sj-text-md) / 1.2 var(--sj-font-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sj-portal__benefits span {
  color: var(--sj-blue-deep-text);
  font-size: var(--sj-text-sm);
}
.sj-portal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sj-s3);
  margin-top: var(--sj-s6);
}

/* The real screens */
.sj-shots {
  position: relative;
  aspect-ratio: 16 / 12;
}
.sj-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--sj-white);
  box-shadow: 0 30px 60px -24px rgb(0 20 40 / 0.6);
}
.sj-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.sj-shot--main {
  top: 0;
  left: 0;
  width: 84%;
}
.sj-shot--side {
  right: 0;
  bottom: 4%;
  width: 58%;
}
.sj-shot--phone {
  bottom: 0;
  left: 6%;
  width: 21%;
  border: 6px solid #0b1620;
  border-radius: 22px;
}

.sj-portal > .sj-fanmark {
  right: -9rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
}

@media (max-width: 79.99rem) {
  .sj-portal__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .sj-shots {
    max-width: 52rem;
  }
}
@media (max-width: 47.99rem) {
  .sj-portal__inner {
    gap: var(--sj-s6);
    padding-block: var(--sj-s7);
  }
  .sj-portal__benefits {
    gap: var(--sj-s4) var(--sj-s3);
  }
  .sj-shot--side {
    display: none;
  }
  .sj-shot--main {
    width: 92%;
  }
  .sj-shot--phone {
    left: auto;
    right: 0;
    width: 34%;
  }
  .sj-shots {
    aspect-ratio: 16 / 13;
  }
}

/* Real screens of the portal on /b2b-portal/ */
.sj-screens__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sj-s5);
  margin: var(--sj-s5) 0 0;
  padding: 0;
  list-style: none;
}
.sj-screens figure {
  margin: 0;
}
.sj-screens img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: var(--sj-rule);
  border-radius: 6px;
}
.sj-screens figcaption {
  margin-top: var(--sj-s2);
  font-weight: 600;
}
@media (max-width: 79.99rem) {
  .sj-who__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 47.99rem) {
  .sj-screens__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phones (11. 11. 2026., user: the second card fell off the screen): two whole cards side by
   side, the rest a swipe away, with tighter padding so name, price and button fit. */
@media (max-width: 47.99rem) {
  .sj-rail,
  .sj-related .sj-rail {
    grid-auto-columns: calc((100% - var(--sj-s3)) / 2);
    gap: var(--sj-s3);
  }
  .sj-rail .sj-pcard {
    padding: 0 var(--sj-s3) var(--sj-s3);
  }
  .sj-rail .sj-pcard__name {
    font-size: var(--sj-text-sm);
  }
  .sj-rail .sj-pcard .sj-btn {
    width: 100%;
    padding-inline: var(--sj-s2);
    gap: var(--sj-s1);
  }
}
@media (max-width: 47.99rem) {
  .sj-rail .sj-pcard .sj-avail {
    align-items: flex-start;
    font-size: var(--sj-text-xs);
    white-space: normal;
  }
}
