﻿/* Local product directory refinements retained during homepage sync. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #dce2eb;
  --primary: #2f6f68;
  --primary-dark: #255953;
  --accent: #9a5b25;
  --accent-soft: #fff2e3;
  --blue-soft: #edf4f2;
  --shadow: 0 18px 60px rgba(23, 32, 51, 0.14);
  --page-width: 1920px;
}

#products {
  --pro-ink: #172033;
  --pro-muted: #667085;
  --pro-line: #d9ded8;
  --pro-paper: #ffffff;
  --pro-surface: #ffffff;
  --pro-green: #2f6f68;
  --pro-green-dark: #234f4b;
  --pro-copper: #9a5b25;
  --pro-bluegray: #eef2f3;
  margin-inline: clamp(16px, 4vw, 56px);
  background: var(--pro-paper);
  color: var(--pro-ink);
}

#products .product-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--pro-line);
}

#products .product-directory-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

#products .product-directory-heading p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: #34312d;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.58;
}

#products .product-directory-filters {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(280px, 0.8fr);
  gap: 12px;
  margin-bottom: 16px;
}

#products .directory-filter-card,
#products .directory-tip-card {
  min-width: 0;
  border: 1px solid var(--pro-line);
  border-radius: 8px;
  padding: 14px;
  background: var(--pro-surface);
}

#products .directory-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

#products .directory-filter-head strong {
  font-size: 16px;
}

#products .directory-filter-head button,
#products .directory-filter-head span {
  border: 0;
  background: transparent;
  color: var(--pro-copper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

#products .directory-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#products .directory-category-tabs button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--pro-line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fbfbfa;
  color: #424b4a;
  cursor: pointer;
  font-weight: 800;
}

#products .directory-category-tabs button.active {
  border-color: var(--pro-green);
  background: #edf4f2;
  color: var(--pro-green-dark);
}

#products .directory-keyword-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}

#products .directory-keyword-groups h3 {
  margin: 0 0 8px;
  color: var(--pro-muted);
  font-size: 13px;
}

#products .directory-keyword-groups section > div,
#products .tag-row,
#products .active-product-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#products .directory-keyword-groups button,
#products .tag,
#products .active-product-keywords button,
#products .active-product-keywords span {
  display: inline-flex;
  min-height: 28px;
  max-width: 100%;
  align-items: center;
  border: 1px solid var(--pro-line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #4f5957;
  font-size: 12px;
  font-weight: 800;
}

#products .directory-keyword-groups button {
  cursor: pointer;
}

#products .directory-keyword-groups button.active,
#products .active-product-keywords button {
  border-color: var(--pro-green);
  background: var(--pro-green);
  color: #fff;
}

#products .directory-tip-card strong {
  display: block;
  margin-bottom: 8px;
}

#products .directory-tip-card p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#products .directory-search-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

#products .directory-search-card .directory-filter-head {
  margin-bottom: 0;
}

#products .directory-search {
  width: 100%;
}

#products .product-directory-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

#products .directory-sort {
  flex: 0 0 180px;
}

#products .directory-view-control {
  flex: 0 0 auto;
}

#products .product-directory-toolbar label,
#products .directory-view-control {
  display: grid;
  grid-template-rows: 14px 44px;
  align-self: start;
  gap: 6px;
}

#products .product-directory-toolbar label span,
#products .directory-view-control > span {
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 14px;
}

#products .product-directory-toolbar input,
#products .product-directory-toolbar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--pro-line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--pro-surface);
}

#products .directory-view-toggle {
  display: flex;
  align-self: stretch;
  gap: 4px;
  height: 44px;
  border: 1px solid var(--pro-line);
  border-radius: 6px;
  padding: 4px;
  background: var(--pro-surface);
}

#products .directory-view-toggle button {
  min-width: 58px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--pro-muted);
  cursor: pointer;
  font-weight: 900;
}

#products .directory-view-toggle button.active {
  background: var(--pro-green);
  color: #fff;
}

#products .active-product-keywords {
  min-height: 34px;
  align-items: center;
  margin-bottom: 10px;
}

#products .active-product-keywords span {
  border-style: dashed;
  color: var(--pro-muted);
}

#products .product-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#products .product-directory-grid:not(.is-list) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#products .directory-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pro-line);
  border-radius: 8px;
  background: var(--pro-surface);
  cursor: pointer;
}

#products .directory-product-link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

#products .directory-product-card:hover,
#products .directory-product-card:focus-visible {
  border-color: var(--pro-green);
  outline: 0;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.1);
}

#products .directory-product-card .product-image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 281px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: #f6f4ef;
  cursor: pointer;
}

#products .directory-product-card .product-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

#products .directory-product-card:hover .product-image-button img {
  transform: none;
}

#products .directory-product-card .product-image-button span {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(32, 37, 43, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

#products .directory-product-card .product-body {
  padding: 14px;
}

#products .product-directory-grid:not(.is-list) .directory-product-card .product-body {
  display: grid;
  min-height: 38px;
  align-content: center;
  justify-items: center;
  padding: 11px 12px;
  text-align: center;
}

#products .directory-card-category,
#products .directory-card-summary,
#products .directory-card-tags {
  display: none;
}

#products .directory-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

#products .product-directory-grid:not(.is-list) .directory-card-head {
  justify-content: center;
  width: 100%;
}

#products .directory-card-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

#products .product-directory-grid:not(.is-list) .directory-card-head h3 {
  font-size: 18px;
  line-height: 1.05;
  text-align: center;
}

#products .directory-card-head strong {
  color: var(--pro-copper);
  white-space: nowrap;
}

#products .directory-product-card .product-body > p {
  margin: 6px 0 10px;
  color: var(--pro-muted);
  font-size: 13px;
  font-weight: 800;
}

#products .directory-card-specs {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

#products .directory-card-specs div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
}

#products .directory-card-specs dt {
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 900;
}

#products .directory-card-specs dd {
  margin: 0;
  color: #35403d;
  font-size: 13px;
  font-weight: 700;
}

#products .product-directory-grid.is-list {
  grid-template-columns: 1fr;
  width: 100%;
  margin-left: 0;
  gap: clamp(18px, 3vw, 34px);
  scroll-snap-type: y proximity;
}

#products .product-directory-grid.is-list .directory-product-card {
  display: block;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: none;
  scroll-snap-align: start;
}

#products .product-directory-grid.is-list .directory-product-card:hover,
#products .product-directory-grid.is-list .directory-product-card:focus-within {
  border-color: rgba(47, 111, 104, 0.18);
  box-shadow: none;
}

#products .product-directory-grid.is-list .directory-product-link {
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 0.56fr);
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
  width: 100%;
  padding: clamp(12px, 1.2vw, 18px);
}

#products .product-directory-grid.is-list .product-image-button {
  order: 2;
  justify-self: end;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  align-self: center;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f1ec;
}

#products .product-directory-grid.is-list .product-image-button img {
  object-fit: cover;
  object-position: center center;
}

#products .product-directory-grid.is-list .product-body {
  order: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(14px, 1.6vw, 20px);
  padding: clamp(18px, 2vw, 28px) 0;
  text-align: left;
}

#products .product-directory-grid.is-list .directory-card-category {
  display: block;
  color: #637ca2;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 900;
  line-height: 1.2;
}

#products .product-directory-grid.is-list .directory-card-head h3 {
  color: #151c2e;
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

#products .product-directory-grid.is-list .directory-card-summary {
  display: block;
  max-width: 720px;
  color: #4b5f82;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 1.68;
}

#products .product-directory-grid.is-list .directory-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

#products .product-directory-grid.is-list .directory-card-tags span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  background: #e8f2ee;
  color: #0e4540;
  font-size: 13px;
  font-weight: 900;
}

.product-directory-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: 40vh minmax(0, 1fr);
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -18px 0 48px rgba(23, 32, 51, 0.2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.product-directory-drawer.open {
  transform: translateX(0);
}

.product-directory-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 32, 51, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.product-directory-drawer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef2f3;
}

.product-directory-drawer-body {
  overflow: auto;
  padding: 24px;
}

.product-directory-drawer h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 38px;
  line-height: 1.05;
}

.product-directory-drawer p {
  margin: 0 0 18px;
  color: #667085;
  line-height: 1.7;
}

.product-directory-drawer dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.product-directory-drawer dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid #d9ded8;
}

.product-directory-drawer dt {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.product-directory-drawer dd {
  margin: 0;
  color: #172033;
  font-weight: 800;
}

.product-directory-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.product-directory-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(23, 32, 51, 0);
  transition: background 220ms ease;
}

.product-directory-scrim.open {
  pointer-events: auto;
  background: rgba(23, 32, 51, 0.24);
}

@media (max-width: 1180px) {
  #products .product-directory-filters {
    grid-template-columns: 1fr;
  }

  #products .directory-category-tabs,
  #products .directory-keyword-groups {
    grid-template-columns: 1fr;
  }

  #products .product-directory-grid:not(.is-list) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #products {
    margin-inline: 16px;
  }

  #products .product-directory-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #products .directory-sort,
  #products .directory-view-control {
    width: 100%;
    flex-basis: auto;
  }

  #products .product-directory-grid:not(.is-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #products .product-directory-grid:not(.is-list) .product-image-button {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  #products .product-directory-grid:not(.is-list) .product-body {
    padding: 10px;
  }

  #products .product-directory-grid:not(.is-list) .directory-card-head h3 {
    font-size: clamp(14px, 3.2vw, 20px);
    overflow-wrap: anywhere;
  }

  #products .product-directory-grid.is-list {
    grid-template-columns: 1fr;
  }

  #products .product-directory-grid.is-list .directory-product-link {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  #products .product-directory-grid.is-list .product-image-button {
    order: 1;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  #products .product-directory-grid.is-list .product-image-button img {
    object-fit: contain;
    object-position: center;
  }

  #products .product-directory-grid.is-list .product-body {
    order: 2;
    gap: 8px;
    padding: 0;
  }

  #products .product-directory-grid.is-list .directory-card-category {
    font-size: clamp(12px, 2.4vw, 15px);
  }

  #products .product-directory-grid.is-list .directory-card-head h3 {
    font-size: clamp(20px, 5vw, 30px);
  }

  #products .product-directory-grid.is-list .directory-card-summary {
    font-size: clamp(11px, 2.4vw, 14px);
    line-height: 1.48;
  }

  #products .product-directory-grid.is-list .directory-card-tags {
    gap: 5px;
  }

  #products .product-directory-grid.is-list .directory-card-tags span {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 11px;
  }

  .product-directory-actions {
    grid-template-columns: 1fr;
  }
}

.product-directory-heading {
  align-items: end;
}

.product-directory-filters {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(280px, 0.8fr);
  gap: 12px;
  margin-bottom: 16px;
}

.directory-filter-card,
.directory-tip-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.directory-filter-card,
.directory-tip-card {
  padding: 14px;
}

.directory-tip-card strong {
  display: block;
  margin-bottom: 8px;
}

.directory-tip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.directory-search-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.directory-search-card .directory-filter-head {
  margin-bottom: 0;
}

.directory-search {
  width: 100%;
}

.directory-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.directory-filter-head strong {
  font-size: 16px;
}

.directory-filter-head button,
.directory-filter-head span {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.directory-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.directory-category-tabs button {
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fbfbfa;
  color: #424b4a;
  cursor: pointer;
  font-weight: 800;
}

.directory-category-tabs button.active {
  border-color: var(--primary);
  background: var(--blue-soft);
  color: var(--primary-dark);
}

.directory-keyword-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}

.directory-keyword-groups h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.directory-keyword-groups section > div,
.active-product-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-keyword-groups button,
.active-product-keywords button,
.active-product-keywords span {
  display: inline-flex;
  min-height: 28px;
  max-width: 100%;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #4f5957;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.directory-keyword-groups button.active,
.active-product-keywords button {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.active-product-keywords {
  min-height: 34px;
  align-items: center;
  margin-bottom: 10px;
}

.active-product-keywords span {
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}

.product-directory-toolbar {
  display: grid;
  grid-template-columns: 180px auto;
  gap: 10px;
  margin-bottom: 10px;
}

.product-directory-toolbar label {
  display: grid;
  gap: 6px;
}

.product-directory-toolbar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-directory-toolbar input,
.product-directory-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--surface);
}

.directory-view-toggle {
  display: flex;
  align-self: end;
  gap: 4px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  background: var(--surface);
}

.directory-view-toggle button {
  min-width: 58px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.directory-view-toggle button.active {
  background: var(--primary);
  color: #fff;
}

.product-directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card.directory-product-card {
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.directory-product-card:hover,
.directory-product-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.1);
}

.directory-product-card .product-image-button {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #f6f4ef;
}

.directory-product-card .product-image-button span {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(32, 37, 43, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.directory-product-card img {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.directory-product-card .product-image-button:hover img {
  transform: none;
}

.directory-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.directory-card-head h3 {
  margin: 0;
}

.directory-card-head strong {
  color: var(--accent);
  white-space: nowrap;
}

.directory-card-specs {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.directory-card-specs div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
}

.directory-card-specs dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.directory-card-specs dd {
  margin: 0;
  color: #35403d;
  font-size: 13px;
  font-weight: 700;
}

.product-directory-grid.is-list {
  grid-template-columns: 1fr;
}

.product-directory-grid.is-list .directory-product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.product-directory-grid.is-list .product-image-button {
  height: 100%;
  aspect-ratio: auto;
}

@media (max-width: 1180px) {
  .product-directory-filters {
    grid-template-columns: 1fr;
  }

  .product-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .directory-category-tabs,
  .product-directory-toolbar,
  .product-directory-grid {
    grid-template-columns: 1fr;
  }

  .product-directory-grid.is-list .directory-product-card {
    grid-template-columns: 1fr;
  }

  .product-directory-grid.is-list .product-image-button {
    aspect-ratio: 4 / 3;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #e8edf3;
}

/* Product directory: compact search masthead and category-led keyword library. */
#products.product-directory {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(52px, 7vw, 92px);
}

