/* Big Brands preorder page styles. Extracted from preorder_list.html for PREORDER-B HTML weight reduction. */

        :root {
            --bb-dark: #0b1220;
            --bb-ink: #111827;
            --bb-muted: #64748b;
            --bb-line: #e5e7eb;
            --bb-soft: #f8fafc;
            --bb-red: #ef2424;
            --bb-red-dark: #b91c1c;
            --bb-orange: #f97316;
            --bb-green: #16a34a;
            --bb-shadow: 0 22px 60px rgba(15, 23, 42, .10);
        }

        * { box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background:
                radial-gradient(circle at 16% 0%, rgba(239, 36, 36, .06), transparent 24%),
                linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
            color: var(--bb-ink);
        }

        a { color: inherit; }

        .bb-wrap {
            width: min(1360px, calc(100% - 36px));
            margin: 0 auto;
        }

        .bb-top {
            position: relative;
            overflow: hidden;
            color: #fff;
            background:
                radial-gradient(circle at 12% 18%, rgba(249, 115, 22, .32), transparent 28%),
                radial-gradient(circle at 86% 8%, rgba(239, 36, 36, .30), transparent 30%),
                linear-gradient(135deg, #0b1220, #111827 54%, #2a1406);
        }

        .bb-top::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
            pointer-events: none;
        }

        .bb-nav {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 18px;
            padding: 22px 0;
        }

        .bb-logo {
            text-decoration: none;
            display: grid;
            gap: 4px;
        }

        .bb-logo strong {
            font-size: 27px;
            letter-spacing: -.3px;
        }

        .bb-logo span {
            color: #cbd5e1;
            font-size: 13px;
            font-weight: 800;
        }

        .bb-menu {
            display: flex;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 10px;
        }

        .bb-menu a {
            color: #fff;
            text-decoration: none;
            font-weight: 900;
            font-size: 14px;
            padding: 12px 15px;
            border-radius: 15px;
            background: rgba(255,255,255,.10);
            border: 1px solid rgba(255,255,255,.14);
        }

        .bb-menu a.is-primary {
            background: #fff;
            color: var(--bb-ink);
        }

        .bb-menu a.is-sale {
            background: var(--bb-red);
        }

        .bb-hero {
            position: relative;
            z-index: 2;
            padding: 42px 0 70px;
            display: grid;
            grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
            gap: 34px;
            align-items: end;
        }

        .bb-kicker {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 9px 14px;
            background: rgba(255,255,255,.12);
            border: 1px solid rgba(255,255,255,.18);
            color: #e5e7eb;
            font-size: 14px;
            font-weight: 900;
            margin-bottom: 18px;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .bb-hero h1 {
            margin: 0;
            max-width: 920px;
            font-size: clamp(38px, 4.6vw, 66px);
            line-height: .98;
            letter-spacing: -2px;
        }

        .bb-hero p {
            margin: 22px 0 0;
            max-width: 860px;
            color: #e5e7eb;
            font-size: 19px;
            line-height: 1.55;
            font-weight: 700;
        }

        .bb-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 26px;
        }

        .bb-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 54px;
            padding: 15px 22px;
            border-radius: 18px;
            border: 0;
            text-decoration: none;
            font-weight: 900;
            line-height: 1.1;
            white-space: nowrap;
            text-align: center;
            cursor: pointer;
        }

        .bb-btn-red {
            background: var(--bb-red);
            color: #fff;
            box-shadow: 0 16px 34px rgba(239, 36, 36, .28);
        }

        .bb-btn-white {
            background: #fff;
            color: var(--bb-ink);
        }

        .bb-btn-ghost {
            background: rgba(255,255,255,.10);
            color: #fff;
            border: 1px solid rgba(255,255,255,.22);
        }

        .bb-panel {
            padding: 22px;
            border-radius: 30px;
            background: rgba(255,255,255,.12);
            border: 1px solid rgba(255,255,255,.18);
            box-shadow: 0 26px 80px rgba(0,0,0,.25);
            backdrop-filter: blur(12px);
        }

        .bb-panel h2 {
            margin: 0 0 14px;
            font-size: 25px;
            line-height: 1.15;
        }

        .bb-metrics {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .bb-metric {
            padding: 16px;
            border-radius: 20px;
            background: rgba(255,255,255,.12);
            border: 1px solid rgba(255,255,255,.14);
        }

        .bb-metric strong {
            display: block;
            font-size: 31px;
            line-height: 1;
        }

        .bb-metric span {
            display: block;
            margin-top: 7px;
            color: #d1d5db;
            font-size: 13px;
            line-height: 1.35;
            font-weight: 800;
        }

        .bb-main {
            position: relative;
            z-index: 3;
            margin-top: -34px;
            padding-bottom: 42px;
        }

        .bb-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 22px;
            align-items: start;
        }

        .bb-content-card,
        .bb-request-card,
        .bb-seo-card {
            background: #fff;
            border: 1px solid rgba(226,232,240,.9);
            border-radius: 30px;
            box-shadow: var(--bb-shadow);
        }

        .bb-content-card {
            padding: clamp(18px, 2.4vw, 26px);
        }

        .bb-request-card {
            padding: 22px;
            position: sticky;
            top: 18px;
        }

        .bb-request-card h2 {
            margin: 0 0 10px;
            font-size: 24px;
            letter-spacing: -.3px;
        }

        .bb-request-note {
            margin: 0 0 16px;
            color: var(--bb-muted);
            font-weight: 700;
            line-height: 1.55;
            font-size: 14px;
        }

        .bb-alert {
            margin-bottom: 18px;
            padding: 16px;
            border-radius: 20px;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #9a3412;
            font-size: 14px;
            line-height: 1.55;
            font-weight: 800;
        }

        .bb-toolbar {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 14px;
            align-items: center;
            margin-bottom: 18px;
        }

        .bb-result-line {
            color: var(--bb-muted);
            font-weight: 800;
            line-height: 1.45;
        }

        .bb-result-line strong {
            color: var(--bb-ink);
            font-size: 22px;
        }

        .bb-chip {
            display: inline-flex;
            align-items: center;
            min-height: 34px;
            padding: 7px 10px;
            border-radius: 999px;
            background: #ffedd5;
            border: 1px solid #fed7aa;
            color: #9a3412;
            font-size: 13px;
            font-weight: 900;
            white-space: nowrap;
        }

        .bb-filter-box {
            margin-bottom: 18px;
            padding: 18px;
            border-radius: 24px;
            background: #f8fafc;
            border: 1px solid #eef2f7;
        }

        .bb-filter-box form {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 170px;
            gap: 10px;
        }

        .bb-filter-box input {
            width: 100%;
            min-height: 48px;
            border: 1px solid #dbe3ef;
            border-radius: 16px;
            padding: 0 14px;
            font-size: 15px;
            font-weight: 800;
            outline: none;
        }

        .bb-filter-box button {
            border: 0;
            border-radius: 16px;
            background: var(--bb-dark);
            color: #fff;
            font-weight: 900;
            cursor: pointer;
        }

        .bb-products-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            align-items: stretch;
        }

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

        .bb-preorder-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 44px rgba(15,23,42,.12);
            border-color: #cbd5e1;
        }

        .bb-preorder-card__badge {
            position: absolute;
            z-index: 2;
            top: 12px;
            left: 12px;
            display: inline-flex;
            align-items: center;
            padding: 8px 10px;
            border-radius: 999px;
            background: #ffedd5;
            border: 1px solid #fed7aa;
            color: #9a3412;
            font-size: 12px;
            font-weight: 900;
        }

        .bb-preorder-card__image {
            height: 178px;
            background:
                radial-gradient(circle at 50% 28%, rgba(249,115,22,.10), transparent 36%),
                #fff;
            border-bottom: 1px solid #eef2f7;
            display: grid;
            place-items: center;
            padding: 15px;
            text-decoration: none;
        }

        .bb-preorder-card__image img {
            max-width: 100%;
            max-height: 148px;
            object-fit: contain;
        }

        .bb-preorder-card__image span {
            display: grid;
            place-items: center;
            width: 86px;
            height: 86px;
            border-radius: 26px;
            background: #f8fafc;
            color: #94a3b8;
            font-weight: 900;
            text-align: center;
            font-size: 13px;
            padding: 10px;
        }

        .bb-preorder-card__body {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex: 1;
        }

        .bb-brand {
            color: var(--bb-red);
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .04em;
        }

        .bb-brand a {
            color: inherit;
            text-decoration: none;
        }

        .bb-name {
            color: var(--bb-ink);
            text-decoration: none;
            font-size: 16px;
            font-weight: 900;
            line-height: 1.28;
            min-height: 61px;
        }

        .bb-name:hover {
            color: var(--bb-red-dark);
        }

        .bb-meta {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .bb-meta div {
            min-height: 58px;
            padding: 9px;
            border-radius: 14px;
            background: #f8fafc;
            border: 1px solid #eef2f7;
        }

        .bb-meta span {
            display: block;
            color: #64748b;
            font-size: 11px;
            font-weight: 900;
            margin-bottom: 4px;
        }

        .bb-meta strong {
            display: block;
            color: var(--bb-ink);
            font-size: 13px;
            line-height: 1.25;
            font-weight: 900;
        }

        .bb-price-request {
            margin-top: auto;
            padding: 12px;
            border-radius: 16px;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #9a3412;
            font-weight: 900;
            line-height: 1.35;
        }

        .bb-card-actions {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .bb-qty-row {
            display: grid;
            grid-template-columns: 42px 1fr 42px;
            gap: 8px;
        }

        .bb-qty-row button,
        .bb-qty-row input {
            min-height: 42px;
            border-radius: 14px;
            border: 1px solid #dbe3ef;
            font-weight: 900;
            text-align: center;
            background: #fff;
        }

        .bb-qty-row button {
            cursor: pointer;
            background: #f8fafc;
        }

        .bb-detail-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 10px;
            border-radius: 14px;
            text-decoration: none;
            font-weight: 900;
            font-size: 13px;
            line-height: 1.1;
            text-align: center;
            background: #f1f5f9;
            color: var(--bb-ink);
        }

        .bb-form-fields {
            display: grid;
            gap: 11px;
        }

        .bb-field {
            display: grid;
            gap: 6px;
        }

        .bb-field span {
            color: #475569;
            font-size: 13px;
            font-weight: 900;
        }

        .bb-field input,
        .bb-field textarea {
            width: 100%;
            border: 1px solid #dbe3ef;
            border-radius: 15px;
            padding: 12px 13px;
            font-size: 14px;
            font-weight: 700;
            outline: none;
            background: #fff;
        }

        .bb-field textarea {
            min-height: 86px;
            resize: vertical;
        }

        .bb-consents {
            display: grid;
            gap: 10px;
            margin-top: 14px;
            padding: 14px;
            border-radius: 18px;
            background: #f8fafc;
            border: 1px solid #eef2f7;
        }

        .bb-consents label {
            display: grid;
            grid-template-columns: 18px 1fr;
            gap: 9px;
            color: #475569;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 700;
        }

        .bb-consents a {
            color: var(--bb-red-dark);
            font-weight: 900;
        }

        .bb-summary {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 14px 0;
        }

        .bb-summary div {
            padding: 12px;
            border-radius: 16px;
            background: #f8fafc;
            border: 1px solid #eef2f7;
        }

        .bb-summary span {
            display: block;
            color: var(--bb-muted);
            font-size: 12px;
            font-weight: 900;
        }

        .bb-summary strong {
            display: block;
            margin-top: 4px;
            font-size: 22px;
            line-height: 1;
        }

        .bb-submit {
            width: 100%;
            min-height: 54px;
            border: 0;
            border-radius: 18px;
            background: var(--bb-red);
            color: #fff;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 16px 34px rgba(239, 36, 36, .22);
        }

        .bb-submit:disabled {
            cursor: not-allowed;
            opacity: .55;
            box-shadow: none;
        }

        .pagination {
            margin: 22px 0 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .pagination a,
        .pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 10px 13px;
            border-radius: 14px;
            background: #fff;
            border: 1px solid var(--bb-line);
            text-decoration: none;
            font-weight: 900;
            color: var(--bb-ink);
        }

        .pagination a {
            background: var(--bb-dark);
            color: #fff;
        }

        .bb-seo-card {
            margin-top: 24px;
            padding: clamp(22px, 3vw, 34px);
        }

        .bb-seo-card h2 {
            margin: 0 0 12px;
            font-size: clamp(28px, 3vw, 42px);
            line-height: 1.08;
            letter-spacing: -.8px;
        }

        .bb-seo-card p {
            margin: 0 0 14px;
            color: #334155;
            line-height: 1.7;
            font-size: 16px;
            font-weight: 700;
        }

        .bb-faq {
            margin-top: 18px;
            display: grid;
            gap: 10px;
        }

        .bb-faq details {
            border: 1px solid var(--bb-line);
            border-radius: 18px;
            background: #f8fafc;
            padding: 16px;
        }

        .bb-faq summary {
            cursor: pointer;
            font-weight: 900;
            color: var(--bb-ink);
        }

        .bb-faq p {
            margin: 10px 0 0;
            color: var(--bb-muted);
            line-height: 1.55;
        }

        .bb-mobile-bottom {
            display: none;
        }

        @media (max-width: 1180px) {
            .bb-hero,
            .bb-layout {
                grid-template-columns: 1fr;
            }

            .bb-request-card {
                position: static;
            }

            .bb-products-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 720px) {
            body {
                padding-bottom: 78px;
            }

            .bb-wrap {
                width: min(100% - 24px, 1360px);
            }

            .bb-nav {
                align-items: flex-start;
                flex-direction: column;
            }

            .bb-menu {
                justify-content: flex-start;
                gap: 8px;
            }

            .bb-menu a {
                padding: 10px 12px;
                font-size: 13px;
            }

            .bb-hero {
                padding: 34px 0 58px;
            }

            .bb-hero h1 {
                letter-spacing: -1px;
            }

            .bb-hero p {
                font-size: 17px;
            }

            .bb-actions {
                display: grid;
                grid-template-columns: 1fr;
            }

            .bb-btn {
                width: 100%;
                min-height: 52px;
            }

            .bb-metrics,
            .bb-products-grid,
            .bb-meta,
            .bb-filter-box form {
                grid-template-columns: 1fr;
            }

            .bb-toolbar {
                grid-template-columns: 1fr;
            }

            .bb-name {
                min-height: auto;
            }

            .bb-preorder-card__image {
                height: 154px;
            }

            .bb-preorder-card__image img {
                max-height: 130px;
            }

            .bb-mobile-bottom {
                position: fixed;
                left: 10px;
                right: 10px;
                bottom: 10px;
                z-index: 50;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
                padding: 8px;
                border-radius: 20px;
                background: rgba(11,18,32,.94);
                box-shadow: 0 16px 40px rgba(0,0,0,.28);
                backdrop-filter: blur(12px);
            }

            .bb-mobile-bottom a {
                display: grid;
                place-items: center;
                min-height: 46px;
                border-radius: 14px;
                text-decoration: none;
                color: #fff;
                font-size: 12px;
                font-weight: 900;
                background: rgba(255,255,255,.10);
            }

            .bb-mobile-bottom a:first-child {
                background: var(--bb-red);
            }
        }

        /* STEP 42.10.R1: preorder drawer cart, lazy paging and SEO-safe price request */
        .bb-preorder-page .bb-layout {
            grid-template-columns: 1fr;
        }

        .bb-preorder-page .pagination.is-enhanced {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip-path: inset(50%);
            white-space: nowrap;
        }

        .bb-preorder-page .bb-preorder-card.is-selected {
            border-color: #ef2424;
            box-shadow: 0 18px 44px rgba(239, 36, 36, .16);
        }

        .bb-preorder-card__select-note {
            display: none;
            margin-top: 8px;
            color: #166534;
            font-size: 12px;
            font-weight: 900;
        }

        .bb-preorder-card.is-selected .bb-preorder-card__select-note {
            display: block;
        }

        .bb-preorder-float {
            position: fixed;
            right: 18px;
            bottom: 18px;
            z-index: 75;
            min-height: 58px;
            max-width: min(430px, calc(100vw - 28px));
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 14px 18px;
            border: 0;
            border-radius: 22px;
            background: #ef2424;
            color: #fff;
            box-shadow: 0 18px 44px rgba(239, 36, 36, .34);
            font: inherit;
            font-weight: 900;
            cursor: pointer;
        }

        .bb-preorder-float span {
            display: block;
            line-height: 1.2;
            text-align: left;
        }

        .bb-preorder-float small {
            display: block;
            color: rgba(255,255,255,.84);
            font-size: 12px;
            line-height: 1.25;
            font-weight: 800;
        }

        .bb-preorder-float.is-empty {
            background: #0b1220;
            box-shadow: 0 18px 44px rgba(15, 23, 42, .26);
        }

        .bb-preorder-drawer-backdrop {
            position: fixed;
            inset: 0;
            z-index: 78;
            background: rgba(15, 23, 42, .52);
            backdrop-filter: blur(6px);
            opacity: 0;
            pointer-events: none;
            transition: opacity .18s ease;
        }

        body.bb-preorder-drawer-open .bb-preorder-drawer-backdrop {
            opacity: 1;
            pointer-events: auto;
        }

        .bb-preorder-page .bb-request-card.bb-preorder-drawer {
            position: fixed;
            top: 14px;
            right: 14px;
            bottom: 14px;
            z-index: 80;
            width: min(520px, calc(100vw - 28px));
            max-height: calc(100vh - 28px);
            overflow: auto;
            margin: 0;
            transform: translateX(calc(100% + 30px));
            transition: transform .22s ease;
            box-shadow: 0 28px 90px rgba(15, 23, 42, .34);
        }

        body.bb-preorder-drawer-open .bb-request-card.bb-preorder-drawer {
            transform: translateX(0);
        }

        .bb-drawer-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .bb-drawer-head h2 {
            margin: 0;
        }

        .bb-drawer-close {
            width: 42px;
            height: 42px;
            border: 0;
            border-radius: 14px;
            background: #f1f5f9;
            color: #0f172a;
            font-size: 24px;
            line-height: 1;
            font-weight: 900;
            cursor: pointer;
        }

        .bb-selected-list {
            display: grid;
            gap: 8px;
            margin: 14px 0;
            padding: 12px;
            border-radius: 18px;
            border: 1px solid #e5e7eb;
            background: #f8fafc;
        }

        .bb-selected-list__empty {
            color: #64748b;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 800;
        }

        .bb-selected-item {
            display: grid;
            grid-template-columns: 44px 1fr auto;
            gap: 10px;
            align-items: center;
            padding: 9px;
            border-radius: 15px;
            background: #fff;
            border: 1px solid #e5e7eb;
        }

        .bb-selected-item img,
        .bb-selected-item__image {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            object-fit: contain;
            background: #f8fafc;
            display: grid;
            place-items: center;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 900;
        }

        .bb-selected-item strong {
            display: block;
            color: #0f172a;
            font-size: 13px;
            line-height: 1.25;
        }

        .bb-selected-item span {
            display: block;
            margin-top: 3px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.25;
            font-weight: 800;
        }

        .bb-selected-item button {
            border: 0;
            border-radius: 12px;
            padding: 8px 10px;
            background: #fee2e2;
            color: #991b1b;
            font-weight: 900;
            cursor: pointer;
        }

        .bb-preorder-load-zone {
            margin: 24px 0 4px;
            display: grid;
            place-items: center;
            gap: 12px;
        }

        .bb-preorder-load-more {
            min-height: 54px;
            padding: 15px 24px;
            border: 0;
            border-radius: 18px;
            background: #ef2424;
            color: #fff;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 16px 34px rgba(239, 36, 36, .22);
        }

        .bb-preorder-load-more[hidden] {
            display: none;
        }

        .bb-preorder-load-status {
            color: #64748b;
            font-size: 14px;
            font-weight: 800;
            text-align: center;
        }

        @media (max-width: 720px) {
            .bb-preorder-float {
                left: 10px;
                right: 10px;
                bottom: 10px;
                width: calc(100vw - 20px);
                max-width: none;
                min-height: 56px;
                border-radius: 18px;
            }

            .bb-preorder-page .bb-request-card.bb-preorder-drawer {
                left: 10px;
                right: 10px;
                top: auto;
                bottom: 10px;
                width: auto;
                max-height: 88vh;
                transform: translateY(calc(100% + 24px));
                border-radius: 26px;
            }

            body.bb-preorder-drawer-open .bb-request-card.bb-preorder-drawer {
                transform: translateY(0);
            }

            .bb-selected-item {
                grid-template-columns: 38px 1fr;
            }

            .bb-selected-item button {
                grid-column: 1 / -1;
            }
        }


        /* STEP 42.13: calm preorder cards and drawer */
        .bb-preorder-card {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid #e5e7eb !important;
            border-radius: 26px !important;
            box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07) !important;
        }

        .bb-preorder-card:hover,
        .bb-preorder-card.is-selected {
            box-shadow: 0 24px 64px rgba(15, 23, 42, 0.10) !important;
            transform: translateY(-2px) !important;
        }

        .bb-preorder-card__badge {
            background: #fff7ed !important;
            color: #9a3412 !important;
            border: 1px solid #fed7aa !important;
            box-shadow: none !important;
        }

        .bb-preorder-card .bb-brand,
        .bb-preorder-card .bb-brand a {
            color: #64748b !important;
        }

        .bb-preorder-card .bb-name {
            color: #111827 !important;
        }

        .bb-preorder-card .bb-meta div {
            background: #f8fafc !important;
            color: #111827 !important;
            border: 1px solid #e5e7eb !important;
            border-radius: 16px !important;
            box-shadow: none !important;
        }

        .bb-preorder-card .bb-meta span {
            color: #64748b !important;
        }

        .bb-preorder-card .bb-price-request {
            background: #fff7ed !important;
            color: #9a3412 !important;
            border: 1px solid #fed7aa !important;
            border-left: 4px solid #f97316 !important;
            border-radius: 18px !important;
            box-shadow: none !important;
        }

        .bb-preorder-card .bb-qty-row {
            background: #f8fafc !important;
            border: 1px solid #e5e7eb !important;
            box-shadow: none !important;
        }

        .bb-preorder-card .bb-qty-row button,
        .bb-preorder-card .bb-preorder-qty {
            background: #ffffff !important;
            color: #111827 !important;
            border-color: #dbe3ef !important;
        }

        .bb-preorder-card .bb-detail-link {
            background: #f8fafc !important;
            color: #111827 !important;
            border: 1px solid #dbe3ef !important;
            box-shadow: none !important;
        }

        .bb-preorder-card__select-note {
            color: #64748b !important;
        }

        .bb-preorder-float {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid #e5e7eb !important;
            box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14) !important;
        }

        .bb-preorder-float::before {
            background: #e51f2a !important;
        }

        .bb-preorder-float small {
            color: #64748b !important;
        }

        .bb-request-card,
        .bb-request-card.bb-preorder-drawer {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid #e5e7eb !important;
            box-shadow: 0 24px 72px rgba(15, 23, 42, 0.14) !important;
        }

        .bb-request-card h2 {
            color: #111827 !important;
        }

        .bb-request-note,
        .bb-selected-list__empty {
            color: #64748b !important;
        }

        .bb-summary div,
        .bb-selected-list,
        .bb-field input,
        .bb-field textarea {
            background: #f8fafc !important;
            color: #111827 !important;
            border: 1px solid #e5e7eb !important;
            box-shadow: none !important;
        }

        .bb-submit {
            background: #e51f2a !important;
            color: #ffffff !important;
            border-color: #e51f2a !important;
            box-shadow: 0 12px 24px rgba(229, 31, 42, 0.18) !important;
        }


        /* STEP 42.14: live preorder search */
        .bb-live-search-status {
            min-height: 22px;
            margin-top: 10px;
            color: #64748b;
            font-size: 14px;
            line-height: 1.45;
        }

        .bb-live-search-status.is-loading {
            color: #991b1b;
            font-weight: 800;
        }

        .bb-content-card.is-live-searching [data-bb-preorder-results] {
            opacity: 0.55;
            pointer-events: none;
            transition: opacity .18s ease;
        }

        .bb-preorder-live-error {
            margin-top: 14px;
            padding: 14px 16px;
            border: 1px solid #fecaca;
            border-radius: 16px;
            background: #fef2f2;
            color: #991b1b;
            font-weight: 700;
        }


        /* STEP 42.15: reliable mobile preorder floating button */
        .bb-preorder-page {
            padding-bottom: 132px;
        }

        .bb-preorder-float {
            position: fixed !important;
            left: max(14px, env(safe-area-inset-left)) !important;
            right: max(14px, env(safe-area-inset-right)) !important;
            bottom: calc(14px + env(safe-area-inset-bottom)) !important;
            z-index: 10030 !important;
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            width: auto !important;
            min-height: 72px !important;
            padding: 14px 18px !important;
            border: 1px solid rgba(255,255,255,.16) !important;
            border-radius: 24px !important;
            background: linear-gradient(135deg, #07101f 0%, #111827 52%, #172033 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 22px 52px rgba(2, 6, 23, .38) !important;
            cursor: pointer !important;
            text-align: left !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateZ(0) !important;
            -webkit-tap-highlight-color: transparent;
        }

        .bb-preorder-float.is-empty {
            display: flex !important;
            opacity: .98 !important;
        }

        .bb-preorder-float__icon {
            display: grid;
            place-items: center;
            flex: 0 0 52px;
            width: 52px;
            height: 52px;
            border-radius: 18px;
            background: #e82228;
            box-shadow: 0 10px 22px rgba(232, 34, 40, .32);
            font-size: 24px;
        }

        .bb-preorder-float span {
            display: block;
            min-width: 0;
        }

        .bb-preorder-float #bb-preorder-float-title {
            font-size: 16px;
            line-height: 1.2;
            font-weight: 900;
            color: #ffffff;
        }

        .bb-preorder-float small {
            display: block;
            margin-top: 4px;
            max-width: 100%;
            overflow: hidden;
            color: #cbd5e1;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.25;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bb-preorder-drawer-backdrop {
            position: fixed;
            inset: 0;
            z-index: 10035;
            display: none;
            background: rgba(2, 6, 23, .54);
            backdrop-filter: blur(8px);
        }

        body.bb-preorder-drawer-open .bb-preorder-drawer-backdrop {
            display: block;
        }

        .bb-preorder-page .bb-request-card.bb-preorder-drawer {
            z-index: 10040;
        }

        body.bb-preorder-drawer-open .bb-preorder-float {
            display: none !important;
        }

        @media (max-width: 900px) {
            .bb-preorder-page {
                padding-bottom: 150px !important;
            }

            .bb-preorder-page .bb-request-card.bb-preorder-drawer {
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                max-width: none !important;
                max-height: min(88vh, 760px) !important;
                margin: 0 !important;
                overflow: auto !important;
                border-radius: 28px 28px 0 0 !important;
                box-shadow: 0 -22px 58px rgba(2, 6, 23, .36) !important;
                transform: translateY(110%) !important;
                transition: transform .24s ease !important;
            }

            body.bb-preorder-drawer-open .bb-preorder-page .bb-request-card.bb-preorder-drawer {
                transform: translateY(0) !important;
            }
        }

        @media (min-width: 901px) {
            .bb-preorder-float {
                left: auto !important;
                right: 28px !important;
                bottom: 28px !important;
                width: 380px !important;
            }
        }

        /* STEP 42.20: preorder terms ack UX */
        .bb-preorder-terms-note {
            margin: 14px 0 16px;
            padding: 12px 14px;
            border-radius: 16px;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #7c2d12;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 700;
        }

        @media (max-width: 760px) {
            .bb-preorder-terms-note {
                margin: 12px 0 14px;
                padding: 11px 12px;
                border-radius: 14px;
                font-size: 12px;
            }
        }

    /* STEP 42.16: clean root-level preorder mobile sheet */
    @media (max-width: 760px) {
        body.bb-preorder-sheet-open {
            overflow: hidden !important;
            touch-action: none;
        }

        /* Старые плавающие панели на мобильном не должны конкурировать с новой логикой */
        body.bb-preorder-page #bb-preorder-float {
            display: none !important;
        }

        body.bb-preorder-page #bb-preorder-mobile-sticky {
            position: fixed !important;
            left: max(12px, env(safe-area-inset-left)) !important;
            right: max(12px, env(safe-area-inset-right)) !important;
            bottom: max(12px, env(safe-area-inset-bottom)) !important;
            z-index: 2147483600 !important;
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) auto !important;
            align-items: center !important;
            gap: 12px !important;
            min-height: 64px !important;
            padding: 12px 14px !important;
            border: 1px solid rgba(255,255,255,.14) !important;
            border-radius: 22px !important;
            background: #07101f !important;
            color: #fff !important;
            box-shadow: 0 18px 45px rgba(0,0,0,.30) !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            transform: translateY(0) !important;
            cursor: pointer !important;
            -webkit-tap-highlight-color: transparent;
        }

        body.bb-preorder-sheet-open #bb-preorder-mobile-sticky {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: translateY(110%) !important;
        }

        body.bb-preorder-page #bb-preorder-mobile-backdrop {
            position: fixed !important;
            inset: 0 !important;
            z-index: 2147483601 !important;
            display: block !important;
            background: rgba(6, 12, 24, .64) !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transition: opacity .18s ease, visibility .18s ease !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        body.bb-preorder-sheet-open #bb-preorder-mobile-backdrop {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

        /*
          Ключевое отличие от прошлых попыток:
          форма переносится JS-ом напрямую в body.
          Поэтому селектор ниже работает в корневом слое, а не внутри grid/layout.
        */
        body.bb-preorder-page > #bb-preorder-submit-form.bb-preorder-mobile-root-sheet {
            position: fixed !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            top: auto !important;
            width: 100% !important;
            max-width: none !important;
            max-height: min(82dvh, 660px) !important;
            overflow-y: auto !important;
            overscroll-behavior: contain !important;
            z-index: 2147483602 !important;
            display: block !important;
            visibility: visible !important;
            opacity: 0 !important;
            pointer-events: none !important;
            transform: translate3d(0, 110%, 0) !important;
            margin: 0 !important;
            padding: 24px 18px calc(24px + env(safe-area-inset-bottom)) !important;
            border-radius: 26px 26px 0 0 !important;
            background: #ffffff !important;
            color: #111827 !important;
            box-shadow: 0 -24px 70px rgba(0,0,0,.35) !important;
            transition: transform .22s ease, opacity .18s ease !important;
            isolation: isolate !important;
        }

        body.bb-preorder-sheet-open > #bb-preorder-submit-form.bb-preorder-mobile-root-sheet {
            opacity: 1 !important;
            pointer-events: auto !important;
            transform: translate3d(0, 0, 0) !important;
        }

        body.bb-preorder-page > #bb-preorder-submit-form.bb-preorder-mobile-root-sheet::before {
            content: "" !important;
            display: block !important;
            width: 48px !important;
            height: 5px !important;
            margin: 0 auto 18px !important;
            border-radius: 999px !important;
            background: #d1d5db !important;
        }

        body.bb-preorder-page > #bb-preorder-submit-form.bb-preorder-mobile-root-sheet h2 {
            margin-top: 0 !important;
        }
    }

    @media (min-width: 761px) {
        #bb-preorder-mobile-sticky,
        #bb-preorder-mobile-backdrop {
            display: none !important;
        }
    }

    @media (min-width: 901px) {
        body.bb-preorder-page.bb-preorder-drawer-open {
            overflow: hidden;
        }

        body.bb-preorder-page.bb-preorder-drawer-open .bb-preorder-drawer-backdrop {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            z-index: 9998 !important;
        }

        body.bb-preorder-page.bb-preorder-drawer-open #bb-preorder-submit-form.bb-preorder-drawer,
        body.bb-preorder-page.bb-preorder-drawer-open .bb-request-card.bb-preorder-drawer {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            transform: translateX(0) !important;
            z-index: 9999 !important;
        }

        body.bb-preorder-page.bb-preorder-drawer-open #bb-preorder-float,
        body.bb-preorder-page.bb-preorder-drawer-open .bb-preorder-float {
            opacity: 0 !important;
            pointer-events: none !important;
        }
    }

