/* Equipment storefront */
.catalog-intro { border-bottom: 1px solid var(--line); padding-block: clamp(28px, 4vw, 56px); }
.catalog-intro h1 {
  font: 700 var(--page-title-size)/1.08 var(--heading);
  text-transform: uppercase;
  margin: 12px 0 16px;
  overflow-wrap: anywhere;
}
.catalog-intro p, .product-summary p, .product-order p { color: var(--muted); line-height: 1.65; }
.catalog-section { padding-block: clamp(24px, 4vw, 58px); }
.catalog-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.catalog-category-head h2 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.catalog-all {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--type-ui);
  font-weight: 700;
}
.catalog-all span {
  padding: 3px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.catalog-all:hover, .catalog-all[aria-current=page] { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.catalog-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}
.catalog-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 5px 8px;
  min-width: 0;
  min-height: 126px;
  padding: clamp(12px, 1.6vw, 23px);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--navy) 3%, var(--paper));
}
.catalog-category:hover, .catalog-category[aria-current=page] {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, var(--paper));
}
.catalog-category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
}
.catalog-category-icon svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.catalog-category[aria-current=page] .catalog-category-icon { border-color: var(--orange); }
.catalog-category-arrow { justify-self: end; color: var(--muted); font-size: 20px; line-height: 1; }
.catalog-category strong { grid-column: 1/-1; align-self: end; font: 600 var(--card-title-size)/1.2 var(--heading); overflow-wrap: anywhere; }
.catalog-category small { grid-column: 1/-1; color: var(--muted); font-size: var(--type-label); }
.kit-contents { display: grid; gap: 8px; margin: 0; padding-inline-start: 20px; min-width: 0; overflow-wrap: anywhere; }
.catalog-pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  font-size: var(--type-ui);
  font-weight: 650;
}
.catalog-pages a[aria-current=page] {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, var(--paper));
}
.catalog-layout { display: grid; grid-template-columns: minmax(200px, 248px) minmax(0, 1fr); gap: clamp(18px, 3vw, 42px); align-items: start; }
.catalog-filters { border: 1px solid var(--line); background: var(--paper); }
.catalog-filters .catalog-filter-panel { border: 0; }
.catalog-filter-panel > summary { padding: 16px; font-weight: 700; cursor: pointer; }
.catalog-filter-panel > summary::after { content: '+'; margin-left: auto; font-size: 18px; }
.catalog-filter-panel[open] > summary::after { content: '−'; }
.catalog-filter-fields { display: grid; gap: 15px; padding: 16px; border-top: 1px solid var(--line); }
.catalog-filter-fields label, .catalog-filter-fields legend { display: block; color: var(--muted); font-size: var(--type-label); font-weight: 650; }
.catalog-filter-fields :is(input,select) { font-size: 16px; padding: 10px; min-height: 44px; }
.catalog-spec-filters { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); }
.catalog-spec-filters legend { padding-inline: 4px; color: var(--navy); }
.catalog-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; min-width: 0; padding: 0; }
.catalog-range legend { padding: 0 0 5px; }
.catalog-filter-fields .button { min-height: 44px; padding: 10px 14px; gap: 8px; }
.catalog-reset { color: var(--muted); font-size: var(--type-ui); text-decoration: underline; text-underline-offset: 4px; }
.catalog-count { color: var(--muted); font-size: var(--type-body); margin-bottom: 14px; }
.catalog-count strong { color: var(--navy); }
.product-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.catalog-results .product-card { content-visibility: auto; contain-intrinsic-block-size: auto 290px; }
.product-media { display: grid; place-items: center; min-width: 0; background: #fff; }
.product-card .product-media { aspect-ratio: 4/3; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-media img { display: block; width: 100%; height: 100%; min-height: 0; padding: 12px; object-fit: contain; }
.product-card .product-media img { aspect-ratio: 4/3; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card .product-media img { transition: transform .3s ease-out; }
  .product-card:hover .product-media img { transform: scale(1.1); }
}
.product-card-copy { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 14px; }
.product-card .eyebrow { font-size: var(--type-caption); line-height: 1.5; letter-spacing: .1em; }
.product-card h3 { font: 600 var(--card-title-size)/1.3 var(--heading); overflow-wrap: anywhere; }
.product-card h3 a:hover, .product-card h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.product-buy small { font-size: var(--type-label); color: var(--muted); line-height: 1.5; }
.product-availability { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--type-ui); }
.product-availability::before { content: ''; width: 6px; height: 6px; background: var(--orange); flex-shrink: 0; }
.product-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.product-card-bottom strong { font-size: 15px; overflow-wrap: anywhere; }
.product-arrow { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--line); }
.product-arrow:hover, .catalog-pages a:hover { border-color: var(--orange); }
.catalog-pages { display: flex; gap: 8px; margin-top: 24px; }
.catalog-pages a { min-width: 44px; }

