/* ============================================================
   PARTSHUB — GLOBAL STYLES
   ============================================================ */

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #162033;
    --ink: #162033;
    --muted: #667085;
    --line: #e4e7ec;
    --accent: #175cd3;
    --accent2: #0b4fce;
    --success: #18794e;
    --success-bg: #e9f7ef;
    --danger: #b42318;
    --danger-bg: #fff1f0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: var(--accent);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.top {
    height: 68px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.top nav {
    display: flex;
    gap: 20px;
    flex: 1;
}

.top a {
    color: var(--text);
    text-decoration: none;
}

.top nav a:hover {
    text-decoration: underline;
}


/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */

.container {
    max-width: 1180px;
    margin: auto;
    padding: 44px 24px 80px;
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px 80px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 26px;
}

.page-head h1,
h1 {
    font-size: 38px;
    letter-spacing: -.03em;
    margin: 0 0 8px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .14em;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 12px;
}

.muted {
    color: var(--muted);
}

.small {
    padding: 8px 12px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn,
button {
    background: var(--accent);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover,
button:hover {
    background: var(--accent2);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-sizing: border-box;
}

.primary-button {
    border: 0;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--accent2);
}

.secondary-button {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
}

.secondary-button:hover {
    background: #f8fafc;
    text-decoration: none;
}


/* ============================================================
   FORMS
   ============================================================ */

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 13px 14px;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(23, 92, 211, .10);
}

.form-page {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
}

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

.form-grid label,
.form-page label,
.form-card label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 600;
}

.form-page textarea {
    min-height: 130px;
    margin-bottom: 18px;
}

.check {
    flex-direction: row !important;
    align-items: center;
    margin: 15px 0;
}

.check input {
    width: auto;
}

.inline {
    display: inline;
}

.inline button {
    padding: 7px 10px;
}


/* ============================================================
   CARDS
   ============================================================ */

.card,
.hero-card,
.result,
.auth,
.form-page,
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
}

.card {
    padding: 22px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card b {
    font-size: 17px;
}

.card span {
    color: var(--muted);
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


/* ============================================================
   ALERTS / EMPTY STATES
   ============================================================ */

.empty,
.alert {
    padding: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 12px;
}

.alert {
    margin-bottom: 14px;
}


/* ============================================================
   AUTH
   ============================================================ */

.auth {
    max-width: 460px;
    margin: 50px auto;
    padding: 30px;
}

.auth form p {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


/* ============================================================
   TABLES
   ============================================================ */

.table-wrap {
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 18px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
}

tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    border-top: 1px solid var(--line);
    padding: 24px 5%;
    color: var(--muted);
    background: #ffffff;
}


/* ============================================================
   HOMEPAGE
   ============================================================ */

.hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 48px;
    align-items: center;
    padding: 64px 0 56px;
}

.hero-copy {
    min-width: 0;
}

.hero-copy h1 {
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 0 0 22px;
}

.hero-copy h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-copy p {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

.hero-search {
    display: flex;
    gap: 10px;
    margin: 28px 0 18px;
    max-width: 700px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
}

.hero-search button {
    white-space: nowrap;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(16, 24, 40, .07);
}

.panel-label {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 14px;
}

.hero-panel strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 14px;
}

.hero-panel p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 24px;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.panel-row span {
    color: var(--muted);
}

.panel-row b {
    font-size: 15px;
}


/* Trust strip */

.trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 0 0 64px;
}

.trust > div {
    padding: 22px 20px;
    border-right: 1px solid var(--line);
}

.trust > div:first-child {
    padding-left: 0;
}

.trust > div:last-child {
    border-right: 0;
}

.trust b {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.trust span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}


/* Homepage sections */

.section {
    margin-bottom: 70px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.03em;
}

.section-head a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}


/* Featured products */

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

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
}

.product-image {
    height: 190px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.product-meta {
    padding: 18px;
}

.product-meta .brand {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.product-meta .oem_number {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.product-meta h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}


/* ============================================================
   CATALOG
   ============================================================ */

.catalog-toolbar {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    margin: 24px 0;
}

.catalog-search {
    display: flex;
    gap: 10px;
}

.catalog-search input {
    flex: 1;
}

.facet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.facet-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 650;
    font-size: 13px;
}

.facet-check {
    flex-direction: row !important;
    align-items: center;
    padding-top: 27px;
}

.facet-check input {
    width: auto;
}

.facet-actions {
    display: flex;
    align-items: end;
    gap: 14px;
    padding-bottom: 2px;
}

.facet-actions a {
    color: var(--muted);
    padding: 12px 0;
}

.catalog-meta {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin: 20px 0;
}

.part-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.part-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
    display: flex;
    flex-direction: column;
}

