.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.catalog-grid.apparel-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

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

@media (max-width: 640px) {
  .catalog-grid.apparel-category-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 198px 18px 18px;
  border: 1px solid #313c48;
  background:
    linear-gradient(180deg, rgba(26, 34, 43, 0.96), rgba(10, 15, 20, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(183, 123, 60, 0.16), transparent 35%);
  color: #d5ccbf;
  text-decoration: none;
  overflow: hidden;
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 188px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #313c48;
  opacity: 0.96;
  z-index: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.catalog-card > img {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 188px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid #313c48;
  z-index: 0;
  display: block;
}

.catalog-card:nth-child(1)::before {
  background-image: url("assets/images/apparel-categories/Men.png"), url("assets/images/apparel-categories/tees-apparel.svg");
}

.catalog-card:nth-child(2)::before {
  background-image: url("assets/images/apparel-categories/Women.png"), url("assets/images/apparel-categories/hoodies-apparel.svg");
}

.catalog-card:nth-child(3)::before {
  background-image: url("assets/images/apparel-categories/Headwear.png"), url("assets/images/apparel-categories/headwear-apparel.svg");
}

.catalog-card:nth-child(4)::before {
  background-image: url("assets/images/apparel-categories/Healthcare.png"), url("assets/images/apparel-categories/healthcare-apparel.svg");
}

.catalog-card:nth-child(5)::before {
  background-image: url("assets/images/apparel-categories/Hi Viz Workwear.png"), url("assets/images/apparel-categories/high-vis-apparel.svg");
}

.catalog-card:nth-child(6)::before {
  background-image: url("assets/images/apparel-categories/Outerwear.png"), url("assets/images/apparel-categories/outerwear-apparel.svg");
}

.catalog-card span,
.catalog-card strong,
.catalog-card p,
.catalog-card em {
  position: relative;
  z-index: 1;
}

.catalog-card span {
  display: block;
  color: var(--bronze-bright);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.45rem;
  line-height: 1;
}

.catalog-card p {
  margin: 0;
  color: #d5ccbf;
}

.catalog-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(216, 157, 96, 0.45);
  color: var(--bronze-bright);
  font-style: normal;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.catalog-card:hover,
.catalog-card:focus-visible {
  border-color: var(--bronze);
  color: var(--text);
}

.catalog-card:hover::before,
.catalog-card:focus-visible::before,
.catalog-card:hover > img,
.catalog-card:focus-visible > img {
  transform: scale(1.03);
  opacity: 1;
}

.product-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.product-section > p {
  color: var(--muted);
}

.product-card .product-type {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(216, 157, 96, 0.45);
  color: var(--bronze-bright);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.product-card .product-notes {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card .subcategory-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.product-card .subcategory-list li {
  margin: 6px 0;
}

.category-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 24px 0;
  border: 1px solid #313c48;
}

.category-products {
  margin-top: 24px;
}

.category-products .product-card {
  min-height: 240px;
}

.worker-card .worker-badge {
  margin-top: 14px;
}

.worker-card img + .worker-badge + h3 {
  margin-top: 8px;
}

