/* Shared catalog geometry: one diagonal banner and evenly spaced selection cells. */
.catalog-page > .catalog-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.catalog-banner > .wrap {
  display: flex;
  position: relative;
  min-height: 235px;
  gap: 0;
  padding-bottom: 0;
}
.banner-copy {
  position: relative;
  z-index: 2;
  width: 54%;
  padding: 30px 0 30px;
  pointer-events: auto;
}
.catalog-banner h1 {
  font-size: clamp(28px, 3vw, 40px);
  max-width: 600px;
}
.banner-image {
  position: absolute;
  left: 51%;
  right: calc((1240px - 100vw) / 2);
  top: 0;
  bottom: 0;
  height: auto;
  min-width: 49%;
  background: #b6cadd;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  aspect-ratio: auto;
}
.banner-image:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #7799b130, transparent 65%);
  pointer-events: none;
}
.banner-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.shape-filter {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr) 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  min-width: 0;
}
.shape-filter > strong {
  margin: 0;
  font-size: 14px;
}
.shape-filter button {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
  padding: 4px;
  border-radius: 3px;
}
.shape-filter > a {
  text-align: center;
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
}
.shape-filter svg {
  width: 68px;
  height: 42px;
}
.shape-filter button:last-child {
  min-height: 36px;
  font-size: 13px;
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 0.95fr) minmax(380px, 2.5fr) minmax(170px, 1fr);
  gap: 0;
  background: var(--ice);
  border: 1px solid var(--line);
  padding: 18px;
  align-items: start;
  margin-bottom: 24px;
}
.catalog-toolbar > label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
  padding-right: 18px;
  min-width: 0;
  font-weight: 600;
}
.catalog-toolbar > div {
  padding: 0 18px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.catalog-toolbar > label:last-child {
  grid-column: auto;
  padding: 0 0 0 18px;
}
.catalog-toolbar select {
  font-weight: 400;
  font-size: 14px;
  min-height: 42px;
  margin-top: 8px;
}
.catalog-toolbar input {
  font-size: 14px;
  min-height: 42px;
  padding: 10px;
  width: 100%;
}
.catalog-toolbar .shape-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 0.8fr;
  border: 0;
  background: none;
  padding: 0;
  gap: 8px;
}
.catalog-toolbar .shape-filter > strong {
  grid-column: 1/-1;
  width: auto;
  text-align: left;
  font-size: 14px;
  line-height: 21px;
  margin: 0;
}
.catalog-toolbar .shape-filter button {
  font-size: 12px;
  padding: 2px;
  min-height: 62px;
}
.catalog-toolbar .shape-filter button:last-child {
  min-height: 36px;
  align-self: center;
}
.catalog-toolbar .shape-filter svg {
  width: 56px;
  height: 36px;
}
.catalog-toolbar .shape-notice {
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.4;
}
.catalog-toolbar .shape-filter > a {
  display: none;
}
.category-grid,
.product-grid {
  padding-top: 4px;
}
@media (max-width: 1320px) {
  .banner-image {
    right: -40px;
  }
}
@media (max-width: 1050px) {
  .catalog-toolbar {
    grid-template-columns: 165px minmax(310px, 1fr) 160px;
    padding: 14px;
  }
  .catalog-toolbar > div {
    padding: 0 12px;
  }
  .catalog-toolbar > label {
    padding-right: 12px;
  }
  .catalog-toolbar > label:last-child {
    padding-left: 12px;
  }
  .shape-filter {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .catalog-toolbar > div {
    grid-column: 1/-1;
    grid-row: 2;
    border: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
  }
  .catalog-toolbar > label,
  .catalog-toolbar > label:last-child {
    min-height: 0;
    padding: 0;
  }
  .catalog-toolbar .shape-filter > strong {
    text-align: center;
  }
  .catalog-toolbar .shape-notice {
    text-align: center;
  }
  .shape-filter {
    grid-template-columns: repeat(3, 1fr);
  }
  .shape-filter > strong {
    grid-column: 1/-1;
    text-align: center;
  }
  .shape-filter > a {
    grid-column: 1/3;
    border: 0;
  }
  .shape-filter button:last-child {
    min-height: 36px;
  }
}
@media (max-width: 800px) {
  .catalog-banner > .wrap {
    min-height: 225px;
  }
  .banner-copy {
    width: 68%;
    padding: 24px 0;
  }
  .banner-image {
    left: 57%;
    right: -24px;
    min-width: 43%;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  }
  .catalog-banner h1 {
    font-size: 28px;
  }
  .catalog-banner p {
    max-width: 280px;
    font-size: 14px;
  }
  .breadcrumbs {
    font-size: 12px;
  }
  .catalog-banner .back-categories {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .banner-copy {
    width: 72%;
  }
  .banner-image {
    left: 69%;
    right: -16px;
    background: #9cb6cc;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  }
  .catalog-banner h1 {
    font-size: 25px;
  }
  .catalog-banner p {
    max-width: 235px;
  }
  .catalog-toolbar {
    grid-template-columns: 1fr;
  }
  .catalog-toolbar > div {
    grid-row: auto;
  }
  .catalog-toolbar > label:last-child {
    grid-row: 3;
  }
  .shape-filter svg {
    width: 58px;
  }
  .shape-filter button {
    font-size: 13px;
  }
  .catalog-toolbar .shape-filter {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-toolbar .shape-filter button:last-child {
    grid-column: 1/-1;
  }
}
/* Separate navigation/search from shape selection. */
.catalog-toolbar {
  display: block;
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: 26px;
}
.catalog-toolbar > .browse-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0;
  border: 0;
  margin-bottom: 18px;
}
.control-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  margin-bottom: 8px;
}
.category-menu {
  position: relative;
}
.category-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #c9d3df;
  border-radius: 3px;
  font-size: 16px;
  background: white;
}
.category-menu summary::-webkit-details-marker {
  display: none;
}
.category-menu[open] summary {
  border-color: var(--blue);
}
.category-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 12;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px #101b2d16;
  border-radius: 3px;
  padding: 6px;
  max-height: 310px;
  overflow: auto;
}
.category-options a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 2px;
}
.category-options a:hover,
.category-options a:focus-visible {
  background: var(--ice);
  color: var(--blue);
}
.category-options a[aria-current] {
  color: var(--blue);
  background: #eaf0fc;
  font-weight: 600;
}
.catalog-toolbar .search-control {
  display: block;
  padding: 0;
  min-height: 0;
  margin: 0;
}
.search-box {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid #c9d3df;
  border-radius: 3px;
  padding: 0 14px;
  gap: 10px;
  background: white;
}
.search-box:focus-within {
  border-color: var(--blue);
  outline: 2px solid #2457d630;
}
.search-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  flex-shrink: 0;
}
.catalog-toolbar .search-box input {
  border: 0;
  outline: 0;
  margin: 0;
  padding: 10px 0;
  min-height: 44px;
  font-size: 16px;
  background: none;
}
.catalog-toolbar > .shape-control {
  padding: 0;
  border: 0;
}
.shape-filter,
.catalog-toolbar .shape-filter {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  padding: 14px 18px;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--ice);
}
.shape-filter > strong,
.catalog-toolbar .shape-filter > strong {
  grid-column: auto;
  text-align: left;
  font-size: 14px;
  width: auto;
  padding-right: 8px;
  line-height: 1.4;
}
.shape-filter button:not(.clear-shape),
.catalog-toolbar .shape-filter button:not(.clear-shape) {
  font-size: 14px;
  min-height: 68px;
  padding: 6px;
  gap: 4px;
}
.shape-filter svg,
.catalog-toolbar .shape-filter svg {
  width: 68px;
  height: 42px;
}
.shape-filter > a,
.catalog-toolbar .shape-filter > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
  grid-column: auto;
  text-align: center;
  border-left: 1px solid var(--line);
  font-size: 14px;
  padding: 6px;
}
.shape-filter .clear-shape,
.catalog-toolbar .shape-filter .clear-shape {
  position: absolute;
  right: 12px;
  top: -29px;
  display: inline-block;
  width: auto;
  min-height: 24px;
  font-size: 12px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
}
.shape-filter .clear-shape[hidden] {
  display: none;
}
.catalog-toolbar .shape-notice {
  text-align: left;
  font-size: 12px;
  margin-top: 8px;
}
.shape-section {
  padding-top: 30px !important;
}
@media (max-width: 800px) {
  .catalog-toolbar > .browse-controls {
    gap: 16px;
  }
  .shape-filter,
  .catalog-toolbar .shape-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 12px;
  }
  .shape-filter > strong,
  .catalog-toolbar .shape-filter > strong {
    grid-column: 1/-1;
    margin-bottom: 4px;
  }
  .shape-filter svg,
  .catalog-toolbar .shape-filter svg {
    width: 54px;
    height: 36px;
  }
  .shape-filter button:not(.clear-shape),
  .catalog-toolbar .shape-filter button:not(.clear-shape),
  .shape-filter > a,
  .catalog-toolbar .shape-filter > a {
    font-size: 12px;
    padding: 3px;
  }
  .shape-filter .link {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .catalog-toolbar > .browse-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-menu summary,
  .catalog-toolbar .search-box input {
    font-size: 14px;
  }
}
