/* IXXO Cart 8 storefront: the listing pages (category, search, brands, brand, collection), Phase 10a Task 10.
   The Ampere Category board: a filter sidebar beside the results on a wide screen, a drawer
   (<dialog>) behind a "Filters" button on a phone; the toolbar with the count, chips, sort and
   grid or list view. Colours are tokens only; sides are logical (right to left works as is). */

.sf-listing-page{ padding-block-end: 64px; }

/* Header: name, description, child categories */
.sf-listing-head{ margin-block-start: 14px; }
.sf-listing-title{ font-size: calc(clamp(32px, 3.4vw, 48px) * var(--sf-heading-scale, 1)); line-height: 1; letter-spacing: -0.035em; margin: 0; }
.sf-listing-text{ margin-block-start: 10px; color: var(--ink-2); max-inline-size: 60ch; }
.sf-listing-seller{ margin-block-start: 8px; color: var(--muted); font-size: 14.5px; }
.sf-listing-seller a{ color: var(--ink); font-weight: 600; }
.sf-listing-bottom{ margin-block-start: 56px; padding-block-start: 24px; border-block-start: 1px solid var(--line); color: var(--ink-2); max-inline-size: 75ch; }
.sf-rich p + p{ margin-block-start: 0.8em; }
/* The sections above the listing stand in a column (home.css) that keeps their top gap inside, so
   the description's last element (a quote or a figure; paragraphs and lists have no margin) gives up
   its bottom margin there: same gap as before. Only while one of them shows at this width (Show on),
   and not in the editorial layout, whose grid head always kept that margin inside. */
@media (min-width: 768px){ body:not(.sf-l-listing_layout-editorial) .sf-listing-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-phone)) > .sf-rich:last-child > :last-child{ margin-block-end: 0; } }
@media (max-width: 767px){ body:not(.sf-l-listing_layout-editorial) .sf-listing-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-computer)) > .sf-rich:last-child > :last-child{ margin-block-end: 0; } }
.sf-rich a{ color: var(--ink); }

.sf-subcats{ display: flex; gap: 8px; overflow-x: auto; margin-block-start: 22px; padding-block-end: 4px; scrollbar-width: none; list-style: none; }
.sf-subcat{ display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; min-block-size: 44px; padding-inline: 16px; border-radius: 999px; background: var(--tile); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; transition: background-color 0.2s; }
.sf-subcat:hover{ background: var(--line); }
.sf-subcat-count{ color: var(--muted); font-size: 13px; }

/* Two columns: the panel and the results */
.sf-listing{ display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; margin-block-start: 28px; align-items: start; }
/* No panel to show (an empty listing): the results take the whole width. */
.sf-listing.is-bare{ grid-template-columns: minmax(0, 1fr); }

