/* ===========================
   Сторінка «Усі бренди» (/store/brands/): шапка з пошуком, чіпи розділів,
   «Популярні зараз», бренди A–Я. Ширина — .container-wide з header-v2.css
   =========================== */
.br { --br-ink: #1f2133; --br-muted: #8a8ea6; --br-line: #eceef5; padding-bottom: 36px; }
.br a { text-decoration: none; }
.br a:hover { text-decoration: none; }
.br a:focus-visible, .br button:focus-visible, .br input:focus-visible { outline: 3px solid #667eea; outline-offset: 2px; border-radius: 10px; }
.br [hidden] { display: none !important; }

/* ---- шапка ---- */
.br-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #667eea, #764ba2); }
.br-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.br-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding-top: 30px; padding-bottom: 28px; }
.br-crumbs { margin-bottom: 10px; font-size: 13px; opacity: .85; }
.br-crumbs a { color: #fff; }
.br-hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 42px; font-weight: 700; color: #fff; }
.br-lead { margin: 6px 0 0; font-size: 16px; opacity: .92; }
.br-find { display: flex; align-items: center; gap: 10px; max-width: 560px; height: 52px; margin: 16px 0 0; padding: 0 16px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(20, 10, 60, .2); cursor: text; }
.br-find i { color: var(--br-muted); }
.br-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--br-ink); }
.br-facts { display: grid; grid-template-columns: repeat(3, 170px); gap: 12px; }
.br-fact { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.br-fact b { display: block; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.br-fact span { font-size: 13px; opacity: .9; }

/* ---- чіпи ---- */
.br-chips { background: #fff; border-bottom: 1px solid #e9ebf3; }
.br-chips-in { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.br-chips-in::-webkit-scrollbar { display: none; }
.br-chip { flex: 0 0 auto; padding: 8px 14px; border: 0; border-radius: 999px; background: #f2f3f8; font: inherit; font-size: 14px; font-weight: 700; color: var(--br-ink); white-space: nowrap; cursor: pointer; transition: background .2s ease; }
.br-chip small { margin-left: 2px; font-size: 12.5px; font-weight: 600; color: var(--br-muted); }
.br-chip:hover { background: #e8eaff; }
.br-chip.is-on { color: #fff; background: linear-gradient(120deg, #667eea, #764ba2); }
.br-chip.is-on small { color: rgba(255, 255, 255, .8); }

/* ---- секції ---- */
.br-sec { padding-top: 26px; }
.br-h2 { margin: 0 0 16px; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; color: var(--br-ink); }

/* монограма замість лого */
.br-mono { display: grid; place-items: center; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.br-mono--1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.br-mono--2 { background: linear-gradient(135deg, #f97316, #ef4444); }
.br-mono--3 { background: linear-gradient(135deg, #10b981, #059669); }
.br-mono--4 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.br-mono--5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.br-mono--6 { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* популярні */
.br-tops { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.br-top { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 18px 14px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--br-line); text-align: center; color: var(--br-ink) !important; transition: transform .2s ease, box-shadow .2s ease; }
.br-top:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(30, 20, 80, .1); }
.br-rank { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #9a6500; background: #fff3dd; }
.br-top-lg { width: 100%; height: 76px; display: grid; place-items: center; }
.br-top-lg img { max-width: 80%; max-height: 64px; object-fit: contain; }
.br-top .br-mono { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }
.br-top b { font-size: 16px; line-height: 1.25; }
.br-top small { font-size: 13px; color: var(--br-muted); }
.br-top-sec { max-width: 100%; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; color: #4f5bd5; background: #eef0ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A–Я */
.br-letters { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--br-line); }
.br-letters a { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 9px; background: #f4f5fb; font-size: 14px; font-weight: 800; color: var(--br-ink); transition: background .2s ease, color .2s ease; }
.br-letters a:hover { color: #fff; background: linear-gradient(120deg, #667eea, #764ba2); }
.br-groups { display: grid; gap: 26px; margin-top: 22px; }
.br-group { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; scroll-margin-top: 90px; }
.br-group h3 { position: relative; width: 56px; height: 56px; margin: 0; border-radius: 16px; display: grid; place-items: center; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; color: #fff; background: linear-gradient(135deg, #667eea, #764ba2); }
.br-group h3 small { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 11.5px; color: var(--br-muted); }
.br-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.br-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--br-line); color: var(--br-ink) !important; transition: border-color .2s ease, box-shadow .2s ease; }
.br-item:hover { border-color: #c7cdf5; box-shadow: 0 6px 14px rgba(30, 20, 80, .06); }
.br-item-lg { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #fff; }
.br-item-lg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.br-item .br-mono { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }
.br-item-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.br-item-t b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-item-t small { flex: 0 0 auto; font-size: 12.5px; color: #a3a6bd; }
.br-nores { margin-top: 20px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--br-line); text-align: center; color: #6b6f86; }
.br-nores a { color: #4f5bd5; font-weight: 800; }

/* ---- адаптив ---- */
@media (max-width: 1399px) {
  .br-tops { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .br-hero-in { grid-template-columns: 1fr; padding-top: 72px; }
  .br-facts { grid-template-columns: repeat(3, 1fr); }
  .br-tops { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .br-hero-in { padding-top: 64px; padding-bottom: 20px; gap: 16px; }
  .br-hero h1 { font-size: 30px; }
  .br-facts { gap: 8px; }
  .br-fact { padding: 10px; }
  .br-fact b { font-size: 17px; }
  .br-fact span { font-size: 11.5px; }
  .br-h2 { font-size: 22px; }
  .br-tops { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .br-letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .br-letters::-webkit-scrollbar { display: none; }
  .br-letters a { flex: 0 0 auto; }
  .br-group { grid-template-columns: 1fr; gap: 8px; }
  .br-group h3 { width: auto; height: auto; justify-self: start; display: flex; align-items: baseline; gap: 8px; padding: 4px 12px; border-radius: 10px; font-size: 20px; }
  .br-group h3 small { position: static; color: rgba(255, 255, 255, .8); }
  .br-list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .br-top, .br-item { transition: none; }
  .br-top:hover { transform: none; }
}
