@charset "utf-8";

/* CSY electronic component directory */
#csy-products {
    color: #263955;
    background: #ffffff;
}

#csy-products .csy-products-intro *,
#csy-products .csy-product-catalog *,
#csy-products .csy-product-catalog-cta * {
    box-sizing: border-box;
}

/* Compact page introduction and category shortcuts */
.csy-products-intro {
    padding: 30px 0 24px;
    background: #f7f9fd;
    border-bottom: 1px solid #e3eaf5;
}

.csy-products-intro-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.csy-products-intro-text {
    min-width: 0;
    flex: 1;
}

.csy-products-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #0663de;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.csy-products-intro h1 {
    margin: 0;
    color: #1e2e61;
    font-size: 32px;
    font-weight: 750;
    line-height: 1.25;
}

.csy-products-intro p {
    margin: 9px 0 0;
    color: #63728b;
    font-size: 14px;
    line-height: 1.7;
}

.csy-products-quick-links {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.csy-products-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 185px;
    padding: 12px 15px;
    border: 1px solid #dae4f4;
    border-radius: 10px;
    background: #fff;
    color: #1e2e61;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.csy-products-quick-link:hover {
    border-color: #0663de;
    color: #0663de;
    box-shadow: 0 8px 22px rgba(6, 99, 222, .09);
    transform: translateY(-2px);
}

.csy-products-quick-link > i:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0663de;
    font-size: 17px;
}

.csy-products-quick-link span {
    flex: 1;
    min-width: 0;
}

.csy-products-quick-link strong,
.csy-products-quick-link small {
    display: block;
}

.csy-products-quick-link strong {
    font-size: 14px;
}

.csy-products-quick-link small {
    margin-top: 3px;
    color: #8290a3;
    font-size: 11px;
}

/* Catalog layout */
.csy-product-catalog-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 28px 0 62px;
}

.csy-product-catalog-nav,
.csy-product-catalog-content {
    min-width: 0;
    width: auto;
    float: none !important;
}

.csy-product-catalog-nav {
    position: sticky;
    top: 70px;
    padding: 20px;
    border: 1px solid #dfe7f3;
    border-radius: 12px;
    background: #fff;
}

.csy-product-catalog-nav h2 {
    margin: 0 0 15px;
    color: #1e2e61;
    font-size: 17px;
    line-height: 1.45;
}

/* Local category search */
.csy-product-catalog-search {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 16px;
    border: 1px solid #dce5f2;
    border-radius: 7px;
    background: #f7faff;
}

.csy-product-catalog-search:focus-within {
    border-color: #0663de;
}

.csy-product-catalog-search input {
    flex: 1;
    width: 1%;
    height: 44px;
    padding: 0 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #263955;
    font-size: 13px;
}

.csy-product-catalog-search button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #0663de;
    color: #fff;
    cursor: pointer;
}

.csy-product-catalog-search button:hover {
    background: #1e2e61;
}

.csy-product-search-results {
    position: absolute;
    z-index: 50;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    display: none;
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(19, 46, 97, .12);
}

.csy-product-search-results.csy-show {
    display: block;
}

.csy-product-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border-bottom: 1px solid #eef1f7;
    color: #263955;
    text-decoration: none;
}

.csy-product-search-result:hover {
    background: #eff5ff;
    color: #0663de;
}

.csy-product-search-result span {
    min-width: 0;
}

.csy-product-search-result strong,
.csy-product-search-result em {
    display: block;
}

.csy-product-search-result strong {
    font-size: 13px;
    line-height: 1.5;
}

.csy-product-search-result em {
    color: #8693a6;
    font-size: 11px;
    font-style: normal;
}

.csy-product-search-result i {
    color: #0663de;
}

