.catalog-page .catalog-intro {
  container-type: inline-size;
  margin-bottom: clamp(20px, 3vw, 38px);
}

.catalog-intro .section-heading {
  margin: 0 0 clamp(20px, 3vw, 34px);
}

.catalog-page .catalog-intro h1 {
  margin: 0;
  color: #18251f;
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.film-selector {
  --selector-ink: #20332a;
  --selector-mint: #c2ead3;
  padding: clamp(12px, 2vw, 25px);
  background: #f2f5f1;
  border: 1px solid #dce4dc;
  border-radius: 22px;
}

.collection .film-selector .filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #e2e9e2;
}

.collection .film-selector .filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  padding: 8px clamp(12px, 1.5vw, 24px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #30443a;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

/* Small film samples distinguish the finishes on the control itself. */
.film-selector .filter::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 17px;
  border-radius: 3px;
  transform: skew(-10deg);
  box-shadow: inset 0 0 0 1px #233a3233;
}

.film-selector [data-filter="all"]::before {
  flex-basis: 12px;
  width: 12px;
  height: 14px;
  margin-inline: 2px;
  background: #85af99;
  box-shadow: -3px 2px #486956, 3px -2px #d0e9d9;
}

.film-selector [data-filter="gloss"]::before {
  background: linear-gradient(135deg, #2c4347 14%, #637d80 40%, #f0ffff 52%, #687f84 66%, #34484c);
}

.film-selector [data-filter="matte"]::before {
  background: linear-gradient(135deg, #92999a, #646d71);
}

.film-selector [data-filter="special"]::before {
  background: linear-gradient(135deg, #7c73bc 8%, #73b5be 48%, #ccca89 84%);
}

.collection .film-selector .filter[aria-pressed="true"] {
  color: #f5fff8;
  background: var(--selector-ink);
}

.film-selector .model-options {
  margin-top: 19px;
}

.film-selector .model-options:has(.model-picker[hidden]) {
  display: none;
}

.model-options > span {
  display: block;
  margin-bottom: 9px;
  color: #4d6055;
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 650;
}

.film-selector .model-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.film-selector .model-picker button {
  min-height: 44px;
  padding: 7px 5px;
  border: 1px solid #cad6ce;
  border-radius: 12px;
  background: #fff;
  color: #273a30;
  font-size: .84375rem;
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
}

.film-selector .model-picker button[aria-pressed="true"] {
  background: var(--selector-mint);
  border-color: #537c63;
  box-shadow: inset 0 0 0 1px #537c63;
  color: #183624;
}

@media (hover: hover) {
  .collection .film-selector .filter[aria-pressed="false"]:hover { background: #f6f9f5; }
  .film-selector .model-picker button[aria-pressed="false"]:hover { border-color: #789781; background: #eef8f0; }
}

.film-selector button:focus-visible {
  outline: 3px solid #326c4e;
  outline-offset: 2px;
}

@container (min-width: 38rem) {
  .film-selector .model-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@container (min-width: 68rem) {
  .film-selector .model-picker { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}

@container (max-width: 37.99rem) {
  .collection .film-selector .filters {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }
  .collection .film-selector .filter {
    justify-content: flex-start;
    padding-inline: clamp(7px, 3cqw, 16px);
    gap: 7px;
    border-radius: 14px;
    font-size: .8125rem;
  }
}

@container (max-width: 20rem) {
  .film-selector { padding: 9px; border-radius: 17px; }
  .film-selector .model-picker button { padding-inline: 3px; font-size: .78125rem; }
}
