:root {
  --wec-red: #c8281e;
  --wec-red-dark: #a91f18;
  --wec-dark: #222;
  --wec-body: #687173;
  --wec-border: #e7e9e9;
  --wec-soft: #f6f7f7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--wec-dark);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

.wec-list-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 12px 18px;
  background: #fff;
  color: #222;
  text-decoration: none;
  transform: translateY(-160%);
}

.wec-list-skip:focus {
  transform: translateY(0);
}

.wec-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wec-list-main {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 100px;
}

.wec-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 32px;
}

.wec-list-heading p,
.wec-list-sidebar__inner > p,
.wec-list-results__top p {
  margin: 0 0 12px;
  color: var(--wec-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.wec-list-heading h1 {
  margin: 0;
  color: #1f2223;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.wec-list-heading > a {
  display: inline-flex;
  align-items: center;
  padding-bottom: 6px;
  gap: 8px;
  color: var(--wec-red);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.wec-list-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
}

.wec-list-sidebar {
  align-self: stretch;
}

.wec-list-sidebar__inner {
  position: sticky;
  top: 24px;
  background: transparent;
}

.wec-list-categories {
  display: grid;
  border-top: 1px solid #e5e8e8;
  border-right: 1px solid #eceeee;
  border-bottom: 1px solid #eceeee;
}

.wec-list-categories a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 20px 24px 20px 30px;
  border-bottom: 1px solid #fff;
  background: #f4f5f5;
  color: #303536;
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.wec-list-categories a::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--wec-red);
  opacity: 0;
}

.wec-list-categories a:last-child {
  border-bottom: 0;
}

.wec-list-categories a:hover,
.wec-list-categories a:focus-visible,
.wec-list-categories a.is-active {
  background: #fff;
  color: var(--wec-red);
  outline: none;
}

.wec-list-categories a:hover:not(.is-active) {
  background: #faf1f0;
}

.wec-list-categories a.is-active::before {
  opacity: 1;
}

.wec-list-categories__label {
  min-width: 0;
}

.wec-list-results {
  min-width: 0;
}

.wec-list-results__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 72px;
  margin-bottom: 22px;
  padding: 0 2px 18px;
  gap: 24px;
  border-bottom: 1px solid var(--wec-border);
}

.wec-list-results__top p {
  margin-bottom: 8px;
}

.wec-list-results__top h2 {
  margin: 0;
  color: #222627;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -.03em;
}

.wec-list-results__top > span {
  color: #848b8c;
  font-size: 13px;
  font-weight: 650;
}

.wec-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wec-product-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--wec-border);
  border-radius: 18px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.wec-product-card:hover {
  border-color: #dadede;
  box-shadow: 0 18px 42px rgba(26, 31, 32, .11);
  transform: translateY(-5px);
}

.wec-product-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.wec-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wec-soft);
}

.wec-product-card__media img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  transition: transform .35s ease;
}

.wec-product-card:hover .wec-product-card__media img {
  transform: scale(1.04);
}

.wec-product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 148px;
  padding: 20px 20px 22px;
  border-top: 1px solid var(--wec-border);
}

.wec-product-card__content h4 {
  margin: 0;
  color: #222627;
  font-size: 21px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.wec-product-card__content p {
  margin: 7px 0 18px;
  color: #929899;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .025em;
}

.wec-product-card__content span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  gap: 8px;
  color: var(--wec-red);
  font-size: 14px;
  font-weight: 750;
}

.wec-product-card__content b {
  font-size: 19px;
  line-height: 1;
  transition: transform .2s ease;
}

.wec-product-card:hover .wec-product-card__content b {
  transform: translateX(4px);
}

