﻿@charset "utf-8";

/* =========================================================
   Winsun Category Directory
   Winsun Palette: #0000ff / #042858 / #28cbe8 / #00c6bc
========================================================= */

.ws-category-directory,
.ws-category-brands,
.ws-source-banner {
    box-sizing: border-box;
}

    .ws-category-directory *,
    .ws-category-brands *,
    .ws-source-banner * {
        box-sizing: border-box;
    }


/* Category heading */

.ws-category-directory {
    padding: 34px 0 38px;
}

.ws-category-directory-head {
    max-width: 980px;
    margin-bottom: 22px;
}

    .ws-category-directory-head > span {
        display: block;
        margin-bottom: 5px;
        color: #0000ff;
        font-size: 14px;
        line-height: 22px;
        font-weight: 600;
        letter-spacing: .8px;
    }

    .ws-category-directory-head h1 {
        margin: 0;
        padding-left: 14px;
        position: relative;
        color: #111827;
        font-size: 30px;
        line-height: 40px;
        font-weight: 600;
    }

        .ws-category-directory-head h1::before {
            content: "";
            position: absolute;
            top: 8px;
            left: 0;
            width: 4px;
            height: 24px;
            border-radius: 4px;
            background: #0000ff;
        }

    .ws-category-directory-head p {
        max-width: 960px;
        margin: 8px 0 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 23px;
    }


/* Channel-style category directory */

.ws-category-directory-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ws-category-directory-item {
    min-width: 0;
    margin: 0;
    padding: 16px 18px 14px;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 35, 70, .04);
}

    .ws-category-directory-item:hover {
        border-color: #d7e7f2;
    }

.ws-category-directory-link {
    min-height: 0;
    width: auto;
    max-width: 100%;
    padding: 9px 38px 9px 16px;
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7e7f2;
    border-radius: 9px;
    background: #f3f8ff;
    color: #0000ff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-decoration: none;
}

    .ws-category-directory-link::before {
        content: "";
        width: 4px;
        height: 18px;
        margin-right: 10px;
        flex: 0 0 4px;
        border-radius: 3px;
        background: #0000ff;
    }

    .ws-category-directory-link::after {
        content: "›";
        position: absolute;
        top: 50%;
        right: 14px;
        color: #9ca3af;
        font-size: 18px;
        line-height: 18px;
        transform: translateY(-50%);
    }

    .ws-category-directory-link:hover {
        color: #0000ff;
        border-color: #d7e7f2;
        background: #f3f8ff;
    }

        .ws-category-directory-link:hover::after {
            color: #0000ff;
        }

.ws-category-directory-body {
    padding-top: 14px;
}

.ws-category-directory-children {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 34px;
}

    .ws-category-directory-children > li {
        margin: 0;
        padding: 0;
        border: 0;
        min-width: 0;
    }

        .ws-category-directory-children > li > a {
            min-height: 0;
            padding: 8px 0;
            display: flex;
            align-items: flex-start;
            color: #4b5563;
            font-size: 14px;
            line-height: 22px;
            text-decoration: none;
            border-bottom: 1px solid #eeeeee;
        }

            .ws-category-directory-children > li > a:hover {
                color: #0000ff;
            }

            .ws-category-directory-children > li > a > span {
                margin-right: 8px;
                color: #0000ff;
                line-height: 22px;
            }

        .ws-category-directory-children > li.has-child > a {
            color: #1f2937;
            font-weight: 600;
        }

.ws-category-directory-grandchildren {
    margin: 0;
    padding: 2px 0 2px 16px;
    list-style: none;
}

    .ws-category-directory-grandchildren > li {
        margin: 0;
        padding: 0;
    }

        .ws-category-directory-grandchildren > li > a {
            min-height: 0;
            padding: 6px 0;
            position: relative;
            display: flex;
            align-items: flex-start;
            color: #6b7280;
            font-size: 14px;
            line-height: 21px;
            text-decoration: none;
        }

            .ws-category-directory-grandchildren > li > a:hover {
                color: #0000ff;
            }

            .ws-category-directory-grandchildren > li > a > span {
                margin-right: 6px;
                color: #0000ff;
            }


/* Supported brands */

.ws-category-brands {
    padding: 8px 0 36px;
}

