.store-catalog {
  --retro-navy: #11152f;
  --retro-pink: #ff3c8e;
  --retro-cyan: #22e2c2;
  --retro-yellow: #fff21a;
  --retro-purple: #7856d8;
  --retro-cream: #fffdf4;
  color: var(--retro-navy);
  background: var(--retro-cream) radial-gradient(var(--retro-cyan) 1.5px, transparent 1.5px) 0 0 / 24px 24px;
}

.store-catalog > header {
  max-width: none;
  padding: 16px 6vw;
  background: var(--retro-cream);
  border-bottom: 4px solid var(--retro-navy);
  box-shadow: 0 4px var(--retro-pink);
}

.store-catalog > header a {
  color: var(--retro-navy);
  font-weight: 800;
  text-decoration: none;
}

.store-catalog > main {
  max-width: 2000px;
  padding: 34px 6vw 64px;
}

.store-catalog .catalog-hero {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 3px solid var(--retro-navy);
  box-shadow: 8px 8px var(--retro-purple);
}

.catalog-heading {
  margin: 28px 0 24px;
  padding: 24px;
  background: #fff;
  border: 3px solid var(--retro-navy);
  box-shadow: 8px 8px var(--retro-pink);
}

.catalog-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.375rem);
  line-height: 1.15;
  font-weight: 950;
}

.catalog-heading p {
  margin: 12px 0 16px;
}

.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.catalog-categories a,
.catalog-return,
.catalog-buy a {
  display: inline-block;
  padding: 7px 12px;
  border: 2px solid var(--retro-navy);
  background: var(--retro-cyan);
  color: var(--retro-navy);
  box-shadow: 3px 3px var(--retro-navy);
  font-size: .9375rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-return,
.catalog-buy a {
  background: var(--retro-yellow);
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.catalog-product {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--retro-navy);
  border-radius: 3px;
  background: #fff;
  box-shadow: 8px 8px var(--retro-cyan);
}

.catalog-product:nth-child(3n + 2) { box-shadow: 8px 8px var(--retro-pink); }
.catalog-product:nth-child(3n + 3) { box-shadow: 8px 8px var(--retro-yellow); }

.catalog-photo {
  position: relative;
  display: block;
  height: clamp(215px, 20vw, 330px);
  background: #f2f4f8;
  border-bottom: 5px solid var(--retro-navy);
}

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

.catalog-stock,
.catalog-category {
  display: inline-block;
  padding: 4px 9px;
  font-size: .8125rem;
  font-weight: 900;
}

.catalog-stock {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: var(--retro-yellow);
  color: var(--retro-navy);
  border: 2px solid var(--retro-navy);
  box-shadow: 4px 4px var(--retro-pink);
}

.catalog-sold { background: #c51f3a; color: #fff; }
.catalog-category { background: var(--retro-cyan); }

.catalog-product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.catalog-product-info h2 {
  margin: 10px 0 16px;
  font-size: 1.25rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.catalog-product-info h2 a {
  color: var(--retro-navy);
  text-decoration: none;
}

.catalog-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  align-self: stretch;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #dfe1e8;
}

.catalog-buy strong { font-size: 1.5rem; }
.store-catalog a:hover { text-decoration: underline; }
.store-catalog a:focus-visible { outline: 3px solid var(--retro-purple); outline-offset: 3px; }

@media (max-width: 850px) {
  .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .store-catalog > main, .store-catalog > header { padding-inline: 16px; }
  .store-catalog > header { gap: 8px 16px; }
  .catalog-heading { padding: 16px; }
  .catalog-products { grid-template-columns: minmax(0, 1fr); }
  .catalog-photo { height: min(83vw, 340px); }
}
