﻿/* =========================================================
   Goods Category Head
   Primary Color: #f7b901
   Secondary Color: #0e5aa4
========================================================= */

.goods-category-head {
    width: 98%;
    padding: 42px 0 26px;
}

.goods-category-title {
    width: 100%;
    max-width: 980px;
    margin-bottom: 18px;
}

.goods-category-title > span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 11px;
    padding: 5px 14px;
    border: 1px solid rgba(247, 185, 1, 0.42);
    border-radius: 999px;
    background: #fffaf0;
    color: #0e5aa4;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.goods-category-title h1,
.goods-category-head h1 {
    position: relative;
    margin: 0 0 12px;
    padding-left: 16px;
    color: #14243b;
    font-size: 2rem;
    line-height: 42px;
    font-weight: 800;
}

.goods-category-title h1::before,
.goods-category-head h1::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: #f7b901;
}

.goods-category-content {
    max-width: 1080px;
    color: #555555;
    font-size: 0.98rem;
    line-height: 28px;
}

.goods-category-content p {
    margin: 0 0 12px;
}

.goods-category-content p:last-child {
    margin-bottom: 0;
}

.goods-category-content a {
    color: #0e5aa4;
    text-decoration: underline;
    transition: color 0.25s ease;
}

.goods-category-content a:hover {
    color: #f7b901;
}

.goods-category-content ul,
.goods-category-content ol {
    margin: 12px 0;
    padding-left: 22px;
}

.goods-category-content ul {
    list-style: disc;
}

.goods-category-content ol {
    list-style: decimal;
}

.goods-category-content li {
    margin-bottom: 6px;
}


/* =========================================================
   Parts List Table
========================================================= */

.parts-list {
    width: 98%;
    padding: 10px 0 60px;
}

.parts-list .jss187 {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #dce7f3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(14, 90, 164, 0.08);
}

.parts-list table {
    width: 100%;
    min-width: 1250px;
    border-spacing: 0;
    border-collapse: separate;
    background: #ffffff;
}

.parts-list table th,
.parts-list table td {
    box-sizing: border-box;
}

.parts-list table thead {
    background: linear-gradient(
        180deg,
        #f7faff 0%,
        #edf5fc 100%
    );
}

.parts-list table th {
    padding: 15px 14px;
    border-bottom: 1px solid #dce7f3;
    background: linear-gradient(
        180deg,
        #f7faff 0%,
        #edf5fc 100%
    );
    color: #14243b;
    font-size: 0.92rem;
    line-height: 22px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.parts-list table th.th-photo {
    width: 115px;
    min-width: 115px;
    max-width: 115px;
    text-align: center;
}

.parts-list table th.th-part {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}

.parts-list table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e3eaf2;
    background: #ffffff;
    color: #44566c;
    font-size: 0.9rem;
    line-height: 23px;
    vertical-align: middle;
}

.parts-list table tbody tr {
    transition: background-color 0.25s ease;
}

.parts-list table tbody tr:hover {
    background: #fffaf0;
}

.parts-list table tbody tr:hover td {
    background: #fffaf0;
}

.parts-list table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   Product Photo
========================================================= */

.parts-list td.image {
    width: 115px;
    min-width: 115px;
    max-width: 115px;
    text-align: center;
}

.parts-list td.image a {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    background: #ffffff;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.parts-list td.image a:hover {
    border-color: #f7b901;
    box-shadow: 0 10px 22px rgba(14, 90, 164, 0.12);
    transform: translateY(-2px);
}

.parts-list td.image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* =========================================================
   Part Information
========================================================= */

.parts-list td.parts {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}

