.catalog-page {
  background: #f5f5f5;
}

.catalog-page__container {
  max-width: var(--page-max-width, 1440px);
  margin: 0 auto;
  padding: 80px var(--page-padding-x, 120px);
  box-sizing: border-box;
}

.catalog-page__intro {
  margin-bottom: 32px;
}

.catalog-page__title {
  margin: 0 0 12px;
  color: #151515;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 44px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
}

.catalog-page__description {
  margin: 0;
  color: #151515;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.catalog-page__filters-card {
  display: flex;
  padding: 32px 24px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
}

.catalog-page__filters {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.catalog-page__field {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-page__field--search {
  flex: 1 1 auto;
}

.catalog-page__field--category {
  flex: 1 1 40%;
}

.catalog-page__input {
  width: 100%;
  height: 48px;
  padding: 0 12px 0 40px;
  border-radius: 8px;
  border: 1px solid #E1E1F8;
  background: #FFF;
  color: #151515;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  outline: none;
}

.catalog-page__input:focus {
  border-color: #235CA2;
}

.catalog-page__suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #E1E1F8;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}

.catalog-page__suggestions[hidden] {
  display: none !important;
}

.catalog-page__suggestion-item {
  padding: 10px 16px;
  color: #151515;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 140%;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.catalog-page__suggestion-item:hover {
  background: rgba(35, 92, 162, 0.08);
}

.catalog-page__suggestion-item--empty {
  color: rgba(0, 0, 0, 0.5);
  cursor: default;
}

.catalog-page__suggestion-item--empty:hover {
  background: transparent;
}

.catalog-page__field-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.catalog-page__field-icon--left {
  left: 12px;
  width: 18px;
  height: 18px;
}

.catalog-page__field-icon--right {
  right: 12px;
  width: 16px;
  height: 16px;
}

.catalog-page__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 40px 0 40px;
  border-radius: 8px;
  border: 1px solid #E1E1F8;
  background: #FFF;
  color: #151515;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  outline: none;
}

.catalog-page__button {
  display: inline-flex;
  padding: 13px 40px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(0deg, #235CA2 0%, #235CA2 100%), #F5F5F5;
  color: #F5F5F5;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  cursor: pointer;
  white-space: nowrap;
}

.catalog-page__button img {
  width: 16px;
  height: 16px;
  display: block;
}

.catalog-page__button:disabled,
.catalog-page__select:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.catalog-page__loading {
  display: none;
  width: 100%;
}

.catalog-page__loading.is-visible {
  display: block;
}

.catalog-page__loading-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.catalog-page__loading-line {
  display: block;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(225, 225, 248, 0.45) 25%,
    rgba(225, 225, 248, 0.8) 50%,
    rgba(225, 225, 248, 0.45) 75%
  );
  background-size: 200% 100%;
  animation: catalogPageSkeleton 1.2s infinite linear;
}

.catalog-page__loading-line--field {
  flex: 1 1 auto;
}

.catalog-page__loading-line--button {
  width: 160px;
  flex-shrink: 0;
}

@keyframes catalogPageSkeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.catalog-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 20px;
  gap: 16px;
}

.catalog-page__count {
  margin: 0;
  color: #151515;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.catalog-page__count-term {
  color: #235CA2;
  font-weight: 700;
}