#products .catalog-search-masthead {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  padding: 0 0 28px;
  border-bottom: 1px solid var(--pro-line);
}

#products .catalog-wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  color: #101a19;
  line-height: 1;
  text-decoration: none;
}

#products .catalog-wordmark strong {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 900;
  letter-spacing: 0;
}

#products .catalog-wordmark span {
  margin-left: 2px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
}

#products .catalog-search {
  position: relative;
  display: block;
  width: min(100%, 680px);
}

#products .catalog-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  color: #687278;
  font-size: 21px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

#products .catalog-search input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #d6dce2;
  border-radius: 5px;
  padding: 0 18px 0 54px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(23, 32, 51, 0.08);
  color: var(--pro-ink);
  font-size: 15px;
}

#products .catalog-search input:focus {
  outline: 2px solid rgba(47, 111, 104, 0.3);
  outline-offset: 2px;
}

#products .catalog-keyword-library {
  position: relative;
  margin: 20px 0 24px;
  background: #fff;
}

#products .catalog-keyword-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: #fafbf9;
}

#products .catalog-keyword-library-heading .eyebrow {
  margin-bottom: 5px;
  color: var(--pro-green);
  font-size: 11px;
}

#products .catalog-keyword-library-heading h1 {
  margin: 0;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.1;
}

