.product-photo-frame {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1;
  padding: 5%;
  overflow: hidden;
  background: #f8f9fa;
}

.product-photo-frame > .product-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  margin: 0;
}

.catalog-page {
  font-family: "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin: 14px 0 18px;
}

.catalog-product-card {
  min-width: 0;
  overflow: clip;
  border: 1px solid #293447;
  border-radius: 10px;
  background: #141a24;
  scroll-margin-top: 16px;
}

.catalog-product-card:target {
  outline: 3px solid #1464bc;
  outline-offset: 3px;
}

.catalog-product-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: #e6eaf0;
}

.catalog-product-photos figure {
  margin: 0;
  min-width: 0;
  background: #f8f9fa;
}

.catalog-product-photos figcaption {
  padding: 5px 10px 8px;
  color: #344054;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
}

.catalog-product-description {
  padding: 14px 16px;
}

.catalog-product-description h3 {
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.catalog-product-description p {
  margin: 5px 0 0;
  color: #d3deec;
  font-size: .91rem;
}

.catalog-product-specs {
  background: #fff;
  padding: 9px 12px 4px;
}

.catalog-product-specs > summary {
  cursor: pointer;
  color: #14568b;
  font-weight: 650;
  font-size: .9rem;
  padding: 5px 0 8px;
}

.catalog-product-specs > summary:focus-visible {
  outline: 2px solid #1464bc;
  outline-offset: 2px;
}

.catalog-product-specs table {
  margin: 6px 0 8px;
}

.catalog-product-specs th:first-child {
  width: 42%;
}

@media (min-width: 640px) {
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .catalog-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
