﻿@charset "utf-8";

/* =========================================================
   JIEXIN Category Directory
   Primary: #0a5ef3
   Accent:  #ff5733
========================================================= */

.jx-subcat,
.jx-cat-brands,
.jx-source-banner {
    box-sizing: border-box;
}

    .jx-subcat *,
    .jx-cat-brands *,
    .jx-source-banner * {
        box-sizing: border-box;
    }


/* Category heading */

.jx-subcat {
    padding: 34px 0 38px;
}

.jx-subcat-head {
    max-width: 980px;
    margin-bottom: 22px;
}

    .jx-subcat-head > span {
        display: block;
        margin-bottom: 5px;
        color: #ff5733;
        font-size: 14px;
        line-height: 22px;
        font-weight: 600;
        letter-spacing: .8px;
    }

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

        .jx-subcat-head h1::before {
            content: "";
            position: absolute;
            top: 8px;
            left: 0;
            width: 4px;
            height: 24px;
            border-radius: 4px;
            background: #ff5733;
        }

    .jx-subcat-head p {
        max-width: 960px;
        margin: 8px 0 0;
        color: #667085;
        font-size: 14px;
        line-height: 23px;
    }


/* Channel-style category directory */

.jx-subcat-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

    .jx-subcat-item:hover {
        border-color: #c7d7f0;
    }

.jx-subcat-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 #d5e2f8;
    border-radius: 9px;
    background: #f5f8ff;
    color: #0a5ef3;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-decoration: none;
}

    .jx-subcat-link::before {
        content: "";
        width: 4px;
        height: 18px;
        margin-right: 10px;
        flex: 0 0 4px;
        border-radius: 3px;
        background: #0a5ef3;
    }

    .jx-subcat-link::after {
        content: "›";
        position: absolute;
        top: 50%;
        right: 14px;
        color: #7d93b2;
        font-size: 18px;
        line-height: 18px;
        transform: translateY(-50%);
    }

    .jx-subcat-link:hover {
        color: #084ed0;
        border-color: #b9cdf7;
        background: #eef4ff;
    }

        .jx-subcat-link:hover::after {
            color: #084ed0;
        }

.jx-subcat-body {
    padding-top: 14px;
}

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

    .jx-subcat-children > li {
        margin: 0;
        padding: 0;
        border: 0;
        min-width: 0;
    }

        .jx-subcat-children > li > a {
            min-height: 0;
            padding: 8px 0;
            display: flex;
            align-items: flex-start;
            color: #355070;
            font-size: 14px;
            line-height: 22px;
            text-decoration: none;
            border-bottom: 1px solid #edf2f7;
        }

            .jx-subcat-children > li > a:hover {
                color: #0a5ef3;
            }

            .jx-subcat-children > li > a > span {
                margin-right: 8px;
                color: #7fa3e9;
                line-height: 22px;
            }

        .jx-subcat-children > li.has-child > a {
            color: #152238;
            font-weight: 600;
        }

.jx-subcat-grandchildren {
    margin: 0;
    padding: 2px 0 2px 16px;
    list-style: none;
}

    .jx-subcat-grandchildren > li {
        margin: 0;
        padding: 0;
    }

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

            .jx-subcat-grandchildren > li > a:hover {
                color: #0a5ef3;
            }

            .jx-subcat-grandchildren > li > a > span {
                margin-right: 6px;
                color: #7fa3e9;
            }


/* Supported brands */

.jx-cat-brands {
    padding: 8px 0 36px;
}

.jx-cat-brands-head {
    margin-bottom: 16px;
}

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

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

    .jx-cat-brands-head p {
        margin: 7px 0 0;
        color: #667085;
        font-size: 14px;
        line-height: 22px;
    }

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

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

        .jx-cat-brands-grid > a:hover {
            border-color: #b8cff9;
            transform: translateY(-2px);
        }

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


/* Shared sourcing banner */

.jx-source-banner {
    width: 100%;
    padding: 0 0 50px;
}

.jx-source-banner-inner {
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid #dce5f0;
    border-left: 4px solid #ff5733;
    border-radius: 7px;
    background: #f5f8ff;
}

.jx-source-banner-copy {
    flex: 1;
    min-width: 0;
    max-width: 900px;
}

    .jx-source-banner-copy > span {
        display: block;
        margin-bottom: 4px;
        color: #ff5733;
        font-size: 14px;
        line-height: 21px;
        font-weight: 600;
        letter-spacing: .6px;
    }

    .jx-source-banner-copy h2 {
        margin: 0;
        color: #172033;
        font-size: 23px;
        line-height: 32px;
        font-weight: 600;
    }

    .jx-source-banner-copy p {
        margin: 7px 0 0;
        color: #667085;
        font-size: 14px;
        line-height: 22px;
    }

.jx-source-banner-actions {
    width: 190px;
    flex: 0 0 190px;
    display: grid;
    gap: 8px;
}

.jx-source-banner-primary,
.jx-source-banner-secondary {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 40px;
    font-weight: 600;
    text-decoration: none;
}

.jx-source-banner-primary {
    border: 1px solid #ff5733;
    background: #ff5733;
    color: #fff;
}

    .jx-source-banner-primary:hover {
        border-color: #e94726;
        background: #e94726;
        color: #fff;
    }

.jx-source-banner-secondary {
    border: 1px solid #bcd0ef;
    background: #fff;
    color: #0a5ef3;
}

    .jx-source-banner-secondary:hover {
        border-color: #0a5ef3;
        background: #f3f7ff;
        color: #0a5ef3;
    }


/* Mobile */

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

    .jx-subcat {
        width: 94%;
        padding: 24px 0 28px;
    }

    .jx-subcat-head {
        margin-bottom: 14px;
    }

        .jx-subcat-head h1 {
            padding-left: 12px;
            font-size: 24px;
            line-height: 33px;
        }

            .jx-subcat-head h1::before {
                top: 6px;
                width: 3px;
                height: 21px;
            }

        .jx-subcat-head p {
            font-size: 14px;
            line-height: 22px;
        }

    .jx-subcat-grid {
        gap: 12px;
    }

    .jx-subcat-item {
        padding: 14px 14px 12px;
        border-radius: 9px;
    }

    .jx-subcat-link {
        width: 100%;
        padding: 8px 34px 8px 14px;
        font-size: 15px;
        line-height: 22px;
    }

        .jx-subcat-link::before {
            height: 16px;
        }

    .jx-subcat-body {
        padding-top: 12px;
    }

    .jx-subcat-children {
        grid-template-columns: 1fr;
        gap: 0;
    }

        .jx-subcat-children > li > a {
            padding: 7px 0;
        }

    .jx-subcat-grandchildren {
        padding-left: 12px;
    }

    .jx-cat-brands {
        width: 94%;
        padding-bottom: 28px;
    }

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

    .jx-source-banner {
        padding-bottom: 38px;
    }

        .jx-source-banner .container {
            width: 94%;
        }

    .jx-source-banner-inner {
        padding: 22px 18px;
        display: block;
    }

    .jx-source-banner-copy h2 {
        font-size: 20px;
        line-height: 29px;
    }

    .jx-source-banner-actions {
        width: 100%;
        margin-top: 18px;
    }
}