#products .catalog-keyword-library-heading > p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 14px;
}

#products .directory-keyword-groups {
  display: block;
}

#products .keyword-library-menu {
  position: relative;
}

#products .keyword-library-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 44px;
  background: #f0f2f1;
}

#products .directory-keyword-groups .keyword-library-tab {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  background: transparent;
  color: #45504e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

#products .directory-keyword-groups .keyword-library-tab:hover,
#products .directory-keyword-groups .keyword-library-tab.active {
  color: var(--pro-green-dark);
}

#products .keyword-library-panel {
  position: absolute;
  top: 44px;
  right: 0;
  left: 0;
  z-index: 20;
  visibility: hidden;
  min-height: 112px;
  border: 0;
  padding: 22px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

#products .keyword-library-menu:hover .keyword-library-panel,
#products .keyword-library-menu:focus-within .keyword-library-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#products .directory-keyword-groups .keyword-library-panel > div {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 9px;
}

#products .directory-keyword-groups .keyword-library-panel button {
  min-height: 34px;
  border-color: #d8dfdc;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  color: #394846;
  font-size: 13px;
}

#products .directory-keyword-groups .keyword-library-panel button:hover {
  border-color: var(--pro-green);
  color: var(--pro-green-dark);
}

#products .directory-keyword-groups .keyword-library-panel button.active {
  border-color: var(--pro-green);
  background: var(--pro-green);
  color: #fff;
}

#products .product-directory-toolbar {
  justify-content: flex-end;
  margin-top: 8px;
}

.nav-dropdown::after,
.nav-trigger::after,
.nav-dropdown .dropdown-menu {
  display: none !important;
}

@media (max-width: 720px) {
  #products.product-directory {
    padding-top: 28px;
  }

  #products .catalog-search-masthead {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  #products .keyword-library-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  #products .directory-keyword-groups .keyword-library-tab {
    min-width: 74px;
    flex: 1 0 74px;
  }

  #products .keyword-library-panel {
    right: auto;
    left: 0;
    width: min(100vw - 36px, 620px);
    min-height: 0;
    padding: 16px;
  }
}

html, body:has(#products) { background: #ffffff; }

/* Product directory controls. */
#products .keyword-library-tabs {
  background: #f3f4f4;
}

#products .directory-keyword-groups .keyword-library-tab:hover,
#products .directory-keyword-groups .keyword-library-tab.active {
  background: transparent;
  box-shadow: none;
}

#products .product-directory-toolbar {
  justify-content: flex-start;
}

