/* =====================================================================
 * Swedish Technology — B2B Catalogue stylesheet
 * Plugin: st-authority  ·  File: assets/css/st-catalog.css
 *
 * WHY THIS FILE EXISTS
 * The active theme (swetech) dequeues WooCommerce's own stylesheets in
 * functions.php (`woocommerce-general`, `woocommerce-layout`,
 * `woocommerce-smallscreen`) and ships no replacement — ehn-style.css
 * contains zero `woocommerce` selectors. The catalogue markup printed by
 * includes/catalog/class-catalog.php (.st-quote-bar, .st-quote-btn, …)
 * likewise has no rules anywhere in the codebase.
 *
 * This file supplies both layers:
 *   PART A — WooCommerce archive/loop/pagination baseline
 *   PART B — st-* catalogue and quote-flow components
 *
 * Tokens mirror themes/swetech/assets/css/ehn-style.css so the catalogue
 * inherits the brand without redefining it. Every var has a fallback so
 * the file also renders correctly if the theme stylesheet fails to load.
 * ================================================================== */

/* ---------------------------------------------------------------- tokens */
.woocommerce,
.st-quote-bar,
.st-product-actions {
  --stc-primary:      var(--st-primary, #DF0A0A);
  --stc-primary-dark: var(--st-primary-dark, #b30808);
  --stc-primary-soft: var(--st-primary-soft, rgba(223, 10, 10, .07));
  --stc-accent:       #F5A524;
  --stc-ink:          var(--st-ink, #0F0D1D);
  --stc-ink-2:        var(--st-ink-2, #334770);
  --stc-ink-3:        var(--st-ink-3, #7a8aaa);
  --stc-bg:           var(--st-bg, #fff);
  --stc-bg-2:         var(--st-bg-2, #fcfbff);
  --stc-bg-3:         var(--st-bg-3, #f5f4fa);
  --stc-border:       var(--st-border, #e8e8ef);
  --stc-radius:       var(--st-radius, 14px);
  --stc-radius-sm:    8px;
  --stc-shadow-sm:    var(--st-shadow-sm, 0 2px 6px rgba(15, 13, 29, .06));
  --stc-shadow:       var(--st-shadow, 0 8px 24px rgba(15, 13, 29, .08));
  --stc-gap:          24px;
}

/* =====================================================================
 * PART A — WooCommerce baseline (replaces the dequeued core stylesheets)
 * ================================================================== */

.woocommerce .site-main,
.woocommerce-page .site-main {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ------------------------------------------------------- product grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--stc-gap);
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px;
  width: auto;
  float: none;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  box-shadow: var(--stc-shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(223, 10, 10, .25);
  box-shadow: var(--stc-shadow);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  height: 180px;
  margin: 0 0 14px;
  object-fit: contain;
  background: var(--stc-bg-3);
  border-radius: var(--stc-radius-sm);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--stc-ink);
}

.woocommerce ul.products li.product a { text-decoration: none; }

/* Push the quote controls to the bottom so cards align on a row. */
.woocommerce ul.products li.product .st-quote-btn { margin-top: auto; }

/* -------------------------------------------------- result count / sort */
.woocommerce .woocommerce-result-count {
  margin: 0;
  color: var(--stc-ink-3);
  font-size: .875rem;
}

.woocommerce .woocommerce-ordering { margin: 0; }

.woocommerce .woocommerce-ordering select,
.woocommerce .st-catalog-toolbar select,
.woocommerce .st-catalog-filters select {
  appearance: none;
  padding: 9px 34px 9px 12px;
  background: var(--stc-bg-2)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23334770' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.woocommerce select:focus-visible,
.woocommerce input:focus-visible {
  outline: 2px solid var(--stc-primary);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ pagination */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  margin: 0;
  border: 0;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-ink-2);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--stc-primary-soft);
  border-color: var(--stc-primary);
  color: var(--stc-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--stc-ink);
  border-color: var(--stc-ink);
  color: #fff;
}

/* WooCommerce notices, unstyled once core CSS is dequeued. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--stc-bg-2);
  border: 1px solid var(--stc-border);
  border-left: 4px solid var(--stc-primary);
  border-radius: var(--stc-radius-sm);
  list-style: none;
  color: var(--stc-ink-2);
}

/* =====================================================================
 * PART B — Catalogue + quote-flow components (class-catalog.php)
 * ================================================================== */

/* --------------------------------------------------------- quote bar */
.st-quote-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  box-shadow: var(--stc-shadow-sm);
}

.st-quote-bar-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stc-ink);
  font-size: .95rem;
}

.st-quote-bar-state svg,
.st-quote-bar-state i[data-lucide] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--stc-primary);
}

.st-quote-bar-count {
  padding: 3px 12px;
  background: var(--stc-bg-3);
  border-radius: 999px;
  color: var(--stc-ink-2);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.st-quote-bar-hint {
  flex: 1 1 240px;
  color: var(--stc-ink-3);
  font-size: .875rem;
  line-height: 1.5;
}

.st-quote-bar-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  padding: 12px 22px;
  background: var(--stc-primary);
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}

.st-quote-bar-next:hover {
  background: var(--stc-primary-dark);
  color: #fff;
  transform: translateX(2px);
}

.st-quote-bar-next svg,
.st-quote-bar-next i[data-lucide] { width: 16px; height: 16px; }

/* ------------------------------------------------------ quote buttons */
.st-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: var(--stc-bg);
  border: 1.5px solid var(--stc-primary);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-primary);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.st-quote-btn:hover  { background: var(--stc-primary); color: #fff; }
.st-quote-btn:active { background: var(--stc-primary-dark); border-color: var(--stc-primary-dark); }

.st-quote-btn[disabled],
.st-quote-btn.is-added {
  background: var(--stc-bg-3);
  border-color: var(--stc-border);
  color: var(--stc-ink-3);
  cursor: default;
}

.st-quote-btn.st-quote-primary {
  width: auto;
  padding: 14px 30px;
  background: var(--stc-primary);
  color: #fff;
  font-size: .95rem;
}

.st-quote-btn.st-quote-primary:hover {
  background: var(--stc-primary-dark);
  border-color: var(--stc-primary-dark);
}

.st-quote-alt {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  background: transparent;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-ink-2);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.st-quote-alt:hover { border-color: var(--stc-ink-2); color: var(--stc-ink); }

/* ------------------------------------ single product: actions + qty */
.st-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 24px 0 0;
  padding: 20px;
  background: var(--stc-bg-2);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
}

.st-qty {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-qty > span {
  color: var(--stc-ink-3);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.st-qty input {
  width: 140px;
  padding: 12px 14px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-ink);
  font: inherit;
  font-weight: 600;
}

/* Minimum-order notice. Commercially load-bearing — never hide it. */
.st-moq-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: var(--stc-ink-3);
  font-size: .8rem;
  line-height: 1.5;
}

.woocommerce ul.products li.product .st-moq-note {
  flex-basis: auto;
  display: block;
  margin-top: 8px;
  text-align: center;
}

/* ----------------------------------------------------------- pricing */
.st-price {
  display: inline-block;
  font-size: .95rem;
  font-weight: 700;
}

.st-price-request {
  color: var(--stc-ink-2);
  font-weight: 600;
  font-style: normal;
}

.st-price-from { color: var(--stc-ink); }

/* ------------------------------ optional filter/toolbar shells (if used) */
.st-catalog-filters {
  margin: 0 0 24px;
  padding: 24px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-top: 4px solid var(--stc-accent);
  border-radius: var(--stc-radius);
  box-shadow: var(--stc-shadow-sm);
}

.st-catalog-filters h2 {
  margin: 0 0 16px;
  color: var(--stc-ink-2);
  font-size: 1.35rem;
}

.st-catalog-filters label {
  display: block;
  margin-bottom: 8px;
  color: var(--stc-ink-2);
  font-size: .875rem;
  font-weight: 600;
}

.st-catalog-filters select { width: 100%; max-width: 680px; }

.st-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
}

