/* The Shop tab brand directory (/shop). Light, in the shop's own palette
   (shop.css :root): white cards, dark ink, teal accent. Each brand's logo sits
   on a small dark plate so white logos (Duprix, Ballvek) still read. */
.bdir-title { margin: 8px 4px 2px; font-size: clamp(24px, 6vw, 34px); font-weight: 800; color: var(--shop-fg); }
.bdir-sub { margin: 0 4px 20px; color: var(--shop-dim); font-size: 14px; }

.bdir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  align-items: start;
}
.bdir {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(8, 36, 44, .1);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: var(--shop-fg);
  box-shadow: 0 2px 10px rgba(8, 36, 44, .06);
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.bdir:hover {
  border-color: var(--shop-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 36, 44, .12);
}
.bdir__head {
  height: 128px;
  display: grid;
  place-items: center;
  margin: 10px 10px 0;
  padding: 14px;
  border-radius: 12px;
  background: radial-gradient(80% 140% at 50% 0%, #1d2a33, #0b1418);
}
.bdir__logo { max-width: 78%; max-height: 92px; object-fit: contain; display: block; }
.bdir__word {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #f4f7f8;
  text-align: center;
}
.bdir__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
}
.bdir__name { font-size: 17px; font-weight: 800; color: var(--shop-fg); }
.bdir__count {
  font-size: 12px; font-weight: 700; white-space: nowrap;
  color: var(--shop-accent-ink); background: rgba(22, 200, 210, .12);
  padding: 3px 9px; border-radius: 999px;
}
/* Four small thumbnails per row; one product stays small instead of stretching. */
.bdir__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 14px 14px;
}
.bdir__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #eef3f4;
  border: 1px solid rgba(8, 36, 44, .08);
}
.bdir__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
