/* Brand listing page — modern blue / slate UI */

.br-page {
    --br-bg: #f1f5f9;
    --br-card: #ffffff;
    --br-text: #0f172a;
    --br-muted: #64748b;
    --br-line: rgba(148, 163, 184, 0.35);
    --br-blue: #3b82f6;
    direction: rtl;
    text-align: right;
    font-family: iransans, yekan, Tahoma, sans-serif;
    color: var(--br-text);
    padding: 16px 0 40px;
    background:
        radial-gradient(ellipse 65% 40% at 100% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 35% at 0% 12%, rgba(14, 165, 233, 0.08), transparent 50%),
        var(--br-bg);
}

.br-page a { text-decoration: none !important; }

.br-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--br-muted);
}

.br-crumb a {
    color: #1d4ed8 !important;
    font-weight: 600;
}

.br-crumb a:hover { color: #2563eb !important; }

.br-crumb-sep { opacity: 0.4; }

.br-crumb-current {
    margin: 0;
    display: inline;
    font-family: yekan, iransans;
    font-size: 15px;
    font-weight: 700;
    color: var(--br-text);
}

.br-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid var(--br-line);
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(14, 165, 233, 0.08), transparent 50%),
        var(--br-card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.br-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 72px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--br-line);
    overflow: hidden;
    flex: 0 0 auto;
}

.br-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.br-hero-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--br-muted);
}

.br-hero-title {
    margin: 0 0 8px;
    font-family: yekan, iransans;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    line-height: 1.5;
}

.br-hero-title span {
    color: var(--br-muted);
    font-size: 0.85em;
    font-weight: 600;
}

.br-hero-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: #475569;
    max-width: 720px;
}

.br-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    justify-self: end;
}

.br-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--br-card);
    border: 1px solid var(--br-line);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.br-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.br-toolbar-label i { color: #94a3b8; }

.br-sorts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.br-sort {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--br-line);
    background: #fff;
    color: #475569 !important;
    font-size: 12px;
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.br-sort:hover {
    border-color: #93c5fd;
    color: #1d4ed8 !important;
    background: #eff6ff;
}

.br-sort.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.br-limits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--br-muted);
}

.br-limit {
    padding: 4px 8px;
    border-radius: 8px;
    color: #64748b !important;
    font-family: iransans, yekan;
    font-weight: 700;
}

.br-limit.is-active,
.br-limit:hover {
    color: #0f172a !important;
    background: #e2e8f0;
}

.br-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.br-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    border-radius: 18px;
    background: var(--br-card);
    border: 1px solid var(--br-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}

.br-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.br-card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    color: inherit !important;
    min-height: 0;
}

.br-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.br-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.br-badge-special { background: #0f172a; color: #fff; }
.br-badge-service { background: #3b82f6; color: #fff; }

.br-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.br-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.br-card-title {
    margin: 0 0 10px;
    font-family: iransans, yekan;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
    color: #334155;
    min-height: 2.8em;
}

.br-card-price {
    margin-top: auto;
    padding-top: 8px;
}

.br-price {
    font-family: iransans, yekan;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.br-price small {
    font-size: 12px;
    font-weight: 600;
    color: var(--br-muted);
    margin-right: 4px;
}

.br-old-price {
    margin-bottom: 2px;
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.br-unavailable {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.br-call {
    color: #0284c7;
    font-size: 14px;
    font-weight: 700;
}

.br-empty {
    padding: 48px 24px;
    text-align: center;
    border-radius: 20px;
    background: var(--br-card);
    border: 1px solid var(--br-line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    margin-bottom: 16px;
}

.br-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 28px;
}

.br-empty-title {
    margin: 0 0 8px;
    font-family: yekan, iransans;
    font-size: 20px;
    font-weight: 700;
}

.br-empty-desc {
    margin: 0 auto 18px;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--br-muted);
}

.br-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    font-family: yekan, iransans;
    font-size: 13px;
    font-weight: 700;
}

.br-brands {
    margin: 18px 0;
    padding: 18px;
    border-radius: 20px;
    background: var(--br-card);
    border: 1px solid var(--br-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.br-brands-title {
    margin: 0 0 14px;
    font-family: yekan, iransans;
    font-size: 16px;
    font-weight: 700;
}

.br-brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.br-brand-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--br-line);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.br-brand-chip:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.br-brand-chip img {
    width: 100%;
    height: 48px;
    object-fit: contain;
    margin-bottom: 6px;
}

.br-brand-chip span {
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    color: #334155;
    font-weight: 600;
}

.br-page .mpc-section {
    margin-top: 18px;
}

@media screen and (max-width: 1100px) {
    .br-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media screen and (max-width: 768px) {
    .br-hero {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .br-count { justify-self: start; }

    .br-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .br-toolbar { flex-direction: column; align-items: stretch; }

    .br-hero-logo { width: 100px; height: 60px; }
}
