/* ===========================================================================
   fastkart — brand/index.html
   ===========================================================================

   تا فاز ۶۶ این قاعده‌ها داخلِ خودِ قالب بودند، در یک `<style>`.

   سه هزینه داشت و هیچ‌کدام دیده نمی‌شد: مرورگر نمی‌توانست کشش کند
   (هر بار باز شدنِ صفحه، دوباره)، هیچ قالبِ دیگری نمی‌توانست
   بازنویسی‌اش کند، و یک Content-Security-Policyِ سخت‌گیر که
   `style-src 'unsafe-inline'` نداشته باشد کلِ صفحه را بی‌شکل
   می‌کرد.
   =========================================================================== */

        /* ===================== BRAND PAGE (سبز - مشابه دسته‌بندی) ===================== */

        /* Hero */
        .br-hero {
            background: #fff;
            border: 1px solid #eef0f3;
            border-radius: 14px;
            padding: 14px 18px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 14px;
            box-shadow: 0 1px 2px rgba(126,142,177,.06);
        }
        .br-hero-logo {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: linear-gradient(135deg, #0baf60, #08a155);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 5px;
        }
        .br-hero-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: brightness(0) invert(1);
        }
        .br-hero-text { flex: 1; min-width: 0; }
        .br-hero-text .br-hero-name {
            font-size: 16px;
            font-weight: 700;
            margin: 0;
            color: #1a1d24;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .br-hero-text .br-hero-name .br-count {
            background: #ecfdf3;
            color: #0baf60;
            font-size: 11.5px;
            font-weight: 700;
            padding: 2px 9px;
            border-radius: 9px;
        }
        .br-hero-filter {
            display: none;
            background: linear-gradient(135deg, #0baf60, #08a155);
            color: #fff;
            border: 0;
            padding: 8px 14px;
            border-radius: 10px;
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 3px 8px rgba(11,175,96,.25);
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        /* Sidebar */
        .br-sidebar {
            position: sticky;
            top: 90px;
            background: #fff;
            border-radius: 18px;
            padding: 16px;
            box-shadow: 0px 2px 8px rgba(126, 142, 177, 0.10);
            border: 1px solid #eef0f3;
            max-height: calc(100vh - 110px);
            overflow-y: auto;
        }
        .br-sidebar::-webkit-scrollbar { width: 5px; }
        .br-sidebar::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 3px; }

        .br-filter-block {
            padding: 14px 0;
            border-bottom: 1px dashed #eef0f3;
        }
        .br-filter-block:last-child { border-bottom: 0; }
        .br-filter-block:first-child { padding-top: 0; }
        .br-filter-title {
            font-size: 13.5px;
            font-weight: 700;
            color: #1a1d24;
            margin: 0 0 12px;
        }

        .br-toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
        }
        .br-toggle-row span { font-size: 13px; color: #4a4a4a; }
        .br-switch {
            position: relative;
            display: inline-block;
            width: 38px;
            height: 22px;
        }
        .br-switch input { display: none; }
        .br-switch .slide {
            position: absolute;
            inset: 0;
            background: #d4d8df;
            border-radius: 22px;
            transition: .25s;
            cursor: pointer;
        }
        .br-switch .slide::before {
            content: "";
            position: absolute;
            width: 16px;
            height: 16px;
            right: 3px;
            top: 3px;
            background: #fff;
            border-radius: 50%;
            transition: .25s;
        }
        .br-switch input:checked + .slide { background: #0baf60; }
        .br-switch input:checked + .slide::before { right: 19px; }

        .br-cat-list, .br-attr-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 260px;
            overflow-y: auto;
        }
        .br-cat-list li, .br-attr-list li { padding: 4px 0; }
        .br-cat-list label, .br-attr-list label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            font-size: 12.5px;
            color: #4a4a4a;
            padding: 6px 8px;
            border-radius: 8px;
            transition: .15s;
            margin: 0;
            width: 100%;
        }
        .br-cat-list label:hover, .br-attr-list label:hover {
            background: #ecfdf3;
            color: #0baf60;
        }
        .br-cat-list input[type="checkbox"], .br-attr-list input[type="checkbox"] {
            margin-left: 8px;
            accent-color: #0baf60;
            width: 15px;
            height: 15px;
            cursor: pointer;
        }
        .br-cat-list .cnt { color: #9ca3af; font-size: 10.5px; margin-right: auto; }
        .br-side-search { position: relative; margin-bottom: 8px; }
        .br-side-search input {
            width: 100%;
            padding: 8px 32px 8px 10px;
            border-radius: 9px;
            border: 1px solid #e5e7eb;
            font-size: 12px;
            outline: none;
        }
        .br-side-search input:focus { border-color: #0baf60; }
        .br-side-search i {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 12px;
        }

        .br-products-wrap {
            position: relative;
            min-height: 200px;
            transition: opacity .2s;
        }
        .br-products-wrap.loading {
            opacity: .4;
            pointer-events: none;
        }
        .br-products-wrap.loading::after {
            content: "";
            position: absolute;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            width: 36px;
            height: 36px;
            border: 3px solid #e5e7eb;
            border-top-color: #0baf60;
            border-radius: 50%;
            animation: br-spin 0.8s linear infinite;
            z-index: 10;
        }

        /* Load more */
        .br-load-more-wrap { text-align: center; margin-top: 26px; }
        .br-load-more {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #fff;
            border: 1.5px dashed #0baf60;
            color: #0baf60;
            padding: 11px 36px;
            border-radius: 14px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: .2s;
        }
        .br-load-more:hover { background: #0baf60; color: #fff; }
        .br-load-more:disabled { opacity: .6; cursor: not-allowed; }
        .br-load-more .spin {
            display: none;
            animation: br-spin 1s linear infinite;
        }
        .br-load-more.loading .spin { display: inline-block; }
        .br-load-more.loading .lbl { display: none; }
        @keyframes br-spin { to { transform: rotate(360deg); } }

        /* Body */
        .br-body-section {
            background: #fff;
            border: 1px solid #eef0f3;
            border-radius: 20px;
            padding: 32px;
            margin-top: 32px;
            box-shadow: 0px 2px 8px rgba(126, 142, 177, 0.08);
        }
        .br-body-section h2.body-head {
            font-size: 19px;
            font-weight: 800;
            color: #1a1d24;
            margin: 0 0 18px;
            padding-bottom: 14px;
            border-bottom: 2px solid #0baf60;
            display: inline-block;
        }
        .br-body-content { font-size: 14px; line-height: 2.1; color: #3a3a3a; }
        .br-body-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
        .br-body-content h2, .br-body-content h3, .br-body-content h4 {
            color: #1a1d24;
            font-weight: 700;
            margin: 22px 0 12px;
        }
        .br-body-content h2 { font-size: 17px; }
        .br-body-content h3 { font-size: 15px; }
        .br-body-content p { margin-bottom: 14px; }
        .br-body-content ul, .br-body-content ol { padding-right: 22px; margin-bottom: 14px; }

        /* Drawer */
        .br-sidebar-col-mobile { display: none; }
        .br-sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.45);
            z-index: 1040;
        }
        .br-sidebar-overlay.show { display: block; }

        @media (max-width: 991px) {
            .br-hero {
                padding: 11px 14px;
                gap: 10px;
                border-radius: 12px;
                margin-bottom: 12px;
            }
            .br-hero-logo {
                width: 38px;
                height: 38px;
                border-radius: 10px;
                padding: 4px;
            }
            .br-hero-text .br-hero-name { font-size: 14px; }
            .br-hero-text .br-hero-name .br-count { font-size: 10.5px; padding: 2px 7px; }

            .br-hero-filter {
                display: inline-flex;
                padding: 7px 12px;
                font-size: 12px;
            }

            .br-sidebar-col { display: none; }

            .br-body-section { padding: 18px; border-radius: 16px; }
            .br-body-section h2.body-head { font-size: 16px; }

            .br-sidebar-col-mobile {
                display: block;
                position: fixed;
                top: 0;
                right: -100%;
                width: 88%;
                max-width: 360px;
                height: 100vh;
                background: #fff;
                z-index: 1050;
                overflow-y: auto;
                padding: 16px;
                transition: right .3s ease;
                box-shadow: -8px 0 24px rgba(0,0,0,.12);
            }
            .br-sidebar-col-mobile.show { right: 0; }
            .br-sidebar-col-mobile .br-sidebar {
                position: static;
                box-shadow: none;
                border: 0;
                padding: 0;
                max-height: none;
            }
            .br-drawer-head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding-bottom: 14px;
                margin-bottom: 12px;
                border-bottom: 1px solid #eef0f3;
            }
            .br-drawer-head h3 { font-size: 15px; font-weight: 800; margin: 0; }
            .br-drawer-close {
                background: #f4f6f9;
                border: 0;
                width: 32px;
                height: 32px;
                border-radius: 50%;
                cursor: pointer;
            }
            body.br-drawer-open { overflow: hidden; }
        }
    