.st-catalog-search {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
}

.st-catalog-search svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--stc-ink-3); }

.st-catalog-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--stc-ink);
  font: inherit;
}

.st-catalog-search input:focus { outline: none; }

/* ======================================================== responsive */
@media (max-width: 782px) {
  .st-quote-bar { align-items: flex-start; padding: 14px 16px; }
  .st-quote-bar-next { margin-inline-start: 0; width: 100%; justify-content: center; }
  .st-product-actions { flex-direction: column; align-items: stretch; }
  .st-qty input { width: 100%; }
  .st-quote-btn.st-quote-primary { width: 100%; }
  .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .woocommerce ul.products li.product a img { height: 130px; }
}

/* ============================================================ a11y */
@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product,
  .st-quote-bar-next,
  .st-quote-btn,
  .st-quote-alt { transition: none; }
  .woocommerce ul.products li.product:hover { transform: none; }
  .st-quote-bar-next:hover { transform: none; }
}

/* =====================================================================
 * PART C — Live catalogue block (verified against production DOM)
 *
 * The catalogue on swedishtechnology.com is custom markup, not the
 * WooCommerce loop: there is no `ul.products`. These are the real class
 * names read off the rendered page, so Part A's WooCommerce selectors
 * never matched them. Tokens are redeclared here because Part A scopes
 * them to .woocommerce / .st-quote-bar / .st-product-actions only.
 * ================================================================== */

