/* Weblytic category listing — marketplace redesign */
body.wbl-module-category,
body.wbl-module-search {
  background: #f3f5fb !important;
}

body.wbl-module-category #wrapper,
body.wbl-module-search #wrapper,
body.wbl-module-category #content-wrapper,
body.wbl-module-search #content-wrapper,
body.wbl-module-category #main,
body.wbl-module-search #main {
  background: transparent !important;
}

.wbl-category-page {
  --wbl-cat-ink: #0f1b33;
  --wbl-cat-muted: #6a7590;
  --wbl-cat-line: #e4e9f4;
  --wbl-cat-soft: #f7f8fd;
  --wbl-cat-accent: #5b4dff;
  --wbl-cat-accent-2: #3d7bff;
  --wbl-cat-shadow: 0 14px 40px rgba(15, 27, 51, .07);
  --wbl-cat-radius: 18px;
  max-width: var(--wbl-max, 1400px);
  margin: 0 auto;
  padding: 8px var(--wbl-container-pad-x, 24px) 56px;
  box-sizing: border-box;
  color: var(--wbl-cat-ink);
  font-family: var(--wbl-font, 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
}

body.wbl-module-category #left-column,
body.wbl-module-category #right-column,
body.wbl-module-category .breadcrumb,
body.wbl-module-category .breadcrumb-wrapper,
body.wbl-module-search #left-column,
body.wbl-module-search #right-column,
body.wbl-module-search .breadcrumb,
body.wbl-module-search .breadcrumb-wrapper {
  display: none !important;
}

body.wbl-module-category #content-wrapper.wbl-category-content-wrapper,
body.wbl-module-search #content-wrapper.wbl-search-content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.wbl-module-category #wrapper .deo-wrapper,
body.wbl-module-search #wrapper .deo-wrapper {
  max-width: 100% !important;
}

.wbl-cat-platform-prestashop { --wbl-cat-accent: #5b4dff; --wbl-cat-accent-2: #3d7bff; }
.wbl-cat-platform-shopify { --wbl-cat-accent: #2ea44f; --wbl-cat-accent-2: #56b870; }
.wbl-cat-platform-magento { --wbl-cat-accent: #f26322; --wbl-cat-accent-2: #ff8a3d; }
.wbl-cat-platform-odoo { --wbl-cat-accent: #714b67; --wbl-cat-accent-2: #5b4dff; }
.wbl-cat-platform-woocommerce { --wbl-cat-accent: #7f54b3; --wbl-cat-accent-2: #5b7cff; }

.wbl-category-page a { text-decoration: none; color: inherit; }

/* Market bar — removed site-wide (header search modal replaces it) */
.wbl-cat-marketbar {
  display: none !important;
}

.wbl-cat-marketbar__support,
.wbl-cat-marketbar__trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wbl-cat-marketbar__trust { justify-content: flex-end; }

.wbl-cat-marketbar__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--wbl-cat-accent) 28%, #fff);
  background: #fff;
  color: var(--wbl-cat-accent);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(15, 27, 51, .06);
}

.wbl-cat-marketbar__icon--shield {
  border-radius: 12px;
  position: relative;
}

.wbl-cat-marketbar__icon--shield::before {
  content: "";
  width: 14px;
  height: 16px;
  border: 2.5px solid currentColor;
  border-radius: 7px 7px 9px 9px;
  transform: rotate(0deg);
}

.wbl-cat-marketbar strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wbl-cat-ink);
  line-height: 1.2;
}

.wbl-cat-marketbar small {
  display: block;
  margin-top: 2px;
  color: var(--wbl-cat-muted);
  font-size: 12px;
  font-weight: 600;
}

.wbl-cat-marketbar__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 48px;
  height: 48px;
  border: 1px solid var(--wbl-cat-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 27, 51, .06);
}

.wbl-cat-marketbar__search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wbl-cat-marketbar__search input {
  min-width: 0;
  border: 0;
  padding: 0 18px;
  font-size: 14px;
  color: var(--wbl-cat-ink);
  outline: none;
  background: transparent;
}

.wbl-cat-marketbar__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-left: 1px solid var(--wbl-cat-line);
  color: #44506a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.wbl-cat-marketbar__select::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.wbl-cat-marketbar__search button {
  border: 0;
  background: linear-gradient(135deg, var(--wbl-cat-accent-2), var(--wbl-cat-accent));
  cursor: pointer;
  position: relative;
}

.wbl-cat-marketbar__search button::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.wbl-cat-marketbar__search button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 8px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* Breadcrumb */
.wbl-cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
  color: var(--wbl-cat-muted);
  font-size: 13px;
  font-weight: 600;
}

.wbl-cat-breadcrumb a:hover { color: var(--wbl-cat-accent); }
.wbl-cat-breadcrumb strong { color: var(--wbl-cat-ink); font-weight: 700; }

