/* Three-column catalog; product pages retain their reading width. */
.home-page, .site-header, .site-footer { width: min(100% - 40px, 1100px); }
.home-page { padding-top: 24px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 152px;
  padding: 16px;
  border: 3px solid #424d56;
  border-radius: 0;
  background: #c5cdd2;
  box-shadow: inset 3px 3px 0 #f2f5f7, inset -3px -3px 0 #7b8790, 0 3px 0 #acbdca;
  color: #243541;
  text-decoration: none;
}

.product-card:hover {
  background: #d4dfe7;
  border-color: #365f80;
  box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #859dae, 0 3px 0 #acbdca;
}
.product-card:active { box-shadow: inset 3px 3px 0 #7b8790, inset -3px -3px 0 #f2f5f7; }
.product-card:focus-visible { outline-offset: 5px; }
.product-item-slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 6px;
  background: #929da4;
  box-shadow: inset 3px 3px 0 #58656e, inset -3px -3px 0 #eef2f4;
}
.product-card img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.product-card-name {
  display: block;
  min-width: 0;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-shadow: 1px 1px 0 #edf2f5;
}
.product-card-copy { min-width: 0; }
.product-card-description { margin-top: 8px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.product-card-description:not([hidden]) { display: block; }

@media (min-width: 761px) and (max-width: 1100px) {
  .product-card { padding: 10px; gap: 8px; }
  .product-item-slot { padding: 4px; }
  .product-card-name { font-size: 12px; }
}

@media (max-width: 760px) {
  .home-page, .site-header, .site-footer { width: calc(100% - 32px); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 112px; }
}