.st-category-panel,
.st-catalog-tools,
.st-pagination,
.st-pgrid,
.st-pcard,
.st-catalog-no-results {
  --stc-primary:      var(--st-primary, #DF0A0A);
  --stc-primary-dark: var(--st-primary-dark, #b30808);
  --stc-primary-soft: var(--st-primary-soft, rgba(223, 10, 10, .07));
  --stc-accent:       #F5A524;
  --stc-ink:          var(--st-ink, #0F0D1D);
  --stc-ink-2:        var(--st-ink-2, #334770);
  --stc-ink-3:        var(--st-ink-3, #7a8aaa);
  --stc-bg:           var(--st-bg, #fff);
  --stc-bg-2:         var(--st-bg-2, #fcfbff);
  --stc-bg-3:         var(--st-bg-3, #f5f4fa);
  --stc-border:       var(--st-border, #e8e8ef);
  --stc-radius:       var(--st-radius, 14px);
  --stc-radius-sm:    8px;
  --stc-shadow-sm:    var(--st-shadow-sm, 0 2px 6px rgba(15, 13, 29, .06));
  --stc-shadow:       var(--st-shadow, 0 8px 24px rgba(15, 13, 29, .08));
}

/* Shared select skin. Logical inset keeps the arrow correct under RTL. */
.st-category-picker select,
.st-catalog-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-block: 10px;
  padding-inline: 14px 36px;
  background-color: var(--stc-bg-2);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23334770' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 160ms ease;
}

[dir="rtl"] .st-category-picker select,
[dir="rtl"] .st-catalog-select select {
  background-position: left 13px center;
}

.st-category-picker select:hover,
.st-catalog-select select:hover { border-color: var(--stc-ink-3); }

.st-category-picker select:focus-visible,
.st-catalog-select select:focus-visible,
.st-catalog-search input:focus-visible,
.st-catalog-page:focus-visible {
  outline: 2px solid var(--stc-primary);
  outline-offset: 2px;
}

/* ------------------------------------------------- category panel */
.st-category-panel {
  margin: 0 0 24px;
  padding: 24px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-top: 4px solid var(--stc-accent);
  border-radius: var(--stc-radius);
  box-shadow: var(--stc-shadow-sm);
}

.st-cat-h2 {
  margin: 0 0 18px;
  color: var(--stc-ink-2);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.st-category-panel .st-cat-h2 { margin-bottom: 16px; }

.st-category-picker {
  display: block;
  max-width: 680px;
}

.st-category-picker > span {
  display: block;
  margin-bottom: 8px;
  color: var(--stc-ink-2);
  font-size: .875rem;
  font-weight: 600;
}

.st-category-picker select { width: 100%; }

/* -------------------------------------------------------- toolbar */
.st-catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  box-shadow: var(--stc-shadow-sm);
}

.st-catalog-search {
  display: flex;
  flex: 1 1 300px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  transition: border-color 160ms ease;
}

.st-catalog-search:focus-within { border-color: var(--stc-primary); }

.st-catalog-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--stc-ink-3);
}

.st-catalog-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--stc-ink);
  font: inherit;
}

.st-catalog-search input:focus { outline: none; }

.st-catalog-clear {
  flex: 0 0 auto;
  padding: 2px 6px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--stc-ink-3);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.st-catalog-clear:hover { color: var(--stc-primary); }

.st-catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.st-catalog-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stc-ink-2);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

.st-catalog-select select { padding-block: 8px; }

.st-catalog-result-count {
  color: var(--stc-ink-3);
  font-size: .8125rem;
  white-space: nowrap;
}

/* ----------------------------------------------------- pagination */
.st-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
  padding: 14px 0;
  border-block: 1px solid var(--stc-border);
}

.st-pagination-bottom { margin: 32px 0 0; }

.st-catalog-range {
  color: var(--stc-ink-3);
  font-size: .8125rem;
}

.st-catalog-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.st-catalog-page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-catalog-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-ink-2);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.st-catalog-page:hover:not(:disabled):not([aria-current="page"]) {
  background: var(--stc-primary-soft);
  border-color: var(--stc-primary);
  color: var(--stc-primary);
}

.st-catalog-page[aria-current="page"] {
  background: var(--stc-ink);
  border-color: var(--stc-ink);
  color: #fff;
  cursor: default;
}

.st-catalog-page:disabled {
  background: var(--stc-bg-3);
  border-color: var(--stc-border);
  color: var(--stc-ink-3);
  cursor: not-allowed;
}

/* ---------------------------------------------------- product grid */
.st-pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.st-pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--stc-bg);
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  box-shadow: var(--stc-shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.st-pcard:hover {
  border-color: rgba(223, 10, 10, .25);
  box-shadow: var(--stc-shadow);
  transform: translateY(-2px);
}

.st-pcard-media {
  display: block;
  padding: 16px;
  background: var(--stc-bg-3);
  line-height: 0;
  text-decoration: none;
}

.st-pcard-media img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.st-pcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.st-pcard-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.st-pcard-body h3 a {
  color: var(--stc-ink-2);
  text-decoration: none;
}

.st-pcard-body h3 a:hover { color: var(--stc-primary); }

.st-pcard-excerpt {
  margin: 0 0 16px;
  color: var(--stc-ink-3);
  font-size: .8125rem;
  line-height: 1.6;
}

.st-pcard-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.st-pcard-actions .st-quote-btn,
.st-pcard-actions .st-cart-btn { width: 100%; }

.st-pcard-actions .st-quote-btn svg,
.st-pcard-actions .st-cart-btn svg { width: 16px; height: 16px; }

.st-pcard-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius-sm);
  color: var(--stc-ink-2);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.st-pcard-alt:hover { border-color: var(--stc-ink-2); color: var(--stc-ink); }

