/* ==========================================================================
   GloryVolt — brands: wordmark logos, brand tiles, Brands page, home "Shop by brand"
   Loaded by index.html and brands.html. The logos are original wordmarks drawn in CSS.
   ========================================================================== */

/* ---------- brand name (plain type, no logo artwork) ---------- */
.bl { display: inline-flex; align-items: center; color: var(--ink); font-family: "Albert Sans", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; white-space: nowrap; font-size: 1.45rem; }
.bl-name { display: inline-block; }
/* ---------- brand tile (home grid + brands page) ---------- */
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.brand-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 132px; padding: 22px 14px 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bc); opacity: 0.85; }
.brand-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--bc); }
.brand-tile .bl { transition: transform 0.35s var(--ease); }
.brand-tile:hover .bl { transform: scale(1.05); }
.brand-tile-meta { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.brand-tile-meta b { color: var(--ink); }

/* ---------- home: Shop by brand ---------- */
.hm-brands { background: var(--bg); }
.hm-brands .sec-head { align-items: flex-end; }
.hm-brands-foot { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- brands page ---------- */
.br-feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px clamp(24px, 4vw, 56px); padding: clamp(18px, 3vw, 34px) 0 6px; }
.br-feature a { display: inline-flex; align-items: center; padding: 14px 18px; border-radius: var(--radius); transition: transform 0.3s var(--ease), background 0.2s; }
.br-feature a:hover { transform: translateY(-3px); background: var(--surface); }
.br-feature .bl { font-size: 2.2rem; }
.br-lead { color: var(--muted); max-width: 70ch; margin: 0 0 22px; }
.br-sec { margin-top: clamp(30px, 5vw, 56px); }
.br-sec h2 { margin-bottom: 6px; }
.br-cat-label { display: block; margin: 22px 0 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.br-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.br-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.94rem; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.br-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--bc); flex: none; }
.br-pill small { font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.br-pill:hover { border-color: var(--bc); background: var(--tint); transform: translateY(-2px); }
.br-note { margin-top: clamp(28px, 4vw, 44px); padding: 16px 20px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--gold-light); color: var(--ink-3); font-size: 0.9rem; }

/* ---------- shop sidebar: brand list ---------- */
.f-brands { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 330px; overflow: auto; padding-right: 4px; }
.f-brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; color: var(--ink-3); transition: background 0.2s, color 0.2s; }
.f-brand i { width: 10px; height: 10px; border-radius: 3px; background: var(--bc); flex: none; }
.f-brand .f-brand-name { flex: 1; min-width: 0; }
.f-brand:hover { background: var(--tint); color: var(--gold-ink); }
.f-brand.is-active { background: var(--ink); color: #fff; }
.f-brand.is-active .f-count { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* product card + product page brand label */
.p-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 800; transition: color 0.2s; }
.p-brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); flex: none; }
.p-brand:hover { color: var(--gold-ink); }
.p-cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-brand { display: inline-flex; align-items: center; gap: 10px; margin: -6px 0 10px; font-weight: 700; color: var(--muted); }
.pd-brand a { display: inline-flex; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease); }
.pd-brand a:hover { border-color: var(--bc); transform: translateY(-1px); }
.pd-brand .bl { font-size: 1.05rem; }

@media (max-width: 1100px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .br-feature .bl { font-size: 1.8rem; } }
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand-tile { min-height: 112px; padding: 18px 8px 12px; }
  .brand-tile .bl { font-size: 1.25rem; }
 
 
  .br-feature { gap: 6px 12px; }
  .br-feature a { padding: 10px 10px; }
  .br-feature .bl { font-size: 1.4rem; }
      }