.parts-list td.parts h2 {
    max-width: 230px;
    margin: 0 0 7px;
    overflow: hidden;
    color: #14243b;
    font-size: 1rem;
    line-height: 24px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.parts-list td.parts h2 a {
    color: #14243b;
    text-decoration: none;
    transition: color 0.25s ease;
}

.parts-list td.parts h2 a:hover {
    color: #f7b901;
}

.parts-list td.parts p {
    max-width: 230px;
    margin: 0 0 5px;
    overflow: hidden;
    color: #667085;
    font-size: 0.86rem;
    line-height: 21px;
    text-overflow: ellipsis;
}

.parts-list td.parts p:last-child {
    margin-bottom: 0;
}

.parts-list td.parts p a {
    color: #0e5aa4;
    text-decoration: none;
    transition: color 0.25s ease;
}

.parts-list td.parts p a:hover {
    color: #f7b901;
    text-decoration: underline;
}


/* =========================================================
   Stock and Price
========================================================= */

.parts-list td.stock {
    color: #14243b;
    font-weight: 600;
    white-space: nowrap;
}

.parts-list td.price {
    color: #0e5aa4;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   Quantity and RFQ
========================================================= */

.parts-list td.quantity {
    min-width: 130px;
}

.parts-list .selectnum {
    width: 100%;
    margin-bottom: 8px;
}

.parts-list .selectnum input {
    width: 86px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dce7f3;
    border-radius: 8px;
    outline: none;
    background: #f7faff;
    color: #14243b;
    font-size: 0.9rem;
    line-height: 36px;
    text-align: center;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.parts-list .selectnum input:focus {
    border-color: #0e5aa4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 90, 164, 0.12);
}

.parts-list .selectbtn .view {
    width: 86px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #0e5aa4 0%,
        #2879c4 100%
    );
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(14, 90, 164, 0.16);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.parts-list .selectbtn .view:hover {
    background: #f7b901;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(247, 185, 1, 0.24);
    transform: translateY(-2px);
}


/* =========================================================
   PDF Link
========================================================= */

.parts-list td.pdf-cell {
    min-width: 130px;
}

.parts-list .pdf-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #dce7f3;
    border-radius: 8px;
    background: #f3f8fd;
    color: #0e5aa4;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.parts-list .pdf-link i {
    color: #0e5aa4;
    font-size: 1rem;
    transition: color 0.25s ease;
}

.parts-list .pdf-link:hover {
    border-color: #0e5aa4;
    background: #0e5aa4;
    color: #ffffff;
    transform: translateY(-2px);
}

.parts-list .pdf-link:hover i {
    color: #ffffff;
}


/* =========================================================
   Specification Columns
========================================================= */

.parts-list td.spec {
    min-width: 120px;
    color: #44566c;
}


/* =========================================================
   Desktop Sticky Columns
========================================================= */

@media (min-width: 769px) {
    .parts-list table th.th-photo,
    .parts-list table td.image {
        position: sticky;
        left: 0;
        z-index: 20;
        width: 115px;
        min-width: 115px;
        max-width: 115px;
        background: #ffffff;
    }

    .parts-list table th.th-part,
    .parts-list table td.parts {
        position: sticky;
        left: 115px;
        z-index: 20;
        width: 260px;
        min-width: 260px;
        max-width: 260px;
        background: #ffffff;
        box-shadow: 8px 0 14px rgba(14, 90, 164, 0.08);
    }

    .parts-list table thead th.th-photo,
    .parts-list table thead th.th-part {
        z-index: 30;
        background: linear-gradient(
            180deg,
            #f7faff 0%,
            #edf5fc 100%
        );
    }

    .parts-list table tbody tr:hover td.image,
    .parts-list table tbody tr:hover td.parts {
        background: #fffaf0;
    }
}


/* =========================================================
   Fixed Cloned Table Header
========================================================= */

#partsFixedThead {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9997;
    display: none;
    overflow: hidden;
    border: 1px solid #dce7f3;
    border-bottom: none;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(14, 90, 164, 0.14);
    pointer-events: none;
}

#partsFixedThead .parts-fixed-scroll {
    width: 100%;
    overflow: hidden;
}

#partsFixedThead table {
    width: 100%;
    min-width: 1250px;
    border-spacing: 0;
    border-collapse: separate;
    background: #ffffff;
}

#partsFixedThead thead {
    background: linear-gradient(
        180deg,
        #f7faff 0%,
        #edf5fc 100%
    );
}

