/* Shop landing pages: keep the archive heading available to assistive technology. */
@media (max-width: 767px) {
  body.woocommerce-shop .fusion-tb-page-title-bar > .steelprofil-native-hero + .fusion-fullwidth:has(h1) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.woocommerce-shop #main .cat-icons :is(#woocommerce_product_search-4, .widget_product_search) input.s {
    box-sizing: border-box;
    height: 45px !important;
    min-height: 45px !important;
  }

  body.woocommerce-shop #main .fusion-column-wrapper:has(> .fusion-widget-area .widget_product_categories) {
    padding-bottom: 12px !important;
  }

  body.woocommerce-shop #main :is(#woocommerce_product_categories-9, .widget_product_categories) .select2-container .select2-selection--single {
    box-sizing: border-box;
    height: auto !important;
    min-height: 47px !important;
    margin-bottom: 0 !important;
  }

  body.woocommerce-shop #main :is(#woocommerce_product_categories-9, .widget_product_categories) .select2-selection--single .select2-selection__rendered {
    box-sizing: border-box;
    height: auto !important;
    min-height: 45px !important;
    line-height: 23px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
  }

  body.woocommerce-shop #main :is(#woocommerce_product_categories-9, .widget_product_categories) .select2-selection--single .select2-selection__arrow {
    height: 45px !important;
  }
}

/* The existing six-shortcut grid uses three columns up to 640px. */
@media (max-width: 640px) {
  body.woocommerce-shop .cat-icons.sp-shared-catalog-panel {
    padding-bottom: 7px;
  }
  body.woocommerce-shop .cat-icons .fusion-row:has(> .catcolumn1) {
    row-gap: 7px;
  }
  body.woocommerce-shop .cat-icons .widget_product_search + .widget_text p {
    margin-top: 5px;
  }
  body.woocommerce-shop .cat-icons .filtr .heading-link {
    gap: 4px;
  }
  body.woocommerce-shop .cat-icons .filtr .heading-link .image img {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 0 !important;
  }
  body.woocommerce-shop .sp-shared-catalog-panel.cat-icons .heading .content-box-heading {
    min-height: 0;
  }
}


/* Keep the six labels under their icons, including when a translation wraps. */
@media (max-width: 640px) and (max-height: 620px) {
  body.woocommerce-shop .sp-shared-catalog-panel.cat-icons .fusion-row:has(> .catcolumn1) {
    row-gap: 4px;
  }
  body.woocommerce-shop .sp-shared-catalog-panel.cat-icons .heading .heading-link {
    min-height: 44px;
    gap: 2px;
  }
  body.woocommerce-shop .sp-shared-catalog-panel.cat-icons .heading .heading-link .image img {
    display: block;
    width: 30px !important;
    height: 30px !important;
  }
}

/* At 320px the original 30px gutters push the language menu onto its own row. */
@media (max-width: 350px) {
  body.woocommerce-shop .fusion-tb-header > .fusion-fullwidth.fusion-no-large-visibility:has(.fusion-standard-logo):has(.awb-menu__m-toggle) {
    padding-inline: 8px !important;
  }
}