.part-card-main {
    color: var(--text);
    text-decoration: none;
}

.part-card-main img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #f8fafc;
    display: block;
}

.part-image-placeholder {
    height: 190px;
    display: grid;
    place-items: center;
    background: #f2f4f7;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.part-image-placeholder.large {
    height: 360px;
    border-radius: 16px;
}

.part-card-body {
    padding: 18px;
}

.part-card-body h2 {
    font-size: 19px;
    line-height: 1.25;
    margin: 12px 0 6px;
}

.part-category {
    font-size: 13px;
    margin: 8px 0 0;
    color: var(--accent);
}

.part-card-footer {
    border-top: 1px solid var(--line);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.muted-pill {
    background: #f2f4f7;
    color: #667085;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 28px 0;
}

.pagination a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}


/* Part detail */

.part-detail-head {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: start;
}

.part-detail-media {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}

.part-detail-media img {
    width: 100%;
    height: 360px;
    object-fit: contain;
}

.part-detail-head h1 {
    font-size: 46px;
    margin: 14px 0;
}

.detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: var(--muted);
}

.detail-meta b {
    color: var(--text);
    margin-right: 6px;
}

.detail-section {
    margin-top: 42px;
}

.section-title h2 {
    font-size: 28px;
    margin: 0;
}

.availability-list {
    display: grid;
    gap: 12px;
}

.availability-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.availability-card p {
    margin: 5px 0 0;
}

.availability-card > div:last-child {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px 14px;
    align-items: center;
    text-align: right;
}

.availability-card small {
    grid-column: 1 / -1;
    color: var(--muted);
}

