/* Local catalogue release. Load after product-orders.css; no global header rules. */
body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) {
  --htc-paper: #fff;
  --htc-page: #f6f8fb;
  --htc-ink: #17334c;
  --htc-muted: #566c7f;
  --htc-line: #dce5ed;
  --htc-soft: #eaf1f8;
  --htc-accent: #245b89;
  --htc-shade: #d7e5f1;
}
body.ht-catalog-page .page-body {
  background: var(--htc-page);
  color: var(--htc-ink);
  padding-bottom: 40px;
}
body.ht-catalog-page .page-body .container { max-width: 1240px; }
body.ht-catalog-page #catalog-all + .catalog-description {
  margin-top: 20px;
}
body.ht-catalog-page .catalog-launch-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
body.ht-catalog-page .catalog-launch-intro h1 {
  margin: 0;
  color: var(--htc-ink);
  font-size: clamp(27px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 600;
}
body.ht-catalog-page .catalog-launch-description {
  margin: 8px 0 0;
  color: var(--htc-muted);
  font-size: 15px;
  line-height: 1.5;
}
body.ht-catalog-page .catalog-launch-tz {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 0;
  color: var(--htc-accent);
  font-size: 14px;
  text-align: left;
  white-space: normal;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}

/* Compact header on the catalogue journey, including the tablet layout. */
@media (max-width: 999px) {
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .header-main {
    padding-block: 14px;
    min-height: 70px;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .header-main :is(.header-requisites, .brand-description, .header-contact, .header-actions) {
    display: none;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .header-main .brand {
    min-height: 42px;
    align-items: center;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .header-main .brand > span {
    font-size: 13px;
    line-height: 1.4;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .header-bottom {
    min-height: 44px;
    padding-block: 0;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .registry-banner-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding-block: 9px;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .minpromtorg-logo {
    display: none;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .registry-banner-claim {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .registry-banner-claim strong {
    font-size: 19px;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .registry-banner-claim span {
    font-size: 11px;
    line-height: 1.4;
  }
  body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .registry-company-link {
    flex: 0 0 110px;
    width: 110px;
    max-width: 110px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--htc-accent);
    font-size: 11px;
    line-height: 1.4;
  }
}
body.ht-catalog-page .page-body .catalog-search {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  padding: 18px 20px;
  background: var(--htc-soft);
  border: 1px solid var(--htc-shade);
  border-radius: 12px;
}
body.ht-catalog-page .catalog-search .catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
}
body.ht-catalog-page .catalog-search :is(input, select) {
  min-width: 0;
  min-height: 44px;
  height: 44px;
  border-color: #a8bac9;
  border-radius: 8px;
  background: var(--htc-paper);
  color: var(--htc-ink);
  font-size: 16px;
}
body.ht-catalog-page .catalog-search label {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  color: var(--htc-ink);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}
body.ht-catalog-page .catalog-search .catalog-order-filter {
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 12px 20px;
  margin-top: 6px;
  padding-top: 14px;
  border-top-color: var(--htc-shade);
}
body.ht-catalog-page .catalog-search [data-search-status] {
  color: var(--htc-muted);
  white-space: normal;
  overflow-wrap: anywhere;
}
body.ht-catalog-page .catalog-search-row .button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #bacbd9;
  border-radius: 8px;
  background: var(--htc-paper);
  color: var(--htc-accent);
  font-size: 14px;
  white-space: normal;
}
body.ht-catalog-page .catalog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
body.ht-catalog-page .catalog-filter-chips:empty { display: none; }
body.ht-catalog-page .catalog-filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--htc-line);
  border-radius: 8px;
  background: var(--htc-paper);
  color: var(--htc-accent);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}
body.ht-catalog-page .catalog-layout {
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
body.ht-catalog-page :is(.catalog-sidebar, .catalog-results, .catalog-categories) { min-width: 0; }
body.ht-catalog-page .catalog-sidebar-title {
  margin: 2px 12px 12px;
  color: var(--htc-muted);
  font-size: 14px;
  font-weight: 600;
}
body.ht-catalog-page .page-body .catalog-sidebar .category-nav {
  gap: 4px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
body.ht-catalog-page .page-body .catalog-sidebar .category-nav a {
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--htc-ink);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}
body.ht-catalog-page .page-body .catalog-sidebar .category-nav a[aria-current="true"] {
  background: var(--htc-soft);
  color: var(--htc-accent);
  font-weight: 600;
}
body.ht-catalog-page .page-body .catalog-sidebar .category-nav a:hover { background: #e1ecf5; }
body.ht-catalog-page .catalog-category-count {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--htc-muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
body.ht-catalog-page .catalog-results-title {
  margin: 0 0 16px;
  color: var(--htc-ink);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}
body.ht-catalog-page .catalog-unified-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
body.ht-catalog-page .catalog-unified-grid .photo-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--htc-line);
  border-radius: 12px;
  background: var(--htc-paper);
  color: var(--htc-ink);
}
body.ht-catalog-page .catalog-unified-grid .photo-product-cover {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 220px;
  width: 100%;
  height: 220px;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--htc-line);
  background: #fff;
}
body.ht-catalog-page .catalog-unified-grid .photo-product-cover img {
  display: block;
  width: var(--image-fill, 90%);
  height: var(--image-fill, 90%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
body.ht-catalog-page .catalog-unified-grid .catalog-photo-placeholder {
  padding: 24px;
  color: var(--htc-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
body.ht-catalog-page .catalog-product-image-note {
  box-sizing: border-box;
  min-height: 42px;
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--htc-line);
  color: var(--htc-muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body.ht-catalog-page .catalog-unified-grid .photo-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}
body.ht-catalog-page .catalog-unified-grid .photo-product-body :is(h3, h4) {
  min-height: 4.35em;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
body.ht-catalog-page .catalog-unified-grid .photo-product-body :is(h3, h4) a { color: var(--htc-ink); }
body.ht-catalog-page .catalog-product-facts-label {
  margin: 0;
  color: var(--htc-muted);
  font-size: 11px;
  line-height: 1.5;
}
body.ht-catalog-page .catalog-product-facts {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 60px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--htc-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.ht-catalog-page .catalog-product-facts strong { color: var(--htc-ink); font-weight: 500; }
body.ht-catalog-page .catalog-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  min-height: 26px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--htc-muted);
  font-size: 12px;
  line-height: 1.4;
}
body.ht-catalog-page .catalog-product-order {
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--htc-soft);
  color: var(--htc-accent);
}
body.ht-catalog-page .catalog-unified-grid .photo-product-actions {
  display: flex;
  align-items: stretch;
  margin-top: 0;
  padding-top: 2px;
}
body.ht-catalog-page .catalog-unified-grid .photo-product-actions [data-add-product] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--htc-accent);
  border-radius: 8px;
  background: var(--htc-accent);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}
body.ht-catalog-page .catalog-unified-grid .photo-product-actions [data-add-product]:hover { background: #1b4b73; }
body.ht-catalog-page .catalog-unified-grid .photo-product-actions .basket-product-selected {
  border-color: #b7cddd;
  background: var(--htc-soft);
  color: var(--htc-accent);
}
body.ht-catalog-page .catalog-unified-grid .photo-product-actions .basket-product-selected:hover { background: #dceaf4; }
body.ht-catalog-page .catalog-results .catalog-search-empty {
  padding: 28px;
  border: 1px solid var(--htc-line);
  border-radius: 12px;
  background: var(--htc-paper);
}
body.ht-catalog-page .catalog-launch-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 30px;
  padding: 24px;
  border-radius: 12px;
  background: var(--htc-soft);
}
body.ht-catalog-page .catalog-launch-help h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
body.ht-catalog-page .catalog-launch-help p { max-width: 580px; margin: 0; color: var(--htc-muted); font-size: 14px; }
body.ht-catalog-page .catalog-launch-help .button { min-height: 44px; white-space: normal; }

/* Keep the existing detailed-card layout and allocation semantics. */
body.ht-catalog-product-page .product-card { color: var(--htc-ink); }
body.ht-catalog-product-page .product-card .product-card-layout { column-gap: 32px; }
body.ht-catalog-product-page .product-card .product-card-info h1 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.25; }
body.ht-catalog-product-page .product-card .product-card-lead { color: var(--htc-muted); font-size: 16px; }
body.ht-catalog-product-page .product-card .product-card-facts { gap: 18px 24px; padding: 18px; border-radius: 12px; background: var(--htc-soft); }
body.ht-catalog-product-page .product-card .product-card-facts dd { font-size: 18px; font-weight: 600; }
body.ht-catalog-product-page .product-card .product-card-order { padding: 20px; border: 1px solid var(--htc-line); border-radius: 12px; background: var(--htc-paper); }
body.ht-catalog-product-page .product-card .product-card-section-nav [role="tab"][aria-selected="true"] { background: var(--htc-accent); border-color: var(--htc-accent); }
body.ht-catalog-quote-page .page-body [data-request-list] .quote-item { border: 1px solid var(--htc-line); border-radius: 12px; background: var(--htc-paper); }
body.ht-catalog-quote-page .page-body .quote-export { padding: 20px; border: 1px solid var(--htc-line); border-radius: 12px; background: var(--htc-soft); }
body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .allocation-editor :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select) { min-height: 44px; font-size: 16px; }
body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .allocation-editor .allocation-actions .button { min-height: 44px; border-radius: 8px; }
body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) .allocation-summary-actions .button { min-height: 44px; }
body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) :is(.catalog-layout, .catalog-search, .catalog-filter-chips, .catalog-launch-intro, .catalog-launch-help, .product-card, [data-request-list]) :focus-visible {
  outline: 3px solid #2175bd;
  outline-offset: 3px;
}
body.ht-catalog-page .page-body .catalog-sidebar .category-nav a:focus-visible { outline-color: #2175bd; outline-offset: -3px; }
body.ht-catalog-page .catalog-unified-grid .photo-product-cover:focus-visible { outline-offset: -4px; }
body:is(.ht-catalog-page, .ht-catalog-product-page, .ht-catalog-quote-page) :is(.catalog-unified-grid, .catalog-search, .catalog-filter-chips, .allocation-editor, .product-card) [hidden],
body.ht-catalog-page :is(.catalog-search, .catalog-filter-chips, .catalog-unified-grid)[hidden] { display: none !important; }

@media (max-width: 1199px) {
  body.ht-catalog-page .catalog-unified-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  body.ht-catalog-page .catalog-sidebar-title { display: block; }
  body.ht-catalog-page .catalog-category-toggle { display: none; }
}
@media (max-width: 999px) {
  body.ht-catalog-page .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.ht-catalog-page .catalog-sidebar-title { display: none; }
  body.ht-catalog-page .catalog-category-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--htc-line);
    border-radius: 8px;
    background: var(--htc-paper);
    color: var(--htc-ink);
    font-size: 14px;
    list-style: none;
    cursor: pointer;
  }
  body.ht-catalog-page .catalog-category-toggle::-webkit-details-marker { display: none; }
  body.ht-catalog-page .catalog-category-toggle::after {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
  body.ht-catalog-page .catalog-categories[open] .catalog-category-toggle::after { transform: rotate(225deg); }
  body.ht-catalog-page .catalog-categories[open] .category-nav { margin-top: 8px; }
}
@media (max-width: 620px) {
  body.ht-catalog-page .catalog-launch-intro { gap: 4px; margin-bottom: 16px; }
  body.ht-catalog-page .catalog-launch-description { font-size: 14px; }
  body.ht-catalog-page .page-body .catalog-search { padding: 12px; }
  body.ht-catalog-page .catalog-search .catalog-search-row { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; }
  body.ht-catalog-page .catalog-search .catalog-order-filter { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 12px; }
  body.ht-catalog-page .catalog-search .catalog-order-filter [data-search-status] { display: block; min-height: 0; text-align: left; }
  body.ht-catalog-page .catalog-layout { margin-top: 18px; gap: 16px; }
  body.ht-catalog-page .catalog-results-title { margin-bottom: 12px; font-size: 20px; }
  body.ht-catalog-page .catalog-launch-help { margin-top: 24px; padding: 18px; }
  body.ht-catalog-page .catalog-results .catalog-search-empty { padding: 20px; }
  body.ht-catalog-product-page .product-card .product-card-order { padding: 16px; }
  body.ht-catalog-product-page .product-card .product-card-facts { gap: 14px; padding: 14px; }
  body.ht-catalog-quote-page .page-body .quote-export { padding: 16px; }
}
@media (max-width: 599px) {
  body.ht-catalog-page .catalog-unified-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.ht-catalog-page .catalog-unified-grid .photo-product-cover { flex-basis: 250px; height: 250px; }
  body.ht-catalog-page .catalog-unified-grid .photo-product-body :is(h3, h4) { min-height: 0; font-size: 17px; }
  body.ht-catalog-page .catalog-product-facts { min-height: 0; }
  body.ht-catalog-page .catalog-product-meta { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ht-catalog-page .catalog-unified-grid .photo-product-cover img { transition: none; transform: none; }
}
