/* browse page */
/* ── Page wrapper ── */
.br-page { max-width: 1060px; margin: 0 auto; padding: 32px 20px 64px; }

/* ── Page header ── */
.br-header { margin-bottom: 32px; }
.br-header-top {
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 20px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.br-title-block {}
.br-title {
    font-size: 28px; font-weight: 800; color: #111;
    letter-spacing: -.5px; margin: 0 0 6px;
}
.br-subtitle { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.5; }

/* Search */
.br-search {
    display: flex; align-items: center; gap: 0;
    background: #fff; border: 1.5px solid #e5e7eb;
    border-radius: 10px; padding-left: 12px;
    min-width: 260px; max-width: 320px; flex-shrink: 0;
    transition: border-color .15s, box-shadow .15s;
}
.br-search:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.br-search svg { color: #9ca3af; flex-shrink: 0; }
.br-search input {
    flex: 1; border: none; outline: none; font-size: 14px;
    font-family: inherit; padding: 9px 10px;
    background: transparent; color: #111; min-width: 0;
}
.br-search input::placeholder { color: #9ca3af; }

/* Stats pills */
.br-stats {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.br-stat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 20px; padding: 5px 14px;
    font-size: 13px; color: #374151;
}
.br-stat-pill strong { color: #111; }

/* ── Section label ── */
.br-section-label {
    font-size: 11px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; color: #9ca3af; margin: 0 0 14px;
}

/* ── Featured row (top 6) ── */
.br-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}
.br-feat-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 16px 18px;
    text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .12s;
    position: relative; overflow: hidden;
}
.br-feat-card:hover {
    border-color: var(--card-border);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.br-feat-card:hover .br-feat-arrow { opacity: 1; transform: translateX(0); }
.br-feat-ico {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}
.br-feat-body { flex: 1; min-width: 0; }
.br-feat-name {
    font-size: 14px; font-weight: bold; color: #111;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin: 0 0 3px;
}
.br-feat-count { font-size: 12.5px; color: #6b7280; margin: 0; }
.br-feat-arrow {
    font-size: 16px; color: #9ca3af;
    opacity: 0; transform: translateX(-4px);
    transition: opacity .15s, transform .15s;
    flex-shrink: 0;
}

/* ── All categories grid ── */
.br-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.br-cat-card {
    display: flex; flex-direction: column; align-items: flex-start;
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 20px 18px 16px;
    text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .12s;
    gap: 12px;
}
.br-cat-card:hover {
    border-color: var(--card-border);
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    transform: translateY(-2px);
}
.br-cat-ico {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}
.br-cat-info { width: 100%; }
.br-cat-name {
    font-size: 14px; font-weight: bold; color: #111;
    margin: 0 0 4px; line-height: 1.3;
}
.br-cat-foot {
    display: flex; align-items: center;
    justify-content: space-between;
}
.br-cat-count { font-size: 12.5px; color: #6b7280; }
.br-cat-arrow {
    font-size: 14px; color: #d1d5db;
    transition: color .15s, transform .15s;
}
.br-cat-card:hover .br-cat-arrow { color: var(--card-icon); transform: translateX(2px); }

/* No results */
.br-no-results {
    display: none; grid-column: 1/-1; text-align: center;
    padding: 48px 0; color: #9ca3af; font-size: 14px;
}

/* ── Sort bar ── */
.br-sort-bar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.br-sort-label { font-size: 12.5px; color: #6b7280; margin-right: 2px; }
.br-sort-btn {
    padding: 5px 14px; border-radius: 20px; font-size: 12.5px;
    font-family: inherit; cursor: pointer; font-weight: bold;
    border: 1.5px solid #e5e7eb; background: #fff; color: #374151;
    transition: all .12s;
}
.br-sort-btn:hover { border-color: #6366f1; color: #6366f1; }
.br-sort-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }

/* Divider */
.br-divider { border: none; border-top: 1px solid #f3f4f6; margin: 0 0 28px; }

@media (max-width: 860px) {
    .br-featured { grid-template-columns: repeat(2, 1fr); }
    .br-grid     { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .br-title { font-size: 22px; }
    .br-header-top { flex-direction: column; align-items: flex-start; }
    .br-search { max-width: 100%; min-width: 0; width: 100%; }
    .br-featured { grid-template-columns: 1fr; }
    .br-grid     { grid-template-columns: repeat(2, 1fr); }
}