/* The panel: on a wide screen the dialog is simply part of the page */
.sf-filters-dialog{ display: block; position: static; inline-size: auto; block-size: auto; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; }
.sf-filters{ display: flex; flex-direction: column; }
.sf-filters-head{ display: flex; align-items: center; gap: 12px; padding-block-end: 12px; border-block-end: 1.5px solid var(--ink); }
.sf-filters-title{ font-size: 17px; margin: 0; flex: 1; }
.sf-filters-clear{ font-size: 14px; color: var(--ink); text-underline-offset: 2px; }
.sf-filters-close{ display: none; }
/* A legend sits on the fieldset's top edge whatever its padding, so the room above it is a margin. */
.sf-fg{ border: 0; border-block-end: 1px solid var(--line); margin: 14px 0 0; padding: 0 0 16px; min-inline-size: 0; }
.sf-fg-title{ padding: 0; font-size: 15px; font-weight: 650; color: var(--ink); }
.sf-opts{ display: flex; flex-direction: column; gap: 0; margin-block-start: 6px; list-style: none; }
.sf-opt{ display: flex; align-items: center; gap: 10px; min-block-size: 44px; font-size: 14.5px; cursor: pointer; }
.sf-opt input{ inline-size: 18px; block-size: 18px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.sf-opt-label{ flex: 1; }
.sf-opt-count{ color: var(--muted); font-size: 13px; }
.sf-range{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 10px; }
.sf-range-field{ display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sf-range-field input{ block-size: 44px; inline-size: 100%; padding-inline: 12px; border: 1px solid var(--muted); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.sf-range-field input::placeholder{ color: var(--placeholder); }
.sf-filters-apply{ margin-block-start: 16px; }

/* Toolbar: count, chips, sort, view */
.sf-toolbar{ display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.sf-toolbar-start{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-result-count{ font-weight: 650; font-size: 15px; }
.sf-filters-open{ display: none; }
.sf-toolbar-tools{ display: flex; align-items: center; gap: 10px; }
.sf-sort{ display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.sf-sort-select{ block-size: 44px; padding-inline: 12px; border: 1px solid var(--muted); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.sf-view{ display: flex; border: 1px solid var(--muted); border-radius: var(--r); overflow: hidden; }
.sf-view-btn{ display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.sf-view-btn[aria-pressed="true"]{ background: var(--ink); color: var(--on-ink); }
.sf-view:not(:has(.sf-view-btn:not([hidden]))){ display: none; }

.sf-chips{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; list-style: none; margin-block-start: 16px; }
.sf-chip{ display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding-inline: 12px 8px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.sf-chip:active{ transform: scale(0.96); }
.sf-chip .sf-ico{ inline-size: 16px; block-size: 16px; }
.sf-chips-clear{ font-size: 14px; color: var(--ink); text-underline-offset: 2px; padding-inline: 4px; }

/* Results: four across beside the panel, or one per row in the list view */
.sf-results .sf-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block-start: 24px; }
.sf-results.is-list .sf-grid{ grid-template-columns: 1fr; gap: 0; }
.sf-results.is-list .sf-card{ display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-block: 20px; border-block-end: 1px solid var(--line); }
.sf-results.is-list .sf-card-link{ min-block-size: 0; font-size: 16.5px; }
.sf-results.is-list .sf-card-add{ inline-size: auto; align-self: flex-start; padding-inline: 28px; }
/* The list's row is made for its button: shown whatever the card style (the Minimal card hides it in the grid). QA P30. */
.card-minimal .sf-results.is-list .sf-card-add{ display: inline-flex; }

/* No results */
.sf-noresults{ display: flex; flex-direction: column; gap: 32px; margin-block-start: 14px; }
.sf-noresults-heading{ font-size: calc(19px * var(--sf-heading-scale, 1)); margin-block-end: 12px; }
.sf-noresults-list{ padding-inline-start: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.sf-noresults-cats .sf-subcats{ margin-block-start: 0; flex-wrap: wrap; }

/* Brands A to Z */
.sf-jump{ position: sticky; inset-block-start: 0; z-index: 3; background: var(--paper); margin-block-start: 20px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.sf-jump-list{ display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.sf-jump-link{ display: inline-grid; place-items: center; min-inline-size: 44px; block-size: 44px; border-radius: var(--r); color: var(--ink); font-family: var(--font-mono); font-weight: 600; text-decoration: none; }
.sf-jump-link:hover{ background: var(--tile); }
.sf-brand-group{ margin-block-start: 32px; scroll-margin-block-start: 80px; }
/* Under a sticky header (Theme editor 2) the bar scrolls with the page instead of hiding behind
   the header, and a letter's group stops below the header (its height, two rows on a phone). */
body:has(.sf-hdr--sticky) .sf-jump{ position: static; }
body:has(.sf-hdr--sticky) .sf-brand-group{ scroll-margin-block-start: 170px; }
.sf-brand-letter{ font-size: calc(28px * var(--sf-heading-scale, 1)); padding-block-end: 8px; border-block-end: 1.5px solid var(--ink); }
.sf-brand-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; list-style: none; margin-block-start: 16px; }
.sf-brand-tile{ display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: calc(var(--r) * 1.5); background: var(--tile); color: var(--ink); text-decoration: none; font-weight: 600; text-align: center; transition: background-color 0.2s; }
.sf-brand-tile:hover{ background: var(--line); }
.sf-brand-logo{ display: flex; align-items: center; justify-content: center; inline-size: 100%; block-size: 64px; }
.sf-brand-logo img{ max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }

/* Brand page and collection picture */
.sf-brand-banner{ margin-block-start: 14px; border-radius: calc(var(--r) * 1.5); overflow: hidden; background: var(--tile); }
.sf-brand-banner img{ display: block; inline-size: 100%; block-size: auto; max-block-size: 320px; object-fit: cover; }
.sf-brand-head{ display: flex; gap: 24px; align-items: flex-start; }
.sf-brand-logo-big{ inline-size: 160px; block-size: 80px; flex: none; border-radius: var(--r); background: var(--tile); padding: 8px; }
.sf-brand-site{ margin-block-start: 10px; font-size: 14.5px; }
.sf-brand-site a{ color: var(--ink); font-weight: 600; text-underline-offset: 2px; }

@media (max-width: 1200px){
	.sf-results .sf-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* A phone: the panel becomes a drawer opened by the "Filters" button (storefront.js). Without
   JavaScript that button stays hidden, so the panel stays in the page above the results. */
@media (max-width: 900px){
	body:has(.sf-hdr--sticky) .sf-brand-group{ scroll-margin-block-start: 230px; }
	.sf-listing{ grid-template-columns: 1fr; gap: 24px; }
	.sf-filters-open:not([hidden]){ display: inline-flex; }
	.sf-listing:has(.sf-filters-open:not([hidden])) .sf-filters-dialog:not([open]){ display: none; }
	.sf-filters-dialog[open]{ position: fixed; inset-block: 0; inset-inline-start: 0; inline-size: min(360px, 90vw); block-size: 100%; max-block-size: none; overflow-y: auto; padding: 20px; background: var(--paper); box-shadow: 0 8px 32px var(--shadow-lift); }
	.sf-filters-dialog[open]::backdrop{ background: var(--backdrop); }
	.sf-filters-dialog[open] .sf-filters-close{ display: inline-grid; }
}

@media (max-width: 720px){
	.sf-results .sf-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-results.is-list .sf-card{ grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.sf-sort-label{ position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.sf-brand-head{ flex-direction: column; }
}

/* The editorial layout (Moda theme phase, spec §A5; `.sf-listing--editorial` and
   `.sf-toolbar--editorial` are printed only under it): the title beside its intro, one toolbar
   above the panel and the results, the panel shown and hidden by "Filters", 3 or 4 cards a
   row, sizes as chips and colours as swatches. */
body.sf-l-listing_layout-editorial .sf-listing-head:not(.sf-brand-head){ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; align-items: end; padding-block: 22px 12px; }
body.sf-l-listing_layout-editorial .sf-listing-head:not(.sf-brand-head) .sf-listing-text{ justify-self: end; margin: 0; max-inline-size: 52ch; }
body.sf-l-listing_layout-editorial .sf-listing-title{ font-size: calc(clamp(44px, 5vw, 76px) * var(--sf-heading-scale, 1)); line-height: 0.98; text-wrap: balance; }

.sf-toolbar--editorial{ justify-content: flex-start; gap: 12px; margin-block-start: 24px; padding-block: 14px; border-block-start: 1px solid var(--line); }
.sf-toolbar--editorial .sf-filters-open:not([hidden]){ display: inline-flex; }
/* A lighter Filters button, 44px to tap on a phone (below). */
.sf-toolbar--editorial .sf-filters-open{ min-block-size: 40px; }
.sf-toolbar--editorial .sf-chips{ flex: 1; min-inline-size: 0; margin: 0; gap: 6px; }
.sf-toolbar--editorial .sf-result-count{ margin-inline-start: auto; font-weight: 400; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.sf-toolbar--editorial .sf-chips + .sf-result-count{ margin-inline-start: 0; }
.sf-view--per-row{ border: 0; gap: 2px; }
.sf-view--per-row .sf-view-btn{ color: var(--muted); background: transparent; border-radius: var(--r); }
.sf-view--per-row .sf-view-btn[aria-pressed="true"]{ color: var(--ink); background: var(--tile); }

.sf-listing--editorial{ grid-template-columns: 240px minmax(0, 1fr); margin-block-start: 32px; }
.sf-listing--editorial .sf-filters-head{ display: none; }
.sf-listing--editorial .sf-results .sf-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: 0; }
.sf-listing--editorial .sf-results.is-cols-4 .sf-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-listing--editorial .sf-pager{ margin-block-start: 64px; }
/* The progress under the pages a hairline (moved from moda.css in the Section styles phase). */
.sf-listing--editorial .sf-pager-bar{ block-size: 2px; inline-size: min(220px, 100%); }

.sf-opt-input{ position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.sf-opts--chips{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block-start: 10px; }
.sf-opt-chip{ position: relative; display: grid; place-items: center; min-block-size: 44px; padding-inline: 6px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.sf-opt-chip:hover{ border-color: var(--ink); }
.sf-opt-chip:has(.sf-opt-input:checked){ background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sf-opt-chip:has(.sf-opt-input:focus-visible), .sf-opt--swatch:has(.sf-opt-input:focus-visible){ outline: 2px solid var(--ink); outline-offset: 2px; }
.sf-opt--swatch{ position: relative; }
.sf-opt-swatch{ inline-size: 22px; block-size: 22px; flex: none; overflow: visible; }
.sf-opt-swatch circle{ stroke: var(--line); stroke-width: 1; }
.sf-opt-swatch circle.is-blank{ fill: var(--tile); }
.sf-opt--swatch:has(.sf-opt-input:checked) .sf-opt-swatch circle{ stroke: var(--ink); stroke-width: 2.5; }
.sf-opt--swatch:has(.sf-opt-input:checked) .sf-opt-label{ font-weight: 600; }

/* A wide screen: "Filters" hides the panel, and the results take its room (still 3 or 4 a
   row, as the switch says). */
@media (min-width: 901px){
	.sf-listing--editorial.is-filters-off{ grid-template-columns: minmax(0, 1fr); }
	.sf-listing--editorial.is-filters-off .sf-filters-dialog{ display: none; }
}

@media (max-width: 1180px){
	.sf-listing--editorial{ grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
	.sf-listing--editorial .sf-results.is-cols-4 .sf-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* Too narrow for 4 a row: the switch would change nothing, so it is not offered. */
	.sf-view--per-row{ display: none; }
}

/* A phone: the panel is the drawer of the classic layout (its button sits in the toolbar
   above the listing here, so the page hides the closed panel once the button shows). */
@media (max-width: 900px){
	body.sf-l-listing_layout-editorial .sf-listing-head:not(.sf-brand-head){ grid-template-columns: minmax(0, 1fr); gap: 14px; }
	body.sf-l-listing_layout-editorial .sf-listing-head:not(.sf-brand-head) .sf-listing-text{ justify-self: start; }
	.sf-toolbar--editorial{ gap: 8px; }
	.sf-toolbar--editorial .sf-chips{ order: 5; flex-basis: 100%; }
	.sf-listing--editorial, .sf-listing--editorial.is-filters-off{ grid-template-columns: minmax(0, 1fr); margin-block-start: 20px; }
	body:has(.sf-toolbar--editorial .sf-filters-open:not([hidden])) .sf-listing--editorial .sf-filters-dialog:not([open]){ display: none; }
	.sf-listing--editorial .sf-filters-dialog[open] .sf-filters-head{ display: flex; }
	.sf-listing--editorial .sf-results .sf-grid, .sf-listing--editorial .sf-results.is-cols-4 .sf-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sf-opts--chips{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 600px){
	body.sf-l-listing_layout-editorial .sf-listing-title{ font-size: calc(44px * var(--sf-heading-scale, 1)); }
	/* Out of sight but still announced (it is the toolbar's live region). */
	.sf-toolbar--editorial .sf-result-count{ position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.sf-toolbar--editorial .sf-sort{ margin-inline-start: auto; }
	.sf-listing--editorial .sf-results .sf-grid, .sf-listing--editorial .sf-results.is-cols-4 .sf-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-opts--chips{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px){
	.sf-toolbar--editorial .sf-filters-open{ min-block-size: 44px; }
}

/* The drawer layout (2026-11-26; `.sf-listing--drawer` is printed only under it): the classic
   toolbar with "Filters" at every width and the chosen filters as chips beside it. The panel is
   the phone's drawer at every width, sliding in from the left over a backdrop, and the products
   take the whole width, one card a row more than classic. Without JavaScript the button stays
   hidden, so the panel stays beside the results as in classic: each rule below waits for the
   shown button. Its 5 a row on a computer sits in the computer block below, under the shop's
   own products per row, which still wins (`:where()` keeps these column rules under it). */
.sf-listing--drawer .sf-filters-open:not([hidden]){ display: inline-flex; }
.sf-listing--drawer .sf-toolbar-start .sf-chips{ margin: 0; gap: 6px; }
.sf-listing--drawer:has(.sf-filters-open:not([hidden])){ grid-template-columns: minmax(0, 1fr); }
.sf-listing--drawer:has(.sf-filters-open:not([hidden])) .sf-filters-dialog:not([open]){ display: none; }
.sf-listing--drawer .sf-filters-dialog[open]{ position: fixed; inset-block: 0; inset-inline-start: 0; inline-size: min(360px, 90vw); block-size: 100%; max-block-size: none; overflow-y: auto; padding: 20px; background: var(--paper); box-shadow: 0 8px 32px var(--shadow-lift); animation: sf-filters-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.sf-listing--drawer .sf-filters-dialog[open]::backdrop{ background: var(--backdrop); }
.sf-listing--drawer .sf-filters-dialog[open] .sf-filters-close{ display: inline-grid; }
@keyframes sf-filters-in{ from{ transform: translateX(calc(-100% * var(--ic-dir, 1))); } to{ transform: none; } }

/* The pills layout (2026-11-27; `.sf-listing--pills` and `.sf-toolbar--pills` are printed only
   under it): "All filters" opens the drawer above, as in the drawer layout, and each filter
   group is a pill whose box opens under it with its own small form. The products take the whole
   width once the button shows; without JavaScript the panel stays beside the results and the
   pills still work (a <details> opens by itself). On a phone the pills row scrolls sideways and
   an open box is the row's full width, under the bar. */
.sf-listing--pills .sf-filters-open:not([hidden]){ display: inline-flex; }
.sf-listing--pills:has(.sf-filters-open:not([hidden])){ grid-template-columns: minmax(0, 1fr); }
.sf-listing--pills:has(.sf-filters-open:not([hidden])) .sf-filters-dialog:not([open]){ display: none; }
.sf-listing--pills .sf-filters-dialog[open]{ position: fixed; inset-block: 0; inset-inline-start: 0; inline-size: min(360px, 90vw); block-size: 100%; max-block-size: none; overflow-y: auto; padding: 20px; background: var(--paper); box-shadow: 0 8px 32px var(--shadow-lift); animation: sf-filters-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.sf-listing--pills .sf-filters-dialog[open]::backdrop{ background: var(--backdrop); }
.sf-listing--pills .sf-filters-dialog[open] .sf-filters-close{ display: inline-grid; }
.sf-toolbar--pills .sf-toolbar-start{ position: relative; flex: 1; min-inline-size: 0; }
.sf-pills{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sf-pill{ position: relative; }
.sf-pill-title{ display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding-inline: 16px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; list-style: none; cursor: pointer; transition: border-color 0.2s; }
.sf-pill-title::-webkit-details-marker{ display: none; }
.sf-pill-title:hover, .sf-pill[open] > .sf-pill-title{ border-color: var(--ink); }
.sf-pill-title:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }
.sf-pill.is-chosen > .sf-pill-title{ border-color: var(--ink); font-weight: 650; }
.sf-pill-title .sf-ico{ inline-size: 16px; block-size: 16px; transition: transform 0.2s; }
.sf-pill[open] > .sf-pill-title .sf-ico{ transform: rotate(180deg); }
.sf-pill-box{ position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 0; z-index: 5; inline-size: 300px; max-block-size: 60vh; overflow-y: auto; padding: 4px 16px 16px; border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5); background: var(--paper); box-shadow: 0 8px 32px var(--shadow-lift); }
.sf-pill-box .sf-fg{ border-block-end: 0; padding-block-end: 0; }
/* The pill's title already names the group: its legend stays for screen readers only. */
.sf-pill-box .sf-fg-title{ position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sf-pill-box .sf-filters-apply:disabled{ opacity: 0.5; cursor: not-allowed; }

@media (max-width: 720px){
	.sf-toolbar--pills .sf-toolbar-start{ flex-basis: 100%; }
	.sf-pills{ flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 2px; max-inline-size: 100%; }
	/* The box hangs from the bar, not the pill, so the scrolling row never clips it. */
	.sf-pill{ position: static; }
	.sf-pill-box{ inset-inline: 0; inline-size: auto; }
}

@media (min-width: 901px) and (max-width: 1200px){
	.sf-listing--drawer:where(:has(.sf-filters-open:not([hidden]))) .sf-results:not(.is-list) .sf-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sf-listing--pills:where(:has(.sf-filters-open:not([hidden]))) .sf-results:not(.is-list) .sf-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Products per row the shop picked in Styles (theme editor more options, `sf-list-per-row-<n>` on
   <body>): on a computer only, the width where a product row's cards per row apply (components.css);
   tablets and phones keep the columns above. The grid view only: the list stays one per row. `body.`
   puts it above the editorial layout's 3 or 4 and the buyer's switch (`is-cols-4`), which the page
   then does not print; the switch also hides here, as the editor's preview swaps only the classes.
   The first line is the drawer layout's own 5 a row, which these beat (`:where()` lowers it). */
@media (min-width: 1201px){
	.sf-listing--drawer:where(:has(.sf-filters-open:not([hidden]))) .sf-results:not(.is-list) .sf-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.sf-listing--pills:where(:has(.sf-filters-open:not([hidden]))) .sf-results:not(.is-list) .sf-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
	body.sf-list-per-row-3 .sf-results:not(.is-list) .sf-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.sf-list-per-row-4 .sf-results:not(.is-list) .sf-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.sf-list-per-row-5 .sf-results:not(.is-list) .sf-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
body.sf-list-per-row-3 .sf-view--per-row, body.sf-list-per-row-4 .sf-view--per-row, body.sf-list-per-row-5 .sf-view--per-row{ display: none; }

@media (prefers-reduced-motion: reduce){
	.sf-opt-chip{ transition: none; }
	.sf-listing--drawer .sf-filters-dialog[open]{ animation: none; }
	.sf-listing--pills .sf-filters-dialog[open]{ animation: none; }
	.sf-pill-title, .sf-pill-title .sf-ico{ transition: none; }
}