/* Hero */
.wbl-cat-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .75fr);
  gap: 28px;
  align-items: stretch;
  min-height: 240px;
  padding: 36px 40px;
  border-radius: 22px;
  border: 1px solid #ebe4ff;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, rgba(91, 77, 255, .16), transparent 28%),
    radial-gradient(circle at 78% 88%, rgba(61, 123, 255, .10), transparent 30%),
    linear-gradient(115deg, #ffffff 0%, #faf8ff 48%, #f0ebff 100%);
  box-shadow: var(--wbl-cat-shadow);
}

.wbl-cat-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 77, 255, .12), transparent 68%);
  pointer-events: none;
}

.wbl-cat-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin: 0 0 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(91, 77, 255, .08);
  color: var(--wbl-cat-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wbl-cat-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--wbl-cat-ink);
  text-transform: uppercase;
}

.wbl-cat-hero h1 span { color: var(--wbl-cat-accent); }

.wbl-cat-hero__lead {
  max-width: 540px;
  margin: 0 0 22px;
  color: #55627c;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

.wbl-cat-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.wbl-cat-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px rgba(15, 27, 51, .04);
}

.wbl-cat-stat__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--wbl-cat-accent) 12%, #fff);
  color: var(--wbl-cat-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wbl-cat-stat__icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}

.wbl-cat-icon-grid::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E");
}
.wbl-cat-icon-bag::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 8h12l-1 12H7L6 8Z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 8h12l-1 12H7L6 8Z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E");
}
.wbl-cat-icon-globe::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");
}
.wbl-cat-icon-shield::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8-8 9-4.6-1-8-4-8-9V7l8-4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8-8 9-4.6-1-8-4-8-9V7l8-4Z'/%3E%3C/svg%3E");
}
.wbl-cat-icon-star::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2.6 2.8 6 6.5.8-4.8 4.5 1.3 6.5L12 17.2l-5.8 3.2 1.3-6.5-4.8-4.5 6.5-.8L12 2.6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2.6 2.8 6 6.5.8-4.8 4.5 1.3 6.5L12 17.2l-5.8 3.2 1.3-6.5-4.8-4.5 6.5-.8L12 2.6Z'/%3E%3C/svg%3E");
}

.wbl-cat-stat strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--wbl-cat-ink);
}

.wbl-cat-stat small {
  display: block;
  margin-top: 2px;
  color: var(--wbl-cat-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.wbl-cat-hero__brand {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.wbl-cat-hero__brand-card {
  width: min(100%, 240px);
  padding: 28px 22px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 22px 50px rgba(70, 55, 160, .14);
  backdrop-filter: blur(8px);
}

.wbl-cat-hero__brand-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
}

.wbl-cat-hero__brand-card strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.wbl-cat-hero__brand-card small {
  display: block;
  margin-top: 6px;
  color: var(--wbl-cat-muted);
  font-size: 12px;
  font-weight: 600;
}

/* Shell */
.wbl-cat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Theme prestaproductenquiry sets #products { width:92%; margin:8px } — break rail alignment */
body.wbl-module-category #products.wbl-cat-products,
body.wbl-module-search #products.wbl-cat-products,
body.wbl-module-listing #products.wbl-cat-products,
.wbl-category-page #products.wbl-cat-products,
.wbl-category-page .wbl-cat-products {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

.wbl-cat-sidebar { position: sticky; top: 92px; }

.wbl-cat-mobile-bar,
.wbl-cat-sidebar__head,
.wbl-cat-sidebar-backdrop { display: none; }

.wbl-cat-panel {
  padding: 22px 20px 20px;
  border-radius: var(--wbl-cat-radius);
  background: #fff;
  border: 1px solid var(--wbl-cat-line);
  box-shadow: var(--wbl-cat-shadow);
}

.wbl-cat-panel__block + .wbl-cat-panel__block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--wbl-cat-line);
}

.wbl-cat-panel h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wbl-cat-ink);
}

.wbl-cat-side-list a {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 9px 10px;
  margin: 0 -4px;
  border-radius: 10px;
  color: #24314c;
  font-size: 13px;
  font-weight: 650;
  transition: background .15s ease, color .15s ease;
}

.wbl-cat-side-list a:hover {
  background: color-mix(in srgb, var(--wbl-cat-accent) 8%, #fff);
  color: var(--wbl-cat-accent);
}

.wbl-cat-side-list a span {
  display: inline;
  line-height: 1.35;
}

.wbl-cat-side-list .wbl-cat-side-count,
.wbl-cat-side-list small {
  color: inherit;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.wbl-cat-filter-group {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1f8;
}

.wbl-cat-filter-group:last-of-type {
  border-bottom: 0;
  margin-bottom: 14px;
  padding-bottom: 0;
}

.wbl-cat-filter-group strong {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
  color: var(--wbl-cat-ink);
}

/* Real ps_facetedsearch filters inside Wbl sidebar */
.wbl-cat-facets,
.wbl-cat-active-filters {
  margin: 0;
}

.wbl-cat-facets-empty {
  margin: 0;
  color: var(--wbl-cat-muted);
  font-size: 13px;
}

.wbl-category-page #search_filters_wrapper,
.wbl-category-page #search_filters {
  display: block !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wbl-category-page #search_filters .facet {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #eef1f8;
  background: transparent;
}

.wbl-category-page #search_filters .facet:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.wbl-category-page #search_filters .facet .title,
.wbl-category-page #search_filters .facet-title {
  display: block !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--wbl-cat-ink) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.wbl-category-page #search_filters .navbar-toggler,