/* ------------------------------------------------------ empty state */
.st-catalog-no-results {
  margin: 0;
  padding: 40px 20px;
  background: var(--stc-bg-2);
  border: 1px dashed var(--stc-border);
  border-radius: var(--stc-radius);
  color: var(--stc-ink-3);
  text-align: center;
}

.st-catalog-no-results:empty { display: none; }

/* ------------------------------------------------------ responsive */
@media (max-width: 782px) {
  .st-category-panel { padding: 18px; }
  .st-catalog-tools { padding: 12px 14px; }
  .st-catalog-controls { width: 100%; justify-content: space-between; }
  .st-pagination { justify-content: center; }
  .st-pgrid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .st-pcard-media { padding: 12px; }
  .st-pcard-media img { height: 130px; }
  .st-pcard-body { padding: 12px; }
  .st-pcard-excerpt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .st-pcard, .st-catalog-page, .st-pcard-alt { transition: none; }
  .st-pcard:hover { transform: none; }
}

/* =====================================================================
 * PART D — Quote button hover: brand gold
 *
 * Matches .nav-cta-phone in the header (#E8A317, white text, 8px radius)
 * so the primary action shares one hover identity across the site.
 * Applies to the grid cards and the single-product "Ask for a quote"
 * panel, which use the same .st-quote-btn component.
 * ================================================================== */

:root,
.woocommerce,
.st-quote-bar,
.st-product-actions,
.st-quote-panel,
.st-pcard {
  --stc-gold:      #E8A317;
  --stc-gold-dark: #c98a12;
  /* Label colour ON gold. White on #E8A317 is 2.2:1 and fails WCAG AA;
     this ink reads 8.7:1 on the same gold, so the brand colour is kept
     exactly and the label becomes legible. */
  --stc-on-gold:   #1F1503;
}