.catalog-page__category-filter {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-page__toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-page__status-filter {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-page__select--native {
  appearance: auto;
  -webkit-appearance: auto;
  background: #fff;
  border: 1px solid #E1E1F8;
  border-radius: 8px;
  padding: 8px 12px;
  color: #475569;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  height: 48px;
}

.catalog-page__select--native:focus {
  outline: 2px solid #235CA2;
  outline-offset: 1px;
}

.catalog-page__category-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.catalog-page__category-trigger:hover {
  background: rgba(35, 92, 162, 0.06);
}

.catalog-page__category-label {
  color: #475569;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.catalog-page__category-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 220px;
  max-width: 320px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #E1E1F8;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}

.catalog-page__category-dropdown[hidden] {
  display: none !important;
}

.catalog-page__category-dropdown-item {
  padding: 10px 16px;
  color: #151515;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
  cursor: pointer;
  transition: background 0.15s;
}

.catalog-page__category-dropdown-item:hover {
  background: rgba(35, 92, 162, 0.08);
}

.catalog-page__category-dropdown-item--empty {
  color: rgba(0, 0, 0, 0.5);
  cursor: default;
}

.catalog-page__category-dropdown-item--empty:hover {
  background: transparent;
}

.catalog-page__category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.catalog-page__category-tags[hidden] {
  display: none !important;
}

.catalog-page__category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(35, 92, 162, 0.08);
  border: 1px solid rgba(35, 92, 162, 0.2);
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #235CA2;
}

.catalog-page__category-tag-text {
  font-weight: 500;
}

.catalog-page__category-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: #235CA2;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}

.catalog-page__category-tag-remove:hover {
  background: rgba(35, 92, 162, 0.15);
}

.catalog-page__category-filter-icon {
  width: 16px;
  height: 16px;
  color: #475569;
  flex-shrink: 0;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.catalog-page__category-filter .select2-container .select2-selection--single {
  height: 48px;
  background: transparent;
  border: none;
  padding-left: 34px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.catalog-page__category-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none;
}

.catalog-page__category-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #475569;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding-left: 0;
}

.catalog-page__category-select2-dropdown {
  border: 1px solid #E1E1F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  margin-top: 4px;
}

.catalog-page__category-select2-dropdown .select2-search--dropdown {
  padding: 10px;
  border-bottom: 1px solid #f0f0f4;
}

.catalog-page__category-select2-dropdown .select2-search--dropdown .select2-search__field {
  height: 36px;
  border: 1px solid #E1E1F8;
  border-radius: 8px;
  padding: 0 10px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  outline: none;
}

.catalog-page__category-select2-dropdown .select2-results__options {
  max-height: 220px;
  padding: 6px 0;
}

.catalog-page__category-select2-dropdown .select2-results__option {
  padding: 10px 14px;
  color: #151515;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.catalog-page__category-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(35, 92, 162, 0.08);
  color: #151515;
}

.catalog-page__category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.catalog-page__category-option.is-selected {
  font-weight: 600;
  color: #235CA2;
}

.catalog-page__category-option-remove {
  font-size: 18px;
  line-height: 1;
  color: #235CA2;
  margin-left: 12px;
}

.catalog-page__category-filter .catalog-page__select {
  width: 100%;
  height: 48px;
  padding: 0 12px 0 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #151515;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

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

.catalog-page__card {
  display: flex;
  min-height: 168px;
  padding: 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: 16px;
  border: 1px solid rgba(163, 181, 196, 0.35);
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
}

.catalog-page__card-tag {
  display: flex;
  padding: 4px 12px;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 4px;
  background: rgba(163, 181, 196, 0.35);
  color: rgba(0, 0, 0, 0.60);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
}

.catalog-page__card-title {
  margin: 0;
  min-height: 56px;
  color: #151515;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 22.5px;
  letter-spacing: 0.15px;
}

.catalog-page__card-meta {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.catalog-page__card-label {
  color: rgba(0, 0, 0, 0.60);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 14.667px;
  letter-spacing: 0.275px;
  text-transform: uppercase;
}

.catalog-page__card-code {
  color: rgba(0, 0, 0, 0.60);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.5px;
}

.catalog-page__empty-state {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 0 0;
}

.catalog-page__empty-state-image {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}

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

.catalog-page__empty-state-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-page__empty-state-title {
  margin: 0;
  max-width: 700px;
  color: #0E1420;
  font-family: "Museo Sans", Arial, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}

.catalog-page__empty-state-description {
  margin: 0;
  color: rgba(0, 0, 0, 0.60);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

.catalog-page__error {
  margin-top: 20px;
  color: #b42318;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.catalog-page .select2-container {
  width: 100% !important;
}

.catalog-page .select2-container .select2-selection--single {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #E1E1F8;
  background: #fff;
  display: flex;
  align-items: center;
  padding-left: 40px;
  padding-right: 40px;
  box-shadow: none;
}

.catalog-page__category-dropdown .select2-search--dropdown .select2-search__field {
  height: 36px;
  border: 1px solid #E1E1F8;
  border-radius: 8px;
  padding: 0 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  outline: none;
}

.catalog-page__category-dropdown .select2-results__options {
  max-height: 220px;
  padding: 6px 0;
}

.catalog-page__category-dropdown .select2-results__option {
  padding: 10px 14px;
  color: #151515;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
}

.catalog-page__category-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(35, 92, 162, 0.08);
  color: #151515;
}

.catalog-page__category-dropdown .select2-results__option--selected {
  background: rgba(35, 92, 162, 0.12);
  color: #151515;
}

.catalog-page .select2-container--default.select2-container--open .select2-selection--single,
.catalog-page .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #235CA2;
}

.catalog-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #151515;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 46px;
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(21, 21, 21, 0.65);
}

.catalog-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none;
}

.catalog-page .select2-dropdown {
  border: 1px solid #E1E1F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  margin-top: 6px;
}

.catalog-page .select2-search--dropdown {
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #f0f0f4;
}

.catalog-page .select2-search--dropdown .select2-search__field {
  height: 40px;
  border: 1px solid #E1E1F8;
  border-radius: 8px;
  padding: 0 12px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  outline: none;
}

.catalog-page .select2-results__options {
  max-height: 280px;
  padding: 8px 0;
  background: #fff;
}

.catalog-page .select2-results__option {
  padding: 12px 16px;
  color: #151515;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 140%;
}

.catalog-page .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(35, 92, 162, 0.08);
  color: #151515;
}

