/* BatteryVault catalogue UX — theme source; scoped to category and search listings. */
.catalog-category-view .page-main,
.catalogsearch-result-index .page-main {
  padding-top: 40px;
  padding-bottom: 0;
}
.catalog-category-view .page-title-wrapper,
.catalogsearch-result-index .page-title-wrapper { margin-bottom: 28px; }

.catalog-category-view .toolbar-products,
.catalogsearch-result-index .toolbar-products {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 0 40px;
  padding: 18px 22px;
  box-sizing: border-box;
  background: #f7fafc;
  border: 1px solid rgba(13,27,42,.14);
  border-radius: 12px;
}
.catalog-category-view .toolbar-products .toolbar-amount,
.catalogsearch-result-index .toolbar-products .toolbar-amount {
  display: inline-flex;
  align-items: baseline;
  gap: .42em;
  order: -1;
  margin: 0 auto 0 0;
  padding: 9px 13px;
  white-space: nowrap;
  background: #eef8ef;
  border-radius: 999px;
  color: #123733;
  font-weight: 800;
  line-height: 1.25;
}
.catalog-category-view .toolbar-products .toolbar-amount-separator,
.catalogsearch-result-index .toolbar-products .toolbar-amount-separator { padding: 0 .10em; }
.catalog-category-view .toolbar-products .sorter,
.catalog-category-view .toolbar-products .limiter,
.catalogsearch-result-index .toolbar-products .sorter,
.catalogsearch-result-index .toolbar-products .limiter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  float: none;
}
.catalog-category-view .toolbar-products select,
.catalogsearch-result-index .toolbar-products select {
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 2px solid #4caf50;
  border-radius: 7px;
  background-color: #fff;
  color: #123733;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(76,175,80,.16);
}
.catalog-category-view .toolbar-products select:focus,
.catalog-category-view .toolbar-products select:active,
.catalogsearch-result-index .toolbar-products select:focus,
.catalogsearch-result-index .toolbar-products select:active {
  border-color: #1f6b25;
  outline: 3px solid rgba(76,175,80,.42);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(76,175,80,.20);
}
.catalog-category-view .products.wrapper + .toolbar-products,
.catalogsearch-result-index .products.wrapper + .toolbar-products {
  display: flex;
  justify-content: center;
  margin: 44px 0 64px;
  padding: 0;
  background: transparent;
  border: 0;
}
.catalog-category-view .pages,
.catalogsearch-result-index .pages { display: block; }
.catalog-category-view .pages .items,
.catalogsearch-result-index .pages .items { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.catalog-category-view .pages a.page,
.catalog-category-view .pages strong.page,
.catalog-category-view .pages .action.previous,
.catalog-category-view .pages .action.next,
.catalogsearch-result-index .pages a.page,
.catalogsearch-result-index .pages strong.page,
.catalogsearch-result-index .pages .action.previous,
.catalogsearch-result-index .pages .action.next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 7px;
  color: #123733;
  font-weight: 800;
  text-decoration: none;
}
.catalog-category-view .pages strong.page,
.catalogsearch-result-index .pages strong.page { background: #4caf50; color: #fff; }
.catalog-category-view .pages a.page:hover,
.catalog-category-view .pages .action.previous:hover,
.catalog-category-view .pages .action.next:hover,
.catalogsearch-result-index .pages a.page:hover,
.catalogsearch-result-index .pages .action.previous:hover,
.catalogsearch-result-index .pages .action.next:hover { background: #eef8ef; color: #1f6b25; }

@media (max-width: 768px) {
  .catalog-category-view .page-main,
  .catalogsearch-result-index .page-main { padding-top: 28px; }
  .catalog-category-view .toolbar-products,
  .catalogsearch-result-index .toolbar-products { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; margin-bottom: 32px; }
  .catalog-category-view .toolbar-products .toolbar-amount,
  .catalogsearch-result-index .toolbar-products .toolbar-amount { align-self: flex-start; margin-right: 0; }
  .catalog-category-view .toolbar-products .sorter,
  .catalog-category-view .toolbar-products .limiter,
  .catalogsearch-result-index .toolbar-products .sorter,
  .catalogsearch-result-index .toolbar-products .limiter { justify-content: space-between; width: 100%; }
  .catalog-category-view .toolbar-products select,
  .catalogsearch-result-index .toolbar-products select { max-width: 62%; }
  .catalog-category-view .products.wrapper + .toolbar-products,
  .catalogsearch-result-index .products.wrapper + .toolbar-products { margin: 36px 0 48px; }
}

/* Cascade guard: the older media stylesheet loads after theme static assets. */
html body.catalog-category-view .toolbar-products,html body.catalogsearch-result-index .toolbar-products{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:16px 24px!important;margin:0 0 40px!important;padding:18px 22px!important;background:#f7fafc!important;border:1px solid rgba(13,27,42,.14)!important;border-radius:12px!important}
html body.catalog-category-view .toolbar-products .toolbar-amount,html body.catalogsearch-result-index .toolbar-products .toolbar-amount{display:inline-flex!important;align-items:baseline!important;gap:.42em!important;margin:0 auto 0 0!important;padding:9px 13px!important;background:#eef8ef!important;border-radius:999px!important;white-space:nowrap!important}
html body.catalog-category-view .toolbar-products .toolbar-number,html body.catalogsearch-result-index .toolbar-products .toolbar-number{display:inline-block!important;margin:0 .28em!important}
html body.catalog-category-view .toolbar-products select,html body.catalogsearch-result-index .toolbar-products select{border:2px solid #4caf50!important;box-shadow:0 0 0 3px rgba(76,175,80,.16)!important}
html body.catalog-category-view .toolbar-products select:focus,html body.catalog-category-view .toolbar-products select:active,html body.catalogsearch-result-index .toolbar-products select:focus,html body.catalogsearch-result-index .toolbar-products select:active{border-color:#1f6b25!important;outline:3px solid rgba(76,175,80,.42)!important;outline-offset:2px!important;box-shadow:0 0 0 5px rgba(76,175,80,.20)!important}
html body.catalog-category-view .products.wrapper+.toolbar-products,html body.catalogsearch-result-index .products.wrapper+.toolbar-products{display:flex!important;justify-content:center!important;margin:44px 0 64px!important;padding:0!important}
html body.catalog-category-view .pages,html body.catalogsearch-result-index .pages{display:block!important}
html body.catalog-category-view .pages .items,html body.catalogsearch-result-index .pages .items{display:inline-flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:5px!important}
html body.catalog-category-view .pages a.page,html body.catalog-category-view .pages strong.page,html body.catalog-category-view .pages .action.previous,html body.catalog-category-view .pages .action.next,html body.catalogsearch-result-index .pages a.page,html body.catalogsearch-result-index .pages strong.page,html body.catalogsearch-result-index .pages .action.previous,html body.catalogsearch-result-index .pages .action.next{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:42px!important;min-height:42px!important;padding:0 11px!important;border-radius:7px!important}
html body.catalog-category-view .pages strong.page,html body.catalogsearch-result-index .pages strong.page{background:#4caf50!important;color:#fff!important}
@media (max-width:768px){html body.catalog-category-view .toolbar-products,html body.catalogsearch-result-index .toolbar-products{align-items:stretch!important;flex-direction:column!important;gap:14px!important;padding:16px!important}html body.catalog-category-view .toolbar-products .sorter,html body.catalog-category-view .toolbar-products .limiter,html body.catalogsearch-result-index .toolbar-products .sorter,html body.catalogsearch-result-index .toolbar-products .limiter{width:100%!important;justify-content:space-between!important}html body.catalog-category-view .products.wrapper+.toolbar-products,html body.catalogsearch-result-index .products.wrapper+.toolbar-products{margin:36px 0 48px!important}}

/* Catalogue-only breathing room beneath the category hero; toolbar remains unchanged. */
html body.catalog-category-view .page-main { padding-top: 40px !important; }
@media (max-width:768px) { html body.catalog-category-view .page-main { padding-top: 16px !important; } }