@media (max-width: 1080px) {
  .wec-list-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .wec-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wec-list-main {
    width: min(100% - 32px, 680px);
    padding: 46px 0 72px;
  }

  .wec-list-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
    gap: 18px;
  }

  .wec-list-layout {
    grid-template-columns: 1fr;
  }

  .wec-list-sidebar {
    align-self: auto;
  }

  .wec-list-sidebar__inner {
    position: static;
  }

  .wec-list-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid #eceeee;
  }

  .wec-list-categories a {
    min-height: 92px;
  }
}

@media (max-width: 520px) {
  .wec-list-heading h1 {
    font-size: 34px;
  }

  .wec-list-categories,
  .wec-product-grid {
    grid-template-columns: 1fr;
  }

  .wec-list-results__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Two-level category navigation and the nine-product preview. */
[hidden] { display: none !important; }
.wec-list-categories { display: block; }
.wec-list-category-group + .wec-list-category-group { border-top: 1px solid var(--wec-border); }
.wec-list-category-row { display: flex; background: #f4f5f5; }
.wec-list-category-row > a { flex: 1; min-width: 0; min-height: 66px; padding: 18px 20px; }
.wec-list-category-group.has-selection > .wec-list-category-row > a { color: var(--wec-red); }
.wec-list-category-toggle { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 46px; padding: 0; border: 0; background: transparent; color: #697173; cursor: pointer; }
.wec-list-category-toggle:hover { background: #faf1f0; color: var(--wec-red); }
.wec-list-category-toggle span { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.wec-list-category-toggle[aria-expanded="true"] span { transform: rotate(225deg); }
.wec-list-category-children a { min-height: 54px; padding: 15px 18px 15px 34px; background: #f9fafa; font-size: 14px; font-weight: 500; }
.wec-list-expand { display: flex; justify-content: center; margin-top: 32px; }
.wec-list-expand__button { min-height: 48px; padding: 14px 28px; border: 1px solid var(--wec-red); border-radius: 8px; background: #fff; color: var(--wec-red); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: color .2s ease, background .2s ease; }
.wec-list-expand__button:hover { background: var(--wec-red); color: #fff; }
.wec-list-categories a:focus-visible, .wec-list-category-toggle:focus-visible, .wec-list-expand__button:focus-visible, .wec-product-card a:focus-visible { outline: 2px solid var(--wec-red); outline-offset: -3px; }
@media(max-width:760px) { .wec-list-category-children { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .wec-list-category-children a { padding-left: 24px; } }

/* One catalogue page contains the root categories and all equipment groups. */
.wec-list-root-section { scroll-margin-top: 28px; outline: none; }
.wec-list-root-section + .wec-list-root-section { margin-top: 80px; }
.wec-list-root-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid var(--wec-border); }
.wec-list-root-heading h2 { margin: 0; font-size: 34px; font-weight: 650; letter-spacing: -.025em; }
.wec-list-root-heading > span,.wec-list-group-heading > span { color: #848b8c; font-size: 13px; }
.wec-list-product-group { min-width: 0; scroll-margin-top: 28px; outline: none; }
.wec-list-product-group + .wec-list-product-group { margin-top: 64px; }
.wec-list-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.wec-list-group-heading h3 { margin: 0; padding-left: 14px; border-left: 3px solid var(--wec-red); font-size: 27px; font-weight: 620; }
.wec-list-category-children a.is-active { font-weight: 650; }
@media(max-width:760px) { .wec-list-root-section + .wec-list-root-section { margin-top: 56px; } .wec-list-root-heading h2 { font-size: 29px; } .wec-list-group-heading h3 { font-size: 23px; } .wec-list-product-group + .wec-list-product-group { margin-top: 48px; } }

/* Centre equipment-group titles while keeping product counts on the right. */
.wec-list-group-heading { display: grid; grid-template-columns: 80px minmax(0,1fr) 80px; align-items: center; gap: 0; }
.wec-list-group-heading h3 { grid-column: 2; padding-left: 0; border-left: 0; text-align: center; }
.wec-list-group-heading > span { grid-column: 3; text-align: right; }
