.category-page {
  --category-green: #1f903d;
  background: #bfbfbf;
  color: #252525;
  font-family: Arial, Helvetica, sans-serif;
}

.category-main {
  min-height: calc(100svh - 120px);
  margin: 104px 16px 16px;
  padding: 20px 20px 65px;
  border-radius: 31px;
  background: #fff;
}

.category-panel-bar {
  min-height: 36px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 2fr) 1fr;
  align-items: start;
  gap: 12px;
  color: var(--category-green);
}

.category-clock {
  padding-top: 4px;
  font-size: .875rem;
}

.category-breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 4px 15px;
  flex-wrap: wrap;
  padding-top: 4px;
  text-align: center;
  font-size: .9375rem;
  line-height: 1.35;
}

.category-breadcrumbs a {
  font-weight: 700;
}

.category-breadcrumbs a:hover {
  text-decoration: underline;
}

.category-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  justify-self: end;
  color: #252525;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.category-intro {
  text-align: center;
  margin: clamp(46px, 7.1vw, 110px) auto 0;
}

.category-intro h1 {
  font-size: clamp(3.4rem, 12vw, 13rem);
  font-weight: 900;
  letter-spacing: -.085em;
  line-height: .9;
  overflow-wrap: anywhere;
  margin: 0;
}

.category-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 14px 19px;
  padding: 0;
  margin: 28px 0 0;
}

.category-labels li {
  padding: 5px 20px;
  border: 1px solid #252525;
  border-radius: 999px;
  font-size: clamp(1rem, 2.185vw, 1.75rem);
  line-height: 1.2;
}

.category-labels .active {
  background: #252525;
  color: #fff;
}

.category-content {
  display: grid;
  grid-template-columns: minmax(0, 8fr) repeat(2, minmax(0, 2fr));
  margin-top: clamp(34px, 4.05vw, 52px);
  align-items: start;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3.44vw, 44px);
  align-items: stretch;
  scroll-margin-top: 100px;
}

.category-card {
  border: 1px solid #252525;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.category-image {
  aspect-ratio: 1;
  display: block;
  padding: clamp(12px, 2.5vw, 32px);
  overflow: hidden;
  border-bottom: 1px solid #252525;
}

.category-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.category-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px;
}

.category-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  margin: 0 0 8px;
}

.category-card h2 a {
  text-decoration: none;
}

.category-card h2 a:hover {
  text-decoration: underline;
}

.category-tags {
  display: flex;
  gap: 7px 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: .875rem;
  font-weight: 700;
}

.category-tags li {
  border: 1px solid #252525;
  border-radius: 999px;
  padding: 1px 10px;
}

.category-description {
  position: relative;
  padding-inline-start: 17px;
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.37;
  white-space: pre-line;
}

.category-description::before {
  content: '';
  position: absolute;
  background: #d02c36;
  width: 8px;
  height: 8px;
  inset: .48em auto auto 0;
}

.category-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: auto;
}

.category-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.category-quote {
  font-size: .875rem;
  font-weight: 750;
}

.category-notes {
  padding: 0 clamp(12px, 2.4vw, 31px);
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.category-notes section + section {
  margin-top: 24px;
}

.category-notes h2 {
  margin: 0 0 7px;
  color: var(--category-green);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: normal;
}

.category-notes p {
  margin: 0;
  color: #4f4f4f;
  white-space: pre-line;
}

.category-finishes {
  margin-top: 52px;
}

.category-finishes h2 {
  color: var(--category-green);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: normal;
}

.category-finishes ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-finishes li {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #252525;
  padding: 10px;
  font-size: .875rem;
}

.category-finishes img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

@media (max-width: 900px) {
  .category-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .category-grid {
    grid-column: 1 / -1;
  }

  .category-notes {
    padding: 0;
  }
}

@media (max-width: 550px) {
  .category-main {
    margin: 92px 8px 8px;
    padding: 14px 12px 36px;
    border-radius: 22px;
  }

  .category-panel-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .category-clock {
    grid-row: 2;
    padding-top: 0;
    font-size: .8125rem;
  }

  .category-breadcrumbs {
    justify-content: start;
    text-align: left;
  }

  .category-close {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .category-intro h1 {
    font-size: clamp(2.35rem, 12.5vw, 4.2rem);
  }

  .category-content,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
