/* Catalogue component only. Product galleries, checkout and cart are excluded. */
body .ct-div-block:has(> .clothing-page) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
body .clothing-page {
  box-sizing: border-box;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
}
body .clothing-page[style*="display: none"] {
  display: none !important;
}
body .clothing-page #sub-categories-form:not(:has(button)) {
  display: none !important;
}
body .clothing-page #sub-categories-form:has(button) {
  display: block !important;
  width: 100% !important;
  margin: 0 0 24px !important;
}
body .clothing-page #sub-categories-form > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  overflow: visible !important;
}
body .clothing-page #sub-categories-form button {
  flex: 0 1 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 8px 16px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  white-space: nowrap;
}
body .clothing-page #productsContainer,
body .clothing-page #productsContainer > .woocommerce {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}
body :is(.clothing-page, .selfast-products-grid) ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 32px 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body :is(.clothing-page, .selfast-products-grid) ul.products::before,
body :is(.clothing-page, .selfast-products-grid) ul.products::after {
  display: none !important;
  content: none !important;
}
body :is(.clothing-page, .selfast-products-grid) ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body :is(.clothing-page, .selfast-products-grid) ul.products li.product a img,
body :is(.clothing-page, .selfast-products-grid) ul.products li.product a img.attachment-woocommerce_thumbnail {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 2 / 3;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  margin: 0 0 12px !important;
  background: #fff;
}
body :is(.clothing-page, .selfast-products-grid) ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(14px, 1.2vw, 17px) !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
  padding: 0 0 6px !important;
}
body :is(.clothing-page, .selfast-products-grid) ul.products li.product .price {
  display: block;
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin: 0 0 8px !important;
}
.selfast-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 4px 0 12px;
}
.selfast-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
  border: 1px solid #bbb;
  border-radius: 50%;
  color: #111;
}
.selfast-swatch:focus-visible,
.selfast-pagination a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
.selfast-swatch-dot {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--selfast-colour, #eee);
}
.selfast-pagination {
  display: block !important;
  clear: both;
  width: 100%;
  margin: 36px 0 20px;
  text-align: center;
}
.selfast-pagination ul.page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  list-style: none;
}
.selfast-pagination ul.page-numbers li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  border: 0 !important;
}
.selfast-pagination .page-numbers :is(a, span) {
  display: inline-flex !important;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px !important;
  border: 1px solid #bbb;
  border-radius: 6px;
  color: #111 !important;
  background: #fff !important;
  text-decoration: none;
}
.selfast-pagination .page-numbers span.current {
  color: #fff !important;
  background: #111 !important;
  border-color: #111;
}
.selfast-results-count {
  margin: 0 0 18px;
  font-size: 14px;
}
.selfast-catalogue-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.selfast-catalogue-title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  margin: 0;
}
.selfast-grid-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selfast-grid-tools button,
.selfast-filter-panel > summary {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.selfast-grid-tools button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}
.selfast-filter-panel {
  margin: 0 0 20px;
  width: 100%;
}
.selfast-filter-panel > summary {
  width: fit-content;
}
.selfast-filter-panel[open] {
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.selfast-filter-panel .wpf_form {
  max-width: 700px;
  padding-top: 20px;
}
.selfast-pagination:empty {
  display: none !important;
}
body .selfast-products-grid .woocommerce-pagination.wpf-hide {
  display: block !important;
}
body[data-selfast-view="comfortable"] :is(.clothing-page, .selfast-products-grid) ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.selfast-view-control {
  box-sizing: content-box;
  padding: 10px;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
}
.selfast-view-control:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
@media (min-width: 1800px) {
  body :is(.clothing-page, .selfast-products-grid) ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1024px) {
  body :is(.clothing-page, .selfast-products-grid) ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  body .clothing-page {
    padding-inline: 12px !important;
  }
  body :is(.clothing-page, .selfast-products-grid) ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 12px !important;
  }
  body :is(.clothing-page, .selfast-products-grid) ul.products li.product .price {
    font-size: 15px !important;
  }
  body[data-selfast-view="comfortable"] :is(.clothing-page, .selfast-products-grid) ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
