/* Catálogo de peças (layout inspirado no app Parts.tsx) */

.catalog-brand-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-brand-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

.catalog-brand-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.catalog-brand-card .card-body {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  padding: 0.75rem 1rem !important;
}

.catalog-brand-card .card-body h2 {
  font-size: 1rem;
}

.catalog-list .list-group-item-action:hover {
  background-color: rgba(13, 110, 253, 0.06);
}

.catalog-model-grid {
  --catalog-model-media-ratio: 16 / 9;
}

.catalog-model-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-model-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.catalog-model-card-media {
  aspect-ratio: var(--catalog-model-media-ratio);
  background-color: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.catalog-model-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-model-card-placeholder {
  width: 100%;
  height: 100%;
  background-color: #dee2e6;
}

.catalog-model-card-body {
  padding: 0.625rem 0.75rem;
}

.catalog-model-card-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.catalog-model-card-years {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

.catalog-model-hero {
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #fff;
}

.catalog-model-hero-img {
  display: block;
  width: 100%;
  max-height: 18rem;
  aspect-ratio: 21 / 9;
  object-fit: contain;
  margin: 0 auto;
}

.catalog-model-hero-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.5rem;
  background-color: #fff;
}

.catalog-model-hero-fullbleed .catalog-model-hero {
  border-radius: 0;
  margin-bottom: 0;
  background-color: #fff;
}

.catalog-model-hero-fullbleed .catalog-model-hero-img {
  width: 100%;
  max-width: 100%;
  max-height: min(55vh, 32rem);
  height: auto;
  aspect-ratio: unset;
  object-fit: contain;
}

.catalog-parts-track {
  margin-bottom: 0.25rem;
}

.catalog-parts-task-title {
  letter-spacing: -0.01em;
}
