/* ========================================================================
   VAPE LAB — Brand Archive Page
   ======================================================================== */

/* ─── Page Header ─── */
.vl-brand-archive-header {
  margin-bottom: 2rem;
}

.vl-brand-archive-header h1 {
  font-family: var(--vl-font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--vl-ink);
  margin-bottom: 0.5rem;
}

.vl-brand-archive-header p {
  font-size: var(--fs-body);
  color: var(--vl-muted);
  line-height: var(--lh-body);
}

/* ─── Brand Search ─── */
.vl-brand-search {
  margin-bottom: 1.5rem;
}

.vl-brand-search input {
  width: 100%;
  max-width: 24rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--vl-border);
  border-radius: var(--r-md);
  font-family: var(--vl-font-body);
  font-size: var(--fs-body);
  transition: border-color 0.2s ease;
}

.vl-brand-search input:focus {
  outline: none;
  border-color: var(--vl-ink);
  box-shadow: 0 0 0 0.125rem rgba(18, 18, 18, 0.08);
}

.vl-brand-search input::placeholder {
  color: var(--vl-muted);
}

/* ─── Brand Grid ─── */
.vl-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ─── Brand Card ─── */
.vl-brand-card {
  background: var(--vl-card);
  border-radius: var(--r-card);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.vl-brand-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--vl-accent);
}

.vl-brand-card-image {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--vl-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.vl-brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.vl-brand-card-name {
  font-family: var(--vl-font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--vl-ink);
}

.vl-brand-card-count {
  font-size: var(--fs-small);
  color: var(--vl-muted);
}

/* ─── Responsive ─── */
@media (max-width: 51.25em) {
  .vl-brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 31.25em) {
  .vl-brand-grid {
    grid-template-columns: 1fr;
  }

  .vl-brand-card-image {
    width: 4.5rem;
    height: 4.5rem;
  }
}
