
.shop-view-switcher, .klb-grid-list, .products-view, .grid-list-btn,
.shop-view, a.list-view, button.list-view, .list-view,
.product-views, .column-switch, .shop-page-wrapper .column-switch,
.switch-view, .view-mode, .gridlist-toggle { display: none !important; }

body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .shop-loop-before,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .woocommerce-result-count,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) form.woocommerce-ordering:not(.bih-order),
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .per-page,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .products-per-page,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .klb-perpage,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .before-shop,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .shop-toolbar,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .filter-button,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) .klb-filter-button {
  display: none !important;
}

.bih-filter {
  font-family: Outfit, Helvetica, Arial, sans-serif;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 18px 0 14px;
  margin: 0 0 28px;
  color: #111;
}
.bih-filter-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.bih-cats { flex: 0 0 auto; }
.bih-sz { margin-left: auto; }
.bih-filter h3 {
  margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .08em;
}
.bih-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px 18px; margin: 0 0 10px; }
.bih-g { font-size: 13px; font-weight: 500; min-width: 58px; }
.bih-line a { color: #111 !important; text-decoration: none; font-size: 14px; }
.bih-line a:hover, .bih-line a.is-on { text-decoration: underline; font-weight: 500; }
.bih-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.bih-sizes a {
  min-width: 44px; height: 40px; padding: 0 10px;
  border: 1px solid #ddd; background: #fff; color: #111 !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; text-decoration: none !important;
  box-sizing: border-box;
}
.bih-sizes a:hover, .bih-sizes a.is-on { background: #111; color: #fff !important; border-color: #111; }
.bih-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 14px; margin-top: 6px; border-top: 1px solid #eee;
}
.bih-count { font-size: 13px; }
.bih-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bih-filter select {
  appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23111'/></svg>") no-repeat right 10px center;
  border: 1px solid #ddd; color: #111; height: 36px; padding: 0 28px 0 12px;
  font: 400 13px Outfit, Helvetica, Arial, sans-serif; cursor: pointer;
  box-shadow: none; border-radius: 0; min-width: 0;
}
@media (max-width: 720px) {
  .bih-filter-inner { flex-direction: column; gap: 20px; }
  .bih-sz { margin-left: 0; }
}

/* Desktop: 3 colunas nas listas. Telemóvel: 2. */
body.search ul.products,
body.search-results ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.post-type-archive-product ul.products,
body.archive.woocommerce ul.products,
body.search ul.products.columns-3,
body.search ul.products.columns-4,
body.search-results ul.products.columns-3,
body.search-results ul.products.columns-4,
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px 12px !important;
}
body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) ul.products li.product,
body.search ul.products li.product,
body.search-results ul.products li.product {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
}
@media (min-width: 768px) {
  body.search ul.products,
  body.search-results ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products,
  body.post-type-archive-product ul.products,
  body.archive.woocommerce ul.products,
  body.search ul.products.columns-3,
  body.search ul.products.columns-4,
  body.search-results ul.products.columns-3,
  body.search-results ul.products.columns-4,
  body:is(.tax-product_cat, .tax-product_tag, .post-type-archive-product, .search, .search-results) ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px 16px !important;
  }
}


/* Glass buttons on listing cards */
ul.products li.product { position: relative !important; }
ul.products li.product .woosq-btn,
ul.products li.product a.woosq-btn,
ul.products li.product .bih-cart-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 6 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18)) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -6px 10px rgba(255,255,255,.12),
    0 4px 14px rgba(0,0,0,.12) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  color: #111 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
  transition: opacity .18s ease, transform .18s ease !important;
}
ul.products li.product .bih-cart-btn { top: 52px !important; z-index: 7 !important; }
ul.products li.product .bih-cart-btn svg {
  width: 15px; height: 15px; fill: none; stroke: #111; stroke-width: 1.6;
}
@media (min-width: 768px) {
  ul.products li.product .woosq-btn,
  ul.products li.product a.woosq-btn,
  ul.products li.product .bih-cart-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-4px);
  }
  ul.products li.product:hover .woosq-btn,
  ul.products li.product:hover a.woosq-btn,
  ul.products li.product:hover .bih-cart-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none;
  }
}
