/* Listing pages - filters, sort, chips, pages (owner 2026-11-10, qa/listing-ux-2026-11-10/README.md).
   Ships IN the WAR (origin /static/www/css/, the name must never exist on the static disk) and is linked only by the
   listing pages (search/productSearch.jsp, search/productOffer.jsp), after jb-ds.css; versioned by checksum (plugin.jsp).
   Markup: search/categoryLeftBar.jsp (.jb-lst-filters), search/categoryRightBar.jsp (.jb-lst-main), behaviour in
   jb-listing.js. Tokens are jb-ds.css's (--jb-*). Desktop >= 992 px: filters are a left column; below that they are a
   full-screen sheet opened by "Filter". */

/* ------------------------------------------------------------------------------------------------ page head */
.catalougue-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: var(--jb-space-4) 0 var(--jb-space-2); text-align: left; }
.catalougue-name h1.title { margin: 0; text-transform: none; }   /* face / size / line height / colour: jb-ds.css page-title rule (2026-11-13 - was 28 / 22 px) */
.catalougue-name > div { font-size: 15px; color: var(--jb-color-ink-3); }
.panel-section .container:has(> .catalougue-name) { width: auto; max-width: none; padding: 0; }

/* ------------------------------------------------------------------------------------------------ layout */
.row.jb-lst { display: block; margin: 0 0 var(--jb-space-8); }
.row.jb-lst::after { content: none; }
.jb-lst #catalougePanel.jb-lst-main { float: none !important; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
@media (min-width: 992px) {
	.row.jb-lst { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--jb-space-8); align-items: start; }
	.row.jb-lst.jb-lst--nofilters { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------------------------------------ breadcrumb */
/* Materialize 0.100 draws every <nav> as the red 56 px app bar (background, white text, fixed height) - not these two. */
nav.jb-lst-crumbs, nav.jb-lst-pages { width: auto; height: auto; line-height: normal; background: none; box-shadow: none; color: inherit; }
.jb-lst-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 var(--jb-space-2); padding: 0; list-style: none; font-size: 14px; color: var(--jb-color-ink-3); }
.jb-lst-crumbs li { display: inline-flex; align-items: center; list-style: none; }
.jb-lst-crumbs li + li::before { content: "/"; margin: 0 var(--jb-space-2); color: var(--jb-color-ink-3); }
.jb-lst-crumbs a { color: var(--jb-color-ink-2); text-decoration: none; }
.jb-lst-crumbs a:hover { color: var(--jb-color-action); text-decoration: underline; }
.jb-lst-crumbs [aria-current] { color: var(--jb-color-ink); }

/* ------------------------------------------------------------------------------------------------ toolbar */
.jb-lst-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--jb-space-2) var(--jb-space-3); margin: 0 0 var(--jb-space-3);
	padding: var(--jb-space-2) 0; border-bottom: 1px solid var(--jb-color-line); background: var(--jb-color-surface); }
