/* ═══════════════════════════════════════════════════════════════
   POPSIS COMPRAS COLETIVAS & ATACADÃO B2B — DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════ */

:root {
    --b2b-primary: #1e3a8a;
    --b2b-primary-hover: #1d4ed8;
    --b2b-accent: #059669;
    --b2b-accent-light: #d1fae5;
    --b2b-amber: #d97706;
    --b2b-purple: #7c3aed;
    --b2b-dark: #0f172a;
    --b2b-card-border: #e2e8f0;
    --b2b-bg-light: #f8fafc;
}

/* ── Hero Banners ──────────────────────────────────────────── */
.b2b-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
    color: #fff;
    padding: 38px 30px;
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
    position: relative;
    overflow: hidden;
}

.b2b-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.b2b-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #a7f3d0;
    margin-bottom: 12px;
}

.b2b-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.25;
}

.b2b-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 780px;
    margin: 0 0 20px;
    line-height: 1.55;
}

/* ── Grid de Métricas ──────────────────────────────────────── */
.b2b-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.b2b-stat-card {
    background: #fff;
    border: 1px solid var(--b2b-card-border);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    transition: transform .15s ease, box-shadow .15s ease;
}

.b2b-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.b2b-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.b2b-stat-icon.is-blue { background: #eff6ff; color: #2563eb; }
.b2b-stat-icon.is-green { background: #ecfdf5; color: #059669; }
.b2b-stat-icon.is-amber { background: #fffbeb; color: #d97706; }
.b2b-stat-icon.is-purple { background: #f5f3ff; color: #7c3aed; }

.b2b-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--b2b-dark);
    line-height: 1.1;
    margin-bottom: 4px;
}

.b2b-stat-lbl {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

/* ── Cards de Oferta / Lotes (Vitrine) ─────────────────────── */
.b2b-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
}

.b2b-card {
    background: #fff;
    border: 1px solid var(--b2b-card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.b2b-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
    border-color: #cbd5e1;
}

.b2b-card-head {
    position: relative;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--b2b-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b2b-card-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    letter-spacing: .4px;
}

.b2b-card-tag.is-flash {
    background: #fee2e2;
    color: #991b1b;
}

.b2b-card-tag.is-trial {
    background: #f3e8ff;
    color: #6b21a8;
}

.b2b-countdown-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.b2b-card-body {
    padding: 22px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.b2b-card-supplier {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 4px;
}

.b2b-card-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--b2b-dark);
    margin: 0 0 10px;
    line-height: 1.35;
}

.b2b-card-specs {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 16px;
}

/* ── Preço e Tiers na Vitrine ──────────────────────────────── */
.b2b-price-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b2b-price-current-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    display: block;
}

.b2b-price-val {
    font-size: 24px;
    font-weight: 900;
    color: #065f46;
    line-height: 1;
}

.b2b-price-save-badge {
    background: #059669;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

/* ── Barra de Progresso do Lote ────────────────────────────── */
.b2b-tier-progress {
    margin-bottom: 18px;
}

.b2b-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

.b2b-progress-bar-wrap {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.b2b-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 999px;
    transition: width .5s ease;
}

.b2b-next-tier-hint {
    font-size: 11.5px;
    color: #0369a1;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Botões de Ação ────────────────────────────────────────── */
.b2b-btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 0;
    width: 100%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none !important;
}

.b2b-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
    background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
}

.b2b-btn-whatsapp {
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    transition: background .15s ease;
}

.b2b-btn-whatsapp:hover {
    background: #128c7e;
}

/* ── Smart Tier Builder (Vendor Hub) ───────────────────────── */
.b2b-tier-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border: 1px solid var(--b2b-card-border);
    border-radius: 12px;
    overflow: hidden;
}

.b2b-tier-table th {
    background: #f8fafc;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    border-bottom: 1px solid var(--b2b-card-border);
}

.b2b-tier-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.b2b-tier-table tr:last-child td {
    border-bottom: 0;
}

.b2b-sim-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    margin-top: 20px;
}

.b2b-sim-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.b2b-sim-metric {
    font-size: 26px;
    font-weight: 900;
    color: #4ade80;
    margin-bottom: 4px;
}

