.bjutip-brand-list-module {
  width: 100%;
}

.bjutip-brand-list-module .brands-directory {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbfe 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.bjutip-brand-list-module .brands-directory__header {
  margin-bottom: 28px;
}

.bjutip-brand-list-module .brands-directory__header h2 {
  margin-bottom: 10px;
  color: #1f2937;
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.bjutip-brand-list-module .brands-directory__header p {
  max-width: 640px;
  margin: 0 auto;
  color: #5d6678;
  font-size: 15px;
  line-height: 1.8;
}

.bjutip-brand-list-module .brands-directory__toolbar {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: rgba(246, 247, 251, 0.72);
}

.bjutip-brand-list-module .brands-directory__toolbar-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.bjutip-brand-list-module .brands-directory__search {
  flex: 1 1 auto;
  margin: 0;
}

.bjutip-brand-list-module .brands-directory__search .form-control {
  min-height: 54px;
  padding: 14px 18px 14px 52px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 6px;
  background: #ffffff url('/catalog/view/theme/default/image/layout/search-icon.svg') no-repeat 18px center;
  background-size: 18px 18px;
  color: #1f2937;
  box-shadow: none;
}

.bjutip-brand-list-module .brands-directory__search .form-control::placeholder {
  color: #8b859d;
}

.bjutip-brand-list-module .brands-directory__search .form-control:focus {
  border-color: rgba(83, 36, 205, 0.24);
  box-shadow: 0 0 0 4px rgba(83, 36, 205, 0.08);
}

.bjutip-brand-list-module .brands-directory__count {
  flex: 0 0 auto;
  color: #5d6678;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.bjutip-brand-list-module .brands-directory__count strong {
  color: #5324cd;
  font-size: 15px;
  font-weight: 700;
}

.bjutip-brand-list-module .brands-directory__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bjutip-brand-list-module .brands-directory__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #ffffff;
  color: #3f394f;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.bjutip-brand-list-module .brands-directory__letter:hover,
.bjutip-brand-list-module .brands-directory__letter:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(83, 36, 205, 0.22);
  color: #5324cd;
  box-shadow: 0 10px 24px rgba(83, 36, 205, 0.08);
}

.bjutip-brand-list-module .brands-directory__letter.is-active {
  border-color: rgba(83, 36, 205, 0.18);
  background: rgba(83, 36, 205, 0.08);
  color: #5324cd;
  box-shadow: inset 0 0 0 1px rgba(83, 36, 205, 0.04);
}

.bjutip-brand-list-module .brands-directory__hint {
  margin-top: 12px;
  color: #8b859d;
  font-size: 13px;
  line-height: 1.6;
}

.bjutip-brand-list-module .brands-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bjutip-brand-list-module .brand-directory-card {
  display: grid;
  grid-template-columns: minmax(104px, 132px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  align-content: center;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfcff 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.04);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.bjutip-brand-list-module .brand-directory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 36, 205, 0.14);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.08);
}

.bjutip-brand-list-module .brand-directory-card__logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  max-height: 80px;
  padding: 16px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 25%, rgba(83, 36, 205, 0.055), transparent 58%), #ffffff;
  overflow: hidden;
  text-decoration: none;
}

.bjutip-brand-list-module .brand-directory-card__logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: inherit;
  pointer-events: none;
}

.bjutip-brand-list-module .brand-directory-card__logo:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(83, 36, 205, 0.10);
}

.bjutip-brand-list-module .brand-directory-card__logo img {
  width: auto;
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.92;
  transition: transform 0.26s ease, filter 0.26s ease, opacity 0.26s ease;
}

.bjutip-brand-list-module .brand-directory-card:hover .brand-directory-card__logo img {
  transform: translateY(-1px) scale(1.025);
  filter: grayscale(0);
  opacity: 1;
}

.bjutip-brand-list-module .brand-directory-card__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  color: #5324cd;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(83, 36, 205, 0.05);
}

.bjutip-brand-list-module .brand-directory-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.bjutip-brand-list-module .brand-directory-card__body h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.bjutip-brand-list-module .brand-directory-card__body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0 0 16px;
  color: #5d6678;
  font-size: 13px;
  line-height: 1.62;
  overflow: hidden;
}

.bjutip-brand-list-module .brand-directory-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 5px;
}

.bjutip-brand-list-module .brand-directory-card__actions--single {
  grid-template-columns: 1fr;
}

.bjutip-brand-list-module .brand-directory-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.bjutip-brand-list-module .brands-directory__empty {
  margin-top: 18px;
  padding: 26px 24px;
  border: 1px dashed rgba(83, 36, 205, 0.20);
  border-radius: 6px;
  background: rgba(83, 36, 205, 0.04);
  text-align: center;
}

.bjutip-brand-list-module .brands-directory__empty h3 {
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 1.2rem;
  line-height: 1.25;
}

.bjutip-brand-list-module .brands-directory__empty p {
  margin-bottom: 14px;
  color: #5d6678;
  font-size: 14px;
  line-height: 1.7;
}

.bjutip-brand-list-module .brands-directory__reset {
  min-width: 180px;
}

@media (max-width: 1199.98px) {
  .bjutip-brand-list-module .brands-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .bjutip-brand-list-module .brands-directory__toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .bjutip-brand-list-module .brands-directory__count {
    white-space: normal;
  }

  .bjutip-brand-list-module .brands-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .bjutip-brand-list-module .brands-directory {
    padding: 20px 16px;
  }

  .bjutip-brand-list-module .brands-directory__header {
    margin-bottom: 22px;
  }

  .bjutip-brand-list-module .brands-directory__header h2 {
    font-size: 1.95rem;
  }

  .bjutip-brand-list-module .brands-directory__header p {
    font-size: 14px;
    line-height: 1.72;
  }

  .bjutip-brand-list-module .brands-directory__toolbar {
    padding: 14px;
    margin-bottom: 20px;
  }

  .bjutip-brand-list-module .brands-directory__search .form-control {
    min-height: 50px;
    padding-left: 48px;
    background-position: 16px center;
  }

  .bjutip-brand-list-module .brands-directory__letter {
    min-width: 38px;
    min-height: 34px;
    padding: 0 10px;
  }

  .bjutip-brand-list-module .brands-directory__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bjutip-brand-list-module .brand-directory-card {
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
    gap: 14px;
    min-height: auto;
    padding: 16px;
  }

  .bjutip-brand-list-module .brand-directory-card__logo {
    min-height: 118px;
    padding: 14px;
  }

  .bjutip-brand-list-module .brand-directory-card__logo img {
    max-height: 90px;
  }

  .bjutip-brand-list-module .brand-directory-card__body h3 {
    font-size: 1.12rem;
  }

  .bjutip-brand-list-module .brand-directory-card__body p {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.58;
  }

  .bjutip-brand-list-module .brand-directory-card__actions {
    gap: 8px;
  }

  .bjutip-brand-list-module .brand-directory-card__button,
  .bjutip-brand-list-module .brands-directory__reset {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .bjutip-brand-list-module .brand-directory-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bjutip-brand-list-module .brand-directory-card__logo {
    min-height: 108px;
  }

  .bjutip-brand-list-module .brand-directory-card__body {
    align-items: stretch;
  }

  .bjutip-brand-list-module .brand-directory-card__actions {
    grid-template-columns: 1fr;
  }
}
