/* SHAHAZ Product Browse Bar (ZIP-250) — Popular · Price · Top Rated · New Arrival · Filter.
 * One bar for every product-list page; data-theme picks the page's colours. Sticky under the fixed site header
 * (the offset is measured by assets/js/shahaz-product-browse.js). No blue focus / tap colour anywhere. */
.shz-pb{
	--pb-a:#E8336D;--pb-b:#B3123E;--pb-on:#FFFFFF;--pb-accent:#D81B60;--pb-shadow:rgba(179,18,62,.25);
	--pb-ink:#24202A;--pb-muted:#8C8389;--pb-line:#ECE6EA;--pb-bg:rgba(250,248,249,.96);--pb-focus:#F2B632;
	position:sticky;top:var(--pb-top,0px);z-index:39;
	box-sizing:border-box;margin:8px 0 6px;padding:5px 6px;
	background:var(--pb-bg);-webkit-backdrop-filter:none;backdrop-filter:none;
	font-family:inherit;color:var(--pb-ink);
}
.shz-pb *,.shz-pb *::before,.shz-pb *::after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.shz-pb.is-stuck{box-shadow:none}

/* themes */
.shz-pb[data-theme="noir"]{--pb-a:#2B2130;--pb-b:#0F0B12;--pb-on:#F6D27A;--pb-accent:#A87C22;--pb-shadow:rgba(20,10,20,.32);--pb-focus:#D4AF37}
.shz-pb[data-theme="flame"]{--pb-a:#FF6A3D;--pb-b:#E3122D;--pb-accent:#E3311C;--pb-shadow:rgba(227,18,45,.28)}
.shz-pb[data-theme="ocean"]{--pb-a:#3B82F6;--pb-b:#1D4ED8;--pb-accent:#1D5FE0;--pb-shadow:rgba(29,78,216,.25);--pb-focus:#E5267A}
.shz-pb[data-theme="fresh"]{--pb-a:#22B573;--pb-b:#0B8A50;--pb-accent:#0E8F55;--pb-shadow:rgba(11,138,80,.25)}
.shz-pb[data-theme="violet"]{--pb-a:#9B6BFF;--pb-b:#6D28D9;--pb-accent:#7036E0;--pb-shadow:rgba(109,40,217,.26)}
.shz-pb[data-theme="gold"]{--pb-a:#F7CF5E;--pb-b:#D49A1F;--pb-on:#3A2604;--pb-accent:#B7801A;--pb-shadow:rgba(212,154,31,.3)}

/* ZIP-339 (owner): the bar stands still — no sideways scrolling. Buttons hug their words (smaller side
 * padding, smaller gaps; the letter size is unchanged) so all four + Filter fit from a 360px phone up. */
.shz-pb__bar{display:flex;align-items:center;gap:4px}
.shz-pb__chips{display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none;padding:2px 1px 4px} /* scrolls only on a phone narrower than 360px */
.shz-pb__chips::-webkit-scrollbar{display:none}
.shz-pb .shz-pb__chip{
	display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;height:32px;min-height:0;margin:0;padding:0 8px;
	border:1px solid var(--pb-line);border-radius:10px;background:#FFFFFF;color:var(--pb-ink);
	font:inherit;font-size:12.5px;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none;
	box-shadow:none;cursor:pointer;outline:none;transition:transform .12s ease
}
.shz-pb .shz-pb__chip:hover,.shz-pb .shz-pb__chip:focus{background:#FFFFFF;color:var(--pb-ink);outline:none;box-shadow:none}
.shz-pb .shz-pb__chip:active{transform:scale(.97)}
.shz-pb .shz-pb__chip.is-active,.shz-pb .shz-pb__chip.is-active:hover,.shz-pb .shz-pb__chip.is-active:focus{
	border-color:transparent;background:linear-gradient(180deg,var(--pb-a) 0%,var(--pb-b) 100%);color:var(--pb-on);box-shadow:none
}
.shz-pb__arrows{width:8px;height:12px;fill:currentColor;opacity:.8}
.shz-pb__arrows.is-asc path:last-child,.shz-pb__arrows.is-desc path:first-child{opacity:.3}
.shz-pb .shz-pb__filter{
	display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;height:32px;min-height:0;margin:0 0 0 auto;padding:0 2px;
	border:0;background:transparent;color:var(--pb-accent);font:inherit;font-size:13.5px;font-weight:700;box-shadow:none;cursor:pointer;outline:none
}
.shz-pb .shz-pb__filter:hover,.shz-pb .shz-pb__filter:focus{background:transparent;color:var(--pb-accent);outline:none;box-shadow:none}
.shz-pb__filter svg{width:18px;height:18px}
.shz-pb__filter.is-active svg path{fill:color-mix(in srgb,var(--pb-accent) 18%,transparent)}
.shz-pb__filter i{display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--pb-accent);color:#FFFFFF;font-size:10px;font-style:normal;font-weight:800}
.shz-pb .shz-pb__chip:focus-visible,.shz-pb .shz-pb__filter:focus-visible,.shz-pb__panel a:focus-visible,.shz-pb__panel button:focus-visible{outline:2px solid var(--pb-focus);outline-offset:2px}

/* Price / Filter panels drop down from the bar */
.shz-pb__panel{margin:6px 0 2px;padding:10px 12px;border:1px solid var(--pb-line);border-radius:12px;background:#FFFFFF;box-shadow:none}
.shz-pb__panel[hidden]{display:none}
.shz-pb__title{margin:0 0 8px;color:var(--pb-b);font-size:13px;font-weight:800}
.shz-pb[data-theme="noir"] .shz-pb__title,.shz-pb[data-theme="gold"] .shz-pb__title{color:var(--pb-accent)}
.shz-pb__options{display:flex;gap:6px;margin-bottom:8px}
.shz-pb__opt{position:relative;flex:1 1 0}
.shz-pb__opt input{position:absolute;opacity:0;pointer-events:none}
.shz-pb__opt span{display:flex;align-items:center;justify-content:center;height:34px;border:1px solid var(--pb-line);border-radius:9px;background:#FAFAFB;color:var(--pb-ink);font-size:12.5px;font-weight:700;cursor:pointer}
.shz-pb__opt input:checked + span{border-color:transparent;background:linear-gradient(180deg,var(--pb-a) 0%,var(--pb-b) 100%);color:var(--pb-on)}
.shz-pb__row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shz-pb__panel label{display:flex;flex-direction:column;gap:3px;color:var(--pb-ink);font-size:12px;font-weight:600}
.shz-pb__panel input[type="number"],.shz-pb__panel select{width:100%;height:36px;min-height:0;margin:0;padding:0 10px;border:1px solid var(--pb-line);border-radius:8px;background:#FAFAFB;color:var(--pb-ink);font-size:14px;outline:none;box-shadow:none}
.shz-pb__panel input[type="number"]:focus,.shz-pb__panel select:focus{border-color:var(--pb-accent);outline:none;box-shadow:none}
.shz-pb__field{margin-bottom:8px}
.shz-pb__panel label.shz-pb__check{flex-direction:row;align-items:center;gap:7px;margin-top:8px;font-size:12.5px}
.shz-pb__check input{width:16px;height:16px;accent-color:var(--pb-accent)}
.shz-pb__actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px}
.shz-pb__actions a{color:var(--pb-muted);font-size:13px;font-weight:600;text-decoration:none}
.shz-pb .shz-pb__actions button{height:34px;min-height:0;margin:0;padding:0 18px;border:0;border-radius:9px;background:linear-gradient(180deg,var(--pb-a) 0%,var(--pb-b) 100%);color:var(--pb-on);font:inherit;font-size:13px;font-weight:700;cursor:pointer;outline:none;box-shadow:none}
.shz-pb__result{margin:4px 4px 0;color:var(--pb-muted);font-size:12px}
.shz-pb__result a{color:var(--pb-accent);font-weight:700;text-decoration:none}

/* ZIP-339: small phones — a little less side room so the bar still never scrolls */
@media (max-width:380px){
	.shz-pb{padding-left:4px;padding-right:4px}
	.shz-pb__bar,.shz-pb__chips{gap:3px}
	.shz-pb .shz-pb__chip{padding:0 6px}
}
@media (max-width:340px){
	.shz-pb .shz-pb__chip{font-size:12px;padding:0 5px}
	.shz-pb .shz-pb__filter{font-size:12.5px}
}

/* tablet + desktop: a little roomier, panels sit under the bar at a readable width */
@media (min-width:768px){
	.shz-pb{padding:7px 10px}
	.shz-pb__bar,.shz-pb__chips{gap:6px}
	.shz-pb .shz-pb__chip{height:36px;padding:0 12px;font-size:13.5px;border-radius:11px}
	.shz-pb .shz-pb__filter{height:36px;font-size:14px}
	.shz-pb__panel{max-width:440px}
	.shz-pb__panel--filter{margin-left:auto}
}
