/* =============================================================================
   /browse — Console browser page
   Adapts the desktop 8bitedge.com/browse aesthetic for mobile.
   ========================================================================== */

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
/* Plain padded container, mirroring /search's .search-wrap — no position/stacking
   scaffolding or viewport overlay, so it never interferes with the fixed header. */
.browse-page {
    padding: 16px 0 88px;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.browse-header {
    text-align: center;
    padding: 4px 16px 22px;
}
.browse-heading {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--v2-text);
    margin: 0 0 5px;
}
.browse-sub {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    color: var(--v2-text-dim);
    margin: 0;
}

/* ── Manufacturer section ─────────────────────────────────────────────────── */
.browse-section {
    padding: 0 14px 24px;
}
.browse-brand {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--v2-cyan);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--v2-cyan-25);
    display: flex;
    align-items: center;
    gap: 8px;
}
.browse-brand::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--v2-cyan-25), transparent);
}

/* ── Card grid ────────────────────────────────────────────────────────────── */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}
@media (min-width: 480px) {
    .browse-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Individual card ──────────────────────────────────────────────────────── */
.browse-card {
    font-family: 'Electrolize', sans-serif;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 217, 255, 0.22);
    border-radius: 8px;
    background: rgba(10, 10, 20, 0.65);
    overflow: hidden;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.browse-card:active,
.browse-card:focus-visible {
    border-color: var(--v2-cyan);
    background: rgba(0, 217, 255, 0.06);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.18);
    outline: none;
}

/* ── Card image area ──────────────────────────────────────────────────────── */
.browse-card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    padding: 14px 12px;
    background: #0a0e27;
}
.browse-card-img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}
.browse-card-fallback {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: var(--v2-text);
    line-height: 1.3;
}

/* ── Card label ───────────────────────────────────────────────────────────── */
.browse-card-name {
    padding: 7px 8px 9px;
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    color: var(--v2-text-dim);
    line-height: 1.3;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}
