/* Direct product search and trade collections. Shared page styles stay scoped. */
.trade-landing { background: #f7f9fc; }
.trade-landing .trade-page { width: min(1440px, calc(100% - 80px)); margin: 0 auto; padding: 28px 0 64px; color: #153958; }
.trade-landing [hidden] { display: none !important; }
.trade-landing a:focus-visible,
.trade-landing button:focus-visible { outline: 3px solid #2674ae; outline-offset: 4px; }

.trade-breadcrumb { justify-content: flex-start; gap: 12px; margin-bottom: 32px; color: #65758a; font-size: 12px; }
.trade-breadcrumb a { color: #50647d; font-size: inherit; font-weight: 500; }
.trade-breadcrumb a:hover { color: #123f73; }
.trade-intro { padding-bottom: 30px; border-bottom: 1px solid #dfe7ef; }
.trade-kicker { display: flex; align-items: center; gap: 10px; color: #42627e; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.trade-kicker::before { content: ""; width: 24px; height: 3px; background: #20a563; }
.trade-intro-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.trade-intro h1 { margin: 12px 0 14px; color: #123f73; font-size: clamp(38px, 4vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.trade-intro p { max-width: 700px; color: #526780; font-size: 15px; line-height: 1.8; }
.trade-catalogue-link { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 22px; min-height: 46px; padding: 12px 18px; border: 1px solid #cfddeb; border-radius: 9px; background: #fff; color: #245580; font-size: 12px; font-weight: 600; text-decoration: none; }
.trade-catalogue-link:hover { background: #edf3f9; border-color: #a4bfd7; }
.trade-catalogue-link span { font-size: 18px; }

.trade-search { max-width: 820px; margin-top: 28px; }
.trade-search label { display: block; margin-bottom: 9px; color: #344f6b; font-size: 13px; font-weight: 600; }
.trade-search-field { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 12px 0 20px; border: 1px solid #bccfe1; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(22, 65, 105, .035); color: #607790; }
.trade-search-field:focus-within { border-color: #2674ae; box-shadow: 0 0 0 3px #e0ebf7; }
.trade-search-field > svg { width: 22px; height: 22px; flex: 0 0 22px; }
.trade-search input { width: 100%; min-width: 0; padding: 18px 0; border: 0; outline: 0; background: transparent; color: #153958; font: inherit; font-size: 16px; }
.trade-search input::placeholder { color: #6c7c8e; opacity: 1; }
.trade-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.trade-search button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: #eff3f7; color: #526780; cursor: pointer; }
.trade-search button svg { width: 18px; height: 18px; }
.trade-intro #tradeSearchStatus { min-height: 1.6em; margin: 9px 0 0; color: #627389; font-size: 12px; line-height: 1.6; }

.trade-directory { margin-top: 30px; scroll-margin-top: 24px; }
.trade-heading { margin-bottom: 20px; }
.trade-heading h2,
.trade-search-results > h2 { margin: 0 0 6px; color: #153958; font-size: 23px; letter-spacing: -.025em; }
.trade-heading p { color: #526780; font-size: 13px; line-height: 1.7; }
.trade-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trade-directory .trade-card { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 0 14px; min-width: 0; padding: 20px; border: 1px solid #dce6f0; border-radius: 12px; background: #fff; color: #123f73; text-decoration: none; transition: border-color 180ms ease, box-shadow 180ms ease; }
.trade-directory .trade-card:hover { border-color: #9bb8d2; box-shadow: 0 6px 18px rgba(20, 50, 80, .06); }
.trade-directory .trade-card-glow,
.trade-directory .trade-card-label { display: none; }
.trade-icon,
.trade-catalogue-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #edf3f9; color: #246197; }
.trade-icon svg,
.trade-catalogue-icon svg,
.home-trades .trade-icon svg { width: 24px; height: 24px; }
.trade-directory .trade-icon { grid-row: 1 / 3; }
.trade-directory .trade-card-copy { min-width: 0; }
.trade-directory .trade-card h3 { margin: 1px 0 7px; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.trade-directory .trade-card p { margin: 0; color: #526780; font-size: 11px; line-height: 1.6; }
.trade-directory .trade-card-footer { display: flex; align-items: center; gap: 12px; grid-column: 2; margin-top: 10px; color: #345b7d; font-size: 11px; font-weight: 600; }
.trade-arrow { display: inline-grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: #edf3f8; color: #245f94; font-size: 15px; line-height: 1; }

.trade-catalogues { margin-top: 40px; }
.trade-catalogue { padding: 34px 0; border-top: 1px solid #dce6f0; scroll-margin-top: 24px; }
.trade-catalogue-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.trade-catalogue-heading > div:first-child { display: flex; align-items: center; gap: 10px; }
.trade-catalogue-heading > div:nth-child(2) { flex: 1; min-width: 0; }
.trade-catalogue-number { color: #617b96; font-size: 12px; font-weight: 600; }
.trade-catalogue-heading .trade-card-label { display: none; }
.trade-catalogue-heading h2 { margin: 0 0 7px; color: #123f73; font-size: 27px; line-height: 1.25; letter-spacing: -.035em; }
.trade-catalogue-heading p { color: #526780; font-size: 13px; line-height: 1.7; }
.trade-tags { display: none; }
.trade-guide-link { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; color: #345b7d; font-size: 12px; font-weight: 600; text-decoration: none; }
.trade-product-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trade-product-group { min-width: 0; }
.trade-product-group h3 { margin: 0 0 12px; color: #45637f; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.trade-products { display: grid; gap: 10px; }
.trade-product { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px; border: 1px solid #e0e7ef; border-radius: 12px; background: #fff; color: #123f73; text-decoration: none; transition: border-color 180ms ease, box-shadow 180ms ease; }
.trade-product:hover { border-color: #9eb9d2; box-shadow: 0 5px 16px rgba(20, 50, 80, .06); }
.trade-product-image { display: flex; align-items: center; justify-content: center; flex: 0 0 68px; width: 68px; height: 68px; overflow: hidden; padding: 5px; border-radius: 7px; background: #f3f6f9; }
.trade-product-image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.trade-product-copy { display: block; flex: 1; min-width: 0; }
.trade-product-copy strong { display: block; color: #123f73; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.trade-product-copy small { display: block; margin-top: 7px; color: #45637f; font-size: 11px; line-height: 1.4; }
.trade-product .trade-arrow { flex-basis: 22px; width: 22px; height: 22px; }
.trade-product:hover .trade-arrow { background: #123f73; color: #fff; }
.trade-catalogue-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 18px; }
.trade-all-products,
.trade-back-link { display: inline-block; color: #345b7d; font-size: 12px; font-weight: 600; text-decoration: none; }
.trade-all-products:hover,
.trade-back-link:hover { text-decoration: underline; }

.trade-search-results { margin-top: 30px; }
.trade-search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.trade-search-grid .trade-product { position: relative; flex-direction: column; align-items: stretch; padding: 12px; }
.trade-search-grid .trade-product-image { flex: none; width: 100%; height: 160px; padding: 14px; }
.trade-search-grid .trade-product-copy { padding: 6px 6px 0; }
.trade-search-grid .trade-product-copy strong { font-size: 15px; }
.trade-search-grid .trade-product-copy p,
.trade-search-grid .trade-product-description { display: block; margin-top: 9px; color: #526780; font-size: 12px; line-height: 1.65; }
.trade-search-grid .trade-product-copy small { padding-top: 12px; }
.trade-search-grid .trade-product > .trade-arrow { align-self: flex-end; margin: auto 6px 4px 0; }
.trade-search-empty { padding: 36px 24px; border: 1px dashed #c8d7e5; border-radius: 12px; background: #fff; text-align: center; }
.trade-search-empty h3 { margin-bottom: 10px; font-size: 20px; }
.trade-search-empty p { color: #526780; font-size: 14px; line-height: 1.7; }
.trade-search-empty a { display: inline-block; min-height: 44px; margin-top: 18px; color: #245580; font-size: 13px; font-weight: 600; }
.trade-search-empty button { min-height: 44px; margin-top: 18px; padding: 10px 18px; border: 1px solid #cbd9e7; border-radius: 8px; background: #edf3f9; color: #245580; font: inherit; font-size: 13px; cursor: pointer; }

.trade-project-guides { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; padding: 24px 28px; border: 1px solid #dce6f0; border-radius: 12px; background: #fff; }
.trade-project-guides h2 { margin-bottom: 6px; color: #123f73; font-size: 20px; letter-spacing: -.025em; }
.trade-project-guides p { color: #526780; font-size: 12px; line-height: 1.7; }
.trade-project-guides nav { flex-wrap: wrap; gap: 10px; }
.trade-project-guides a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 10px 14px; border: 1px solid #dce6f0; border-radius: 8px; background: #f7f9fc; color: #345b7d; font-size: 12px; font-weight: 600; text-decoration: none; }
.trade-project-guides a:hover { background: #edf3f9; border-color: #a4bfd7; }
.trade-help { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; padding: 28px 32px; border: 1px solid #d8e4ef; border-radius: 14px; background: #edf3f9; }
.trade-help h2 { margin-bottom: 6px; color: #123f73; font-size: 22px; letter-spacing: -.025em; }
.trade-help p { color: #526780; font-size: 13px; line-height: 1.7; }
.trade-help > a { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 12px 20px; border-radius: 8px; background: #123f73; color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.trade-help > a:hover { background: #1d548a; }
.trade-help > a span { font-size: 18px; }
.trade-noscript { padding: 24px; color: #526780; font-size: 14px; }

@media (max-width: 1150px) {
  .trade-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-directory .trade-card { padding: 16px; }
  .trade-product-groups { gap: 16px; }
  .trade-products .trade-product { gap: 10px; padding: 10px; }
  .trade-product-image { flex-basis: 54px; width: 54px; height: 62px; }
  .trade-product .trade-arrow { display: none; }
  .trade-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trade-project-guides { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (max-width: 850px) {
  .trade-landing .trade-page { width: calc(100% - 40px); padding-top: 22px; }
  .trade-intro-heading { align-items: flex-start; gap: 24px; }
  .trade-catalogue-link { max-width: 170px; flex: 0 0 170px; padding: 10px 14px; line-height: 1.5; }
  .trade-catalogue-heading { flex-wrap: wrap; gap: 14px; }
  .trade-catalogue-number { display: none; }
  .trade-guide-link { margin-left: 56px; }
  .trade-product-groups { grid-template-columns: 1fr; gap: 24px; }
  .trade-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-product-image { flex-basis: 62px; width: 62px; height: 62px; }
  .trade-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .trade-help { align-items: flex-start; flex-direction: column; gap: 20px; padding: 24px; }
}

@media (max-width: 560px) {
  .trade-landing .trade-page { width: calc(100% - 32px); padding: 18px 0 36px; }
  .trade-breadcrumb { gap: 10px; margin-bottom: 24px; }
  .trade-intro-heading { flex-direction: column; gap: 18px; }
  .trade-intro p { font-size: 14px; line-height: 1.75; }
  .trade-catalogue-link { max-width: none; flex: none; min-height: 44px; padding: 10px 14px; }
  .trade-search { margin-top: 24px; }
  .trade-search label { font-size: 12px; }
  .trade-search-field { gap: 10px; min-height: 54px; padding-left: 12px; padding-right: 6px; }
  .trade-search-field > svg { flex-basis: 18px; width: 18px; height: 18px; }
  .trade-search input { padding: 16px 0; }
  .trade-search input::placeholder { font-size: 12px; }
  .trade-search button { flex-basis: 44px; width: 44px; height: 44px; }
  .trade-intro #tradeSearchStatus { font-size: 11px; }
  .trade-directory { margin-top: 24px; }
  .trade-heading h2,
  .trade-search-results > h2 { font-size: 21px; }
  .trade-heading p { font-size: 12px; }
  .trade-directory-grid { gap: 10px; }
  .trade-directory .trade-card { grid-template-columns: minmax(0, 1fr); padding: 14px 12px; }
  .trade-directory .trade-icon { grid-row: auto; margin-bottom: 12px; }
  .trade-directory .trade-card h3 { font-size: 14px; line-height: 1.4; }
  .trade-directory .trade-card p { display: none; }
  .trade-directory .trade-card-footer { grid-column: 1; align-self: end; gap: 6px; font-size: 10px; }
  .trade-directory .trade-arrow { width: 22px; height: 22px; flex-basis: 22px; }
  .trade-catalogues { margin-top: 30px; }
  .trade-catalogue { padding: 28px 0; }
  .trade-catalogue-heading { margin-bottom: 20px; gap: 12px; }
  .trade-catalogue-icon { width: 36px; height: 36px; border-radius: 8px; }
  .trade-catalogue-heading h2 { font-size: 23px; }
  .trade-catalogue-heading p { font-size: 12px; }
  .trade-guide-link { margin-left: 48px; }
  .trade-products { grid-template-columns: 1fr; }
  .trade-products .trade-product { gap: 14px; padding: 12px; }
  .trade-product-copy strong { font-size: 14px; }
  .trade-product .trade-arrow { display: inline-grid; }
  .trade-catalogue-footer { gap: 14px; margin-top: 16px; }
  .trade-all-products,
  .trade-back-link { min-height: 44px; padding-top: 10px; font-size: 11px; }
  .trade-search-grid { grid-template-columns: 1fr; gap: 12px; }
  .trade-search-grid .trade-product { flex-direction: row; align-items: center; gap: 14px; }
  .trade-search-grid .trade-product-image { width: 90px; height: 104px; flex: 0 0 90px; padding: 8px; }
  .trade-search-grid .trade-product-copy { padding: 0; }
  .trade-search-grid .trade-product-copy strong { font-size: 14px; }
  .trade-search-grid .trade-product-copy p,
  .trade-search-grid .trade-product-description { font-size: 12px; }
  .trade-search-grid .trade-product-copy small { font-size: 11px; }
  .trade-search-grid .trade-product > .trade-arrow { display: none; }
  .trade-project-guides { padding: 22px 18px; }
  .trade-project-guides nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .trade-project-guides a { gap: 10px; font-size: 11px; }
  .trade-help { padding: 24px 20px; gap: 18px; }
  .trade-help h2 { font-size: 21px; }
  .trade-help > a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trade-landing .trade-card,
  .trade-landing .trade-product { transition: none; }
}