#partsFixedThead th {
    box-sizing: border-box;
    padding: 15px 14px;
    border-bottom: 1px solid #dce7f3;
    background: linear-gradient(
        180deg,
        #f7faff 0%,
        #edf5fc 100%
    );
    color: #14243b;
    font-size: 0.92rem;
    line-height: 22px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

#partsFixedThead th.th-photo {
    position: sticky;
    left: 0;
    z-index: 60;
    width: 115px;
    min-width: 115px;
    max-width: 115px;
    background: linear-gradient(
        180deg,
        #f7faff 0%,
        #edf5fc 100%
    );
    text-align: center;
}

#partsFixedThead th.th-part {
    position: sticky;
    left: 115px;
    z-index: 60;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    background: linear-gradient(
        180deg,
        #f7faff 0%,
        #edf5fc 100%
    );
    box-shadow: 8px 0 14px rgba(14, 90, 164, 0.08);
}


/* =========================================================
   Sticky Bottom Scrollbar
========================================================= */

#partsStickyScrollbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    display: none;
    height: 20px;
    padding: 4px 0;
    border-top: 1px solid #dce7f3;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -8px 22px rgba(14, 90, 164, 0.10);
    backdrop-filter: blur(6px);
}

#partsStickyScrollbar .psb-track {
    width: calc(100% - 40px);
    height: 12px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
}

#partsStickyScrollbar .psb-spacer {
    height: 1px;
}

#partsStickyScrollbar .psb-track::-webkit-scrollbar {
    height: 8px;
}

#partsStickyScrollbar .psb-track::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #edf5fc;
}

#partsStickyScrollbar .psb-track::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #8fb8dc;
}

#partsStickyScrollbar .psb-track::-webkit-scrollbar-thumb:hover {
    background: #0e5aa4;
}


/* =========================================================
   Table Scrollbar
========================================================= */

.parts-list .jss187::-webkit-scrollbar {
    height: 8px;
}

.parts-list .jss187::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #edf5fc;
}

.parts-list .jss187::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #8fb8dc;
}

.parts-list .jss187::-webkit-scrollbar-thumb:hover {
    background: #0e5aa4;
}


/* =========================================================
   Goods List Sourcing CTA
========================================================= */

.goods-list-cta {
    width: 100%;
    padding: 0 0 72px;
}

.goods-list-cta-inner {
    position: relative;
    width: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 46px;
    padding: 42px 48px;
    overflow: hidden;
    border: 1px solid #dce7f3;
    border-radius: 22px;
    background: linear-gradient(
        135deg,
        #f7faff 0%,
        #ffffff 56%,
        #fffaf0 100%
    );
    box-shadow: 0 18px 46px rgba(14, 90, 164, 0.10);
}

.goods-list-cta-inner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        #f7b901 0%,
        #f7b901 32%,
        #0e5aa4 100%
    );
}

.goods-list-cta-inner::after {
    content: "";
    position: absolute;
    right: -95px;
    bottom: -130px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(14, 90, 164, 0.05);
}

.goods-list-cta-text {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    max-width: 830px;
}

.goods-list-cta-text > span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 13px;
    padding: 5px 14px;
    border: 1px solid rgba(247, 185, 1, 0.42);
    border-radius: 999px;
    background: #fffaf0;
    color: #0e5aa4;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.goods-list-cta-text h2 {
    margin: 0 0 14px;
    color: #101d33;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 800;
}

.goods-list-cta-text p {
    margin: 0;
    color: #52677f;
    font-size: 15px;
    line-height: 1.85;
}

