/* UI quality correction, 2026-11-05; append after the existing CSS, preserve all earlier rules. */
/* Same grid rule as the two WordPress B stylesheet sources. */
body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .catalog-search-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  min-width:0;
}
@media(max-width:600px) {
  body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .catalog-search-row { gap:7px; }
}

/* Keep the registry claim legible on a narrow screen. */
@media(max-width:600px) {
 body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .registry-banner-inner { display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px 14px; }
 body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .registry-banner-claim { display:block; }
 body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .registry-banner-claim strong { display:block;margin-bottom:4px; }
 body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .registry-banner-claim span { display:block;max-width:none; }
 body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .registry-company-link { grid-column:1 / -1; }
}

.ht-request-flow [data-request-list] .quote-configure { min-height:44px; }

/* Touch targets include text navigation and the image zoom slider. */
.product-viewer .product-viewer-zoom input[type="range"] { min-height:44px; }
@media(max-width:900px) {
  .site-header .brand { min-height:44px; }
  .site-footer :is(.footer-links, .footer-contacts) > a {
    display:flex;
    align-items:center;
    min-height:44px;
  }
}

/* Keep editable text readable in landscape on touch devices too. */
@media(hover:none) and (pointer:coarse) {
  body.ht-catalog-page:has(.catalog-layout-b) .entry-content .catalog-layout-b .catalog-search :is(input, select),
  body .ht-request-flow [data-ht-request-form] input:not([type="checkbox"]):not([type="file"]),
  body .ht-request-flow [data-ht-request-form] :is(textarea, select) {
    font-size:16px;
  }
}