.csy-product-search-empty,
.csy-product-category-empty {
    padding: 18px;
    color: #7b8aa0;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* Sticky category index */
.csy-product-catalog-nav ul {
    max-height: 560px;
    margin: 0;
    padding: 0 4px 0 0;
    overflow-y: auto;
    list-style: none;
}

.csy-product-catalog-nav li {
    margin-bottom: 4px;
}

.csy-product-catalog-nav li a {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    color: #52647e;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.csy-product-catalog-nav li a:hover,
.csy-product-catalog-nav li a.csy-active {
    background: #0663de;
    color: #fff;
}

/* Loaded category tree */
.csy-product-category {
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid #e0e7f2;
    border-radius: 11px;
    background: #fff;
    scroll-margin-top: 115px;
}

.csy-product-category-title {
    margin: 0;
    padding: 16px 22px;
    border-bottom: 1px solid #e2eaf5;
    background: #f4f7fd;
}

.csy-product-category-title a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #1e2e61;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.csy-product-category-title a:hover {
    color: #0663de;
}

.csy-product-link-icon {
    color: #0663de;
    font-size: 13px;
}

.csy-product-category-content {
    margin: 0;
}

.csy-product-subcategory {
    padding: 19px 22px;
    border-bottom: 1px solid #edf1f6;
}

.csy-product-subcategory:last-child {
    border-bottom: 0;
}

.csy-product-subcategory-head {
    margin-bottom: 11px;
}

.csy-product-subcategory-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1e2e61;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.csy-product-subcategory-name:hover {
    color: #0663de;
}

.csy-product-subcategory-links {
    column-count: 3;
    column-gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.csy-product-subcategory-links li {
    margin: 0 0 8px;
    break-inside: avoid;
}

.csy-product-subcategory-links li a {
    color: #5d6c81;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.csy-product-subcategory-links li a:hover {
    color: #0663de;
    text-decoration: underline;
}

/* Sourcing action area */
.csy-product-catalog-cta {
    padding: 0 0 66px;
}

.csy-product-catalog-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 38px;
    border-radius: 12px;
    background: #1e2e61;
}

.csy-product-catalog-cta-copy {
    min-width: 0;
    flex: 1;
}

.csy-product-catalog-cta-copy > span {
    color: #9cc7ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.csy-product-catalog-cta-copy h2 {
    margin: 9px 0 8px;
    color: #fff;
    font-size: 25px;
    line-height: 1.35;
}

.csy-product-catalog-cta-copy p {
    margin: 0;
    color: #d9e4f7;
    font-size: 13px;
    line-height: 1.7;
}

.csy-product-catalog-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.csy-product-catalog-cta-primary,
.csy-product-catalog-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.csy-product-catalog-cta-primary {
    background: #0663de;
    color: #fff;
}

.csy-product-catalog-cta-primary:hover {
    background: #237efa;
    color: #fff;
}

.csy-product-catalog-cta-secondary {
    border: 1px solid rgba(255, 255, 255, .48);
    color: #fff;
}

.csy-product-catalog-cta-secondary:hover {
    background: #fff;
    color: #1e2e61;
}

@media (max-width: 991px) {
    .csy-products-intro-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .csy-product-catalog-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 18px;
    }

    .csy-product-catalog-nav {
        padding: 15px;
    }

    .csy-product-subcategory-links {
        column-count: 2;
    }

    .csy-product-catalog-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .csy-products-intro {
        padding: 22px 0;
    }

    .csy-products-intro h1 {
        font-size: 26px;
    }

    .csy-products-quick-links {
        width: 100%;
    }

    .csy-products-quick-link {
        flex: 1;
        min-width: 0;
        padding: 10px;
    }

    .csy-products-quick-link small {
        display: none;
    }

    .csy-product-catalog-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 0 38px;
    }

    .csy-product-catalog-nav {
        position: static;
    }

    .csy-product-catalog-nav ul {
        display: flex;
        gap: 6px;
        max-height: 180px;
        flex-wrap: wrap;
    }

    .csy-product-catalog-nav li a {
        border: 1px solid #e3eaf5;
        padding: 7px 10px;
        font-size: 12px;
    }

    .csy-product-category-title {
        padding: 13px 16px;
    }

    .csy-product-category-title a {
        font-size: 16px;
    }

    .csy-product-subcategory {
        padding: 15px 16px;
    }

    .csy-product-subcategory-links {
        column-count: 1;
    }

    .csy-product-catalog-cta-inner {
        padding: 25px 20px;
    }

    .csy-product-catalog-cta-copy h2 {
        font-size: 21px;
    }

    .csy-product-catalog-cta-actions {
        width: 100%;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csy-products-quick-link,
    .csy-product-catalog-nav li a {
        transition: none;
    }
}
