/* B2B Supply Pro — Interactive Modules Stylesheet */

/* 1. Deep Plum Interactive Product Finder */
.b2b-finder-bar {
    background: var(--b2b-plum);
    color: #fff;
    border-radius: var(--b2b-radius-lg);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 36px;
}

.b2b-finder-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--b2b-amber);
    margin-bottom: 6px;
}

.b2b-finder-field input,
.b2b-finder-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--b2b-font-body);
    font-size: 14px;
}

.b2b-finder-field select option { color: var(--b2b-obsidian); background: #fff; }
.b2b-finder-field input::placeholder { color: rgba(255,255,255,0.62); }

.b2b-finder-check label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.b2b-finder-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
}

.b2b-finder-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--b2b-amber);
    white-space: nowrap;
}

.b2b-finder-reset {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.b2b-cat-group { margin-bottom: 40px; }

.b2b-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-left-width: 5px;
    border-radius: 6px;
    padding: 14px 20px;
    margin-bottom: 18px;
}

.b2b-cat-header h3 { margin: 0; font-size: 20px; }

.b2b-cat-pill {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.b2b-product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.b2b-product-card {
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.b2b-product-card:hover {
    border-color: var(--b2b-green);
    transform: translateY(-3px);
    box-shadow: var(--b2b-shadow);
}

.b2b-pc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.b2b-pc-sku { font-size: 11px; font-weight: 700; color: var(--b2b-text-muted); letter-spacing: 0.06em; }
.b2b-pc-org { font-size: 10px; font-weight: 800; text-transform: uppercase; background: #E7F4EB; color: var(--b2b-green); padding: 2px 8px; border-radius: 999px; }
.b2b-pc-title { font-size: 16px; margin: 0 0 8px; color: var(--b2b-obsidian); }
.b2b-pc-meta { font-size: 13px; color: var(--b2b-text-muted); margin: 0 0 16px; flex: 1; }

.b2b-pc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--b2b-border);
}

.b2b-pc-quickview {
    background: none;
    border: none;
    padding: 0;
    color: var(--b2b-orange);
    font-family: var(--b2b-font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.b2b-pc-link { font-size: 12px; font-weight: 600; color: var(--b2b-text-muted); }

/* Product Modal */
.b2b-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.b2b-modal.is-open { opacity: 1; visibility: visible; }
.b2b-modal-backdrop { position: absolute; inset: 0; background: rgba(24, 26, 25, 0.72); }

.b2b-modal-dialog {
    position: relative;
    background: var(--b2b-white);
    border-radius: var(--b2b-radius-lg);
    width: min(920px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    z-index: 2;
}

.b2b-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.b2b-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.b2b-modal-spec-list { list-style: none; padding: 0; margin: 16px 0 0; }
.b2b-modal-spec-list li { padding: 8px 0; border-bottom: 1px solid var(--b2b-border); font-size: 14px; }

/* 2. Interactive Origin Network World Map */
.b2b-origin-map-module {
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-lg);
    padding: 20px;
}

.b2b-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.b2b-map-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.b2b-map-pill {
    border: 1px solid var(--b2b-border);
    background: var(--b2b-surface);
    color: var(--b2b-obsidian);
    padding: 7px 14px;
    border-radius: 999px;
    font-family: var(--b2b-font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.b2b-map-pill.is-active {
    background: var(--b2b-green);
    border-color: var(--b2b-green);
    color: #fff;
}

.b2b-map-canvas-wrap { position: relative; }
.b2b-world-svg { width: 100%; height: auto; display: block; }

@keyframes b2bDashFlow {
    to { stroke-dashoffset: -32; }
}

.b2b-arc {
    animation: b2bDashFlow 2.4s linear infinite;
    transition: opacity 0.25s ease;
}

.b2b-arc.is-dimmed,
.b2b-node.is-dimmed { opacity: 0.12; }

.b2b-node { cursor: pointer; transition: transform 0.2s ease, opacity 0.25s ease; }

.b2b-map-tooltip {
    position: absolute;
    background: var(--b2b-obsidian);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    pointer-events: none;
    transform: translate(-50%, -130%);
    white-space: nowrap;
}

.b2b-map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--b2b-border);
    font-size: 12px;
    color: var(--b2b-text-muted);
}

.b2b-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.b2b-dot-orange { background: var(--b2b-orange); }
.b2b-dot-green { background: var(--b2b-green); }
.b2b-dash-line { display: inline-block; width: 22px; border-top: 2px dashed #6B7A71; vertical-align: middle; margin-right: 5px; }
.b2b-map-note { margin-left: auto; font-style: italic; }

/* 3. Warehouse Coverage Map */
.b2b-wh-map-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: center;
    background: var(--b2b-charcoal);
    border-radius: var(--b2b-radius-lg);
    padding: 28px;
    color: #fff;
}

.b2b-wh-map-stage { position: relative; }
.b2b-na-svg { width: 100%; height: auto; display: block; }

.b2b-wh-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(24, 26, 25, 0.9);
    border: 1.5px solid var(--b2b-amber);
    color: #fff;
    border-radius: 999px;
    padding: 5px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.b2b-wh-pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--b2b-orange); }
.b2b-wh-pin.is-active { background: var(--b2b-green); border-color: #fff; }
.b2b-wh-pin.is-active .b2b-wh-pin-dot { background: var(--b2b-amber); }

.b2b-wh-info-card {
    background: var(--b2b-obsidian);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid var(--b2b-amber);
    border-radius: var(--b2b-radius);
    padding: 24px;
}

.b2b-wh-role { color: var(--b2b-amber); font-weight: 700; margin: 4px 0 12px; }

/* 4. Interactive Anatomy of a Blend */
.b2b-blend-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.b2b-blend-tab {
    padding: 11px 18px;
    border-radius: var(--b2b-radius);
    border: 1.5px solid var(--b2b-border);
    background: var(--b2b-white);
    font-family: var(--b2b-font-display);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.b2b-blend-tab.is-active {
    background: var(--b2b-plum);
    border-color: var(--b2b-plum);
    color: #fff;
}

.b2b-blend-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: center;
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-lg);
    padding: 28px;
}

.b2b-blend-donut-card { text-align: center; }
.b2b-donut-svg { width: 210px; height: 210px; margin: 0 auto 12px; }
.b2b-blend-desc { font-size: 13px; color: var(--b2b-text-muted); margin: 0; }

.b2b-blend-row { margin-bottom: 18px; }
.b2b-blend-row-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.b2b-blend-row-meta { font-size: 12px; color: var(--b2b-text-muted); margin-bottom: 6px; }
.b2b-blend-bar-track { height: 10px; background: #EFECE6; border-radius: 999px; overflow: hidden; }
.b2b-blend-bar-fill { height: 100%; border-radius: 999px; transition: width 0.45s ease; }

/* 5. Trade Show / Expo 3-Card Carousel */
.b2b-expo-carousel { position: relative; }

.b2b-expo-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.b2b-expo-prev,
.b2b-expo-next {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--b2b-border);
    background: var(--b2b-white);
    font-size: 20px;
    cursor: pointer;
}

.b2b-expo-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.b2b-expo-card {
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.b2b-expo-card.is-hidden-slide { display: none; }

.b2b-expo-media { position: relative; height: 170px; overflow: hidden; }
.b2b-expo-media img { width: 100%; height: 100%; object-fit: cover; }

.b2b-expo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--b2b-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.08em;
}

.b2b-expo-city {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(24,26,25,0.82);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.b2b-expo-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b2b-expo-title { font-size: 17px; margin: 0; }
.b2b-expo-date { font-size: 12px; font-weight: 700; color: var(--b2b-amber); margin: 0; }

.b2b-expo-booth-box {
    background: var(--b2b-surface);
    border: 1px solid var(--b2b-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
}

.b2b-expo-booth-label { display: block; font-size: 10px; font-weight: 700; color: var(--b2b-text-muted); }

.b2b-expo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.b2b-expo-dot { width: 10px; height: 6px; border-radius: 999px; border: none; background: #D2CEC6; cursor: pointer; }
.b2b-expo-dot.is-active { width: 26px; background: var(--b2b-orange); }

/* 6. Accordions (Jobs & FAQs) */
.b2b-acc-item {
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius);
    margin-bottom: 12px;
}

.b2b-acc-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-family: var(--b2b-font-display);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.b2b-job-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--b2b-text-muted); }
.b2b-acc-icon { font-size: 22px; color: var(--b2b-orange); font-weight: 700; }
.b2b-acc-panel { padding: 0 22px 22px; color: var(--b2b-text-muted); }

/* 7. B2B Forms & Drag-and-Drop Resume Upload */
.b2b-form {
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-lg);
    padding: 28px;
}