.jb-lst-status { margin: 0 auto 0 0; font-size: 15px; color: var(--jb-color-ink-2); }
.jb-lst-sort { display: inline-flex; align-items: center; gap: var(--jb-space-2); margin: 0; }
.jb-lst-sort__label { margin: 0; font-size: 15px; color: var(--jb-color-ink-2); }
.jb-lst-sort__control { position: relative; display: inline-flex; align-items: center; }
.jb-lst-sort__icon { position: absolute; left: 10px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
	fill: none; stroke: var(--jb-color-ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jb-lst-sort .jb-lst-sort__select { display: inline-block; width: auto; height: 40px; min-height: 40px; margin: 0; padding: 0 34px 0 36px;
	border: 1px solid var(--jb-color-line-strong); border-radius: var(--jb-radius-sm); background-color: var(--jb-color-surface);
	font: 400 15px/1.2 var(--jb-font-medium); color: var(--jb-color-ink); cursor: pointer; }
.jb-lst-sort .jb-lst-sort__select:focus { outline: 2px solid var(--jb-color-focus); outline-offset: 2px; }
.jb-lst-sort__apply { min-height: 40px; padding: 0 var(--jb-space-3); border: 1px solid var(--jb-color-action); border-radius: var(--jb-radius-sm);
	background: var(--jb-color-surface); color: var(--jb-color-action); font: 400 14px/1 var(--jb-font-medium); cursor: pointer; }
.jb-lst-js .jb-lst-sort__apply { display: none; }

.jb-lst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--jb-tap); padding: 0 var(--jb-space-4);
	border: 1.5px solid var(--jb-color-line-strong); border-radius: var(--jb-radius-sm); background: var(--jb-color-surface); color: var(--jb-color-ink);
	font: 400 15px/1.2 var(--jb-font-medium); text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
.jb-lst-btn:hover { border-color: var(--jb-color-action); color: var(--jb-color-action); }
.jb-lst-btn svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.jb-lst-btn--primary, .jb-lst-apply { border-color: var(--jb-color-action); background: var(--jb-color-action); color: #fff !important; }
.jb-lst-btn--primary:hover, .jb-lst-apply:hover { background: var(--jb-color-action-pressed); border-color: var(--jb-color-action-pressed); color: #fff; }
.jb-lst-btn--ghost { border-color: transparent; background: transparent; color: var(--jb-color-action); }
.jb-lst-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: var(--jb-radius-pill); background: var(--jb-color-action); color: #fff; font-size: 12px; line-height: 1; }
.jb-lst-filter-btn { display: none; }
.jb-lst-link { color: var(--jb-color-action); font: 400 14px/1.2 var(--jb-font-medium); text-decoration: none; }
.jb-lst-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------------------------------------ chips */
.jb-lst-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--jb-space-2); margin: 0 0 var(--jb-space-4); padding: 0; list-style: none; }
.jb-lst-chips li { list-style: none; }
.jb-lst-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--jb-space-2) 0 var(--jb-space-3);
	border: 1px solid var(--jb-color-line-strong); border-radius: var(--jb-radius-pill); background: var(--jb-color-paper);
	color: var(--jb-color-ink); font-size: 14px; line-height: 1.2; text-decoration: none; }
.jb-lst-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.jb-lst-chip:hover { border-color: var(--jb-color-action); color: var(--jb-color-action); }
.jb-lst-chips__clear { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--jb-space-2); }

/* ------------------------------------------------------------------------------------------------ nothing matched */
.jb-lst-nomatch { margin: var(--jb-space-4) 0 var(--jb-space-8); padding: var(--jb-space-8) var(--jb-space-4); text-align: center;
	border: 1px dashed var(--jb-color-line-strong); border-radius: var(--jb-radius-md); background: var(--jb-color-paper); }
.jb-lst-nomatch__title { margin: 0 0 var(--jb-space-2); font: 400 18px/1.3 var(--jb-font-medium); color: var(--jb-color-ink); }
.jb-lst-nomatch__text { margin: 0 0 var(--jb-space-4); color: var(--jb-color-ink-2); }

/* ------------------------------------------------------------------------------------------------ busy (a choice is loading) */
.jb-lst-busy #product-listing-div, .jb-lst-busy .jb-lst-pages { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* ------------------------------------------------------------------------------------------------ pages */
.jb-lst-pages { margin: var(--jb-space-6) 0 var(--jb-space-4); }
.jb-lst-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--jb-space-2); margin: 0; padding: 0; list-style: none; }
.jb-lst-pages li { list-style: none; }
.jb-lst-page { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: var(--jb-tap); min-height: var(--jb-tap);
	padding: 0 var(--jb-space-3); border: 1px solid var(--jb-color-line-strong); border-radius: var(--jb-radius-sm); background: var(--jb-color-surface);
	color: var(--jb-color-ink); font: 400 15px/1 var(--jb-font-medium); text-decoration: none; }