.wbl-category-page #search_filters .collapse-icons {
  display: none !important;
}

.wbl-category-page #search_filters ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block !important;
  height: auto !important;
  overflow: visible !important;
}

.wbl-category-page #search_filters .collapse {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
}

.wbl-category-page #search_filters li {
  margin: 0 0 9px;
}

.wbl-category-page #search_filters .facet-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  color: var(--wbl-cat-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wbl-category-page #search_filters .facet-label .magnitude {
  margin-left: auto;
  color: #8a94a8;
  font-size: 12px;
  font-weight: 700;
}

.wbl-category-page #search_filters .custom-checkbox,
.wbl-category-page #search_filters .custom-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.wbl-category-page #search_filters input[type="checkbox"],
.wbl-category-page #search_filters input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--wbl-cat-accent);
  cursor: pointer;
}

.wbl-category-page #search_filters .js-search-filters-clear-all,
.wbl-category-page #_desktop_search_filters_clear_all .btn,
.wbl-category-page .wbl-cat-active-filters .js-search-filters-clear-all {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0 0 14px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--wbl-cat-accent) 35%, #fff);
  background: #fff;
  color: var(--wbl-cat-accent) !important;
  font-size: 13px;
  font-weight: 750;
}

.wbl-category-page #search_filters .ui-slider,
.wbl-category-page #search_filters .faceted-slider {
  margin: 10px 4px 8px;
}

.wbl-category-page #search_filters .faceted-slider .ui-slider-horizontal {
  height: 4px;
  border: 0;
  background: #e8ecf4;
  border-radius: 999px;
}

.wbl-category-page #search_filters .faceted-slider .ui-slider-range {
  background: var(--wbl-cat-accent);
  border-radius: 999px;
}

.wbl-category-page #search_filters .faceted-slider .ui-slider-handle {
  width: 14px;
  height: 14px;
  top: -5px;
  border: 2px solid var(--wbl-cat-accent);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.wbl-category-page .wbl-cat-active-filters {
  margin-bottom: 14px;
}

.wbl-category-page .wbl-cat-active-filters .filter-block,
.wbl-category-page .wbl-cat-active-filters .active-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px 8px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wbl-cat-accent) 10%, #fff);
  color: var(--wbl-cat-accent);
  font-size: 12px;
  font-weight: 700;
}

.wbl-cat-price-range {
  position: relative;
  height: 18px;
  margin: 4px 2px 6px;
}

.wbl-cat-price-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wbl-cat-accent), color-mix(in srgb, var(--wbl-cat-accent) 25%, #fff));
}

.wbl-cat-price-range::after,
.wbl-cat-price-range span::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--wbl-cat-accent);
  background: #fff;
  box-shadow: 0 4px 10px rgba(91, 77, 255, .2);
}

.wbl-cat-price-range::after { left: 0; }
.wbl-cat-price-range span::before { right: 0; }

.wbl-cat-price-labels {
  display: flex;
  justify-content: space-between;
}

.wbl-cat-price-labels small {
  color: var(--wbl-cat-ink);
  font-size: 12px;
  font-weight: 750;
}

.wbl-cat-filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  color: #334158;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wbl-cat-filter-group label span { flex: 1; }
.wbl-cat-filter-group label small {
  color: #8a94a8;
  font-size: 12px;
  font-weight: 700;
}

.wbl-cat-filter-group input {
  appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.5px solid #b7c0d2;
  border-radius: 4px;
  background: #fff;
}

.wbl-cat-filter-group input:checked {
  border-color: var(--wbl-cat-accent);
  background:
    linear-gradient(var(--wbl-cat-accent), var(--wbl-cat-accent)) center / 8px 8px no-repeat,
    #fff;
}

.wbl-cat-filter-stars { color: #f5b400; letter-spacing: 1px; }

.wbl-cat-clear-filters {
  width: 100%;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--wbl-cat-accent) 40%, #fff);
  border-radius: 10px;
  background: #fff;
  color: var(--wbl-cat-accent);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.wbl-cat-clear-filters:hover {
  background: color-mix(in srgb, var(--wbl-cat-accent) 8%, #fff);
}

/* Toolbar + pills */
.wbl-cat-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--wbl-cat-line);
  box-shadow: 0 8px 22px rgba(15, 27, 51, .04);
}

.wbl-cat-view { display: flex; gap: 8px; }

.wbl-cat-view button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wbl-cat-line);
  border-radius: 10px;
  background: #fff;
  color: var(--wbl-cat-muted);
  cursor: pointer;
}

