/* Brand directory page — search/sort toolbar, featured rail, A-Z index, grid. */

.brands-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brands-search {
  position: relative;
  flex: 1 1 260px;
}

.brands-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.brands-search input {
  padding-left: 2.25rem;
}

.brands-sort {
  flex: 0 0 auto;
  width: auto;
  min-width: 160px;
}

.brands-featured-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.brands-featured-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.brands-featured-card {
  flex: 0 0 220px;
  height: 140px;
  border-radius: 14px;
  background-color: #111111;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.brands-featured-card:hover {
  transform: translateY(-2px);
}

.brands-featured-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.brands-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.brands-az-index {
  flex: 0 0 28px;
  flex-direction: column;
  gap: 0.15rem;
  position: sticky;
  top: 90px;
}

.brands-az-letter {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}

.brands-az-letter:hover {
  color: #111111;
}

.brands-az-letter.is-disabled {
  color: #d5dae1;
  pointer-events: none;
}

.brands-grid-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid #e0e0dd;
  background: #ffffff;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.brand-card:hover {
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
  transform: translateY(-2px);
}

.brand-card-image {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f5;
  padding: 1rem;
}

.brand-card-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.brand-card-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: #eeeee9;
}

.brand-card-body {
  padding: 0.75rem 0.9rem 0.9rem;
}

.brand-card-name {
  font-weight: 600;
  color: #111111;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-card-meta {
  font-size: 0.78rem;
  color: #767671;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brands-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #767671;
}

@media (max-width: 767.98px) {
  .brands-layout {
    gap: 0;
  }
}