.b2b-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.b2b-span-2 { grid-column: span 2; }

.b2b-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--b2b-obsidian);
}

.b2b-field input,
.b2b-field select,
.b2b-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--b2b-border);
    border-radius: 5px;
    font-family: var(--b2b-font-body);
    font-size: 14px;
    background: var(--b2b-surface);
}

.b2b-hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.b2b-dropzone {
    position: relative;
    border: 2px dashed var(--b2b-green);
    border-radius: var(--b2b-radius);
    background: #F4FAF6;
    padding: 24px;
    text-align: center;
    cursor: pointer;
}

.b2b-dropzone.is-dragover { background: #E3F3E8; border-color: var(--b2b-orange); }
.b2b-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.b2b-dropzone-text { margin: 0; font-weight: 600; color: var(--b2b-obsidian); }
.b2b-dropzone-file { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--b2b-green); }

.b2b-checkbox-field label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.b2b-checkbox-field input { width: auto; margin-top: 4px; }

.b2b-form-status { margin-top: 14px; font-size: 14px; font-weight: 600; }
.b2b-form-status.is-success { color: var(--b2b-green); }
.b2b-form-status.is-error { color: #C62828; }

@media (max-width: 1100px) {
    .b2b-finder-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2b-product-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2b-wh-map-wrap,
    .b2b-blend-grid,
    .b2b-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .b2b-finder-bar,
    .b2b-product-grid-4,
    .b2b-expo-track,
    .b2b-form-grid-2 { grid-template-columns: 1fr; }
    .b2b-span-2 { grid-column: span 1; }
}

/* 8. B2B Registration & Login Portal */
.b2b-auth-wrap { max-width: 780px; margin: 0 auto; }
.b2b-auth-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.b2b-auth-tab {
    flex: 1; padding: 14px 20px; border: 1.5px solid var(--b2b-border); background: var(--b2b-white);
    border-radius: var(--b2b-radius); font-family: var(--b2b-font-display); font-weight: 800; font-size: 14px; cursor: pointer;
}
.b2b-auth-tab.is-active { background: var(--b2b-plum); border-color: var(--b2b-plum); color: #fff; }
.b2b-interest-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.b2b-interest-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--b2b-border); background: var(--b2b-surface); font-size: 13px; font-weight: 600; cursor: pointer;
}
.b2b-interest-pill input { width: auto; margin: 0; }
.b2b-auth-dashboard { background: var(--b2b-white); border: 1px solid var(--b2b-border); border-top: 4px solid var(--b2b-green); border-radius: var(--b2b-radius-lg); padding: 28px; }
.b2b-auth-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.b2b-auth-dash-meta { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 0; border-top: 1px solid var(--b2b-border); border-bottom: 1px solid var(--b2b-border); margin-bottom: 20px; font-size: 14px; }
.b2b-auth-dash-actions { display: flex; flex-wrap: wrap; gap: 12px; }
