/* Catalog cards. Colors and type follow the site theme (obsidian, ivory, brass, graphite, sandstone). */

.cat-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #E8E2DA;
}
.cat-card[hidden] { display: none; }

.cat-drawing {
  background: rgb(15, 14, 13);
  padding: 0 0 12px;
}
.cat-drawing svg { display: block; width: 100%; }
.cat-scale {
  margin: 0;
  padding: 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(245, 240, 235, 0.45);
  text-align: right;
}

.cat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 24px;
  flex: 1;
}
.cat-code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #B8965A;
}
.cat-name {
  margin: -8px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: #0A0A0A;
}

/* Size pills */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid rgba(58, 58, 58, 0.2);
  background: transparent;
  color: rgba(58, 58, 58, 0.75);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.cat-pill:hover { border-color: #B8965A; color: #8A7045; }
.cat-pill[aria-pressed="true"] { background: #0A0A0A; border-color: #0A0A0A; color: #F5F0EB; }

.cat-dims {
  margin: -4px 0 0;
  font-size: 13px;
  color: rgba(58, 58, 58, 0.6);
}

/* Species swatches, like colorways */
.cat-species { display: flex; flex-direction: column; gap: 8px; }
.cat-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.15);
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.cat-swatch:hover { transform: scale(1.06); }
.cat-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #F5F0EB, 0 0 0 4.5px #B8965A; }
.cat-species-name { font-size: 14px; color: #3A3A3A; }

/* Part number + price */
.cat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #E8E2DA;
}
.cat-part {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #3A3A3A;
}
.cat-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  color: #0A0A0A;
}

.cat-request {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A7045;
  transition: color 0.2s;
}
.cat-request:hover { color: #0A0A0A; }

/* Keyboard focus */
.cat-pill:focus-visible,
.cat-swatch:focus-visible,
.cat-request:focus-visible,
#catalog-filters .filter-chip:focus-visible {
  outline: 2px solid #B8965A;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cat-pill, .cat-swatch, .cat-request { transition: none; }
  .cat-swatch:hover { transform: none; }
}
