/* Optional visual layer. Remove these assets to restore the original slider. */
body.tv18-site #rail {
  gap: 10px;
  padding: 8px 6px 13px;
  scroll-padding-inline: 6px;
  scrollbar-width: thin;
  scrollbar-color: #c9c1c3 transparent;
}
body.tv18-site #rail::-webkit-scrollbar { display: block; height: 4px; }
body.tv18-site #rail::-webkit-scrollbar-thumb { background: #c9c1c3; border-radius: 8px; }
body.tv18-site #rail .tp-type {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 3px;
  width: 180px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--tv-line, #e5e1db);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: var(--tv-ink, #1a1a1a);
  white-space: normal;
  text-align: start;
  align-content: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}
body.tv18-site #rail .tp-type > i {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #f8f7f5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
body.tv18-site #rail .tp-type > i img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
body.tv18-site #rail .tp-type > i.has-category-photo > :not(img) { display: none; }
body.tv18-site #rail .tp-type > i svg { width: 26px; height: 26px; }
body.tv18-site #rail .taviar-category-name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font: 500 14px/1.35 var(--tv-he, Arial, sans-serif);
  overflow-wrap: normal;
}
body.tv18-site #rail .tp-type > small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  color: var(--tv-text2, #5c5c62);
  font: 400 11px/1.4 var(--tv-he, Arial, sans-serif);
  font-variant-numeric: tabular-nums;
}
body.tv18-site #rail .tp-type > small::after { content: 'מוצרים'; display: inline-block; margin-inline-start: 4px; }
body.tv18-site #rail .tp-type[hidden] { display: none !important; }
body.tv18-site #rail .tp-type:hover { background: #fcfbfa; border-color: #b8a5ac; }
body.tv18-site #rail .tp-type[aria-current='true'] {
  border-color: var(--tv-burg, #761d2f);
  background: #fff;
  color: var(--tv-burg, #761d2f);
}
body.tv18-site #rail .tp-type[aria-current='true']::after {
  content: '';
  position: absolute;
  inset-inline: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--tv-burg, #761d2f);
}
body.tv18-site #rail .tp-type:focus-visible { outline: 3px solid var(--tv-burg, #761d2f); outline-offset: 3px; }
@media (max-width: 600px) {
  body.tv18-site #rail { gap: 8px; }
  body.tv18-site #rail .tp-type { width: 162px; min-height: 84px; padding: 10px; column-gap: 8px; grid-template-columns: 48px minmax(0, 1fr); }
  body.tv18-site #rail .tp-type > i { width: 48px; height: 48px; }
  body.tv18-site #rail .tp-type > i img { width: 44px; height: 44px; }
  body.tv18-site #rail .taviar-category-name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.tv18-site #rail .tp-type { transition: none; }
}

/* Hide irrelevant and zero-result facets even when legacy flex rules apply. */
body.pg-cat #fWrap [hidden],body.pg-cat #fWrap .tp-fg[hidden]{display:none!important;}
