/* Product filter. Colors and sizes come from CSS variables a theme can set. */
.pf-form { --pf-border: #e3e5e8; --pf-accent: #16181d; --pf-muted: #6b7280; --pf-on: #16181d; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.pf-item { border: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--pf-border); min-width: 0; }
.pf-title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; padding: 0; }
.pf-terms { display: flex; flex-direction: column; gap: 6px; }
.pf-terms.pf-inline { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.pf-term { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pf-term input { margin: 0; }
.pf-count { color: var(--pf-muted); font-size: 12px; margin-left: auto; }
.pf-inline .pf-count { margin-left: 2px; }
.pf-label { border: 1px solid var(--pf-border); border-radius: 6px; padding: 4px 10px; }
.pf-label input, .pf-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-label.pf-on { background: var(--pf-on); border-color: var(--pf-on); color: #fff; }
.pf-label.pf-on .pf-count { color: #d6d8dc; }
.pf-label:focus-within, .pf-color:focus-within { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.pf-color { flex-direction: column; gap: 2px; font-size: 11px; text-align: center; width: 54px; }
.pf-color .pf-swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 2px #fff; }
.pf-color.pf-on .pf-swatch { outline: 2px solid var(--pf-on); outline-offset: 2px; }
.pf-color .pf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 54px; }
.pf-range { display: flex; align-items: center; gap: 6px; }
.pf-range input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid var(--pf-border); border-radius: 6px; font: inherit; }
.pf-unit { color: var(--pf-muted); font-size: 12px; }
.pf-item--text input { width: 100%; padding: 6px 8px; border: 1px solid var(--pf-border); border-radius: 6px; font: inherit; }
.pf-item select { width: 100%; padding: 6px 8px; border: 1px solid var(--pf-border); border-radius: 6px; font: inherit; }
.pf-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.pf-more > summary { cursor: pointer; color: var(--pf-muted); margin-top: 6px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip { display: inline-flex; align-items: center; gap: 4px; background: #f2f3f5; border-radius: 999px; padding: 3px 10px; text-decoration: none; font-size: 12px; color: inherit; }
.pf-reset { font-size: 12px; align-self: center; }
.pf-actions { display: flex; align-items: center; gap: 12px; }
.pf-form.pf-js .pf-actions .pf-submit { font-size: 13px; }
html.pf-loading #content, html.pf-loading #primary { opacity: .55; transition: opacity .15s; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
/* Sections: title with a collapse button and a tooltip. */
.pf-title { display: flex; align-items: center; gap: 6px; width: 100%; }
.pf-title-text { flex: 1 1 auto; }
.pf-collapse { flex: none; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 3px; background: var(--pf-accent); color: #fff; cursor: pointer; position: relative; }
.pf-collapse::before { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: currentColor; }
.pf-collapse[aria-expanded="false"]::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 8px; width: 2px; background: currentColor; }
.pf-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #3b82f6; color: #fff; font: italic 700 10px/1 Georgia, serif; cursor: help; }
.pf-tip:hover::after, .pf-tip:focus::after { content: attr(data-tip); position: absolute; z-index: 20; left: 50%; bottom: 140%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 6px 9px; border-radius: 4px; background: #222; color: #fff; font: normal 12px/1.4 sans-serif; text-transform: none; letter-spacing: 0; }
/* Tree of terms. */
.pf-tree, .pf-children { list-style: none; margin: 0; padding: 0; }
.pf-children { padding-left: 18px; margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.pf-tree > li, .pf-children > li { position: relative; }
.pf-has-children > .pf-term { display: inline-flex; }
.pf-open-children { border: 0; background: none; padding: 0 4px; cursor: pointer; color: #2eca8b; font-size: 16px; line-height: 1; }
.pf-open-children::before { content: "+"; }
.pf-open-children[aria-expanded="true"]::before { content: "\2212"; }
.pf-desc { font-size: 11px; color: var(--pf-muted); }
/* Images. */
.pf-image { position: relative; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--pf-border); padding: 2px; cursor: pointer; background: #fff; }
.pf-image input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-image.pf-on { border-color: var(--pf-on); }
.pf-image:focus-within { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.pf-image:not(.pf-noimage) .pf-name, .pf-image .pf-count { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.pf-empty { opacity: .45; }
/* Double slider (two range inputs on one track). */
.pf-slider { --pf-a: 0%; --pf-b: 100%; --pf-thumb: #fff; --pf-bar: var(--pf-accent); position: relative; padding-top: 4px; }
.pf-slider .pf-range { margin-bottom: 8px; }
.pf-bubbles { position: relative; height: 22px; }
.pf-bubbles output { position: absolute; top: 0; font-size: 11px; line-height: 18px; padding: 0 5px; border-radius: 3px; background: var(--pf-bar); color: #fff; white-space: nowrap; }
.pf-out-lo { left: 0; }
.pf-out-hi { right: 0; }
.pf-track { position: relative; height: 22px; }
.pf-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: linear-gradient(to right, #e1e4e9 var(--pf-a), var(--pf-bar) var(--pf-a), var(--pf-bar) var(--pf-b), #e1e4e9 var(--pf-b)); }
.pf-track input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.pf-track input[type=range]::-webkit-slider-runnable-track { background: none; height: 22px; }
.pf-track input[type=range]::-moz-range-track { background: none; }
.pf-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--pf-thumb); border: 3px solid var(--pf-bar); cursor: grab; }
.pf-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--pf-thumb); border: 3px solid var(--pf-bar); cursor: grab; }
.pf-track input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--pf-bar); outline-offset: 2px; }
.pf-grid { display: flex; justify-content: space-between; font-size: 10px; color: var(--pf-muted); margin-top: 2px; }
.pf-grid span { flex: 1 1 0; text-align: center; overflow: hidden; }
.pf-grid span:first-child { text-align: left; }
.pf-grid span:last-child { text-align: right; }
/* Chained drop-downs. */
.pf-hierarchy { display: flex; flex-direction: column; gap: 6px; }
.pf-hierarchy select:disabled { opacity: .5; }
.pf-hide { display: none !important; }
.pf-term .pf-desc { white-space: nowrap; }