.jb-lst-page:hover { border-color: var(--jb-color-action); color: var(--jb-color-action); }
.jb-lst-page.is-current { border-color: var(--jb-color-action); background: var(--jb-color-action); color: #fff; }

/* ------------------------------------------------------------------------------------------------ filter panel */
.jb-lst-filters { background: var(--jb-color-surface); border: 1px solid var(--jb-color-line); border-radius: var(--jb-radius-md); }
.jb-lst-form { margin: 0; }
.jb-lst-filters__head { display: flex; align-items: center; gap: var(--jb-space-3); padding: var(--jb-space-3) var(--jb-space-4);
	border-bottom: 1px solid var(--jb-color-line); }
.jb-lst-filters .jb-lst-filters__title { margin: 0 auto 0 0; font: 400 17px/1.3 var(--jb-font-bold); color: var(--jb-color-ink); text-transform: none; }
.jb-lst-sheet-close { display: none; }
.jb-lst-filters__foot { display: flex; gap: var(--jb-space-2); padding: var(--jb-space-3) var(--jb-space-4); border-top: 1px solid var(--jb-color-line); }
.jb-lst-filters__foot .jb-lst-apply { flex: 1 1 auto; }

.jb-lst-group { border-bottom: 1px solid var(--jb-color-line); }
.jb-lst-group:last-child { border-bottom: 0; }
.jb-lst-group__head { display: flex; align-items: center; gap: var(--jb-space-2); min-height: var(--jb-tap); padding: var(--jb-space-2) var(--jb-space-4);
	cursor: pointer; list-style: none; font: 400 15px/1.3 var(--jb-font-medium); color: var(--jb-color-ink); user-select: none; }
.jb-lst-group__head::-webkit-details-marker { display: none; }
.jb-lst-group__head::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--jb-color-ink-2);
	border-bottom: 2px solid var(--jb-color-ink-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.jb-lst-group[open] > .jb-lst-group__head::after { transform: rotate(-135deg) translate(-2px, -2px); }
.jb-lst-group__head:focus-visible { outline: 2px solid var(--jb-color-focus); outline-offset: -2px; }
.jb-lst-group__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: var(--jb-radius-pill); background: var(--jb-color-action-tint); color: var(--jb-color-action); font-size: 12px; }
.jb-lst-group__body { padding: 0 var(--jb-space-4) var(--jb-space-3); }

.jb-lst-opts, .jb-lst-cats { margin: 0; padding: 0; list-style: none; }
.jb-lst-opts li, .jb-lst-cats li { list-style: none; }
.jb-lst-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; padding: 2px 0; cursor: pointer;
	font-size: 15px; line-height: 1.3; color: var(--jb-color-ink); }
.jb-lst-opt__label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.jb-lst-opt__count { flex: 0 0 auto; margin-left: auto; font-size: 13px; color: var(--jb-color-ink-3); font-variant-numeric: tabular-nums; }
.jb-lst-opt:hover .jb-lst-opt__label { color: var(--jb-color-action); }
/* Materialize 0.100 hides every checkbox / radio and draws its own through "+ label" - here they are real controls. */
.jb-lst-opt input[type="checkbox"], .jb-lst-opt input[type="radio"] { position: static !important; left: auto !important; opacity: 1 !important;
	pointer-events: auto !important; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--jb-color-action); }
.jb-lst-opt input + span { padding-left: 0 !important; height: auto !important; line-height: inherit !important; }
.jb-lst-opt input + span::before, .jb-lst-opt input + span::after { content: none !important; display: none !important; }
.jb-lst-opt input:focus-visible { outline: 2px solid var(--jb-color-focus); outline-offset: 2px; }

.jb-lst-cat { display: flex; align-items: center; gap: var(--jb-space-2); min-height: 36px; padding: 2px var(--jb-space-2); margin: 0 calc(-1 * var(--jb-space-2));
	border-radius: var(--jb-radius-sm); color: var(--jb-color-ink); font-size: 15px; text-decoration: none; }