/* The theme also puts .btn.btn-primary on this button, so the compound
   selectors below guarantee we win regardless of stylesheet order. */
.st-quote-btn:hover,
.st-quote-btn:focus-visible,
.st-quote-btn.st-cart-btn:hover,
.st-quote-btn.st-quote-primary:hover,
.btn.btn-primary.st-quote-btn:hover,
.st-quote-panel .st-quote-btn:hover,
.st-pcard-actions .st-quote-btn:hover {
  background: var(--stc-gold);
  border-color: var(--stc-gold);
  color: var(--stc-on-gold);
}

.st-quote-btn:hover svg,
.st-quote-btn.st-cart-btn:hover svg,
.btn.btn-primary.st-quote-btn:hover svg {
  color: var(--stc-on-gold);
  stroke: currentColor;
}

.st-quote-btn:active,
.st-quote-btn.st-cart-btn:active,
.st-quote-btn.st-quote-primary:active,
.btn.btn-primary.st-quote-btn:active {
  background: var(--stc-gold-dark);
  border-color: var(--stc-gold-dark);
  color: var(--stc-on-gold);
}

/* Keep the focus ring readable now that hover is gold rather than red. */
.st-quote-btn:focus-visible {
  outline: 2px solid var(--stc-gold-dark);
  outline-offset: 2px;
}