/* Product page */
.product-detail { border-bottom: 1px solid var(--line); }
.product-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 5vw, 80px); }
.product-detail-grid .product-media { aspect-ratio: 4/3; border: 1px solid var(--line); }
.product-detail-grid .product-media img { aspect-ratio: 4/3; padding: clamp(16px, 3vw, 42px); }
.product-sku {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--type-ui);
  overflow-wrap: anywhere;
}
.product-sku strong { color: var(--navy); }
.product-sku button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.product-sku button:not([hidden]) { display: inline-grid; place-items: center; }
.product-sku button:hover { border-color: var(--orange); }
.product-summary h1 {
  margin: 12px 0;
  font: 600 clamp(1.5rem, 1.15rem + 1.45vw, 2.5rem)/1.2 var(--heading);
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.product-summary > p { max-width: 62ch; }
.product-buy { display: grid; justify-items: start; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-buy strong { font: 600 clamp(1.375rem, 2.15vw, 1.875rem)/1.25 var(--heading); }
.product-buy .product-price-request { font: 700 clamp(1.0625rem, 1.45vw, 1.25rem)/1.4 var(--body); }
.product-buy .button { min-height: 48px; padding: 10px 16px; gap: 16px; font-size: var(--type-ui); }
.product-buy .button span { font-size: 1.125em; }
.product-specs, .product-order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); }
.product-specs h2, .product-order h1 { margin: 8px 0 14px; line-height: 1.18; }
.product-order h1 { font-size: var(--detail-title-size); }
.product-specs dl { margin: 0; border-top: 1px solid var(--line); }
.product-specs dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; font-weight: 650; }
.product-extra { grid-column: 2; line-height: 1.7; color: var(--muted); }
.product-extra p + p { margin-top: 12px; }
.product-order { border-block: 1px solid var(--line); }
.product-order p + p { margin-top: 10px; }
.product-order .lead-field { display: block; margin-bottom: 12px; }
.order-dialog {
  width: min(540px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(16px, 4vw, 32px);
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-block-start: 2px solid var(--orange);
  background: var(--paper);
  color: var(--navy);
}
.order-dialog::backdrop { background: rgb(3 12 23 / 68%); }
html:has(.order-dialog[open]) { overflow: hidden; }
.order-dialog-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.order-dialog-head h2 { font: 600 clamp(1.375rem, 4vw, 1.75rem)/1.2 var(--heading); }
.order-dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  font: 500 24px/1 var(--body);
}
.order-dialog-close:hover { border-color: var(--orange); }
.order-dialog-product { margin-block: 10px 18px; color: var(--muted); overflow-wrap: anywhere; }
.order-dialog .lead-field { display: block; margin-bottom: 12px; }
.order-dialog-result p { margin-block: 8px 16px; }
.order-dialog-result .button { white-space: normal; }
@media (max-width: 1110px) {
  .catalog-results .product-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-category:nth-child(odd):last-child { grid-column: 1 / -1; }
  .catalog-layout, .product-detail-grid, .product-specs, .product-order { grid-template-columns: minmax(0, 1fr); }
  .product-extra { grid-column: 1; }
}
@media (max-width: 520px) {
  .order-dialog .lead-field { margin-bottom: 8px; }
  .order-dialog .lead-field input { min-height: 44px; padding-block: 9px; }
  .order-dialog .lead-form .button { min-height: 48px; padding: 10px 12px; }
  .product-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card-copy { padding: 10px; }
  .product-card-bottom { flex-wrap: wrap; }
  .product-arrow { margin-left: auto; }
}