.goods-list-cta-actions {
    position: relative;
    z-index: 2;
    flex: 0 0 250px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goods-list-cta-primary,
.goods-list-cta-secondary {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 24px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.goods-list-cta-primary {
    border: 1px solid #f7b901;
    background: #f7b901;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(247, 185, 1, 0.25);
}

.goods-list-cta-primary:hover {
    border-color: #0e5aa4;
    background: #0e5aa4;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(14, 90, 164, 0.22);
    transform: translateY(-2px);
}

.goods-list-cta-secondary {
    border: 1px solid #cdddeb;
    background: #ffffff;
    color: #0e5aa4;
}

.goods-list-cta-secondary:hover {
    border-color: #0e5aa4;
    background: #f3f8fd;
    color: #0e5aa4;
    box-shadow: 0 10px 22px rgba(14, 90, 164, 0.10);
    transform: translateY(-2px);
}

.goods-list-cta-primary i,
.goods-list-cta-secondary i {
    font-size: 16px;
}


/* =========================================================
   Mobile Layout
========================================================= */

@media (max-width: 768px) {
    .goods-category-head {
        width: 94%;
        padding: 30px 0 18px;
    }

    .goods-category-title {
        margin-bottom: 14px;
    }

    .goods-category-title > span {
        min-height: 28px;
        margin-bottom: 9px;
        padding: 4px 11px;
        font-size: 10px;
        line-height: 18px;
        letter-spacing: 0.9px;
    }

    .goods-category-title h1,
    .goods-category-head h1 {
        margin-bottom: 10px;
        font-size: 1.45rem;
        line-height: 34px;
    }

    .goods-category-title h1::before,
    .goods-category-head h1::before {
        top: 8px;
        height: 18px;
    }

    .goods-category-content {
        font-size: 0.9rem;
        line-height: 25px;
    }

    .goods-category-content p {
        margin-bottom: 10px;
    }

    .parts-list {
        width: 94%;
        padding: 8px 0 42px;
    }

    .parts-list .jss187 {
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 12px;
    }

    .parts-list table {
        min-width: 1100px;
    }

    .parts-list table th {
        padding: 12px 10px;
        font-size: 0.84rem;
    }

    .parts-list table td {
        padding: 12px 10px;
        font-size: 0.82rem;
        line-height: 21px;
    }

    .parts-list td.image a {
        width: 72px;
        height: 72px;
        border-radius: 10px;
    }

    .parts-list td.image a:hover {
        transform: none;
    }

    .parts-list td.parts h2 {
        font-size: 0.92rem;
        line-height: 22px;
    }

    .parts-list td.parts p {
        font-size: 0.8rem;
        line-height: 20px;
    }

    .parts-list .selectnum input,
    .parts-list .selectbtn .view {
        width: 78px;
        height: 34px;
        font-size: 0.82rem;
        line-height: 34px;
    }

    .parts-list .selectbtn .view:hover {
        transform: none;
    }

    .parts-list .pdf-link {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .parts-list .pdf-link:hover {
        transform: none;
    }

    #partsStickyScrollbar {
        display: none !important;
    }

    #partsFixedThead {
        display: none !important;
    }

    .parts-list table thead th,
    .parts-list table th.th-photo,
    .parts-list table th.th-part,
    .parts-list table td.image,
    .parts-list table td.parts {
        position: static;
        top: auto;
        left: auto;
        z-index: auto;
        box-shadow: none;
    }

    .goods-list-cta {
        padding: 0 0 46px;
    }

    .goods-list-cta-inner {
        min-height: 0;
        display: block;
        padding: 34px 20px 26px;
        border-radius: 17px;
    }

    .goods-list-cta-inner::after {
        right: -130px;
        bottom: -160px;
    }

    .goods-list-cta-text > span {
        min-height: 28px;
        margin-bottom: 11px;
        padding: 4px 11px;
        font-size: 10px;
        line-height: 18px;
        letter-spacing: 0.9px;
    }

    .goods-list-cta-text h2 {
        margin-bottom: 12px;
        font-size: 23px;
        line-height: 1.45;
    }

    .goods-list-cta-text p {
        font-size: 14px;
        line-height: 1.8;
    }

    .goods-list-cta-actions {
        width: 100%;
        margin-top: 24px;
    }

    .goods-list-cta-primary,
    .goods-list-cta-secondary {
        min-height: 48px;
        padding: 11px 16px;
        font-size: 14px;
    }

    .goods-list-cta-primary:hover,
    .goods-list-cta-secondary:hover {
        transform: none;
    }
}