/* PREORDER-B: compact the first screen without changing SEO content. */
@media (max-width: 720px) {
    .bb-nav {
        padding: 14px 0 10px;
        gap: 10px;
    }

    .bb-menu {
        max-height: 84px;
        overflow: hidden;
    }

    .bb-hero {
        padding: 20px 0 38px;
        gap: 16px;
    }

    .bb-kicker {
        margin-bottom: 12px;
        padding: 7px 10px;
        font-size: 12px;
        line-height: 1.25;
    }

    .bb-hero h1 {
        font-size: clamp(34px, 11vw, 43px);
        line-height: 1.02;
    }

    .bb-hero p {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.45;
    }

    .bb-actions {
        gap: 8px;
        margin-top: 16px;
    }

    .bb-btn {
        min-height: 46px;
        padding: 12px 16px;
        border-radius: 15px;
    }

    .bb-panel {
        padding: 14px;
        border-radius: 22px;
    }

    .bb-panel h2 {
        margin-bottom: 10px;
        font-size: 20px;
    }

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

    .bb-metric {
        padding: 11px;
        border-radius: 16px;
    }

    .bb-metric strong {
        font-size: 23px;
    }

    .bb-metric span {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.25;
    }

    .bb-main {
        margin-top: -24px;
    }

    .bb-content-card {
        padding: 14px;
        border-radius: 22px;
    }

    .bb-alert {
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 16px;
        font-size: 12px;
    }

    .bb-filter-box {
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 18px;
    }
}

/* PREORDER-B: mobile hero compaction + card text weight reduction (scoped) */
@media (max-width: 480px) {
  .bb-preorder-page .bb-hero {
    padding-top: 12px;
    padding-bottom: 20px;
  }
  .bb-preorder-page .bb-hero .bb-kicker {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .bb-preorder-page .bb-hero h1 {
    font-size: 18px;
    line-height: 1.15;
    margin: 0 0 6px;
  }
  .bb-preorder-page .bb-hero p {
    font-size: 12px;
    line-height: 1.25;
    margin: 2px 0 4px;
  }
  .bb-preorder-page .bb-hero .bb-actions {
    margin-top: 8px;
  }
}

/* Make per-card repeated labels more compact */
.bb-preorder-card .bb-price-request {
  font-size: 12px;
  line-height: 1.2;
}
