.products-page .site-header {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(22, 31, 41, 0.08);
}

.products-page .site-nav a.active {
  color: var(--red);
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(90deg, rgba(8, 27, 40, 0.94), rgba(8, 27, 40, 0.76) 52%, rgba(8, 27, 40, 0.34)), url("assets/site/product-catalog-hero.png") center / cover no-repeat;
}

.catalog-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  width: min(1180px, calc(100% - 36px));
  min-height: 420px;
  margin: 0 auto;
  padding: 148px 0 58px;
  color: var(--white);
}

.catalog-hero-inner > div:first-child {
  max-width: 820px;
}

.catalog-hero h1,
.catalog-toolbar h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
}

.catalog-hero h1 {
  max-width: 740px;
  font-size: clamp(42px, 5vw, 68px);
}

.catalog-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.catalog-hero .hero-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.catalog-content {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.catalog-toolbar,
.catalog-group {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 0 30px;
}

@media (min-width: 921px) {
  .catalog-toolbar {
    position: sticky;
    z-index: 9;
    top: 76px;
    padding-top: 20px;
    padding-bottom: 18px;
    background: var(--white);
    box-shadow: 0 10px 18px rgba(22, 31, 41, 0.04);
  }
}

.catalog-count {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-toolbar h2 {
  font-size: 34px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 690px;
}

.category-tab {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--steel);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.category-tab[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.catalog-group {
  display: none;
  padding: 8px 0 72px;
}

.catalog-group.active {
  display: block;
}

.catalog-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.catalog-group-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.catalog-group-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-sheet {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(22, 31, 41, 0.06);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.catalog-sheet img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f2f4f5;
}

.sheet-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.sheet-caption strong {
  color: var(--ink);
}

.sheet-dialog {
  width: min(1100px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 16px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.sheet-dialog::backdrop {
  background: rgba(6, 18, 28, 0.72);
}

.sheet-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.sheet-dialog p {
  margin: 10px 42px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 920px) {
  .catalog-hero,
  .catalog-toolbar,
  .catalog-hero-inner {
    align-items: start;
    flex-direction: column;
  }

  .category-tabs {
    justify-content: flex-start;
    max-width: none;
  }

  .sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-hero {
    min-height: 460px;
  }

  .catalog-hero-inner {
    min-height: 460px;
    padding-top: 120px;
    padding-bottom: 42px;
  }

  .catalog-hero h1 {
    font-size: 40px;
  }

  .catalog-toolbar {
    padding-top: 30px;
    padding-bottom: 22px;
  }

  .catalog-toolbar h2,
  .catalog-group-heading h2 {
    font-size: 29px;
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .catalog-group {
    padding-bottom: 52px;
  }
}
