/**
 * Premium supplier archive (/premium-brand/<slug>/) — design/BOZPOshop PUMA
 * kategoria a produkt (1).html, "Turn 7". Loaded only there
 * (inc/supplier-archive.php), on top of category.css: the layout is the
 * category's, this file swaps in the supplier palette and adds the quick facet
 * buttons of the dark toolbar with their pop-overs (assets/js/category.js).
 *
 * The supplier palette arrives as --sup-* custom properties on
 * body.bozpo-sup-archive (inline style); fixed colours are tokens.
 *
 * @package Bozpo_Custom
 */

.bozpo-sup-archive {
	--sup-head-bg: var(--c-hero-band);
	--sup-head-line: var(--c-hero-line);
	--sup-accent: var(--color-primary);
	--sup-accent-dark: var(--color-primary-strong);
	--sup-dark: var(--c-band-dark);
	--sup-chip-bg: var(--surface-soft);
	--sup-chip-line: var(--color-border);
}

/* ============================== Hero band ============================== */
.category-hero--sup {
	background: var(--sup-head-bg);
	border-bottom-color: var(--sup-head-line);
}

.category-hero--sup .category-hero__subcats-count {
	background: var(--sup-accent);
}

.category-hero--sup .category-hero__subcats-toggle {
	border-color: var(--sup-head-line);
}

/* Collection tile of the active "Kolekcia" facet. */
.category-hero--sup .category-subcat.is-active {
	box-shadow: inset 0 0 0 2px var(--sup-accent);
}

/* ============================== Toolbar ============================== */
.category-toolbar--sup .category-toolbar__bar {
	background: var(--sup-dark);
}

.category-toolbar--sup .category-toolbar__filters {
	background: var(--sup-accent);
}

.category-toolbar--sup .category-toolbar__filters:hover {
	background: var(--sup-accent-dark);
}

.category-toolbar--sup .category-toolbar__sort {
	margin-left: auto;
}

.category-toolbar--sup .category-toolbar__sort select:focus {
	outline-color: var(--sup-accent);
}

.category-toolbar--sup .category-toolbar__chip {
	background: var(--sup-chip-bg);
	border-color: var(--sup-chip-line);
	color: var(--sup-accent-dark);
}

.category-toolbar--sup .category-toolbar__chip:hover {
	background: var(--sup-chip-line);
}

/* Quick facets — desktop only; on narrower screens every filter is in the drawer. */
.category-toolbar__quick {
	display: none;
}

.category-toolbar__quick-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	white-space: nowrap;
	padding: var(--space-10) var(--space-14);
	background: var(--surface-on-dark-3);
	border: 1px solid var(--border-on-dark-soft);
	border-radius: var(--radius-10);
	color: var(--c-white);
	font-family: var(--font-body);
	font-size: var(--text-13);
	font-weight: 500;
	cursor: pointer;
}

.category-toolbar__quick-btn[hidden] {
	display: none;
}

.category-toolbar__quick-btn:hover,
.category-toolbar__quick-btn[aria-expanded="true"] {
	border-color: var(--c-white);
}

.category-toolbar__quick-btn svg {
	width: 12px;
	height: 12px;
	opacity: .6;
	transition: transform .15s;
}

.category-toolbar__quick-btn[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.category-toolbar__quick-count {
	padding: var(--space-1) var(--space-7);
	background: var(--sup-accent);
	border-radius: var(--radius-pill);
	font-size: var(--text-11-5);
	font-weight: 600;
}

.category-toolbar__quick-count[hidden] {
	display: none;
}

/* The facet itself stays in the drawer — the SPA listens there — and is shown
   in place as a fixed pop-over under its button (coordinates from category.js). */
.product-filters-shell--pop .product-filters {
	transform: none;
	transition: none;
}

.product-filters-shell--pop .oxy-wa-is-facet.is-popped {
	position: fixed;
	top: var(--pop-top, 0);
	left: var(--pop-left, 0);
	z-index: 71;
	width: 300px;
	max-height: min(420px, 60vh);
	overflow: auto;
	padding: var(--space-14) var(--space-16);
	background: var(--surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-12);
	box-shadow: var(--shadow-panel);
	visibility: visible;
	pointer-events: auto;
}

.product-filters-shell--pop .oxy-wa-is-facet.is-popped .wa-is-facet-title {
	display: none;
}

/* The supplier facet is the archive itself. */
.bozpo-sup-archive .wa-is-facet[data-facet="product_brand"] {
	display: none;
}

@media (min-width: 981px) {
	.category-toolbar__quick {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--space-10);
		padding-left: var(--space-10);
		border-left: 1px solid var(--border-on-dark-soft);
	}

	.category-toolbar__quick:not(:has(.category-toolbar__quick-btn:not([hidden]))) {
		display: none;
	}
}
