.catalog-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.catalog-hero h1 {
  font: 700 clamp(4rem, 10vw, 9rem)/.93 Barlow, "Arial Narrow", sans-serif;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.catalog-hero p, .catalog-description {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 54ch;
}

.catalog-links, .catalog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.6rem;
}

.catalog-model {
  border-bottom: 1px solid var(--line);
}

.catalog-model:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.catalog-section {
  padding-block: clamp(2.6rem, 5.6vw, 5.75rem);
}

.catalog-model-header {
  display: grid;
  grid-template-columns: 1fr minmax(0, .9fr);
  align-items: center;
  gap: 1.2rem 3rem;
  margin-bottom: 1.65rem;
}

.catalog-model-header h2 {
  margin-top: .4rem;
  text-transform: uppercase;
}

.catalog-presentation .catalog-photo {
  aspect-ratio: 16 / 9;
  max-height: 18rem;
}

.catalog-table-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .95rem;
  line-height: 1.4;
}

.catalog-table caption {
  padding: .85rem 1rem;
  text-align: left;
  font-weight: bold;
}

.catalog-table thead {
  background: var(--surface);
}

.catalog-table th, .catalog-table td {
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.catalog-table thead th:first-child { width: 23%; }
.catalog-table thead th:nth-child(2) { width: 26%; }
.catalog-table thead th:nth-child(3) { width: 32%; }
.catalog-table td { color: var(--muted); }
.catalog-table .catalog-price { color: var(--text); font-weight: bold; }
.catalog-option { margin-top: 1rem; color: var(--muted); }
.catalog-option strong { white-space: nowrap; color: var(--text); }

@media (max-width: 640px) {
  .catalog-model-header { grid-template-columns: 1fr; }
  .catalog-presentation .catalog-photo { max-height: 13rem; }
  .catalog-table { font-size: clamp(.69rem, 2.7vw, .9rem); }
  .catalog-table th, .catalog-table td { padding: .65rem .3rem; overflow-wrap: anywhere; }
  .catalog-table caption { padding: .65rem .55rem; }
  .catalog-table th:first-child { padding-inline-start: .45rem; }
  .catalog-links { gap: .5rem; }
  .catalog-links .button { padding-inline: .7rem; }
}

.catalog-presentation {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.catalog-presentation figcaption, .catalog-gallery figcaption {
  color: var(--muted);
  font-size: clamp(.75rem, 1.6vw, .95rem);
  line-height: 1.35;
}

.catalog-presentation figcaption {
  margin-top: .4rem;
}

.catalog-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.35rem, 1.8vw, 1.25rem);
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.catalog-gallery figure {
  margin: 0;
  text-align: center;
}

.catalog-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: clamp(.2rem, 2.4vw, 1.65rem);
  background: var(--bike-photo-background);
  border: 1px solid var(--bike-photo-border);
}

.catalog-photo img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog-gallery figcaption {
  margin-top: clamp(.4rem, 1.15vw, .75rem);
}
