.subpage-banner--products {
  --banner-image: url(banner-products.jpg);
  --banner-position: 62% center;
}
.catalog {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.catalog-sidebar {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.catalog-sidebar h2 { margin-bottom: .85rem; font-size: 1.2rem; }
.category-list { display: grid; gap: .4rem; }
.category-button, .page-button, .catalog-card, .dialog-heading button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.category-button {
  min-height: 44px;
  padding: .6rem .85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: start;
}
.category-button:hover { color: var(--red); background: white; }
.category-button[aria-pressed="true"] { color: white; background: var(--red); font-weight: 700; }
.catalog-heading {
  display: flex;
  gap: .7rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.catalog-heading h2 { font-size: clamp(1.35rem, 2.7vw, 2.05rem); }
.catalog-heading p { color: #655957; font-size: .9rem; }
.catalog-language-note { margin-bottom: 1rem; color: #655957; font-size: .9rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: start;
}
.catalog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: .65rem;
}
.catalog-card span {
  display: block;
  padding: .75rem .9rem 1rem;
  border-top: 1px solid #f2eeed;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.catalog-card:hover { color: var(--red); border-color: var(--red); }
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.75rem;
}
.page-button {
  min-height: 44px;
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.page-button:enabled:hover { color: white; background: var(--red); border-color: var(--red); }
.page-button:disabled { color: #817977; background: #f5f3f3; cursor: default; }
.product-dialog {
  width: min(54rem, calc(100% - 2rem));
  max-height: min(85dvh, 55rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
}
.product-dialog[open] { display: flex; flex-direction: column; }
.product-dialog::backdrop { background: #111721b8; }
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 { font-size: clamp(1.1rem, 2.4vw, 1.55rem); overflow-wrap: anywhere; }
.dialog-heading button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--mist);
  font-size: 1.55rem;
  line-height: 1;
}
.dialog-body { overflow: auto; overscroll-behavior: contain; padding: 1rem 1.25rem 1.5rem; }
.dialog-image { display: block; max-width: 100%; max-height: 18rem; object-fit: contain; margin: 0 auto 1rem; }
.dialog-detail { overflow-wrap: anywhere; }
.dialog-detail p + p { margin-top: .5em; }
.dialog-detail img { max-width: 100%; height: auto; }
.dialog-detail table { border-collapse: collapse; margin-block: .85rem; }
.dialog-detail td, .dialog-detail th { padding: .35rem .5rem; border: 1px solid var(--line); }
.category-button:focus-visible, .page-button:focus-visible, .catalog-card:focus-visible, .dialog-heading button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .category-button, .page-button, .catalog-card {
    transition: color 180ms ease-in-out, background-color 180ms ease-in-out, border-color 180ms ease-in-out;
  }
}
@media (max-width: 850px) {
  .catalog { grid-template-columns: 1fr; }
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .catalog-card span { padding: .65rem; font-size: .9rem; }
}
