/* as-listing.css - product listing pages: category, brand (manufacturer.info), brand index (manufacturer),
   search, specials. Redesign phase 2 (2026-12), same visual language as the home page (as-design.css).
   Linked from the page templates (product/category, search, special, manufacturer_info, manufacturer_list), so it
   comes after the head CSS bundle and wins over as-mobile.css / category_page.css / theme.css at equal specificity.
   Product cards: the ".as-cards" look of as-design.css (class on .as-listing); this file adds the page head,
   sub-category chips, toolbar, filter column / phone drawer, card grid, list view and pagination.
   Bump ?v= in the templates (as_lst_css) after editing this file (Cloudflare caches CSS). */

/* screen-reader only (own class: the trimmed Bootstrap build is not relied on) */
.as-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Page head ---------- */
.as-lst-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 2px 0 12px; }
.as-lst-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.as-lst-count { color: var(--as-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.as-cat-head { margin: 2px 0 10px; gap: 14px; }
.as-cat-head .as-cat-title { font-size: 28px; letter-spacing: -.02em; }
.as-cat-head .as-cat-thumb { width: 56px; height: 56px; padding: 4px; border-radius: var(--as-radius-sm); object-fit: contain; }

/* description: full text stays in the HTML (SEO); long ones are clamped to 3 lines with "Read more" (no JS) */
.as-cat-intro { max-width: 980px; margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: var(--as-text); }
.as-cat-intro p { margin: 0 0 .5em; }
.as-cat-intro > :last-child { margin-bottom: 0; }
.as-cat-desc.as-clamp { position: relative; max-height: 4.8em; overflow: hidden; }
.as-cat-desc.as-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.7em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.as-desc-cb { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0; }
.as-desc-cb:checked + .as-cat-desc.as-clamp { max-height: none; }
.as-desc-cb:checked + .as-cat-desc.as-clamp::after { display: none; }
.as-desc-more { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--as-red-text); cursor: pointer; user-select: none; }
.as-desc-more::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.as-desc-more:hover { text-decoration: underline; }
.as-desc-less, .as-desc-cb:checked ~ .as-desc-more .as-desc-moretxt { display: none; }
.as-desc-cb:checked ~ .as-desc-more .as-desc-less { display: inline; }
.as-desc-cb:checked ~ .as-desc-more::after { transform: translateY(1px) rotate(-135deg); }
.as-desc-cb:focus-visible ~ .as-desc-more { outline: 2px solid var(--as-red); outline-offset: 2px; border-radius: 4px; }

/* ---------- Sub-category chips (as_category_page "Shop by type" tiles) ---------- */
.as-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.as-tile { display: inline-flex; flex-direction: row; align-items: baseline; gap: 8px; min-height: 0; padding: 9px 16px; border: 1px solid #d9dce1; border-radius: 999px; background: #fff; color: var(--as-ink); line-height: 1.25; text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }
.as-tile:hover, .as-tile:focus-visible { border-color: var(--as-red); background: var(--as-red-soft); color: var(--as-red-text); box-shadow: none; }
.as-tile .as-tile-name { font-size: 14px; font-weight: 600; }
.as-tile .as-tile-count { font-size: 12.5px; color: var(--as-muted); font-variant-numeric: tabular-nums; }
.as-tile.as-tile-soon { border-style: dashed; }
.as-tile.as-tile-soon .as-tile-count { color: #1d4ed8; font-weight: 600; }

/* ---------- Layout: filter column + results ---------- */
.as-listing { --as-cols: 2; --as-gap: 10px; }
.as-listing.has-facets { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.as-results { min-width: 0; }
@media (min-width: 768px) { .as-listing { --as-cols: 3; --as-gap: 16px; } }
@media (min-width: 992px) { .as-listing { --as-cols: 4; } .as-listing.has-facets { --as-cols: 3; } }
@media (min-width: 1200px) { .as-listing { --as-cols: 5; } .as-listing.has-facets { --as-cols: 4; } }

/* ---------- Toolbar: filters (phones) | count | sort | show | grid / list ---------- */
.as-toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.as-tb-count { margin-right: auto; font-size: 14px; color: var(--as-muted); white-space: nowrap; }
.as-tb-count strong { color: var(--as-ink); font-weight: 600; }
.as-tb-field { position: relative; display: flex; align-items: center; min-width: 0; height: 40px; border: 1px solid #d9dce1; border-radius: var(--as-radius-sm); background: #fff; transition: border-color .15s; }
.as-tb-field:hover, .as-tb-field:focus-within { border-color: #9ca3af; }
.as-tb-field label { flex: 0 0 auto; padding: 0 0 0 12px; font-size: 13px; color: var(--as-muted); white-space: nowrap; cursor: pointer; }
.as-tb-field .form-select { height: 38px; min-width: 0; padding: 0 32px 0 8px; border: 0; background-color: transparent; background-position: right 10px center; font-size: 14px; font-weight: 600; color: var(--as-ink); box-shadow: none; cursor: pointer; }
.as-tb-field .form-select:focus { box-shadow: none; }
.as-tb-sort .form-select { width: 200px; }
.as-tb-limit .form-select { width: 72px; }
.as-tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid #d9dce1; border-radius: var(--as-radius-sm); background: #fff; color: var(--as-ink); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.as-tb-btn:hover, .as-tb-btn:focus-visible { border-color: var(--as-ink); color: var(--as-ink); }
.as-tb-btn .fa-solid { font-size: 13px; }
.as-tb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--as-red); color: #fff; font-size: 12px; font-weight: 700; }
.as-tb-filters { display: none; }
.as-tb-view { display: inline-flex; gap: 0; border: 1px solid #d9dce1; border-radius: var(--as-radius-sm); overflow: hidden; }
.as-tb-view .btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 38px; padding: 0; border: 0; border-radius: 0; background: #fff; background-image: none; color: #6b7280; box-shadow: none; text-shadow: none; }
.as-tb-view .btn + .btn { border-left: 1px solid #d9dce1; }
.as-tb-view .btn:hover { color: var(--as-ink); background: var(--as-soft); }
.as-tb-view .btn.active { background: var(--as-ink); color: #fff; }
.as-toolbar #compare-total { height: 40px; padding: 0 12px; font-size: 13.5px; }

/* ---------- Filters (desktop column) ---------- */
.as-facets { border: 1px solid var(--as-line); border-radius: 12px; padding: 2px 16px; background: #fff; }
.as-facets > summary { list-style: none; }
.as-facets > summary::-webkit-details-marker { display: none; }
.as-facet { padding: 14px 0; border-bottom: 1px solid var(--as-line); }
.as-facet:last-child { border-bottom: 0; }
.as-facet-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--as-ink); }
.as-facets .as-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--as-text); font-size: 14px; line-height: 1.3; text-decoration: none; }
.as-facets .as-opt:hover { color: var(--as-red-text); text-decoration: none; }
.as-facets .as-opt.active { color: var(--as-ink); font-weight: 600; }
.as-facets .as-check { flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid #c4c8cf; border-radius: 5px; background: #fff; transition: border-color .15s, background-color .15s; }
.as-facets .as-opt:hover .as-check { border-color: var(--as-red); }
.as-facets .as-opt.active .as-check { border-color: var(--as-red); background: var(--as-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.as-facets .as-count { margin-left: auto; padding-left: 6px; color: var(--as-muted); font-size: 12.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.as-facets .as-more > summary { display: inline-block; margin-top: 4px; padding: 3px 0; font-size: 13.5px; font-weight: 600; color: var(--as-red-text); text-decoration: none; cursor: pointer; }
.as-facets .as-more > summary:hover { text-decoration: underline; }
.as-facets .as-price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.as-facets .as-price-row .btn { grid-column: 1 / -1; }
.as-facets .as-price-row .form-control { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 8px; border-color: #d9dce1; border-radius: var(--as-radius-sm); font-size: 14px; }
.as-facets .as-price-row .btn { height: 38px; padding: 0 12px; border: 1px solid var(--as-ink); border-radius: var(--as-radius-sm); background: var(--as-ink); color: #fff; font-size: 13px; font-weight: 600; }
.as-facets .as-price-row .btn:hover { background: #000; }
.as-facets .as-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.as-facets .as-chip-x, .as-facets .as-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--as-red-soft); color: var(--as-red-text); font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.as-facets .as-chip-x:hover, .as-facets .as-chip:hover { background: #ffe1e1; }
.as-facets .as-clear, .as-facets .as-clear-link { font-size: 13px; font-weight: 600; color: var(--as-muted); text-decoration: underline; }
.as-drawer-head, .as-drawer-foot { display: none; }
@media (min-width: 992px) {
	.as-facets-col { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; }
	.as-facets > summary { display: none; }
}

/* ---------- Product grid ---------- */
.as-listing #product-list { display: grid; grid-template-columns: repeat(var(--as-cols), minmax(0, 1fr)); gap: var(--as-gap); margin: 0 0 24px; padding: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; }
.as-listing #product-list > .col { display: flex; flex: none; width: auto; max-width: none; min-width: 0; margin: 0 !important; padding: 0; }
.as-listing #product-list > .col > .product-thumb { width: 100%; }
.as-cards .product-thumb .as-card-excerpt { display: none; }
.as-cards .product-thumb .description > p:not(.as-card-excerpt) { display: block; } /* quantity-discount note */
.as-cards .product-thumb .image img { max-width: 100%; max-height: 100%; }

/* phones: undo the older as-mobile.css card rules (higher specificity) so the cards match the home page */
@media (max-width: 575.98px) {
	.as-listing #product-list:not(.product-list) .product-thumb { border-radius: 10px; }
	.as-listing #product-list:not(.product-list) .product-thumb .image { padding: 8px; }
	.as-listing #product-list:not(.product-list) .product-thumb .description { padding: 2px 10px 4px; }
	.as-listing #product-list:not(.product-list) .product-thumb .description > p:not(.as-card-excerpt) { display: block; }
	.as-listing #product-list:not(.product-list) .product-thumb .as-card-brand { margin: 0 0 3px; font-size: 10.5px; }
	.as-listing #product-list:not(.product-list) .product-thumb h2 { height: 2.7em; margin: 0 0 6px; font-size: 13px; font-weight: 500; line-height: 1.35; -webkit-line-clamp: 2; }
	.as-listing #product-list:not(.product-list) .product-thumb .price { font-size: 15px; column-gap: 6px; }
	.as-listing #product-list:not(.product-list) .product-thumb .price-old { margin: 0; font-size: 11.5px; }
	.as-listing #product-list:not(.product-list) .product-thumb .as-card-tabby { margin-top: 4px; font-size: 11px; }
	.as-listing #product-list:not(.product-list) .product-thumb .as-card-stock { margin-top: 5px; font-size: 11.5px; }
	.as-listing #product-list:not(.product-list) .product-thumb .content .product-action { padding: 4px 10px 10px; }
	.as-listing #product-list:not(.product-list) .product-thumb .button-group button { gap: 7px; min-height: 38px; padding: 0 6px; border-radius: var(--as-radius-sm); font-size: 13px; }
	.as-listing #product-list:not(.product-list) .product-thumb .button-group button + button { flex: 0 0 38px; padding: 0; }
}

/* list view (desktop only; phones and tablets always show the grid) */
@media (min-width: 992px) {
	.as-listing #product-list.product-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.as-cards .product-list .product-thumb { flex-direction: row; align-items: stretch; }
	.as-cards .product-list .product-thumb .image { flex: 0 0 200px; height: 200px; padding: 14px; }
	.as-cards .product-list .product-thumb .content { flex-direction: row; min-width: 0; }
	.as-cards .product-list .product-thumb .description { padding: 18px 22px 16px 6px; }
	.as-cards .product-list .product-thumb h2 { height: auto; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
	.as-cards .product-list .product-thumb .as-card-excerpt { display: block; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--as-muted); }
	.as-cards .product-list .product-thumb .content .product-action { display: flex; align-items: center; flex: 0 0 232px; padding: 18px 20px 18px 8px; }
	.as-cards .product-list .product-thumb .button-group { position: static; width: 100%; border: 0; }
	.as-cards .product-list .product-thumb .product-action > form { width: 100%; }
	.as-cards .product-list .product-thumb .button-group button:first-child { min-width: 150px; padding: 0 18px; white-space: nowrap; }
}

/* ---------- Pagination + "Showing x to y of z" ---------- */
.as-pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 30px; text-align: center; }
.as-pager .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.as-pager .page-item .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; margin: 0; border: 1px solid #d9dce1; border-radius: var(--as-radius-sm) !important; background: #fff; color: var(--as-ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; box-shadow: none; transition: border-color .15s, background-color .15s; }
.as-pager .page-item .page-link:hover { border-color: var(--as-ink); background: #fff; color: var(--as-ink); }
.as-pager .page-item.active > .page-link { border-color: var(--as-red); background: var(--as-red); color: #fff; }
.as-pager .page-link .fa-solid { font-size: 13px; }
/* first / last arrows: prev/next and the numbers cover them (the last-page arrow of as_custom_style.xml links to the first page) */
.as-pager .page-item:has(.fa-backward-step), .as-pager .page-item:has(.fa-forward-step) { display: none; }
.as-results-text { font-size: 13px; color: var(--as-muted); }

/* ---------- Empty states ---------- */
.as-empty-box { max-width: 560px; margin: 10px auto 34px; padding: 30px 22px; border: 1px dashed #d9dce1; border-radius: 12px; text-align: center; background: #fafafa; }
.as-empty-box p { margin: 0 0 14px; font-size: 15px; color: var(--as-text); }
.as-empty-box .as-empty-icon { display: block; margin: 0 auto 10px; font-size: 26px; color: #9ca3af; }
.as-empty-box .as-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.as-empty-box .btn { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; }
.as-empty-box .as-tb-btn { height: 42px; }

/* ---------- Category extras (best sellers, guide, FAQ, related chips) ---------- */
.as-section-title { margin: 28px 0 12px; font-size: 20px; font-weight: 700; color: var(--as-ink); letter-spacing: -.01em; }
.as-best { margin: 6px 0 10px; }
.as-best-row { gap: 14px; padding-bottom: 8px; scrollbar-width: thin; }
.as-best-item { display: flex; }
.as-best-item > .product-thumb { width: 100%; }
.as-cat-guide { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--as-line); font-size: 15px; line-height: 1.65; }
.as-faq-item { border-bottom: 1px solid var(--as-line); padding: 0; }
.as-faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--as-ink); cursor: pointer; list-style: none; }
.as-faq-item > summary::-webkit-details-marker { display: none; }
.as-faq-item > summary::after { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.as-faq-item[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.as-faq-answer { padding: 0 0 14px; color: var(--as-text); }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.as-chips a { display: inline-block; padding: 7px 14px; border: 1px solid #d9dce1; background: #fff; text-decoration: none; line-height: 1.3; border-color: #d9dce1; border-radius: 999px; color: var(--as-ink); font-size: 14px; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s; }
.as-chips a:hover { border-color: var(--as-red); background: var(--as-red-soft); color: var(--as-red-text); }

/* ---------- Search page form ---------- */
.as-search-box { margin: 0 0 22px; padding: 16px; border: 1px solid var(--as-line); border-radius: 12px; background: var(--as-soft); }
.as-search-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.as-search-row .form-control, .as-search-row .form-select { height: 44px; border-color: #d9dce1; border-radius: var(--as-radius-sm); font-size: 15px; }
.as-search-row .btn { height: 44px; padding: 0 22px; }
.as-search-opts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 10px; font-size: 14px; }
.as-search-opts .form-check { margin: 0; }
.as-no-results.as-empty-box { max-width: 680px; }
.as-no-results .as-chips { justify-content: center; }
.as-no-results .as-section-title { margin-top: 18px; font-size: 16px; }

/* ---------- Brand index (product/manufacturer) ---------- */
.as-brand-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.as-brand-index a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid #d9dce1; border-radius: var(--as-radius-sm); color: var(--as-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.as-brand-index a:hover { border-color: var(--as-red); background: var(--as-red-soft); color: var(--as-red-text); }
.as-brand-letter { margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--as-line); font-size: 20px; scroll-margin-top: 12px; }
.as-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.as-brand-grid a { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); background: #fff; color: var(--as-ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: border-color .15s, color .15s, box-shadow .2s; }
.as-brand-grid a:hover { border-color: var(--as-red); color: var(--as-red-text); box-shadow: 0 6px 16px rgba(17, 24, 39, .06); }

/* ---------- Tablets and phones ---------- */
@media (max-width: 991.98px) {
	.as-listing.has-facets { display: block; }
	.as-facets-col { margin: 0; }
	.as-facets { border: 0; padding: 0; background: none; }
	.as-facets > summary { display: none; }
	.as-tb-filters { display: inline-flex; }
	.as-tb-view, .as-tb-count, .as-toolbar #compare-total { display: none !important; }

	/* filters open as a drawer from the toolbar button; the summary becomes the backdrop (tap = close) */
	.as-facets[open] > summary { display: block; position: fixed; inset: 0; z-index: 1060; margin: 0; padding: 0; border: 0; background: rgba(17, 24, 39, .45); font-size: 0; color: transparent; cursor: default; animation: as-fade .2s ease-out; }
	.as-facets[open] > summary * { display: none; }
	.as-facets[open] > .as-facets-body { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1061; display: flex; flex-direction: column; width: min(88vw, 380px); background: #fff; box-shadow: -12px 0 32px rgba(17, 24, 39, .18); animation: as-slide .22s var(--as-ease); }
	.as-facets-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
	.as-drawer-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; height: 56px; padding: 0 8px 0 18px; border-bottom: 1px solid var(--as-line); font-size: 17px; font-weight: 700; color: var(--as-ink); }
	.as-drawer-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--as-ink); font-size: 20px; }
	.as-drawer-x:hover { background: var(--as-soft); }
	.as-drawer-foot { display: block; flex: 0 0 auto; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--as-line); background: #fff; }
	.as-drawer-foot .btn { width: 100%; height: 46px; font-size: 15px; }
	.as-facets .as-opt { min-height: 40px; padding: 6px 0; font-size: 15px; }
	html:has(.as-facets[open]) { overflow: hidden; }

	/* compact toolbar that stays at the top while scrolling the products */
	.as-toolbar { position: sticky; top: 0; z-index: 30; gap: 8px; margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5) 12px; padding: 8px calc(var(--bs-gutter-x, 1.5rem) * .5); background: #fff; border-bottom: 1px solid var(--as-line); }
	.as-tb-sort { flex: 1 1 auto; }
	.as-tb-sort .form-select { width: 100%; }
	.as-tb-btn, .as-tb-field { height: 42px; }
	.as-tb-field .form-select { height: 40px; }
	.as-search-row { grid-template-columns: minmax(0, 1fr) auto; }
	.as-search-row .form-select { grid-column: 1 / -1; grid-row: 2; }
}
/* the empty #alert toast container (fixed, top right, z 1090) sat over the drawer's close button */
#alert { pointer-events: none; }
#alert > * { pointer-events: auto; }
@keyframes as-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes as-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .as-facets[open] > .as-facets-body, .as-facets[open] > summary { animation: none; } }

@media (max-width: 767.98px) {
	.as-lst-head h1, .as-cat-head .as-cat-title { font-size: 22px; }
	.as-lst-count { font-size: 13px; }
	.as-cat-head .as-cat-thumb { width: 44px; height: 44px; }
	.as-cat-intro { font-size: 14px; }
	/* sub-categories: one swipeable strip (two rows when there are many) instead of a tall grid */
	.as-tiles { flex-wrap: nowrap; overflow-x: auto; margin: 10px calc(var(--bs-gutter-x, 1.5rem) * -.5) 14px; padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) 4px; scroll-snap-type: x proximity; scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.as-tiles::-webkit-scrollbar { display: none; }
	.as-tiles.as-tiles-2 { display: grid; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; }
	.as-tile { scroll-snap-align: start; padding: 8px 14px; }
	.as-tile .as-tile-name { font-size: 13.5px; }
	.as-tile .as-tile-count { font-size: 12px; }
	.as-tb-limit label, .as-tb-sort label { display: none; }
	.as-toolbar:not(:has(.as-tb-filters)) .as-tb-sort label { display: block; }
	.as-toolbar:not(:has(.as-tb-filters)) .as-tb-sort .form-select { padding-left: 6px; }
	.as-tb-sort .form-select, .as-tb-limit .form-select { padding-left: 12px; }
	.as-tb-limit .form-select { width: 68px; }
	.as-tb-btn { padding: 0 12px; }
	.as-section-title { font-size: 18px; margin-top: 24px; }
	.as-best-row { grid-auto-columns: minmax(160px, 46%); }
	.as-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.as-brand-grid a { min-height: 44px; padding: 8px 12px; font-size: 14px; }
	.as-brand-index { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5) 14px; padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) 4px; scrollbar-width: none; }
	.as-brand-index::-webkit-scrollbar { display: none; }
	.as-brand-index a { min-width: 40px; height: 40px; }
	.as-search-box { padding: 12px; }
	.as-pager .page-item .page-link { min-width: 38px; height: 38px; padding: 0 10px; }
}