.ws-category-brands-head {
    margin-bottom: 16px;
}

    .ws-category-brands-head > span {
        display: block;
        margin-bottom: 5px;
        color: #0000ff;
        font-size: 14px;
        line-height: 22px;
        font-weight: 600;
        letter-spacing: .7px;
    }

    .ws-category-brands-head h2 {
        margin: 0;
        color: #111827;
        font-size: 24px;
        line-height: 33px;
        font-weight: 600;
    }

    .ws-category-brands-head p {
        margin: 7px 0 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 22px;
    }

.ws-category-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

    .ws-category-brands-grid > a {
        min-height: 78px;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ececec;
        border-radius: 5px;
        background: #fff;
        text-decoration: none;
        transition: border-color .2s ease, transform .2s ease;
    }

        .ws-category-brands-grid > a:hover {
            border-color: #d7e7f2;
            transform: translateY(-2px);
        }

    .ws-category-brands-grid img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 46px;
        object-fit: contain;
    }

/* =========================================================
   RR Product Overview
========================================================= */

.ws-parts-overview {
    width: 96%;
    padding: 30px;
    margin-top: 28px !important;
    margin-bottom: 18px !important;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 8%, rgba(40, 203, 232, .16), transparent 28%),
        linear-gradient(135deg, #f5f8ff 0%, #f1fbfb 58%, #ffffff 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 46px;
    align-items: center;
    box-shadow: 0 14px 36px rgba(25, 70, 130, .05);
}

.ws-parts-overview-main {
    min-width: 0;
}

.ws-parts-overview-title {
    margin-bottom: 16px;
}

.ws-parts-overview-title > span {
    display: inline-flex;
    min-height: 28px;
    padding: 4px 11px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eef9fb;
    color: #0000ff;
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .9px;
}

.ws-parts-overview-title h1 {
    position: relative;
    margin: 0;
    padding-left: 17px;
    color: #111827;
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.ws-parts-overview-title h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 27px;
    border-radius: 5px;
    background: linear-gradient(180deg, #28cbe8 0%, #0000ff 100%);
}

.ws-parts-overview-copy {
    max-width: 850px;
    color: #68758a;
    font-size: 14px;
    line-height: 23px;
}

.ws-parts-overview-copy p {
    margin: 0 0 8px;
}

.ws-parts-overview-copy p:last-child {
    margin-bottom: 0;
}

.ws-parts-overview-side {
    display: grid;
    gap: 10px;
}

.ws-parts-overview-chip {
    min-height: 64px;
    padding: 11px 14px;
    border: 1px solid #dce9ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
    display: flex;
    align-items: center;
    gap: 13px;
    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.ws-parts-overview-chip:hover {
    border-color: #9fdfe6;
    transform: translateX(-3px);
    box-shadow: 0 10px 24px rgba(10, 94, 243, .07);
}

.ws-parts-overview-chip > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eefbfc, #d9f3f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0000ff;
    font-size: 16px;
}

.ws-parts-overview-chip > div {
    min-width: 0;
}

.ws-parts-overview-chip strong,
.ws-parts-overview-chip span {
    display: block;
}

.ws-parts-overview-chip strong {
    margin-bottom: 2px;
    color: #253247;
    font-size: 13px;
    line-height: 19px;
    font-weight: 700;
}

.ws-parts-overview-chip span {
    color: #8190a5;
    font-size: 12px;
    line-height: 18px;
}


/* =========================================================
   RR Sourcing Panel
========================================================= */

.ws-source-panel {
    width: 100%;
    padding: 12px 0 54px;
}

.ws-source-panel-inner {
    position: relative;
    overflow: hidden;
    padding: 34px 36px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 78% 4%, rgba(40, 203, 232, .24), transparent 27%),
        linear-gradient(135deg, #042858 0%, #000087 55%, #0000ff 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 50px;
    align-items: center;
    box-shadow: 0 20px 48px rgba(8, 44, 102, .18);
}

.ws-source-panel-inner::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border: 34px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
}

.ws-source-panel-copy,
.ws-source-panel-actions {
    position: relative;
    z-index: 2;
}

.ws-source-panel-copy > span {
    display: block;
    margin-bottom: 8px;
    color: #8fe6ea;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ws-source-panel-copy h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    line-height: 34px;
    font-weight: 700;
}

.ws-source-panel-copy p {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 23px;
}