.wbl-cat-view button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--wbl-cat-accent-2), var(--wbl-cat-accent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--wbl-cat-accent) 28%, transparent);
}

.wbl-cat-view__grid {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 10px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 0 10px / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 10px 10px / 6px 6px no-repeat;
}

.wbl-cat-view__list {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor 0 0) 0 1px / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 0 6px / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 0 11px / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 7px 2px / 9px 2px no-repeat,
    linear-gradient(currentColor 0 0) 7px 7px / 9px 2px no-repeat,
    linear-gradient(currentColor 0 0) 7px 12px / 9px 2px no-repeat;
}

.wbl-cat-toolbar p {
  margin: 0;
  color: var(--wbl-cat-muted);
  font-size: 14px;
  font-weight: 650;
}

.wbl-cat-sort .select-title {
  min-width: 160px;
  height: 40px;
  border: 1px solid var(--wbl-cat-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

.wbl-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.wbl-cat-filters button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--wbl-cat-line);
  border-radius: 999px;
  background: #fff;
  color: #2c3954;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}

.wbl-cat-filters button:hover,
.wbl-cat-filters button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--wbl-cat-accent-2), var(--wbl-cat-accent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--wbl-cat-accent) 25%, transparent);
}

/* Product grid — 3 columns like mockup */
.wbl-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wbl-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--wbl-cat-line);
  box-shadow: 0 12px 32px rgba(15, 27, 51, .05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wbl-cat-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--wbl-cat-accent) 30%, var(--wbl-cat-line));
  box-shadow: 0 20px 44px rgba(15, 27, 51, .1);
}

.wbl-cat-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff4ec;
  color: #ef6a1a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.wbl-cat-card:nth-child(4n+2) .wbl-cat-card__badge { background: #e8fbf1; color: #12a35c; }
.wbl-cat-card:nth-child(4n+3) .wbl-cat-card__badge { background: #efeaff; color: var(--wbl-cat-accent); }
.wbl-cat-card:nth-child(4n+4) .wbl-cat-card__badge { background: #eaf3ff; color: #2d78ff; }

.wbl-cat-card__image {
  display: grid;
  place-items: center;
  height: 180px;
  margin: 0;
  padding: 28px 20px 8px;
  background: linear-gradient(180deg, #f7f8fd 0%, #fff 100%);
}

.wbl-cat-card__image img {
  max-width: 100%;
  max-height: 148px;
  object-fit: contain;
  transition: transform .2s ease;
}

.wbl-cat-card:hover .wbl-cat-card__image img { transform: scale(1.04); }

.wbl-cat-card__placeholder {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #eef1f8;
  color: var(--wbl-cat-muted);
  font-weight: 700;
}

.wbl-cat-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 18px 18px;
}

.wbl-cat-card h3 {
  margin: 0 0 8px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
}

.wbl-cat-card h3 a { color: var(--wbl-cat-ink); }
.wbl-cat-card h3 a:hover { color: var(--wbl-cat-accent); }

.wbl-cat-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.wbl-cat-rating span {
  color: #f5b400;
  letter-spacing: 1px;
  font-size: 12px;
}

.wbl-cat-rating small {
  color: var(--wbl-cat-muted);
  font-size: 12px;
  font-weight: 600;
}

.wbl-cat-card__meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.wbl-cat-card__meta li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  color: var(--wbl-cat-muted);
  font-size: 12px;
  font-weight: 600;
}

.wbl-cat-card__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wbl-cat-accent);
}

.wbl-cat-price {
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--wbl-cat-ink);
}

.wbl-cat-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wbl-cat-add {
  flex: 1;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wbl-cat-accent-2), var(--wbl-cat-accent));
  color: #fff !important;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--wbl-cat-accent) 28%, transparent);
}

.wbl-cat-details {
  flex: 0 0 auto;
  color: var(--wbl-cat-accent) !important;
  font-size: 13px;
  font-weight: 750;
}

.wbl-cat-details:hover { text-decoration: underline; }

/* List view */
.wbl-cat-grid.is-list {
  grid-template-columns: 1fr;
}

.wbl-cat-grid.is-list .wbl-cat-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
}

.wbl-cat-grid.is-list .wbl-cat-card__image {
  height: 100%;
  min-height: 160px;
  padding: 20px;
}

.wbl-cat-grid.is-list .wbl-cat-card__body {
  padding: 18px 20px;
}

.wbl-cat-grid.is-list .wbl-cat-card h3 { min-height: 0; }

.wbl-cat-empty {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  border: 1px dashed var(--wbl-cat-line);
  border-radius: 16px;
  background: #fff;
}

/* Pagination / infinite scroll */
.wbl-cat-pagination {
  margin-top: 15px;
  text-align: center;
}

.wbl-cat-pagination--infinite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wbl-cat-load-more {
  display: none !important;
}

.wbl-cat-infinite-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.wbl-cat-infinite-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--wbl-cat-accent, #5b4dff);
  font-size: 13px;
  font-weight: 700;
}

