/* Figma 323:9871 / 323:10210. Desktop catalogue styles remain in catalog.css. */
.range-clear { display:none; }
@media(max-width:960px) {
  .listing-page .filters.is-open {z-index:60;width:100%;height:100dvh;max-height:100dvh;margin:0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);scrollbar-width:thin;scrollbar-color:var(--icon-secondary) var(--background-secondary)}
  .listing-page .filters__heading {top:0;min-height:56px;margin:0;padding:8px 16px;background:var(--background-primary)}
  .listing-page .filters__heading h2 {font-size:16px}
  .listing-page .filters__close {width:40px;height:40px;border:0;border-radius:0;background:var(--background-secondary)}
  .listing-page #filter-groups {gap:16px;padding:0 0 12px}
  .listing-page .filter-group {padding-inline:15px}
  .listing-page .filter-group + .filter-group::before {top:-8px}
  .listing-page .filter-group summary {font-size:14px;min-height:40px}
  .listing-page .filter-group__content {padding-top:4px;font-size:12px;line-height:1.2}
  .listing-page .filter-check {min-height:28px}
  .listing-page .filter-check input {width:20px;height:20px}
  .listing-page .filter-more {font-size:12px}
  .listing-page .range-field {padding:0 0 0 11px;gap:4px;min-height:36px}
  .listing-page .range-field>span {font-size:12px}
  .listing-page .range-field input {font-size:16px;min-height:34px}
  .listing-page .range-clear {display:flex;align-items:center;justify-content:center;width:36px;height:36px;touch-action:manipulation}
  .listing-page .range-slider {margin:8px 0 12px}
  .listing-page .filters :focus-visible {outline-offset:-2px}
}
@media(max-width:640px) {
  .listing-page .breadcrumbs {min-height:38px;gap:4px;padding-block:8px;font-size:12px;line-height:1.2}
  .listing-page .listing {display:flex;flex-direction:column;padding-bottom:32px}
  .listing-page .listing__heading {order:0;align-items:stretch;gap:16px;padding:8px 0 16px}
  .listing-page .listing__heading h1 {font-size:36px;line-height:1;overflow-wrap:anywhere}
  .listing-page .listing__heading .button {width:100%;min-height:44px;font-size:14px;line-height:1.2}
  .listing-page .subcategories {order:1;display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:277px;grid-auto-rows:1fr;gap:12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:0;margin:24px -16px 0 0;padding:0 16px 0 0;scrollbar-width:none}
  .listing-page .subcategories::-webkit-scrollbar {display:none}
  .listing-page .subcategory {gap:12px;padding:8px 12px;font-size:12px;line-height:1.2;scroll-snap-align:start}
  .listing-page .subcategory:focus-visible {outline-offset:-2px}
  .listing-page #catalogue-form {order:2;min-width:0}
  .listing-page .tsp-category-intro {order:3;max-width:75ch;margin-top:32px;font-size:16px;line-height:1.4}
  .listing-page .tsp-category-cover {order:4;margin-top:24px}
  .listing-page .listing__layout {margin-top:24px}
  .listing-page .listing-toolbar {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
  .listing-page .filter-toggle {grid-column:1 / -1;justify-content:space-between;width:100%;height:44px;padding:12px 16px;border:0;background:var(--background-secondary);font-size:14px;text-align:left}
  .listing-page .sort {order:0;width:100%;min-width:0;height:40px;font-size:12px}
  .listing-page .sort .custom-select {font-size:12px}
  .listing-page .sort .custom-select__trigger {height:40px;min-height:40px;padding:9px 11px}
  .listing-page .sort .custom-select__list {width:max(100%,224px);max-width:calc(100vw - 32px)}
  .listing-page .sort .custom-select__list>[role=option] {font-size:12px}
  .listing-page .view-switch {margin:0}
  .listing-page .view-switch button {width:40px;height:40px;padding:8px}
  .listing-page .active-filters:empty {display:none}
  .listing-page .active-filters {margin:16px 0 0;min-height:0}
  .listing-page .listing-products-shell {margin-top:24px}
  .listing-page .listing-products {grid-template-columns:minmax(0,1fr);gap:20px;grid-auto-rows:1fr}
  .listing-page .listing-product .product__photo {height:208px}
  .listing-page .listing-product .product__photo>img {max-width:100%;width:200px;height:200px;object-fit:contain}
  .listing-page .listing-product .pill {top:12px;left:12px;font-size:10px;line-height:1.2}
  .listing-page .listing-product .product__details {gap:12px;align-items:start;font-size:10px;line-height:1.2}
  .listing-page .listing-product .product__details>span {min-width:0;overflow-wrap:anywhere}
  .listing-page .listing-product .product__details>span:last-child {margin-left:auto;text-align:right}
  .listing-page .listing-product h2 {font-size:14px;line-height:1.2;overflow-wrap:anywhere}
  .listing-page .listing-product .product__price {font-size:18px;line-height:1.1}
  .listing-page .listing-product .product__price>span {min-width:0;overflow-wrap:anywhere}
  .listing-page .listing-product .product__price small {font-size:12px;line-height:1.2}
  .listing-page .listing-product .product__price .icon-button {display:flex;flex:none;width:40px;height:40px}
  .listing-page .listing-products--list {gap:0;grid-auto-rows:auto}
  .listing-page .listing-products--list .product__photo {height:120px}
  .listing-page .listing-products--list .product__photo>img {width:100%;height:100%;min-height:0}
  .listing-page .listing-products--list .product__details>span:last-child {margin-left:0;text-align:left}
  .listing-page .listing-products--list .product__price .icon-button {display:none}
  .listing-page .listing-products--list .product__photo .pill {font-size:8px}
  .listing-page .listing-products--list .listing-product__request {font-size:12px}
  .listing-page .pagination {flex-wrap:nowrap;justify-content:space-between;gap:8px;margin-top:24px}
  .listing-page .pagination__pages {align-items:center;justify-content:center;flex:1;min-width:0;gap:8px;font-size:12px}
  .listing-page .pagination>a {flex:none}
  .listing-page .pagination__pages a {flex:none}
  .listing-page .pagination__pages:has(a[aria-current]:not(:first-child):not(:last-child)) a:not(:first-child):not(:last-child):not([aria-current]) {display:none}
  .listing-page .cta {padding-block:32px}
  .listing-page .cta__inner {gap:20px}
  .listing-page .cta h2 {font-size:20px}
  .listing-page .cta p {font-size:14px;line-height:1.2}
  .listing-page .cta .actions {display:flex;flex-direction:column;width:100%;gap:12px}
  .listing-page .cta .button {width:100%;min-height:48px;padding:13px 19px;font-size:12px;line-height:1.2}
  .listing-page #faq .split {gap:24px}
  .listing-page #faq .tag {font-size:12px;margin-bottom:16px}
  .listing-page #faq .text-link {font-size:12px;min-height:32px;margin-top:12px}
  .listing-page .accordion details {padding-block:12px}
  .listing-page .accordion summary {font-size:16px;line-height:1.2}
  .listing-page .accordion details p {font-size:12px;line-height:1.2}
  .listing-page .pd-seo {padding-block:32px}
}
@media(max-width:359px) {
  .listing-page .pagination {gap:4px;padding:8px}
  .listing-page .pagination__pages {gap:4px}
  .listing-page .pagination a {width:34px;height:34px}
}
