.products-page a { text-decoration: none; }
.stock-filter-panel { margin: 14px 0 20px; padding: clamp(14px, 1.5vw, 24px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stock-filter-panel[hidden] { display: none; }
.stock-filter-heading h3 { margin-bottom: 12px; font-size: 1.125rem; line-height: 1.25; }
.stock-filter-panel .stock-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 164px), 1fr)); gap: 12px; align-items: stretch; }
.stock-price-fields { display: contents; }
.stock-field { display: grid; grid-template-rows: 1fr auto; min-width: 0; gap: 4px; }
.stock-field__label { align-self: end; color: var(--muted); font-size: .875rem; line-height: 1.3; overflow-wrap: anywhere; }
.stock-field__control { position: relative; display: block; min-width: 0; }
.stock-field__control::after {
  content: ''; position: absolute; right: 16px; top: calc(50% - 6px); width: 9px; height: 9px;
  border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none;
}
.stock-field select {
  display: block; appearance: none; width: 100%; min-height: 48px; padding: 8px 36px 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 1rem; font-weight: 550; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.stock-field select:has(option:checked:not([value=''])) { background: var(--wash); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.stock-field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .stock-field select:hover { border-color: var(--blue); } }
.stock-results { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.stock-results:has(.product-search__status:not(:empty)), .stock-results:has(button:not([hidden])) { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.stock-results .product-search__status { margin: 0; font-size: 1rem; color: var(--ink); }
.stock-results .is-empty { font-weight: 600; }
.stock-results .btn { min-height: 45px; }
@media (max-width: 452px) {
  .stock-filter-panel .stock-filter-fields { grid-template-columns: minmax(0, 1fr); }
  .stock-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.supply-board {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(345px, 30vw, 535px);
  overflow: clip;
  border-radius: var(--radius);
  background: #dceaf5;
  color: #10294a;
  --board-veil: #dfebf6;
}
.supply-board__photo { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: center 53%; }
.supply-board::before { position: absolute; content: ''; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--board-veil) 0%, var(--board-veil) 30%, transparent 63%); }
.supply-board__copy { width: 48%; padding: clamp(24px, 3.6vw, 72px); }
.supply-board h1 { font-size: clamp(2.35rem, 4.85vw, 5.5rem); letter-spacing: -.055em; line-height: 1; text-wrap: balance; overflow-wrap: break-word; }
.supply-board__copy p { max-width: 37ch; color: #233e5c; margin-block: 18px 24px; font-size: clamp(1.04rem, 1.36vw, 1.4rem); line-height: 1.45; }
.supply-board__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.supply-board__phone { display: inline-flex; align-items: center; min-height: 44px; color: #123b78; font-weight: 650; }
:root[data-theme='dark'] .supply-board { --board-veil: #132c49; background: var(--board-veil); color: #f3f8ff; }
:root[data-theme='dark'] .supply-board__copy p { color: #d9e9fa; }
:root[data-theme='dark'] .supply-board__phone { color: #c2e4ff; }
:root[data-theme='dark'] .supply-board__photo { filter: brightness(.77); }

.supply-catalog { margin-block: clamp(36px, 4vw, 72px); scroll-margin-top: 16px; }
.supply-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.supply-heading h2 { font-size: clamp(1.8rem, 3.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.045em; }
.supply-heading p, .product-shelf__heading p { max-width: 60ch; color: var(--muted); margin-top: 7px; }
.supply-heading .supply-count { align-self: end; margin: 0; padding-block: 9px; font-size: clamp(1.12rem, 1.55vw, 1.7rem); line-height: 1.25; font-weight: 620; color: var(--ink); }
.product-search { display: block; min-width: min(34%, 390px); }
.product-search label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.product-search > div { display: flex; align-items: stretch; gap: 6px; }
.product-search input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.product-search input::placeholder { color: var(--muted); }
.product-search .btn { min-height: 48px; padding-inline: 12px; }
.product-search__status:empty { display: none; }
.product-search__status { font-size: .9375rem; line-height: 1.4; }
.supply-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 20px 26px; }
.supply-sections a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: clip; background: var(--surface); font-size: clamp(1.1rem, 1.8vw, 1.9rem); line-height: 1.18; font-weight: 650; }
.supply-sections a span { padding: 16px clamp(16px, 1.5vw, 28px); }
.supply-sections a::after { content: ''; width: .43em; height: .43em; margin-right: clamp(16px, 1.5vw, 28px); border: solid var(--blue); border-width: 1.8px 1.8px 0 0; transform: rotate(45deg); }
.supply-sections img { grid-column: 1 / -1; width: 100%; height: clamp(130px, 15vw, 315px); object-fit: cover; object-position: 70% 53%; }
.supply-sections a:hover { border-color: var(--blue); color: var(--blue); }
.product-shelf { scroll-margin-top: clamp(108px, 8vw, 140px); }
.product-shelf + .product-shelf:not([hidden]) { margin-top: 24px; }
.product-shelf__heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 16px; }
.product-shelf__heading h2 { font-size: clamp(1.45rem, 2.1vw, 2.2rem); font-weight: 650; line-height: 1.16; letter-spacing: -.035em; }
.product-shelf__heading p { line-height: 1.45; }
.product-category { scroll-margin-top: 20px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-grid { margin: 0; padding: 0; list-style: none; }
.product-grid > li { min-width: 0; }
.product-grid__empty { display: grid; align-content: start; grid-column: 1 / -1; padding: 20px; background: var(--surface); border-radius: 16px; }
.product-grid__empty .text-link { justify-self: start; }

.product-tile, .product-category {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.product-tile {
  position: relative;
  padding: 8px;
  transition: border-color .18s ease;
}
.product-tile:hover, .product-tile:focus-within { border-color: var(--blue); }
.product-tile__photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #e8ebf1;
}
:root[data-theme='dark'] .product-tile__photo { background: #101b2b; }
.product-tile__photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.product-tile__summary { margin: 9px 0 2px; color: var(--muted); font-size: 1rem; line-height: 1.46; }
.product-tile__title { color: inherit; text-decoration: none; }
.product-tile__title::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.product-tile:hover .product-tile__title { color: var(--blue); }
.product-tile__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--blue); background: var(--wash); font-size: 1.42rem; }
.stock-related { margin-block: clamp(36px, 4vw, 72px); }
.stock-related h2 { margin-bottom: 18px; font-size: clamp(1.65rem, 2.6vw, 3rem); line-height: 1.13; letter-spacing: -.035em; }
.stock-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.stock-related-card { display: grid; grid-template-columns: minmax(100px, 32%) 1fr; gap: clamp(14px, 1.7vw, 30px); min-width: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.stock-related-photo { display: block; position: relative; min-height: 145px; overflow: hidden; }
.stock-related-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stock-related-card > div { align-self: center; padding: 20px 16px 20px 0; min-width: 0; }
.stock-related-card a { text-decoration: none; }
.stock-related-category { display: inline-block; color: var(--blue); font-size: 1rem; line-height: 1.4; padding-block: 3px; }
.stock-related-card h3 { margin: 5px 0 13px; font-size: clamp(1.1rem, 1.5vw, 1.55rem); line-height: 1.25; overflow-wrap: anywhere; }
.stock-related-card h3 a { color: var(--ink); }
.stock-related-card h3 a:hover { color: var(--blue); }
.stock-related-card strong { font-size: 1.12rem; }
@media (max-width: 780px) {
  .stock-related-grid { grid-template-columns: minmax(0,1fr); }
}
.product-tile__no-photo { color: var(--muted); font-size: .9375rem; }
.product-tile__body { display: flex; flex: 1; flex-direction: column; padding: 16px 12px 8px; }
.product-tile h3, .product-category h3 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 690;
  line-height: 1.21;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.product-tile__sku { margin-top: 4px; color: var(--muted); font-size: .875rem; }

.product-tile__specs {
  margin-block: auto 16px;
  padding-top: 16px;
  font-size: .9375rem;
  line-height: 1.42;
}
.product-tile__specs div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.product-tile__specs dt { color: var(--muted); }
.product-tile__specs dd { font-weight: 590; overflow-wrap: anywhere; }

.product-tile__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 52px;
  margin-top: auto;
}
.product-tile__specs + .product-tile__bottom { margin-top: 0; }
.product-tile__price {
  display: block;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 730;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.product-tile__availability { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.product-tile__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  color: var(--blue);
  font-size: .9375rem;
  font-weight: 660;
}
.product-tile__link::after { position: absolute; inset: 0; content: ''; }
.product-tile:hover .product-tile__link { border-color: var(--blue); }

.product-category { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); overflow: hidden; }
.product-category:target { border-color: var(--blue); }
.product-category__photo {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  background: var(--wash);
}
.product-category__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 66%; }
.product-category__body { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 12px; padding: clamp(20px, 3vw, 36px); }
.product-category h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.14; letter-spacing: -.025em; }
.product-category p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.product-category .category-inquiry { margin-top: 4px; }
:root[data-theme='dark'] .product-category__photo img { filter: brightness(.9) saturate(.93); }


@media (min-width: 1680px) {
  .product-tile__photo { position: relative; max-height: 340px; }
  .product-tile__photo img { position: absolute; inset: 0; }
}
@media (min-width: 2200px) {
  .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supply-board__copy { width: 57%; }
  .supply-board::before { background: linear-gradient(90deg, var(--board-veil) 30%, color-mix(in srgb, var(--board-veil) 88%, transparent) 48%, transparent 72%); }
}
@media (max-width: 640px) {
  .supply-board { display: flex; flex-direction: column; min-height: 0; background: var(--board-veil); }
  .supply-board__copy { width: 100%; padding: 23px 20px 14px; }
  .supply-board h1 { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  .supply-board__copy p { margin-block: 12px 16px; }
  .supply-board__photo { position: static; z-index: auto; order: 2; width: 100%; height: clamp(150px, 48vw, 245px); object-position: center 58%; }
  .supply-board::before { display: none; }
  .supply-heading { display: grid; gap: 14px; }
  .supply-heading .supply-count { padding-block: 0; }
  .supply-sections { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .supply-sections a { grid-template-columns: minmax(86px, 30%) minmax(0, 1fr) auto; }
  .supply-sections img { grid-column: auto; width: 100%; height: clamp(76px, 19vw, 104px); }
  .supply-sections a span { padding: 8px; }
  .product-shelf { scroll-margin-top: 136px; }
}
@media (max-width: 590px) {
  .product-grid, .product-category { grid-template-columns: minmax(0, 1fr); }
  .product-grid { gap: 12px; }
  .product-category__photo { min-height: 154px; }
}