/* An already-added line must not look clickable-gold on hover. */
.st-quote-btn.is-added:hover,
.st-quote-btn[disabled]:hover {
  background: var(--stc-bg-3, #f5f4fa);
  border-color: var(--stc-border, #e8e8ef);
  color: var(--stc-ink-3, #7a8aaa);
}

.st-quote-btn.is-added:hover svg,
.st-quote-btn[disabled]:hover svg { color: var(--stc-ink-3, #7a8aaa); }

@media (prefers-reduced-motion: reduce) {
  .st-quote-btn { transition: none; }
}

/* =====================================================================
 * PART E — Win against the theme's migration layer
 *
 * themes/swetech-old/css/st-ui-migration.css lists .st-quote-btn in its
 * button group and states in its own header: "Loaded after style.css …
 * so the few properties that must win carry !important." It enqueues at
 * priority 999; this file enqueues at 20. So on the catalogue cards the
 * theme's red fill beat the gold hover, while the single-product button
 * (different class mix) let it through — which is why the hover looked
 * fixed in one place and unchanged in the other.
 *
 * Three properties, declared !important, on the interactive states only.
 * The resting appearance is left to the theme so the buttons keep
 * matching the rest of the site.
 * ================================================================== */

.st-quote-btn:hover,
.st-quote-btn:focus-visible,
.st-quote-btn.st-cart-btn:hover,
.st-quote-btn.st-quote-primary:hover,
.btn.st-quote-btn:hover,
.btn.btn-primary.st-quote-btn:hover,
.st-pcard .st-quote-btn:hover,
.st-pcard-actions .st-quote-btn:hover,
.st-pgrid .st-pcard .st-quote-btn:hover,
.st-quote-panel .st-quote-btn:hover,
.woocommerce .st-quote-btn:hover {
  background: var(--stc-gold, #E8A317) !important;
  border-color: var(--stc-gold, #E8A317) !important;
  color: var(--stc-on-gold, #1F1503) !important;
}

.st-quote-btn:hover svg,
.st-quote-btn:hover i,
.st-quote-btn.st-cart-btn:hover svg,
.btn.btn-primary.st-quote-btn:hover svg,
.st-pcard .st-quote-btn:hover svg,
.st-quote-panel .st-quote-btn:hover svg {
  color: var(--stc-on-gold, #1F1503) !important;
  stroke: currentColor !important;
}

.st-quote-btn:active,
.st-quote-btn.st-cart-btn:active,
.st-quote-btn.st-quote-primary:active,
.btn.btn-primary.st-quote-btn:active,
.st-pcard .st-quote-btn:active {
  background: var(--stc-gold-dark, #c98a12) !important;
  border-color: var(--stc-gold-dark, #c98a12) !important;
  color: var(--stc-on-gold, #1F1503) !important;
}

/* A line already added is not clickable, so it must not offer gold. */
.st-quote-btn.is-added,
.st-quote-btn[disabled],
.st-quote-btn.is-added:hover,
.st-quote-btn[disabled]:hover,
.st-pcard .st-quote-btn.is-added:hover,
.st-pcard .st-quote-btn[disabled]:hover {
  background: var(--stc-bg-3, #f5f4fa) !important;
  border-color: var(--stc-border, #e8e8ef) !important;
  color: var(--stc-ink-3, #7a8aaa) !important;
  cursor: default !important;
}

.st-quote-btn.is-added:hover svg,
.st-quote-btn[disabled]:hover svg {
  color: var(--stc-ink-3, #7a8aaa) !important;
}

.st-quote-btn:focus-visible {
  outline: 2px solid var(--stc-gold-dark, #c98a12) !important;
  outline-offset: 2px !important;
}

/* =====================================================================
 * PART F — Resting state, forced
 *
 * Requirement: white at rest, gold on hover.
 *
 * Part E forced the hover but left the resting appearance to the theme.
 * st-ui-migration.css fills .st-quote-btn solid red with !important at
 * priority 999, so on the catalogue cards the rest state came out red
 * instead of white. Both states must therefore be declared here.
 *
 * Rest  : white fill, red outline, red label
 * Hover : gold fill, dark label
 * Added : grey, inert
 * ================================================================== */

.st-quote-btn,
.st-quote-btn.st-cart-btn,
.st-quote-btn.st-quote-primary,
.btn.st-quote-btn,
.btn.btn-primary.st-quote-btn,
.st-pcard .st-quote-btn,
.st-pcard-actions .st-quote-btn,
.st-pgrid .st-pcard .st-quote-btn,
.st-quote-panel .st-quote-btn,
.woocommerce .st-quote-btn {
  background: #fff !important;
  border: 1.5px solid var(--stc-primary, #DF0A0A) !important;
  color: var(--stc-primary, #DF0A0A) !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

.st-quote-btn svg,
.st-quote-btn i,
.st-pcard .st-quote-btn svg,
.btn.btn-primary.st-quote-btn svg,
.st-quote-panel .st-quote-btn svg {
  color: var(--stc-primary, #DF0A0A) !important;
  stroke: currentColor !important;
}

/* -------------------------------------------------------------- hover */

.st-quote-btn:hover,
.st-quote-btn:focus-visible,
.st-quote-btn.st-cart-btn:hover,
.st-quote-btn.st-quote-primary:hover,
.btn.st-quote-btn:hover,
.btn.btn-primary.st-quote-btn:hover,
.st-pcard .st-quote-btn:hover,
.st-pcard-actions .st-quote-btn:hover,
.st-pgrid .st-pcard .st-quote-btn:hover,
.st-quote-panel .st-quote-btn:hover,
.woocommerce .st-quote-btn:hover {
  background: var(--stc-gold, #E8A317) !important;
  border-color: var(--stc-gold, #E8A317) !important;
  color: var(--stc-on-gold, #1F1503) !important;
}

.st-quote-btn:hover svg,
.st-quote-btn:hover i,
.st-pcard .st-quote-btn:hover svg,
.btn.btn-primary.st-quote-btn:hover svg,
.st-quote-panel .st-quote-btn:hover svg {
  color: var(--stc-on-gold, #1F1503) !important;
}

.st-quote-btn:active,
.st-pcard .st-quote-btn:active,
.btn.btn-primary.st-quote-btn:active {
  background: var(--stc-gold-dark, #c98a12) !important;
  border-color: var(--stc-gold-dark, #c98a12) !important;
  color: var(--stc-on-gold, #1F1503) !important;
}

/* ------------------------------------------------- already on the list */

.st-quote-btn.is-added,
.st-quote-btn[disabled],
.st-quote-btn.is-added:hover,
.st-quote-btn[disabled]:hover,
.st-pcard .st-quote-btn.is-added,
.st-pcard .st-quote-btn.is-added:hover,
.st-pcard .st-quote-btn[disabled]:hover {
  background: var(--stc-bg-3, #f5f4fa) !important;
  border-color: var(--stc-border, #e8e8ef) !important;
  color: var(--stc-ink-3, #7a8aaa) !important;
  cursor: default !important;
}

.st-quote-btn.is-added svg,
.st-quote-btn[disabled] svg,
.st-quote-btn.is-added:hover svg {
  color: var(--stc-ink-3, #7a8aaa) !important;
}