.jb-lst-cat:hover { color: var(--jb-color-action); background: var(--jb-color-action-tint); }
.jb-lst-cat.is-current { background: var(--jb-color-action-tint); color: var(--jb-color-action); font-family: var(--jb-font-medium); }
.jb-lst-cat--all { color: var(--jb-color-ink-2); }
.jb-lst-cat--all::before { content: "\2039"; margin-right: 2px; }

.jb-lst-swatch { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--jb-color-line-strong);
	background: var(--jb-sw, var(--jb-color-paper)); box-shadow: inset 0 0 0 2px var(--jb-color-surface); }
.jb-lst-swatch--multi { background: conic-gradient(#C62828, #F2C230, #2E7D32, #1E5AA8, #6A3D9A, #C62828); }
.jb-lst-swatch--none { background: repeating-linear-gradient(45deg, var(--jb-color-paper) 0 4px, var(--jb-color-line) 4px 6px); }
.jb-lst-opt input:checked ~ .jb-lst-swatch { box-shadow: inset 0 0 0 2px var(--jb-color-surface), 0 0 0 2px var(--jb-color-action); }

.jb-lst-search { margin: 0 0 var(--jb-space-2); }
.jb-lst-search input.jb-lst-search__input { box-sizing: border-box; width: 100%; height: 38px; margin: 0; padding: 0 var(--jb-space-3);
	border: 1px solid var(--jb-color-line-strong); border-radius: var(--jb-radius-sm); background: var(--jb-color-surface); box-shadow: none; font-size: 15px; }
.jb-lst-search input.jb-lst-search__input:focus { border-color: var(--jb-color-focus); box-shadow: 0 0 0 1px var(--jb-color-focus); }

.jb-lst-more { margin: var(--jb-space-1) 0 0; padding: 4px 0; border: 0; background: none; color: var(--jb-color-action);
	font: 400 14px/1.3 var(--jb-font-medium); cursor: pointer; }
.jb-lst-more:focus { background: none; }
.jb-lst-more:hover { text-decoration: underline; }
/* Without script every option shows and the button has nothing to do. */
.jb-lst-more { display: none; }
.jb-lst-js .jb-lst-more { display: inline-block; }
.jb-lst-js .jb-lst-group:not(.is-expanded) .jb-lst-fold { display: none; }
.jb-lst-js .jb-lst-group.is-searching .jb-lst-fold { display: block; }
.jb-lst-group.is-searching .jb-lst-more { display: none; }
.jb-lst-opts li.jb-lst-nohit { display: none !important; }

.jb-lst-price { display: flex; align-items: flex-end; gap: var(--jb-space-2); }
.jb-lst-price__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 0; margin: 0; }
.jb-lst-price__cap { font-size: 13px; color: var(--jb-color-ink-3); }
.jb-lst-price__box { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 var(--jb-space-2); border: 1px solid var(--jb-color-line-strong);
	border-radius: var(--jb-radius-sm); background: var(--jb-color-surface); color: var(--jb-color-ink-2); }
.jb-lst-price__box:focus-within { border-color: var(--jb-color-focus); box-shadow: 0 0 0 1px var(--jb-color-focus); }
.jb-lst-price__box input[type="number"] { box-sizing: border-box; width: 100%; min-width: 0; height: 38px; margin: 0; padding: 0; border: 0 !important;
	background: none; box-shadow: none !important; font-size: 15px; color: var(--jb-color-ink); -moz-appearance: textfield; }
.jb-lst-price__box input[type="number"]::-webkit-outer-spin-button, .jb-lst-price__box input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jb-lst-price__dash { padding-bottom: 10px; color: var(--jb-color-ink-3); }
.jb-lst-price__go { flex: 0 0 auto; height: 40px; padding: 0 var(--jb-space-3); border: 1px solid var(--jb-color-action); border-radius: var(--jb-radius-sm);
	background: var(--jb-color-surface); color: var(--jb-color-action); font: 400 14px/1 var(--jb-font-medium); cursor: pointer; }
.jb-lst-price__go:hover, .jb-lst-price__go:focus { background: var(--jb-color-action); color: #fff; }
.jb-lst-price__hint { margin: var(--jb-space-2) 0 0; font-size: 13px; color: var(--jb-color-ink-3); }

/* ------------------------------------------------------------------------------------------------ desktop: left column */
@media (min-width: 992px) {
	.jb-lst-filters { position: -webkit-sticky; position: sticky; top: var(--jb-space-4); max-height: calc(100vh - 2 * var(--jb-space-4)); overflow-y: auto; }
	.jb-lst-js .jb-lst-filters__foot { display: none; }       /* a tick applies at once; "Clear all" is in the head */
}

/* ------------------------------------------------------------------------------------------------ phones + tablets: the sheet */
@media (max-width: 991px) {
	.jb-lst-toolbar { position: -webkit-sticky; position: sticky; top: 56px; z-index: 980; margin: 0 0 var(--jb-space-3);
		padding: var(--jb-space-2) 0; box-shadow: 0 1px 0 var(--jb-color-line); border-bottom: 0; }
	.jb-lst-status { flex: 1 0 100%; font-size: 14px; }
	.jb-lst-filter-btn { display: inline-flex; flex: 1 1 0; }
	.jb-lst-sort { flex: 1 1 0; }
	.jb-lst-sort__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.jb-lst-sort__control, .jb-lst-sort .jb-lst-sort__select { width: 100%; }
	.jb-lst-sort .jb-lst-sort__select { height: var(--jb-tap); min-height: var(--jb-tap); border-width: 1.5px; }
	.jb-lst-js .jb-lst-sort { flex: 1 1 0; }
	.jb-lst-toolbar .jb-lst-sort__apply { flex: 0 0 auto; }

	.jb-lst-filters { display: none; }
	.jb-lst-filters:target, .jb-lst-sheet-open .jb-lst-filters { display: block; position: fixed; inset: 0; z-index: 2000; margin: 0;
		border: 0; border-radius: 0; background: var(--jb-color-surface); }
	.jb-lst-filters:target .jb-lst-form, .jb-lst-sheet-open .jb-lst-form { display: flex; flex-direction: column; height: 100%; }
	.jb-lst-filters__head { flex: 0 0 auto; padding-top: max(var(--jb-space-3), env(safe-area-inset-top)); }
	.jb-lst-filters__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
	.jb-lst-filters__foot { flex: 0 0 auto; padding-bottom: max(var(--jb-space-3), env(safe-area-inset-bottom)); box-shadow: 0 -2px 8px rgba(31, 33, 24, .06); }
	.jb-lst-filters__foot .jb-lst-btn { min-height: 48px; }
	.jb-lst-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: var(--jb-tap); height: var(--jb-tap);
		margin-right: calc(-1 * var(--jb-space-2)); color: var(--jb-color-ink); font-size: 30px; line-height: 1; text-decoration: none; }
	.jb-lst-opt, .jb-lst-cat { min-height: var(--jb-tap); }
	.jb-lst-opt input[type="checkbox"], .jb-lst-opt input[type="radio"] { width: 20px; height: 20px; }
	html.jb-lst-sheet-open, html.jb-lst-sheet-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.jb-lst-group__head::after, .jb-lst-busy #product-listing-div { transition: none; }
}
/* Touch screens keep :hover on the last tapped element - a filter row would stay highlighted after the tap. */
@media (hover: none) {
	.jb-lst-cat:hover { background: transparent; color: var(--jb-color-ink); }
	.jb-lst-cat.is-current:hover { background: var(--jb-color-action-tint); color: var(--jb-color-action); }
	.jb-lst-opt:hover .jb-lst-opt__label { color: inherit; }
	.jb-lst-chip:hover, .jb-lst-page:hover, .jb-lst-btn:hover { border-color: var(--jb-color-line-strong); color: var(--jb-color-ink); }
	.jb-lst-page.is-current:hover { border-color: var(--jb-color-action); color: #fff; }
	.jb-lst-apply:hover, .jb-lst-btn--primary:hover { border-color: var(--jb-color-action); background: var(--jb-color-action); color: #fff; }
}
