/* Catalogue sort + filter bar (Nov 2026) — markup from incs/catalog_filters.php, behaviour in assets/js/catalog-filters.js.
   Builds on the theme's .product-config-area / .product-filter-sort / .dropdown-show styles in style.css. */

#catalogoutput { transition: opacity .15s ease; min-height: 200px; }
#catalogoutput.dsc-cat-loading { opacity: .45; pointer-events: none; }

/* let the dropdowns wrap instead of overflowing */
.dsc-cat-bar .product-config-right { flex-wrap: wrap; row-gap: 10px; }
.dsc-cat-bar .product-config-right ul.product-filter-sort { display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px; margin: 0; }
.dsc-cat-bar .product-config-right ul.product-filter-sort li.dsc-cat-dd { margin-left: 18px; }
.dsc-cat-bar .product-config-right ul.product-filter-sort li.dsc-cat-dd:first-child { margin-left: 18px; }

.dsc-cat-dd > .arrow-toggle { background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap; color: inherit; font: inherit; }
.dsc-cat-dd.is-set > .arrow-toggle strong { font-weight: 700; }
.dsc-cat-dd.is-set > .arrow-toggle { color: #000; }

/* long lists (brands, sizes) scroll */
.product-config-area .product-config-right ul.product-filter-sort li.dsc-cat-dd .dropdown-nav { max-height: 360px; overflow-y: auto; min-width: 190px; }
.dsc-cat-dd .dropdown-nav .dsc-cat-count { opacity: .55; font-size: .92em; margin-left: 2px; }
.dsc-cat-dd .dropdown-nav a.active .dsc-cat-count,
.dsc-cat-dd .dropdown-nav a:hover .dsc-cat-count { opacity: .8; }

/* tap/click open (touch screens) — mirrors the theme's :hover rule */
.dsc-cat-dd.is-open > .dropdown-nav {
	pointer-events: visible; visibility: visible; opacity: 1;
	-webkit-transform: none; transform: none;
}
.dsc-cat-dd.is-open .arrow-toggle:after { -webkit-transform: rotate(180deg); transform: rotate(180deg); }

/* active filter chips */
.dsc-cat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.dsc-cat-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: #262626; color: #fff !important; border-radius: 30px;
	padding: 5px 12px; font-size: 1.3rem; line-height: 1.4; text-decoration: none;
}
.dsc-cat-chip:hover { background: #000; }
.dsc-cat-chip span { font-size: 1.1em; line-height: 1; opacity: .8; }
.dsc-cat-clear { font-size: 1.3rem; text-decoration: underline; margin-left: 4px; color: #262626; }

.dsc-cat-none { text-align: center; padding: 40px 15px; }
.dsc-cat-none h3 { margin-bottom: 18px; }

@media (max-width: 767.98px) {
	.dsc-cat-bar .product-config-right { justify-content: flex-start; }
	.dsc-cat-bar .product-config-right ul.product-filter-sort { width: 100%; margin-top: 10px; }
	.dsc-cat-bar .product-config-right ul.product-filter-sort li.dsc-cat-dd,
	.dsc-cat-bar .product-config-right ul.product-filter-sort li.dsc-cat-dd:first-child { margin-left: 0; margin-right: 18px; }
	/* open towards the screen, not off its left edge */
	.product-config-area .product-config-right ul.product-filter-sort li.dsc-cat-dd .dropdown-nav { left: 0; right: auto; }
}