.offer-price {
    font-size: 20px;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.data-list {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.data-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.data-list > div:last-child {
    border-bottom: 0;
}

.data-list b {
    font-size: 13px;
}

.data-list span {
    text-align: right;
    color: var(--muted);
}

.fitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.fitment-grid .card {
    padding: 18px;
}

.catalog-empty {
    text-align: center;
    padding: 50px 20px;
}

.catalog-empty h2 {
    margin-top: 0;
}


/* ============================================================
   SEARCH MARKETPLACE
   ============================================================ */

.filter-bar {
    display: grid;
    grid-template-columns:
        minmax(280px, 2fr)
        1fr
        1fr
        140px
        140px
        auto
        auto;
    gap: 10px;
    align-items: center;
    padding: 16px;
    margin: 24px 0 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.filter-search input {
    height: 52px;
    font-size: 16px;
}

.availability-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 4px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.availability-filter input {
    width: 17px;
    height: 17px;
    margin: 0;
}

.filter-bar button {
    height: 48px;
    padding: 0 24px;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 28px 0 14px;
    color: var(--muted);
}

.results-head strong {
    color: var(--text);
    font-size: 15px;
}

.results-head span {
    margin-left: 6px;
}

.results-list {
    display: grid;
    gap: 18px;
}

.result-card {
    display: grid;
    grid-template-columns:
        minmax(280px, .9fr)
        minmax(420px, 1.1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
}

.result-main {
    padding: 26px;
    border-right: 1px solid var(--line);
}

.part-number {
    display: inline-block;
    padding: 7px 10px;
    background: #eef4ff;
    color: var(--accent);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.result-main h2 {
    margin: 15px 0 8px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.part-meta {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.part-details-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.part-details-link:hover {
    text-decoration: underline;
}

.supplier-list {
    padding: 20px 22px;
}

.availability-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.availability-title > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.availability-title b {
    font-size: 14px;
}

.availability-title span {
    color: var(--muted);
    font-size: 13px;
}

.live-indicator {
    color: #027a48 !important;
    font-weight: 700;
    white-space: nowrap;
}

.supplier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.supplier-row:last-child {
    border-bottom: 0;
}

.supplier-info {
    min-width: 0;
}

.supplier-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.supplier-info small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.supplier-action {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.price {
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

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

.supplier-action form {
    margin: 0;
}

.supplier-action button {
    padding: 9px 15px;
    white-space: nowrap;
}

.large-empty {
    padding: 42px 28px;
    text-align: center;
    margin-top: 10px;
}

.large-empty h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.large-empty p {
    margin: 0;
    color: var(--muted);
}


/* ============================================================
   CUSTOMER SALES ORDER DETAIL
   ============================================================ */

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.order-info-card {
    min-width: 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.order-info-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.order-info-card strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.order-section {
    margin-top: 30px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 4px 0 0;
}

.order-section .table-wrap {
    margin-top: 0;
}

.order-section table {
    width: 100%;
}

.order-section th {
    white-space: nowrap;
}

.order-section td {
    vertical-align: middle;
}

.order-total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.order-total-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.order-total-card p {
    margin: 0;
    color: var(--muted);
}

.order-total-card > strong {
    font-size: 28px;
    white-space: nowrap;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}


/* ============================================================
   CUSTOMER / SUPPLIER INFORMATION
   ============================================================ */

.party-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 34px;
}

.party-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.party-card h2 {
    margin: 8px 0 18px;
    font-size: 20px;
}

.party-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.party-card p strong {
    color: var(--ink);
    font-size: 13px;
}


/* ============================================================
   CUSTOMER FULFILLMENT TIMELINE
   ============================================================ */

.fulfillment-card {
    margin: 28px 0 34px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.fulfillment-card .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
}

.fulfillment-card .section-heading h2 {
    margin: 4px 0 0;
}

.fulfillment-current {
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
}

.fulfillment-timeline {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 28px;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.timeline-dot {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f2f4f7;
    color: #98a2b3;
    border: 2px solid #d0d5dd;
    font-size: 14px;
    font-weight: 800;
}

.timeline-step.completed .timeline-dot {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success);
}

.timeline-step.active .timeline-dot {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.timeline-step strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
    white-space: nowrap;
}

.timeline-step span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.timeline-line {
    height: 2px;
    flex: 0 0 30px;
    margin: 0 8px;
    background: var(--line);
}

.timeline-line.completed {
    background: var(--success);
}


/* ============================================================
   CUSTOMER FULFILLMENT — TABLET
   ============================================================ */

@media (max-width: 900px) {

    .fulfillment-timeline {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .timeline-step {
        flex: 0 0 160px;
    }

    .timeline-line {
        flex: 0 0 24px;
    }

}


/* ============================================================
   CUSTOMER FULFILLMENT — MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .fulfillment-card {
        padding: 20px;
    }

    .fulfillment-card .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .fulfillment-timeline {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow: visible;
    }

    .timeline-step {
        width: 100%;
        flex: none;
    }

    .timeline-line {
        width: 2px;
        height: 24px;
        flex: none;
        margin: 0 0 0 17px;
    }

}


/* ============================================================
   PRINT
   ============================================================ */

@media print {

    .fulfillment-card {
        display: none !important;
    }

}
/* ============================================================
   CUSTOMER ORDER HISTORY
   ============================================================ */

.customer-orders {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.customer-order-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.customer-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.customer-order-head h2 {
    margin: 6px 0 4px;
    font-size: 21px;
}

.customer-order-number {
    color: var(--ink);
    text-decoration: none;
}

.customer-order-number:hover {
    color: var(--accent);
}

.customer-order-total {
    text-align: right;
}

.customer-order-total span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.customer-order-total strong {
    color: var(--ink);
    font-size: 21px;
}

.customer-order-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
    padding-top: 20px;
}

.order-detail-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.customer-order-details strong {
    color: var(--ink);
    font-size: 14px;
}

.fulfillment-status {
    color: var(--accent) !important;
}

.customer-order-action {
    display: flex;
    justify-content: flex-end;
}

.customer-order-action .primary-button {
    text-decoration: none;
}


/* ============================================================
   CUSTOMER ORDER HISTORY — EMPTY
   ============================================================ */

.customer-empty-orders {
    padding: 70px 30px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.customer-empty-orders h2 {
    margin: 8px 0;
}

.customer-empty-orders p {
    margin: 0 0 24px;
    color: var(--muted);
}


/* ============================================================
   CUSTOMER ORDER HISTORY — MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .customer-order-head {
        flex-direction: column;
    }

    .customer-order-total {
        text-align: left;
    }

    .customer-order-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-order-action {
        justify-content: flex-start;
    }

}


@media (max-width: 500px) {

    .customer-order-card {
        padding: 18px;
    }

    .customer-order-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}

/* ============================================================
   FINANCIAL SUMMARY
   ============================================================ */

.financial-summary {
    width: min(460px, 100%);
    margin: 22px 0 0 auto;
    padding: 22px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.financial-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
}

.financial-row span {
    color: var(--muted);
}

.financial-row strong {
    color: var(--ink);
}

.financial-divider {
    height: 1px;
    margin: 12px 0;
    background: var(--line);
}

.financial-total {
    padding-top: 12px;
}

.financial-total span {
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.financial-total strong {
    font-size: 24px;
}


/* ============================================================
   SUPPLIER DASHBOARD
   ============================================================ */

.supplier-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.supplier-stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.supplier-stat-card span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.supplier-stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
}

.supplier-stat-card small {
    color: var(--muted);
}

.supplier-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.supplier-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.supplier-panel-head h2 {
    margin: 4px 0 6px;
}

.supplier-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field-wide {
    grid-column: span 3;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(23, 92, 211, .10);
}

.checkbox-field {
    justify-content: flex-end;
}

.checkbox-field label {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-field input {
    width: auto;
    min-height: auto;
}

.form-actions {
    grid-column: span 3;
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.inventory-count {
    color: var(--muted);
    font-size: 14px;
}

.table-muted {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.stock-empty {
    color: var(--danger);
    font-weight: 700;
}


/* Supplier status */

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

.status-live {
    background: var(--success-bg);
    color: var(--success);
}

.status-empty {
    background: var(--danger-bg);
    color: var(--danger);
}


/* ============================================================
   SUPPLIER ORDER WORKFLOW
   ============================================================ */

.supplier-panel .supplier-form select[name="fulfillment_status"] {
    max-width: 380px;
}


/* ============================================================
   PRINT SALES ORDER
   ============================================================ */

@media print {

    @page {
        size: A4;
        margin: 10mm;
    }

    html,
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header,
    nav,
    footer,
    .order-actions {
        display: none !important;
    }

    .page-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-head {
        margin-bottom: 12px !important;
    }

    .page-head h1 {
        margin: 4px 0 !important;
        font-size: 25px !important;
    }

    .page-head p {
        margin: 0 !important;
        font-size: 12px !important;
    }

    .eyebrow {
        font-size: 9px !important;
        letter-spacing: .08em;
    }

    .order-info-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 8px !important;
        margin: 12px 0 !important;
    }

    .order-info-card {
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .order-info-card span {
        margin-bottom: 4px !important;
        font-size: 8px !important;
    }

    .order-info-card strong {
        font-size: 10px !important;
    }

    .party-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 12px 0 16px !important;
    }

    .party-card {
        padding: 12px 14px !important;
        border-radius: 10px !important;
    }

    .party-card h2 {
        margin: 5px 0 8px !important;
        font-size: 14px !important;
    }

    .party-card p {
        margin: 6px 0 0 !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    .party-card p strong {
        font-size: 9px !important;
    }

    .fulfillment-card {
        display: none !important;
    }

    .order-section {
        margin-top: 12px !important;
    }

    .section-heading {
        margin-bottom: 7px !important;
    }

    .section-heading h2 {
        margin: 2px 0 0 !important;
        font-size: 17px !important;
    }

    .table-wrap {
        overflow: visible !important;
        box-shadow: none !important;
        break-inside: avoid !important;
    }

    table {
        width: 100% !important;
    }

    th,
    td {
        padding: 7px 9px !important;
        font-size: 10px !important;
    }

    th {
        font-size: 8px !important;
    }

    .financial-summary {
        width: 360px !important;
        margin: 12px 0 0 auto !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        break-inside: avoid !important;
    }

    .financial-row {
        padding: 4px 0 !important;
        font-size: 11px !important;
    }

    .financial-divider {
        margin: 6px 0 !important;
    }

    .financial-total {
        padding-top: 6px !important;
    }

    .financial-total span {
        font-size: 13px !important;
    }

    .financial-total strong {
        font-size: 17px !important;
    }

    .order-info-grid,
    .party-grid,
    .order-section,
    .financial-summary {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .order-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */

@media (max-width: 900px) {

    .top {
        gap: 12px;
        padding: 0 16px;
    }

    .top nav {
        display: none;
    }

    .container,
    .page-shell {
        padding: 25px 16px 60px;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 45px 0;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }

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

    .grid3 {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .facet-grid,
    .part-grid,
    .fitment-grid,
    .detail-columns {
        grid-template-columns: 1fr 1fr;
    }

    .part-detail-head {
        grid-template-columns: 1fr;
    }

    .part-detail-media {
        max-width: 520px;
    }

    .availability-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .availability-card > div:last-child {
        text-align: left;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .result-main {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .supplier-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .supplier-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-field-wide,
    .supplier-form .form-actions {
        grid-column: span 2;
    }

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

    .fulfillment-timeline {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .timeline-step {
        flex: 0 0 160px;
    }

    .timeline-line {
        flex: 0 0 24px;
    }

    .trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust > div {
        border-bottom: 1px solid var(--line);
    }

    .trust > div:nth-child(2) {
        border-right: 0;
    }

    .trust > div:nth-child(3),
    .trust > div:nth-child(4) {
        border-bottom: 0;
    }

}


/* ============================================================
   RESPONSIVE — 800px
   ============================================================ */

@media (max-width: 800px) {

    .top {
        height: 64px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .party-grid {
        grid-template-columns: 1fr;
    }

    .supplier-panel-head {
        flex-direction: column;
    }

}


/* ============================================================
   RESPONSIVE — 700px
   ============================================================ */

@media (max-width: 700px) {

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

    .party-grid {
        grid-template-columns: 1fr;
    }

    .fulfillment-card {
        padding: 20px;
    }

    .fulfillment-timeline {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow: visible;
    }

    .timeline-step {
        width: 100%;
        flex: none;
    }

    .timeline-line {
        width: 2px;
        height: 24px;
        flex: none;
        margin: 0 0 0 17px;
    }

}


/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */

@media (max-width: 600px) {

    .container,
    .page-shell {
        padding: 22px 16px 50px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;
        gap: 8px;
    }

    .trust {
        grid-template-columns: 1fr;
    }

    .trust > div,
    .trust > div:first-child {
        padding: 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust > div:last-child {
        border-bottom: 0;
    }

    .product-grid,
    .grid3,
    .form-grid,
    .facet-grid,
    .part-grid,
    .fitment-grid,
    .detail-columns {
        grid-template-columns: 1fr;
    }

    .catalog-search {
        flex-direction: column;
    }

    .facet-check {
        padding-top: 8px;
    }

    .part-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .part-detail-head h1 {
        font-size: 36px;
    }

    .part-image-placeholder.large,
    .part-detail-media img {
        height: 260px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .filter-search {
        grid-column: auto;
    }

    .filter-bar button {
        width: 100%;
    }

    .results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-main,
    .supplier-list {
        padding: 20px;
    }

    .supplier-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .supplier-action {
        width: 100%;
        justify-content: space-between;
    }

    .price {
        font-size: 19px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-total-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-total-card > strong {
        font-size: 24px;
    }

    .order-section .table-wrap {
        overflow-x: auto;
    }

    .financial-summary {
        width: 100%;
    }

    .supplier-stats {
        grid-template-columns: 1fr;
    }

    .supplier-form {
        grid-template-columns: 1fr;
    }

    .form-field-wide,
    .supplier-form .form-actions {
        grid-column: span 1;
    }

    .supplier-panel {
        padding: 16px;
    }

}


/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */

@media (max-width: 480px) {

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-info-card {
        padding: 17px;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .primary-button,
    .order-actions .secondary-button {
        width: 100%;
    }

}
/* =========================================================
   SUPPLIER DASHBOARD ACTIONS
========================================================= */

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-head-actions button,
.page-head-actions a {
    text-decoration: none;
    cursor: pointer;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
}

html {
    scroll-behavior: smooth;
}
/* ============================================================
   PARTSHUB — VEHICLE CATALOG
   ============================================================ */

.catalog-page {
    width: 100%;
}


/* ============================================================
   CATALOG HEADER
   ============================================================ */

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.catalog-header h1 {
    margin: 0 0 8px;
}


/* ============================================================
   VEHICLE SELECTOR
   ============================================================ */

.catalog-selector {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
}

.catalog-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.catalog-selector-header > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}


/* ============================================================
   VEHICLE CARD
   ============================================================ */

.catalog-vehicle-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.catalog-vehicle-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .09);
    transform: translateY(-2px);
    text-decoration: none;
}

.catalog-vehicle-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.catalog-vehicle-card h2 {
    margin: 3px 0 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.catalog-vehicle-make {
    margin: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.catalog-arrow {
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
}

.catalog-vehicle-details {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.catalog-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 7px 0;
}

.catalog-detail-label {
    color: var(--muted);
    font-size: 12px;
}

.catalog-detail-row strong {
    text-align: right;
    font-size: 13px;
}

.catalog-vehicle-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   VEHICLE HEADER
   ============================================================ */

.catalog-vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 24px;
}

.catalog-vehicle-header h1 {
    margin: 0;
}

.catalog-vehicle-year {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 17px;
    font-weight: 600;
}

.catalog-vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 1px;
    min-width: 340px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.catalog-vehicle-specs > div {
    padding: 13px 15px;
    background: #ffffff;
}

.catalog-vehicle-specs span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-vehicle-specs strong {
    display: block;
    font-size: 13px;
}


/* ============================================================
   VEHICLE SUMMARY
   ============================================================ */

.catalog-vehicle-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.catalog-vehicle-summary > div {
    padding: 16px 18px;
    background: #ffffff;
}

.catalog-summary-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.catalog-vehicle-summary strong {
    display: block;
    font-size: 14px;
}


/* ============================================================
   CATALOG GROUPS
   ============================================================ */

.catalog-section-list {
    display: grid;
    gap: 14px;
}

.catalog-section-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(16, 24, 40, .04);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.catalog-section-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
    text-decoration: none;
}

.catalog-section-card-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.catalog-section-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.catalog-section-label {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.catalog-section-card h2 {
    margin: 0;
    font-size: 20px;
}

.catalog-section-card .muted {
    margin: 7px 0 0;
    line-height: 1.5;
}

.catalog-section-code {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 8px;
    border-radius: 7px;
    background: #f2f4f7;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.catalog-section-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   DIAGRAM GRID
   ============================================================ */

.catalog-diagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-diagram-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.catalog-diagram-card:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 36px rgba(16, 24, 40, .10);
    transform: translateY(-2px);
    text-decoration: none;
}

.catalog-diagram-preview {
    position: relative;
    height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.catalog-diagram-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-diagram-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #98a2b3;
}

.catalog-diagram-placeholder span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.catalog-diagram-placeholder strong {
    font-size: 18px;
    letter-spacing: .04em;
}

.catalog-diagram-info {
    padding: 18px 18px 14px;
}

.catalog-diagram-number {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.catalog-diagram-info h2 {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.3;
}

.catalog-diagram-info p {
    margin: 6px 0 0;
    font-size: 13px;
}

.catalog-diagram-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   DIAGRAM VIEWER
   ============================================================ */

.catalog-diagram-header {
    margin-bottom: 22px;
}

.catalog-diagram-header h1 {
    margin: 0 0 8px;
}

.catalog-diagram-viewer {
    margin-top: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .05);
}

.catalog-diagram-viewer-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.catalog-diagram-viewer-header h2 {
    margin: 0;
    font-size: 20px;
}

.catalog-diagram-canvas {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafc;
}

.catalog-diagram-image {
    width: 100%;
    height: auto;
    max-height: 850px;
    object-fit: contain;
    display: block;
}

.catalog-diagram-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
}

.catalog-diagram-no-image strong {
    color: var(--text);
    font-size: 18px;
}

.catalog-diagram-no-image span {
    max-width: 480px;
    line-height: 1.5;
}


/* ============================================================
   DIAGRAM CALLOUTS
   ============================================================ */

.catalog-callout {
    position: absolute;
    z-index: 5;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .25);
    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.catalog-callout:hover {
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 5px 18px rgba(16, 24, 40, .30);
    text-decoration: none;
}


/* ============================================================
   PARTS LIST
   ============================================================ */

.catalog-parts-section {
    margin-top: 36px;
}

.catalog-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
}

.catalog-section-heading h2 {
    margin: 0;
    font-size: 28px;
}

.catalog-parts-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.catalog-parts-list {
    display: grid;
    gap: 12px;
}

.catalog-part-row {
    display: grid;
    grid-template-columns: 58px minmax(260px, 1fr) 70px minmax(300px, .9fr);
    gap: 20px;
    align-items: start;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.catalog-part-callout {
    display: flex;
    justify-content: center;
}

.catalog-part-callout span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.catalog-part-main {
    min-width: 0;
}

.catalog-part-number strong {
    color: var(--accent);
    font-size: 15px;
}

.catalog-part-main h3 {
    margin: 7px 0 0;
    font-size: 17px;
    line-height: 1.3;
}

.catalog-part-main > .muted {
    margin: 5px 0 0;
    font-size: 13px;
}

.catalog-part-notes,
.catalog-part-applicability {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.catalog-part-applicability {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.catalog-part-numbers {
    margin-top: 14px;
}

.catalog-part-numbers > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-number-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.catalog-part-quantity {
    text-align: center;
}

.catalog-part-quantity strong {
    font-size: 18px;
}

.catalog-part-availability {
    min-width: 0;
}

.catalog-supplier-list {
    display: grid;
    gap: 8px;
}

.catalog-supplier-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
}

.catalog-supplier-offer > div:first-child {
    min-width: 0;
}

.catalog-supplier-offer strong {
    display: block;
    font-size: 13px;
}

.catalog-supplier-offer .muted {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.catalog-supplier-price {
    flex-shrink: 0;
    text-align: right;
}

.catalog-supplier-price strong {
    color: var(--text);
    font-size: 14px;
}

.catalog-supplier-price span {
    display: block;
    margin-top: 3px;
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}

.catalog-unavailable {
    display: inline-block;
    padding: 7px 9px;
    border-radius: 8px;
    background: #f2f4f7;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   CATALOG NAVIGATION
   ============================================================ */

.catalog-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}


/* ============================================================
   CATALOG EMPTY STATE
   ============================================================ */

.catalog-empty-icon {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 24px;
    font-weight: 700;
}


/* ============================================================
   CATALOG RESPONSIVE — 1000px
   ============================================================ */

@media (max-width: 1000px) {

    .catalog-selector-grid,
    .catalog-diagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-part-row {
        grid-template-columns: 50px minmax(0, 1fr) 70px;
    }

    .catalog-part-availability {
        grid-column: 2 / -1;
        padding-top: 4px;
    }

}


/* ============================================================
   CATALOG RESPONSIVE — 800px
   ============================================================ */

@media (max-width: 800px) {

    .catalog-vehicle-header {
        flex-direction: column;
    }

    .catalog-vehicle-specs {
        width: 100%;
        min-width: 0;
    }

    .catalog-vehicle-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-section-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-section-action {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-diagram-canvas {
        min-height: 380px;
    }

}


/* ============================================================
   CATALOG RESPONSIVE — 600px
   ============================================================ */

@media (max-width: 600px) {

    .catalog-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-selector {
        padding: 16px;
    }

    .catalog-selector-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-selector-header > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .catalog-selector-grid,
    .catalog-diagram-grid {
        grid-template-columns: 1fr;
    }

    .catalog-vehicle-summary {
        grid-template-columns: 1fr;
    }

    .catalog-vehicle-summary > div {
        padding: 13px 15px;
    }

    .catalog-section-card {
        padding: 18px;
    }

    .catalog-section-card-main {
        gap: 13px;
    }

    .catalog-section-number {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .catalog-section-card h2 {
        font-size: 18px;
    }

    .catalog-diagram-preview {
        height: 230px;
    }

    .catalog-diagram-canvas {
        min-height: 280px;
    }

    .catalog-part-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .catalog-part-quantity {
        grid-column: 2;
        text-align: left;
        padding-top: 4px;
    }

    .catalog-part-availability {
        grid-column: 1 / -1;
    }

    .catalog-supplier-offer {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-supplier-price {
        text-align: left;
    }

    .catalog-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .catalog-navigation {
        flex-direction: column;
    }

    .catalog-navigation .btn {
        width: 100%;
        text-align: center;
    }

}


/* ============================================================
   CATALOG RESPONSIVE — 420px
   ============================================================ */

@media (max-width: 420px) {

    .catalog-vehicle-specs {
        grid-template-columns: 1fr;
    }

    .catalog-part-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .catalog-part-callout span {
        width: 32px;
        height: 32px;
    }

    .catalog-callout {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

}