/* Category result rows. Loaded after catalogue-compact.css on the category view. */
.category-parts {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-part {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  min-height: 108px;
  padding: .55rem .7rem;
  border: 1px solid var(--avant-line, var(--line));
  border-radius: var(--avant-radius, 5px);
  background: var(--avant-surface, #fff);
}
.category-part__thumbnail {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border: 1px solid var(--avant-line, var(--line));
  border-radius: var(--avant-radius, 5px);
  background: var(--avant-paper, var(--paper));
}
.category-part__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.category-part__photo + .category-part__placeholder { display: none; }
.category-part__photo.is-broken { display: none; }
.category-part__photo.is-broken + .category-part__placeholder { display: flex; }
.category-part__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  width: 100%;
  height: 100%;
  color: var(--avant-muted, var(--muted));
  text-align: center;
  font-size: .62rem;
  line-height: 1.2;
}
.category-part__placeholder-icon {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid currentColor;
  border-radius: .2rem;
  background: linear-gradient(135deg, transparent 44%, currentColor 46%, currentColor 53%, transparent 55%);
  opacity: .7;
}
.category-part__details { min-width: 0; }
.category-part__name {
  display: inline-block;
  min-height: 44px;
  padding-block: .4rem;
  color: var(--avant-link, var(--ink));
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-underline-offset: .15em;
}
.category-part__manufacturer {
  display: inline-block;
  margin-inline-start: .6rem;
  color: var(--avant-navy, var(--ink));
  font-size: .82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.category-part__description,
.category-part__package {
  margin: .12rem 0 0;
  color: var(--avant-muted, var(--muted));
  font-size: .82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.category-part__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.category-part__package { font-size: .76rem; }
.category-part__action { display: flex; align-items: center; justify-content: flex-end; }
.category-part__quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: .45rem .8rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.category-part__name:focus-visible,
.category-part__quote:focus-visible { outline: 3px solid var(--avant-link, var(--ink)); outline-offset: 2px; }
.category-parts--skeleton .category-part__thumbnail { border: 0; }
.category-parts--skeleton .category-part__details { display: grid; gap: .55rem; width: min(100%, 34rem); }
.category-parts--skeleton .skeleton-block { margin: 0; }
.category-part__skeleton-name { width: 40%; height: 1.2rem; }
.category-part__skeleton-maker { width: 28%; height: .8rem; }
.category-part__skeleton-description { width: 85%; height: .8rem; }
.category-part__skeleton-action { width: 7rem; height: 44px; }
@media (max-width: 42rem) {
  .category-part {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "photo details" "action action";
    align-items: start;
    gap: .2rem .7rem;
    padding: .65rem;
  }
  .category-part__thumbnail { grid-area: photo; width: 72px; height: 72px; }
  .category-part__details { grid-area: details; }
  .category-part__action { grid-area: action; justify-content: flex-start; }
  .category-part__manufacturer { display: block; margin-inline-start: 0; }
  .category-part__quote { white-space: normal; }
  .category-part__skeleton-action { width: 6rem; }
}
@media (forced-colors: active) {
  .category-part__quote { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
}