/* ── Radar de Demanda Reprimida ────────────────────────────── */
.b2b-radar-card {
    background: #fff;
    border: 1px solid var(--b2b-card-border);
    border-left: 4px solid var(--b2b-purple);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.b2b-radar-prod {
    font-size: 16px;
    font-weight: 800;
    color: var(--b2b-dark);
    margin-bottom: 4px;
}

.b2b-radar-meta {
    font-size: 12.5px;
    color: #64748b;
}

.b2b-radar-price {
    font-size: 20px;
    font-weight: 900;
    color: #7c3aed;
}

/* ── Degustação CRM (Cavalo de Troia) ───────────────────────── */
.b2b-crm-demo-badge {
    background: #fef3c7;
    border: 1px dashed #f59e0b;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.b2b-crm-demo-badge strong {
    color: #92400e;
    font-size: 13px;
}

.b2b-crm-demo-badge p {
    color: #b45309;
    font-size: 12px;
    margin: 0;
}

/* ── Hero Actions & Botão Sobre ────────────────────────────── */
.b2b-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.b2b-hero-btn,
.b2b-hero-btn-primary,
.b2b-hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}
.b2b-hero-btn-primary {
    background: #ffffff;
    color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ffffff;
}
.b2b-hero-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.b2b-hero-btn-unlock {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #422006 !important;
}
.b2b-hero-btn-unlock:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #422006 !important;
}
.b2b-hero-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
.b2b-hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ── Modal Sobre Rico com Busca em Tempo Real ──────────────── */
.b2b-about-modal .modal-dialog {
    width: min(1160px, calc(100% - 30px));
    margin: 20px auto;
}
.b2b-about-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    background: #f8fafc;
}
.b2b-about-modal .modal-body {
    padding: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.b2b-about-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
    color: #ffffff;
    padding: 28px 32px 24px;
    position: relative;
}
.b2b-about-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.b2b-about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #93c5fd;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.b2b-about-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
}
.b2b-about-lead {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 16px;
    line-height: 1.5;
    max-width: 820px;
}
.b2b-about-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.b2b-about-hero-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 11.5px;
    color: #e2e8f0;
}
.b2b-about-hero-stat strong {
    display: block;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
}
.b2b-about-hero-icon {
    font-size: 42px;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.b2b-about-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s ease;
}
.b2b-about-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Sticky Search Bar ── */
.b2b-about-sticky-search {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.b2b-about-search-box {
    position: relative;
    flex: 1;
}
.b2b-about-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.b2b-about-search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.b2b-about-search-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.b2b-about-search-badge {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #bfdbfe;
}

/* ── Grid & Section Cards ── */
.b2b-about-grid {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.b2b-about-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.b2b-about-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}
.b2b-about-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.b2b-about-section-icon.emerald { background: #f0fdf4; color: #16a34a; }
.b2b-about-section-icon.purple { background: #faf5ff; color: #9333ea; }
.b2b-about-section-icon.amber { background: #fffbeb; color: #d97706; }
.b2b-about-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.b2b-about-section-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
}
.b2b-about-section-body {
    padding: 18px 20px;
}

/* ── Workflow Steps ── */
.b2b-about-manual-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.b2b-about-manual-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}
.b2b-about-step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Status Grid ── */
.b2b-about-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.b2b-about-status {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}
.b2b-about-status .label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    padding: 4px 8px;
}
.b2b-about-status p {
    font-size: 12px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

/* ── Control Grid & Rows (Campos e Dropdowns) ── */
.b2b-about-control-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.b2b-about-control-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.b2b-about-control-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.b2b-about-control-head strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
}
.b2b-about-control-kind {
    font-size: 11px;
    background: #e2e8f0;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
}
.b2b-about-control-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
}
.b2b-about-control-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
    margin-top: 4px;
}
.b2b-about-example {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
}
.b2b-about-example strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 2px;
}

/* ── Dropdown Specific Options Block ── */
.b2b-about-control-options {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.b2b-about-control-options-title {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.b2b-about-option-block {
    border-left: 3px solid #10b981;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 0 8px 8px 0;
}
.b2b-about-option-block.amber {
    border-left-color: #f59e0b;
    background: #fffbeb;
}
.b2b-about-option-block.purple {
    border-left-color: #8b5cf6;
    background: #faf5ff;
}
.b2b-about-option-block.blue {
    border-left-color: #3b82f6;
    background: #eff6ff;
}
.b2b-about-option-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.b2b-about-option-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px;
}
.b2b-about-option-example {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.4;
}
.b2b-about-option-example strong {
    color: #1e293b;
}

.b2b-about-callout {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #1e40af;
    line-height: 1.5;
    margin-top: 14px;
}
.b2b-about-callout.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.b2b-access-banner {
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
}
.b2b-access-banner > div { flex: 1 1 360px; min-width: 0; }
.b2b-access-banner > .btn { white-space: normal; max-width: 100%; }
.b2b-admin-catalog > .container { width: 100%; max-width: 1380px; }
#radarDemandForm fieldset[disabled] .form-control { background: #f1f5f9; color: #64748b; }
#radarDemandForm button[disabled] { background: #e2e8f0; border-color: #cbd5e1; color: #64748b; opacity: 1; cursor: not-allowed; }
@media (max-width: 600px) {
    .b2b-access-banner > .btn { width: 100%; }
}