.wbl-cat-infinite-status::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--wbl-cat-accent, #5b4dff) 25%, transparent);
  border-top-color: var(--wbl-cat-accent, #5b4dff);
  border-radius: 50%;
  animation: wbl-cat-spin 0.7s linear infinite;
}

.wbl-cat-pagination--infinite.is-complete .wbl-cat-infinite-sentinel,
.wbl-cat-pagination--infinite.is-complete .wbl-cat-infinite-status {
  display: none !important;
}

.wbl-cat-count {
  display: block;
  color: var(--wbl-cat-muted, #6a7590);
  font-size: 13px;
  font-weight: 600;
}

.wbl-cat-pagination-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wbl-cat-pagination > span {
  display: block;
  margin-bottom: 0;
  color: var(--wbl-cat-muted);
  font-size: 13px;
  font-weight: 600;
}

.wbl-cat-pagination .pagination {
  display: none !important;
}

@keyframes wbl-cat-spin {
  to { transform: rotate(360deg); }
}

/* Help + trust */
.wbl-cat-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: 18px;
  border: 1px solid #e8e1ff;
  background: linear-gradient(110deg, #fff 0%, #f4f0ff 100%);
  box-shadow: var(--wbl-cat-shadow);
}

.wbl-cat-help strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
}

.wbl-cat-help p {
  margin: 0;
  color: var(--wbl-cat-muted);
  font-size: 14px;
  font-weight: 500;
}

.wbl-cat-help a {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wbl-cat-accent-2), var(--wbl-cat-accent));
  color: #fff !important;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--wbl-cat-accent) 28%, transparent);
}

.wbl-cat-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.wbl-cat-trust > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 88px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--wbl-cat-line);
  box-shadow: 0 8px 22px rgba(15, 27, 51, .04);
}

.wbl-cat-trust span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--wbl-cat-accent) 10%, #fff);
  color: var(--wbl-cat-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
}

.wbl-cat-trust span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.wbl-cat-trust strong {
  font-size: 14px;
  font-weight: 750;
}

.wbl-cat-trust small {
  color: var(--wbl-cat-muted);
  font-size: 12px;
  font-weight: 600;
}

html.wbl-cat-no-scroll { overflow: hidden; }

/* Search page */
.wbl-search-page {
  padding-top: 0;
  padding-bottom: 16px;
}

.wbl-search-page .wbl-cat-trust {
  margin-top: 25px;
  margin-bottom: 25px;
}

.wbl-search-page .wbl-search-bottom-help {
  display: none !important;
}

body.wbl-module-search #wrapper,
body.wbl-module-search #content-wrapper,
body.wbl-module-search #main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.wbl-module-search #footer,
body.wbl-module-search footer#footer {
  margin-top: 0 !important;
}