.ws-source-panel-notes {
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.ws-source-panel-notes span {
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 18px;
}

.ws-source-panel-notes i {
    margin-right: 6px;
    color: #28cbe8;
}

.ws-source-panel-actions {
    display: grid;
    gap: 10px;
}

.ws-source-panel-primary,
.ws-source-panel-secondary {
    min-height: 64px;
    padding: 10px 14px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.ws-source-panel-primary {
    border: 1px solid #fff;
    background: #fff;
    color: #0000ff;
}

.ws-source-panel-secondary {
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.ws-source-panel-primary:hover,
.ws-source-panel-secondary:hover {
    transform: translateX(4px);
}

.ws-source-panel-primary:hover {
    color: #042858;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.ws-source-panel-secondary:hover {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.ws-source-panel-primary > i:first-child,
.ws-source-panel-secondary > i:first-child {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ws-source-panel-primary > i:first-child {
    background: #edf5ff;
    color: #0000ff;
}

.ws-source-panel-secondary > i:first-child {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.ws-source-panel-primary small,
.ws-source-panel-primary strong,
.ws-source-panel-secondary small,
.ws-source-panel-secondary strong {
    display: block;
}

.ws-source-panel-primary small,
.ws-source-panel-secondary small {
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 400;
}

.ws-source-panel-primary small {
    color: #8a96a8;
}

.ws-source-panel-secondary small {
    color: rgba(255, 255, 255, .62);
}

.ws-source-panel-primary strong,
.ws-source-panel-secondary strong {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.ws-source-panel-primary > i:last-child,
.ws-source-panel-secondary > i:last-child {
    font-size: 16px;
}


@media screen and (max-width: 1100px) {

    .ws-parts-overview {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 30px;
    }

    .ws-source-panel-inner {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 34px;
    }
}

@media screen and (max-width: 767px) {

    /* =====================================================
       Category Directory
    ===================================================== */

    .ws-category-directory {
        width: 94%;
        padding: 24px 0 30px;
    }

    .ws-category-directory-head {
        max-width: 100%;
        margin-bottom: 18px;
    }

    .ws-category-directory-head > span {
        margin-bottom: 4px;
        font-size: 12px;
        line-height: 18px;
    }

    .ws-category-directory-head h1 {
        padding-left: 12px;
        font-size: 24px;
        line-height: 32px;
    }

    .ws-category-directory-head h1::before {
        top: 5px;
        width: 4px;
        height: 22px;
    }

    .ws-category-directory-head p {
        margin-top: 7px;
        font-size: 13px;
        line-height: 21px;
    }

    .ws-category-directory-grid {
        gap: 10px;
    }

    .ws-category-directory-item {
        width: 100%;
        padding: 13px 12px 12px;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(15, 35, 70, .035);
    }

    .ws-category-directory-link {
        width: 100%;
        max-width: 100%;
        min-height: 42px;
        padding: 8px 34px 8px 12px;
        display: flex;
        border-radius: 8px;
        font-size: 15px;
        line-height: 22px;
    }

    .ws-category-directory-link::before {
        width: 3px;
        height: 17px;
        margin-right: 8px;
        flex: 0 0 3px;
    }

    .ws-category-directory-link::after {
        right: 12px;
        font-size: 17px;
    }

    .ws-category-directory-body {
        padding-top: 9px;
    }

    /*
     * Mobile must be one column.
     * Three columns make long electronic category names unreadable.
     */
    .ws-category-directory-children {
        display: block;
        width: 100%;
    }

    .ws-category-directory-children > li {
        width: 100%;
        min-width: 0;
    }

    .ws-category-directory-children > li > a {
        width: 100%;
        min-height: 38px;
        padding: 8px 4px;
        align-items: flex-start;
        border-bottom: 1px solid #edf1f6;
        color: #465468;
        font-size: 14px;
        line-height: 21px;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .ws-category-directory-children > li > a > span {
        flex: 0 0 auto;
        margin-right: 7px;
        line-height: 21px;
    }

    .ws-category-directory-children > li.has-child > a {
        color: #263449;
        font-weight: 600;
    }

    .ws-category-directory-grandchildren {
        padding: 2px 0 5px 16px;
    }

    .ws-category-directory-grandchildren > li > a {
        width: 100%;
        padding: 6px 0;
        color: #6b778a;
        font-size: 13px;
        line-height: 20px;
        overflow-wrap: anywhere;
    }

    .ws-category-directory-grandchildren > li > a > span {
        flex: 0 0 auto;
        margin-right: 6px;
    }


    /* =====================================================
       Supported Brands
    ===================================================== */

    .ws-category-brands {
        width: 94%;
        padding: 4px 0 28px;
    }

    .ws-category-brands-head {
        margin-bottom: 13px;
    }

    .ws-category-brands-head > span {
        font-size: 12px;
        line-height: 18px;
    }

    .ws-category-brands-head h2 {
        font-size: 21px;
        line-height: 29px;
    }

    .ws-category-brands-head p {
        font-size: 13px;
        line-height: 20px;
    }

    .ws-category-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .ws-category-brands-grid > a {
        min-height: 64px;
        padding: 9px;
    }

    .ws-category-brands-grid img {
        max-height: 36px;
    }


    /* =====================================================
       Product Overview
    ===================================================== */

    .ws-parts-overview {
        width: 94%;
        padding: 20px 16px;
        margin-top: 20px !important;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 13px;
    }

    .ws-parts-overview-title h1 {
        padding-left: 13px;
        font-size: 24px;
        line-height: 33px;
    }

    .ws-parts-overview-title h1::before {
        top: 6px;
        width: 4px;
        height: 22px;
    }

    .ws-parts-overview-side {
        gap: 8px;
    }

    .ws-parts-overview-chip {
        min-height: 58px;
    }


    /* =====================================================
       Sourcing Panel
    ===================================================== */

    .ws-source-panel {
        padding-bottom: 40px;
    }

    .ws-source-panel .container {
        width: 94%;
    }

    .ws-source-panel-inner {
        padding: 25px 18px;
        grid-template-columns: 1fr;
        gap: 24px;
        border-radius: 14px;
    }

    .ws-source-panel-copy h2 {
        font-size: 21px;
        line-height: 29px;
    }

    .ws-source-panel-notes {
        display: grid;
        gap: 7px;
    }

    .ws-source-panel-actions {
        gap: 8px;
    }

    .ws-source-panel-primary,
    .ws-source-panel-secondary {
        min-height: 58px;
        padding: 9px 12px;
        grid-template-columns: 34px minmax(0, 1fr) 16px;
        gap: 10px;
    }

    .ws-source-panel-primary > i:first-child,
    .ws-source-panel-secondary > i:first-child {
        width: 34px;
        height: 34px;
    }
}


/* Winsun homepage-matched blue / cyan accents */

.ws-parts-overview-chip:nth-child(1) > i {
    background: #eefbfc;
    color: #00a9a0;
}

.ws-parts-overview-chip:nth-child(2) > i {
    background: #f1f3ff;
    color: #0000ff;
}

.ws-parts-overview-chip:nth-child(3) > i {
    background: linear-gradient(135deg, #eefbfc 0%, #eef2ff 100%);
    color: #042858;
}

.ws-parts-overview-chip:nth-child(1):hover {
    border-color: rgba(0, 198, 188, .35);
}

.ws-parts-overview-chip:nth-child(2):hover {
    border-color: rgba(0, 0, 255, .24);
}

.ws-parts-overview-chip:nth-child(3):hover {
    border-color: rgba(40, 203, 232, .42);
}

.ws-category-custom-content {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #dce7ef;
    color: #68758a;
}

.ws-category-custom-content > :first-child {
    margin-top: 0;
}

.ws-category-custom-content > :last-child {
    margin-bottom: 0;
}

.ws-category-directory-item:nth-child(odd) .ws-category-directory-link {
    border-color: rgba(0, 0, 255, .14);
    background: #f3f5ff;
    color: #0000ff;
}

.ws-category-directory-item:nth-child(even) .ws-category-directory-link {
    border-color: rgba(0, 198, 188, .20);
    background: #f1fbfb;
    color: #00a9a0;
}

.ws-category-directory-item:nth-child(odd) .ws-category-directory-link::before {
    background: #28cbe8;
}

.ws-category-directory-item:nth-child(even) .ws-category-directory-link::before {
    background: #00c6bc;
}

.ws-category-directory-item:nth-child(odd) .ws-category-directory-link:hover {
    border-color: #0000ff;
    background: #0000ff;
    color: #fff;
}

.ws-category-directory-item:nth-child(even) .ws-category-directory-link:hover {
    border-color: #00c6bc;
    background: #00c6bc;
    color: #fff;
}

.ws-category-directory-item .ws-category-directory-link:hover::after {
    color: #fff;
}

.ws-source-panel-primary {
    color: #0000ff;
}

.ws-source-panel-primary > i:first-child {
    background: #eefbfc;
    color: #00a9a0;
}

.ws-source-panel-notes i {
    color: #28cbe8;
}

