.brand-chip {
  display: block;
  padding: 12px 14px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  color: #0d3b82;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  background: #f4f8ff;
}

.brand-chip:hover {
  background: #eaf2ff;
}

.brand-card {
  height: 100%;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.nl-brands-page .nl-surface,
.nl-brand-detail-page .nl-surface {
  border-radius: 18px;
  border: 1px solid #dbe6f4;
}

.nl-brands-hero {
  padding: clamp(18px, 2.2vw, 30px) !important;
}

.nl-brands-hero .btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
}

.nl-brands-page .catalog-card {
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.nl-brands-page .catalog-card__image-link {
  min-height: 190px;
}

.nl-brands-page .catalog-card__actions {
  margin-top: auto;
}

.nl-brands-page .catalog-card__actions .btn {
  min-height: 38px;
  border-radius: 11px;
  font-weight: 700;
}

.nl-brand-hero__logo-wrap {
  width: 124px;
  height: 124px;
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.nl-brand-hero__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nl-brand-hero {
  border: 1px solid #dbe6f4;
  background: linear-gradient(120deg, #f8fbff 0%, #f1f6ff 46%, #f8fbff 100%);
  padding: clamp(18px, 2.2vw, 30px) !important;
}

.nl-brand-hero__left {
  display: grid;
  gap: 12px;
}

.nl-brand-hero__head {
  min-height: 124px;
}

.nl-brand-hero__actions .btn {
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nl-brand-hero__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nl-brand-hero__kpis {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  gap: 10px;
}

.nl-brand-hero__kpis .nl-catalog-kpi {
  white-space: nowrap;
}

.nl-brand-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nl-brand-category-chip {
  min-height: 42px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #f8fbff;
  color: #0f172a;
  text-decoration: none;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.nl-brand-category-chip small {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .24);
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.nl-brand-category-chip:hover {
  border-color: rgba(37, 99, 235, .45);
  color: #1d4ed8;
  background: rgba(37, 99, 235, .1);
}

.nl-brand-filter {
  --nl-brand-filter-control-height: 42px;
}

.nl-brand-filter-wrap {
  padding: 16px 18px !important;
}

.nl-brand-filter .form-label {
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.nl-brand-filter__field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.nl-brand-filter .form-control,
.nl-brand-filter .form-select,
.nl-brand-filter__submit .btn {
  min-height: var(--nl-brand-filter-control-height);
  height: var(--nl-brand-filter-control-height);
  border-radius: 12px;
}

.nl-brand-filter__stock {
  display: flex;
  align-items: flex-end;
}

.nl-brand-filter__stock .form-check {
  min-height: var(--nl-brand-filter-control-height);
  width: 100%;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nl-brand-filter__stock .form-check-input {
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 0 0 auto;
}

.nl-brand-filter__stock .form-check span {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1;
}

.nl-brand-filter__submit .btn {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  min-width: 118px;
}

@media (max-width: 991.98px) {
  .nl-brands-hero {
    padding: 18px !important;
  }

  .nl-brands-page .catalog-card__image-link {
    min-height: 164px;
  }

  .nl-brand-hero__right {
    justify-content: flex-start;
  }

  .nl-brand-hero__kpis {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: flex-start;
  }

  .nl-brand-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .nl-brands-hero .btn,
  .nl-brand-hero__actions .btn {
    width: 100%;
  }

  .nl-brand-filter-wrap {
    padding: 14px !important;
  }

  .nl-brand-hero__head {
    min-height: 0;
  }

  .nl-brand-hero__logo-wrap {
    width: 96px;
    height: 96px;
  }

  .nl-brand-hero__kpis {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .nl-brand-filter__stock .form-check {
    min-height: 40px;
  }

  .nl-brand-filter__submit .btn {
    min-width: 0;
  }

  .nl-brand-categories {
    grid-template-columns: minmax(0, 1fr);
  }
}