.wbl-search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: end;
  gap: 24px;
  margin: 18px 0 28px;
  padding: 28px 30px;
  border: 1px solid var(--wbl-cat-line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(61, 123, 255, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 12px 32px rgba(15, 27, 51, 0.04);
}

.wbl-search-hero__kicker {
  margin: 0 0 8px;
  color: var(--wbl-cat-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wbl-search-hero h1,
.wbl-search-title h1 {
  margin: 0 0 8px;
  color: var(--wbl-cat-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wbl-search-hero h1 span,
.wbl-search-title h1 span {
  color: #2f6bff;
}

.wbl-search-hero__summary,
.wbl-search-title p {
  margin: 0 0 16px;
  color: var(--wbl-cat-muted);
  font-size: 15px;
  font-weight: 600;
}

.wbl-search-popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wbl-search-popular span,
.wbl-search-popular strong {
  margin-right: 2px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.wbl-search-popular a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dbe3f2;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.wbl-search-popular a:hover {
  border-color: #93b4ff;
  color: #1d4ed8;
  background: #f4f8ff;
}

.wbl-search-hero__aside {
  padding: 18px 18px 16px;
  border: 1px solid #dbe5f7;
  border-radius: 14px;
  background: #fff;
}

.wbl-search-hero__aside strong {
  display: block;
  margin-bottom: 6px;
  color: var(--wbl-cat-ink);
  font-size: 14px;
  font-weight: 750;
}

.wbl-search-hero__aside p {
  margin: 0 0 14px;
  color: var(--wbl-cat-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.wbl-search-hero__aside a,
.wbl-search-expert a {
  width: max-content;
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3d7bff, #2563eb);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.wbl-search-shell {
  grid-template-columns: 280px minmax(0, 1fr);
}

.wbl-search-shell--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.wbl-search-page .wbl-cat-mobile-bar {
  display: none !important;
}

.wbl-search-sidebar {
  top: 100px;
}

.wbl-search-filter-panel {
  padding-top: 8px;
}

.wbl-search-quick-filters {
  margin-bottom: 18px;
}

.wbl-search-quick-filters button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #3d7bff, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.wbl-search-bottom-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 18px;
  margin: 34px 0 28px;
}

.wbl-search-tags,
.wbl-search-expert {
  padding: 22px 24px;
  border: 1px solid var(--wbl-cat-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 27, 51, 0.04);
}

.wbl-search-tags strong,
.wbl-search-expert strong {
  display: block;
  margin-bottom: 6px;
  color: var(--wbl-cat-ink);
  font-size: 16px;
  font-weight: 750;
}

.wbl-search-tags p,
.wbl-search-expert p {
  margin: 0 0 14px;
  color: var(--wbl-cat-muted);
  font-size: 14px;
  line-height: 1.45;
}

.wbl-search-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wbl-search-tags a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dbe3f2;
  border-radius: 999px;
  background: #f8faff;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
}

.wbl-search-tags a:hover {
  border-color: #93b4ff;
  color: #1d4ed8;
}

.wbl-search-ai-card,
.wbl-search-ai-bot {
  display: none !important;
}

/* Search page: 4 products per row + hide platform label */
.wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.wbl-search-page .wbl-sh-product-platform {
  display: none !important;
}

.wbl-search-page .wbl-cat-toolbar {
  gap: 12px;
}

.wbl-search-page .wbl-cat-filters {
  gap: 8px;
}

@media (max-width: 1200px) {
  .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wbl-search-page .wbl-search-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .wbl-search-page .wbl-search-hero__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .wbl-search-page .wbl-search-hero__aside p {
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .wbl-search-page .wbl-search-bottom-help {
    grid-template-columns: 1fr;
  }

  .wbl-search-page .wbl-cat-toolbar {
    grid-template-columns: auto 1fr;
  }

  .wbl-search-page .wbl-cat-toolbar .wbl-cat-sort {
    grid-column: 1 / -1;
  }

  .wbl-search-page .wbl-cat-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px 4px;
  }

  .wbl-search-page .wbl-cat-filters::-webkit-scrollbar {
    display: none;
  }

  .wbl-search-page .wbl-cat-filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .wbl-search-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wbl-search-page .wbl-search-hero h1 {
    font-size: 24px;
  }

  .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wbl-search-page .wbl-sh-product-card h3 {
    font-size: 13px;
    min-height: 0;
  }

  .wbl-search-page .wbl-sh-product-stars {
    font-size: 14px;
  }

  .wbl-search-page .wbl-cat-view {
    display: none !important;
  }

  .wbl-search-page .wbl-cat-toolbar {
    grid-template-columns: 1fr;
  }

  .wbl-search-page .wbl-cat-grid.is-list .wbl-sh-product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .wbl-cat-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wbl-cat-shell { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
  .wbl-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .wbl-category-page { padding: 8px 16px 40px; }

  .wbl-cat-marketbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wbl-cat-marketbar__trust { justify-content: flex-start; }

  .wbl-cat-marketbar__search {
    grid-template-columns: minmax(0, 1fr) 130px 48px;
  }

  .wbl-cat-hero {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .wbl-cat-hero__brand { order: -1; justify-self: start; }
  .wbl-cat-hero__brand-card { width: min(100%, 220px); padding: 18px; }

  .wbl-cat-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 12px;
  }

  .wbl-cat-filter-toggle {
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--wbl-cat-line);
    border-radius: 12px;
    background: #fff;
    color: var(--wbl-cat-ink);
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 6px 16px rgba(15, 27, 51, .05);
  }

  .wbl-cat-mobile-bar p {
    margin: 0;
    color: var(--wbl-cat-muted);
    font-size: 13px;
    font-weight: 650;
  }

  .wbl-cat-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .wbl-cat-shell > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .wbl-cat-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 18, 36, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .wbl-cat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1201;
    width: min(360px, 90vw);
    height: 100%;
    overflow: auto;
    padding: 0 0 24px;
    background: #f3f5fb;
    box-shadow: 18px 0 40px rgba(15, 27, 51, .18);
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .wbl-cat-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--wbl-cat-line);
  }

  .wbl-cat-sidebar__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #eef1f8;
    font-size: 22px;
    line-height: 1;
  }

  .wbl-cat-sidebar .wbl-cat-panel { margin: 14px; }

  .wbl-category-page.wbl-cat-filters-open .wbl-cat-sidebar { transform: translateX(0); }
  .wbl-category-page.wbl-cat-filters-open .wbl-cat-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .wbl-cat-toolbar {
    grid-template-columns: auto 1fr;
  }

  .wbl-cat-view { display: none !important; }

  .wbl-cat-toolbar .wbl-cat-sort { grid-column: 1 / -1; }

  .wbl-cat-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .wbl-cat-filters::-webkit-scrollbar { display: none; }
  .wbl-cat-filters button { flex: 0 0 auto; white-space: nowrap; }

  .wbl-cat-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbl-search-hero,
  .wbl-search-bottom-help { grid-template-columns: 1fr; }
  .wbl-search-hero { padding: 22px; }
}

@media (max-width: 720px) {
  .wbl-category-page { padding: 6px 12px 32px; }

  .wbl-cat-marketbar__search {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .wbl-cat-marketbar__select { display: none; }

  .wbl-cat-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .wbl-cat-hero__brand { display: none; }

  .wbl-cat-toolbar { grid-template-columns: 1fr; }

  .wbl-cat-view { display: none !important; }

  .wbl-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .wbl-cat-grid.is-list .wbl-cat-card {
    grid-template-columns: 1fr;
  }

  .wbl-cat-card h3 { min-height: 0; }

  .wbl-cat-help {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .wbl-cat-help a { width: 100%; }
}

@media (max-width: 480px) {
  .wbl-cat-trust { grid-template-columns: 1fr; }
  .wbl-cat-stat { min-height: 58px; }
}

/* ─── Category product cards = homepage trending design ─── */
.wbl-category-page .wbl-cat-grid.wbl-sh-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wbl-category-page .wbl-sh-product-card {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 1px solid #e2e7f3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff 0%, #fff 58%);
  box-shadow: 0 16px 40px rgba(17, 24, 63, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wbl-category-page .wbl-sh-product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--wbl-cat-accent) 30%, #e2e7f3);
  box-shadow: 0 24px 52px rgba(47, 128, 255, 0.12);
}

.wbl-category-page .wbl-sh-product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wbl-category-page .wbl-sh-product-visual {
  position: relative;
  padding: 0;
  text-align: center;
  border-bottom: 1px solid #d7deef;
  background: #eef2fa;
}

.wbl-category-page .wbl-sh-product-icon {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #eef2fa;
  aspect-ratio: auto;
}

.wbl-category-page .wbl-sh-product-icon img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.wbl-category-page .wbl-sh-product-icon--fallback {
  min-height: 160px;
  background: linear-gradient(135deg, #635bff, #2f80ff);
}

.wbl-category-page .wbl-sh-icon-stripe { background: linear-gradient(135deg, #635bff, #0a2540); }
.wbl-category-page .wbl-sh-icon-payment { background: linear-gradient(135deg, #7B3FF2, #2F80FF); }
.wbl-category-page .wbl-sh-icon-account { background: linear-gradient(135deg, #10B981, #059669); }
.wbl-category-page .wbl-sh-icon-search { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.wbl-category-page .wbl-sh-icon-checkout { background: linear-gradient(135deg, #f59e0b, #d97706); }
.wbl-category-page .wbl-sh-icon-ai { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.wbl-category-page .wbl-sh-icon-chat { background: linear-gradient(135deg, #25D366, #128C7E); }
.wbl-category-page .wbl-sh-icon-odoo { background: linear-gradient(135deg, #714b67, #875a7b); }

.wbl-category-page .wbl-sh-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}

.wbl-category-page .wbl-sh-product-card:nth-child(4n+1) .wbl-sh-product-badge { background: #ef6a1a; }
.wbl-category-page .wbl-sh-product-card:nth-child(4n+2) .wbl-sh-product-badge { background: #10b981; }
.wbl-category-page .wbl-sh-product-card:nth-child(4n+3) .wbl-sh-product-badge { background: #5b4dff; }
.wbl-category-page .wbl-sh-product-card:nth-child(4n+4) .wbl-sh-product-badge { background: #2d78ff; }

.wbl-category-page .wbl-sh-product-platform {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1edff;
  color: var(--wbl-cat-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(17, 24, 63, 0.08);
}

.wbl-category-page .wbl-sh-product-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 8px 12px 2px;
  flex: 1 1 auto;
  min-height: 0;
}

.wbl-category-page .wbl-sh-product-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  color: #11183f;
  text-align: left;
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.wbl-category-page .wbl-sh-product-card h3 a {
  position: relative;
  z-index: 4;
  color: inherit;
  text-decoration: none;
}

.wbl-category-page .wbl-sh-product-card h3 a:hover {
  color: var(--wbl-cat-accent);
}

.wbl-category-page .wbl-sh-product-stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  min-height: 1.2em;
}

.wbl-category-page .wbl-sh-product-compat {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
  overflow: hidden;
  min-height: 24px;
}

.wbl-category-page .wbl-sh-product-compat-label {
  flex: 0 0 auto;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.wbl-category-page .wbl-sh-product-compat-tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 8px;
  background: #edf2ff;
  color: #3145c9;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.wbl-category-page .wbl-sh-product-perks--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 18, 37, 0.72) 100%);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wbl-category-page .wbl-sh-product-card:hover .wbl-sh-product-perks--overlay {
  opacity: 1;
  transform: translateY(0);
}

.wbl-category-page .wbl-sh-product-perks--overlay .wbl-sh-product-perk {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.wbl-category-page .wbl-sh-product-perks--inline { display: none; }

.wbl-category-page .wbl-sh-product-meta {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  color: #667085;
  font-size: 11px;
  min-height: 16px;
}

.wbl-category-page .wbl-sh-product-price {
  margin-bottom: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  color: #11183f;
  min-height: 1.2em;
}

.wbl-category-page .wbl-sh-product-actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 12px 10px;
  margin-top: auto;
}

.wbl-category-page .wbl-sh-product-actions--cart-only {
  grid-template-columns: 1fr;
}

.wbl-category-page .wbl-sh-btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #d7deef;
  background: #fff;
  color: #11183f !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.wbl-category-page .wbl-sh-btn-demo:hover {
  border-color: var(--wbl-cat-accent);
  color: var(--wbl-cat-accent) !important;
}

.wbl-category-page .wbl-sh-btn-cart {
  min-height: 34px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--wbl-cat-accent-2), var(--wbl-cat-accent));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--wbl-cat-accent) 28%, transparent);
  color: #fff !important;
  border: 0;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

.wbl-category-page .wbl-sh-add-form { display: contents; }

/* List view for trending-style cards */
.wbl-category-page .wbl-cat-grid.is-list {
  grid-template-columns: 1fr;
}

.wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-visual {
  grid-row: 1 / 3;
  border-bottom: 0;
  border-right: 1px solid #d7deef;
}

.wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-body {
  padding: 14px 16px 4px;
}

.wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-card h3 {
  min-height: 0;
  max-height: none;
  -webkit-line-clamp: 2;
}

.wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-actions {
  padding: 6px 16px 14px;
  max-width: 320px;
}

@media (max-width: 1200px) {
  .wbl-category-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wbl-category-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .wbl-category-page .wbl-sh-product-perks--overlay { display: none; }

  .wbl-category-page .wbl-sh-product-perks--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
  }

  .wbl-category-page .wbl-sh-product-perks--inline .wbl-sh-product-perk {
    font-size: 11px;
    font-weight: 700;
    color: #12a35c;
  }

  .wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-card {
    grid-template-columns: 1fr;
  }

  .wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-visual {
    border-right: 0;
    border-bottom: 1px solid #d7deef;
  }

  .wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-actions {
    max-width: none;
  }
}

/* Mobile containment — prevent product cards / grids from forcing page overflow */
@media (max-width: 1024px) {
  body.wbl-module-category,
  body.wbl-module-search,
  body.wbl-module-category #wrapper,
  body.wbl-module-search #wrapper,
  body.wbl-module-category #content-wrapper,
  body.wbl-module-search #content-wrapper,
  body.wbl-module-category #main,
  body.wbl-module-search #main,
  .wbl-category-page {
    overflow-x: clip;
    max-width: 100%;
  }

  .wbl-category-page,
  .wbl-category-page .wbl-cat-shell,
  .wbl-category-page .wbl-cat-products,
  .wbl-category-page #products.wbl-cat-products,
  .wbl-category-page .wbl-cat-grid,
  .wbl-category-page .wbl-sh-product-card,
  .wbl-category-page .wbl-sh-product-visual,
  .wbl-category-page .wbl-sh-product-body,
  .wbl-category-page .wbl-sh-product-actions,
  .wbl-category-page .wbl-cat-hero,
  .wbl-category-page .wbl-cat-toolbar {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .wbl-category-page .wbl-cat-grid.wbl-sh-product-grid {
    width: 100% !important;
  }

  .wbl-category-page .wbl-sh-product-card {
    width: 100% !important;
  }

  .wbl-category-page .wbl-sh-product-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .wbl-category-page .wbl-sh-product-actions--cart-only {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wbl-category-page .wbl-sh-btn-cart,
  .wbl-category-page .wbl-sh-btn-demo {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .wbl-category-page .wbl-sh-product-icon,
  .wbl-category-page .wbl-sh-product-icon img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 720px) {
  .wbl-category-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .wbl-category-page .wbl-cat-grid.is-list .wbl-sh-product-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wbl-category-page .wbl-sh-product-card h3,
  .wbl-category-page .wbl-sh-product-card h3 a {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.35;
  }

  .wbl-category-page .wbl-sh-product-price {
    font-size: 15px;
  }

  .wbl-category-page .wbl-sh-product-body {
    padding: 10px 10px 0;
  }

  .wbl-category-page .wbl-sh-product-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px;
    padding: 6px 10px 10px;
  }

  .wbl-category-page .wbl-sh-btn-cart,
  .wbl-category-page .wbl-sh-btn-demo {
    min-height: 32px;
    font-size: 10px;
  }

  .wbl-category-page .wbl-cat-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wbl-category-page .wbl-cat-hero {
    padding: 20px 16px !important;
  }
}

/* Search page overrides (after shared category rules) */
body.wbl-module-search .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
}

body.wbl-module-search .wbl-search-page .wbl-sh-product-platform {
  display: none !important;
}

@media (max-width: 1200px) {
  body.wbl-module-search .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.wbl-module-search .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  body.wbl-module-search .wbl-search-page .wbl-cat-grid.wbl-sh-product-grid {
    grid-template-columns: 1fr !important;
  }
}
