.catalog {
  padding-block: 35px 64px;
}
.catalog h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -.05em;
  margin-block: 24px 14px;
}
.catalog > p {
  line-height: 1.6;
  color: var(--muted);
}
.catalog > p a {
  color: var(--ink);
  text-decoration: underline;
}
.catalog-home {
  font-size: 14px;
}
.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 15px;
  margin-block: 28px 18px;
}
.catalog-controls label {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}
.catalog-controls input, .catalog-controls select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #b6bcae;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.product-photo {
  height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.product-photo img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.product-content {
  padding: 18px;
}
.catalog-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-group {
  min-height: 44px;
  border: 1px solid #b6bcae;
  border-radius: 4px;
  padding: 8px 13px;
  background: var(--paper);
  font-size: 13px;
}
.catalog-group:hover {
  border-color: var(--olive);
}
.catalog-group[aria-pressed="true"] {
  color: white;
  border-color: var(--olive);
  background: var(--olive);
}
.product-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}
.product-actions .button {
  min-height: 44px;
  padding: 10px 13px;
}
.product-content h2 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.product-price {
  font-weight: 700;
}
.product-content summary {
  cursor: pointer;
  font-size: 14px;
}
.product-description {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.55;
}
.catalog #more {
  margin-top: 24px;
}
.catalog [hidden] {
  display: none;
}
@media (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-controls { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr; }
}