.catalog-page .select2-container--default .select2-results__option--selected {
  background: rgba(35, 92, 162, 0.12);
  color: #151515;
}

@media (max-width: 1024px) {
  .catalog-page__loading-row,
  .catalog-page__filters {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-page__button,
  .catalog-page__loading-line--button {
    width: 100%;
  }

  .catalog-page__grid,
  .catalog-page__skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-page__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-page__toolbar-filters {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .catalog-page__category-filter {
    min-width: 100%;
  }

  .catalog-page__status-filter {
    min-width: 100%;
  }

  .catalog-page__select--native {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .catalog-page__container {
    padding-top: calc(76px + 56px);
    padding-bottom: 56px;
  }

  .catalog-page__title {
    font-size: 32px;
  }

  .catalog-page__grid,
  .catalog-page__skeleton {
    grid-template-columns: 1fr;
  }

  .catalog-page__empty-state {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .catalog-page__empty-state-image {
    width: 120px;
    height: 120px;
  }

  .catalog-page__empty-state-title {
    font-size: 20px;
  }
}

.catalog-page__empty-state[hidden],
.catalog-page__grid[hidden],
.catalog-page__count[hidden],
.catalog-page__error[hidden] {
  display: none !important;
}

.catalog-page__button--clear {
  background: transparent;
  border: 1px solid #235CA2;
  color: #235CA2;
}

.catalog-page__button--clear[hidden] {
  display: none !important;
}

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

.catalog-page__skeleton-card {
  min-height: 168px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(225, 225, 248, 0.45) 25%,
    rgba(225, 225, 248, 0.8) 50%,
    rgba(225, 225, 248, 0.45) 75%
  );
  background-size: 200% 100%;
  animation: catalogPageSkeleton 1.2s infinite linear;
}

.catalog-page__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.catalog-page__pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #E1E1F8;
  border-radius: 8px;
  background: #fff;
  color: #151515;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.catalog-page__pagination button:hover:not(:disabled):not(.is-active) {
  background: rgba(35, 92, 162, 0.08);
  border-color: #235CA2;
}

.catalog-page__pagination button.is-active {
  background: #235CA2;
  border-color: #235CA2;
  color: #fff;
  cursor: default;
}

.catalog-page__pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.catalog-page__pagination[hidden] {
  display: none !important;
}

/* === Select2 - Mensagens de status === */
.catalog-page__select2-message {
  display: block;
  padding: 4px 0;
  color: #6b7280;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  user-select: none;
}

.catalog-page__select2-message--loading {
  color: #235CA2;
}

.catalog-page__select2-message--empty {
  color: #9ca3af;
}

.catalog-page__select2-message--error {
  color: #b42318;
}
