/* ==============================
   CSY Manufacturer Pages
   Colors: #0663de / #1e2e61
   Banner styles are provided by public.css.
============================== */

#brand .csy-brand-feature,
#brand .csy-brand-directory,
#brand .csy-brand-detail {
    color: #202e43;
}

#brand .csy-brand-feature,
#brand .csy-brand-directory {
    padding: 58px 0;
}

#brand .csy-brand-feature {
    background: #fff;
}

#brand .csy-brand-directory {
    background: #f6f9fd;
}

#brand .csy-brand-heading,
#brand .csy-brand-section-head,
#brand .csy-brand-detail-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

#brand .csy-brand-heading > div > span,
#brand .csy-brand-section-head > div > span,
#brand .csy-brand-detail-title > span,
#brand .csy-brand-overview-content > span {
    display: block;
    margin-bottom: 8px;
    color: #0663de;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

#brand .csy-brand-heading h2,
#brand .csy-brand-section-head h2,
#brand .csy-brand-detail-title h2 {
    margin: 0;
    color: #12243e;
    font-size: 30px;
    line-height: 1.35;
}

#brand .csy-brand-heading p,
#brand .csy-brand-section-head p,
#brand .csy-brand-detail-title p {
    max-width: 500px;
    margin: 0;
    color: #66768b;
    font-size: 14px;
    line-height: 1.7;
}

/* Featured brands */

.csy-brand-feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.csy-brand-feature-grid > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 20px 12px;
    border: 1px solid #dfebf5;
    border-radius: 12px;
    background: #fff;
    color: #0663de;
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.csy-brand-feature-grid > a:hover {
    transform: translateY(-4px);
    border-color: #8fc5ed;
    box-shadow: 0 15px 30px rgba(4, 116, 204, .1);
}

.csy-brand-feature-grid img {
    width: 100%;
    height: 76px;
    object-fit: contain;
}

.csy-brand-feature-grid span {
    font-size: 13px;
    font-weight: 600;
}

/* Local search */

.csy-brand-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid #deebf6;
    border-radius: 14px;
    background: #fff;
}

.csy-brand-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    min-width: 0;
    padding: 0 16px;
    border: 1px solid #d4e2ef;
    border-radius: 8px;
    background: #fbfdff;
}

.csy-brand-search-field:focus-within {
    border-color: #0663de;
    box-shadow: 0 0 0 3px rgba(4, 116, 204, .1);
}

.csy-brand-search-field > i {
    color: #0663de;
    font-size: 18px;
}

.csy-brand-search-field input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: none;
    background: transparent;
    color: #1c304b;
    font-size: 14px;
}

.csy-brand-search-field button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #62788c;
    cursor: pointer;
}

.csy-brand-search-field button[hidden],
.csy-brand-search-empty[hidden] {
    display: none;
}

.csy-brand-search-count {
    color: #72849a;
    font-size: 13px;
}

.csy-brand-search-empty {
    margin: 18px 0;
    padding: 16px;
    border-radius: 9px;
    background: #fff4ea;
    color: #87603f;
}

/* Alphabet */

.csy-brand-letter-nav {
    position: sticky;
    top: var(--csy-brand-sticky-top, 66px);
    z-index: 98;
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid #e4edf7;
    border-radius: 12px;
    background: rgba(246, 249, 253, .98);
    box-shadow: 0 8px 22px rgba(20, 58, 95, .08);
}

.csy-brand-letter-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.csy-brand-letter-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    height: 39px;
    padding: 0 8px;
    border: 1px solid #d9e7f4;
    border-radius: 7px;
    background: #fff;
    color: #33485e;
    font-size: 14px;
    text-decoration: none;
}

.csy-brand-letter-nav a {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.csy-brand-letter-nav a:hover,
.csy-brand-letter-nav a.is-current {
    border-color: #0663de;
    background: #0663de;
    color: #fff;
}

.csy-brand-letter-nav a:focus-visible {
    outline: 2px solid #1e2e61;
    outline-offset: 2px;
}

.csy-brand-letter-nav a.is-disabled {
    opacity: .35;
    cursor: default;
}

.csy-brand-directory-list {
    display: grid;
    gap: 16px;
}

.csy-brand-directory-list dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 20px;
    margin: 0;
    padding: 22px;
    border: 1px solid #e3edf5;
    border-radius: 12px;
    background: #fff;
}

.csy-brand-directory-list dt > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 9px;
    background: #eaf4ff;
    color: #0663de;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.csy-brand-directory-list dd {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.csy-brand-directory-list .brand-item {
    display: block;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 7px;
    color: #33485e;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.csy-brand-directory-list .brand-item:hover {
    background: #eaf4ff;
    color: #0663de;
}

.csy-brand-directory-list .brand-empty {
    color: #92a1b2;
}

/* Brand profile */

.csy-brand-overview,
.csy-brand-products,
.csy-brand-content-section {
    padding: 55px 0;
}

.csy-brand-overview {
    background: linear-gradient(110deg, #f0f7ff, #fff);
}

.csy-brand-overview-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 45px;
    align-items: start;
}

.csy-brand-overview-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 20px;
    border: 1px solid #e1eaf5;
    border-radius: 14px;
    background: #fff;
}

.csy-brand-overview-logo img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.csy-brand-overview-content h1 {
    margin: 0 0 15px;
    color: #142b47;
    font-size: 38px;
}

.csy-brand-overview-summary,
.csy-brand-overview-description {
    color: #5e7085;
    font-size: 15px;
    line-height: 1.8;
}

.csy-brand-overview-description {
    margin-top: 15px;
}

.csy-brand-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.csy-brand-overview-actions a,
.csy-brand-product-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 18px;
    border: 1px solid #0663de;
    border-radius: 7px;
    background: #0663de;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.csy-brand-overview-actions a:hover,
.csy-brand-product-actions button:hover {
    background: #035ca4;
    transform: translateY(-2px);
}

.csy-brand-overview-actions .csy-brand-overview-secondary {
    background: #fff;
    color: #0663de;
}

/* ==============================
   Brand Product Categories
   Full-width accordion by category
============================== */

.csy-brand-category-section {
    padding: 55px 0;
    background: #ffffff;
}

.csy-brand-detail-title {
    display: block;
}

.csy-brand-detail-title p {
    max-width: 850px;
    margin-top: 12px;
}

.csy-brand-category-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.csy-brand-category-list dl {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 22px 26px;
    border: 1px solid #e0ebf4;
    border-radius: 12px;
    background: #fbfdff;
}

.csy-brand-category-list dt {
    margin: 0 0 14px;
    color: #1d3655;
    font-size: 18px;
    font-weight: 700;
}

.csy-brand-category-list dt a {
    color: #1d3655;
    text-decoration: none;
}

.csy-brand-category-list dd {
    display: block;
    margin: 0;
}

.csy-brand-cat-group {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 10px;
    border: 1px solid #e6edf6;
    border-radius: 9px;
    background: #ffffff;
    overflow: hidden;
}

.csy-brand-cat-group:last-child {
    margin-bottom: 0;
}

.csy-brand-cat-parent {
    margin: 0;
    font-weight: 600;
}

.csy-brand-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    background: #ffffff;
    color: #203c58;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.csy-brand-cat-toggle:hover,
.csy-brand-cat-group.is-open > .csy-brand-cat-parent .csy-brand-cat-toggle {
    background: #eef6ff;
    color: #0663de;
}

.csy-brand-cat-toggle-icon {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}

.csy-brand-cat-group.is-open > .csy-brand-cat-parent .csy-brand-cat-toggle-icon {
    transform: rotate(45deg);
}

.csy-brand-cat-children {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 15px;
    padding: 18px;
    border-top: 1px solid #e6edf6;
    background: #ffffff;
}

.csy-brand-cat-group.is-open > .csy-brand-cat-children {
    display: grid;
}

.csy-brand-category-list dd a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 6px;
    background: #f5f9fd;
    color: #4d6279;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .2s ease, color .2s ease;
}

.csy-brand-category-list dd a:hover {
    background: #e8f3ff;
    color: #0663de;
}

.csy-brand-category-list dd > a {
    margin-top: 8px;
}

.csy-brand-cat-children > .csy-brand-cat-group {
    margin-bottom: 0;
}

/* Products */

.csy-brand-products {
    background: #f6f9fd;
}

.csy-brand-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.csy-brand-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px;
    border: 1px solid #e1eaf3;
    border-radius: 11px;
    background: #fff;
}

.csy-brand-product-link {
    display: block;
    flex: 1;
    text-decoration: none;
}

.csy-brand-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
}

.csy-brand-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.csy-brand-product-copy {
    display: block;
    margin: 12px 0;
}

.csy-brand-product-name,
.csy-brand-product-manufacturer {
    display: block;
    overflow-wrap: anywhere;
    font-style: normal;
}

.csy-brand-product-name {
    color: #142b47;
    font-size: 13px;
    font-weight: 700;
}

.csy-brand-product-manufacturer {
    margin-top: 5px;
    color: #8a9bae;
    font-size: 12px;
}

.csy-brand-product-actions {
    display: grid;
    gap: 7px;
}

.csy-brand-product-actions button {
    width: 100%;
    padding: 9px 5px;
    font-size: 12px;
}

.csy-brand-product-actions .csy-brand-product-rfq-now {
    border-color: #1e2e61;
    background: #1e2e61;
}

/* Brand detail and FAQ */

.csy-brand-content-section {
    background: #f6f9fd;
}

.csy-brand-faq-section {
    background: #fff;
}

.csy-brand-content-section .csy-brand-section-head {
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e3edf6;
}

.csy-brand-richtext {
    overflow-wrap: anywhere;
    color: #4d6177;
    font-size: 14px;
    line-height: 1.85;
}

.csy-brand-richtext img {
    max-width: 100%;
    height: auto;
}

.csy-brand-richtext table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.csy-brand-richtext h2,
.csy-brand-richtext h3 {
    color: #182e4b;
}

.csy-brand-richtext > h2,
.csy-brand-richtext > h3 {
    margin: 25px 0 12px;
    font-size: 18px;
    font-weight: 700;
}

.csy-brand-richtext > p {
    margin: 0 0 18px;
}

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

.csy-brand-detail-card {
    position: relative;
    min-width: 0;
    padding: 29px 24px 26px;
    border: 1px solid #e1eaf5;
    border-top: 3px solid #0663de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 65, 110, .045);
}

.csy-brand-detail-card:nth-child(2) {
    border-top-color: #1e2e61;
}

.csy-brand-detail-card h3 {
    margin: 0 0 17px;
    color: #162c48;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.csy-brand-detail-card p {
    margin: 0;
    color: #586a7c;
    font-size: 14px;
    line-height: 1.85;
}

/* Preserve readable flow for custom rich-text content. */

.csy-brand-detail-content:has(> :not(.csy-brand-detail-card)) {
    display: block;
    padding: 28px 32px;
    border: 1px solid #e1eaf5;
    border-radius: 12px;
    background: #fff;
}

.csy-brand-faq-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.csy-brand-faq-item {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    min-width: 0;
    padding: 24px;
    border: 1px solid #e1eaf5;
    border-radius: 12px;
    background: #fbfdff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.csy-brand-faq-item:hover {
    border-color: #b5d9f7;
    box-shadow: 0 10px 22px rgba(4, 116, 204, .06);
}

.csy-brand-faq-number {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e9f4ff;
    color: #0663de;
    font-size: 15px;
    font-weight: 800;
}

.csy-brand-faq-answer {
    min-width: 0;
}

.csy-brand-faq-answer h3 {
    margin: 0 0 10px;
    color: #162c48;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.csy-brand-faq-answer p {
    margin: 0;
    color: #586a7c;
    font-size: 14px;
    line-height: 1.8;
}

/* Standard editor content is still displayed as normal rich text. */

.csy-brand-faq-content:has(> :not(.csy-brand-faq-item)) {
    display: block;
    padding: 28px 32px;
    border: 1px solid #e1eaf5;
    border-radius: 12px;
    background: #fbfdff;
}

/* Responsive */

@media screen and (max-width: 1199px) {
    .csy-brand-feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media screen and (max-width: 1024px) {
    .csy-brand-detail-content,
    .csy-brand-faq-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .csy-brand-directory-list dd {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .csy-brand-cat-children {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .csy-brand-detail-content,
    .csy-brand-faq-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .csy-brand-detail-card,
    .csy-brand-faq-item {
        padding: 21px 18px;
    }

    .csy-brand-faq-number {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .csy-brand-detail-content:has(> :not(.csy-brand-detail-card)),
    .csy-brand-faq-content:has(> :not(.csy-brand-faq-item)) {
        padding: 21px 18px;
    }

    #brand .csy-brand-feature,
    #brand .csy-brand-directory,
    .csy-brand-overview,
    .csy-brand-products,
    .csy-brand-content-section,
    .csy-brand-category-section {
        padding: 35px 0;
    }

    #brand .csy-brand-heading,
    #brand .csy-brand-section-head {
        display: block;
    }

    #brand .csy-brand-heading h2,
    #brand .csy-brand-section-head h2 {
        font-size: 24px;
    }

    #brand .csy-brand-heading p,
    #brand .csy-brand-section-head p {
        margin-top: 12px;
    }

    .csy-brand-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .csy-brand-search {
        display: block;
        padding: 12px;
    }

    .csy-brand-search-count {
        display: block;
        margin-top: 10px;
    }

    .csy-brand-letter-nav {
        padding: 10px;
        top: 0;
    }

    .csy-brand-letter-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .csy-brand-letter-nav li {
        flex: 0 0 auto;
    }

    .csy-brand-directory-list dl {
        display: block;
        padding: 16px;
    }

    .csy-brand-directory-list dt {
        margin-bottom: 12px;
    }

    .csy-brand-directory-list dd {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 4px;
    }

    .csy-brand-overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .csy-brand-overview-logo {
        min-height: 120px;
    }

    .csy-brand-overview-content h1 {
        font-size: 29px;
    }

    .csy-brand-category-list dl {
        padding: 18px 15px;
    }

    .csy-brand-cat-children {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .csy-brand-cat-toggle {
        padding: 12px 14px;
    }

    .csy-brand-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csy-brand-feature-grid > a,
    .csy-brand-product-actions button {
        transition: none;
    }
}


/* =========================================================
   CSY Manufacturer Directory Redesign
   Visual system: navy #1e2e61 and electric blue #0663de
========================================================= */

#brand .csy-brand-feature {
    padding: 58px 0 64px;
    background: #ffffff;
}

#brand .csy-brand-directory {
    padding: 65px 0 80px;
    background: #f3f6fc;
}

#brand .csy-brand-heading {
    align-items: flex-end;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e9f5;
}

#brand .csy-brand-heading h2 {
    font-size: 34px;
    letter-spacing: -0.7px;
    color: #1e2e61;
}

.csy-brand-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.csy-brand-feature-grid > a {
    position: relative;
    min-height: 156px;
    gap: 18px;
    padding: 25px 24px;
    border: 1px solid #e5ebf5;
    border-radius: 5px;
    background: linear-gradient(145deg, #fff 65%, #f1f5ff);
    text-align: left;
    box-shadow: 0 7px 26px rgba(15, 37, 91, 0.035);
}

.csy-brand-feature-grid > a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: #0663de;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.csy-brand-feature-grid > a:hover {
    border-color: #96baf3;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(20, 56, 121, .10);
}

.csy-brand-feature-grid > a:hover::after {
    transform: scaleX(1);
}

.csy-brand-feature-grid img {
    height: 68px;
    width: 100%;
    object-fit: contain;
}

.csy-brand-feature-grid span {
    align-self: flex-start;
    color: #0663de;
    font-size: 12px;
    font-weight: 700;
}

.csy-brand-feature-grid span .fa {
    margin-left: 6px;
}

.csy-brand-search {
    padding: 13px 17px;
    border: 1px solid #dce6f4;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(20, 54, 110, .04);
}

.csy-brand-search-field {
    border-radius: 4px;
    background: #f8faff;
}

.csy-brand-letter-nav {
    border-radius: 6px;
    background: #1e2e61;
    border-color: #1e2e61;
    box-shadow: 0 10px 26px rgba(12, 29, 69, .15);
}

.csy-brand-letter-nav a {
    border-color: rgba(255,255,255,.14);
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    color: #ffffff;
}

.csy-brand-letter-nav a:hover,
.csy-brand-letter-nav a.is-current {
    background: #0663de;
    border-color: #0663de;
    color: #ffffff;
}

.csy-brand-directory-list dl {
    border-radius: 5px;
    border-color: #e3eaf6;
    box-shadow: 0 6px 20px rgba(19, 47, 95, .03);
}

.csy-brand-directory-list dt > a {
    background: #e9f0ff;
    color: #1e2e61;
    border-radius: 4px;
}

.csy-brand-overview {
    background: linear-gradient(115deg, #f0f5ff 0%, #ffffff 70%);
}

.csy-brand-overview-logo {
    border-radius: 6px;
}

.csy-brand-product-card {
    border-radius: 6px;
}

@media screen and (max-width: 991px) {
    .csy-brand-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    #brand .csy-brand-feature,
    #brand .csy-brand-directory {
        padding: 32px 0 45px;
    }

    #brand .csy-brand-heading h2 {
        font-size: 26px;
    }

    .csy-brand-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .csy-brand-feature-grid > a {
        min-height: 118px;
        padding: 18px 13px;
    }

    .csy-brand-feature-grid img {
        height: 45px;
    }
}

/* =========================================================
   Brand detail: category heading and backend markup compatibility
   This block fixes the multi-column heading on small screens.
========================================================= */

#brand #brand-categories {
    width: 100%;
    min-width: 0;
}

#brand #brand-categories > .container,
#brand #brand-categories .csy-brand-detail-title,
#brand #brand-categories .jianghan-brand-detail-title {
    min-width: 0;
    max-width: 100%;
}

#brand #brand-categories .csy-brand-detail-title,
#brand #brand-categories .jianghan-brand-detail-title {
    display: block;
    margin-bottom: 24px;
}

#brand #brand-categories .csy-brand-detail-title > span,
#brand #brand-categories .jianghan-brand-detail-title > span {
    display: inline-block;
    width: auto;
    margin: 0 0 10px;
    color: #0663de;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    line-height: 1.5;
}

#brand #brand-categories .csy-brand-detail-title > h2,
#brand #brand-categories .jianghan-brand-detail-title > h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    color: #1e2e61;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: break-word;
}

#brand #brand-categories .csy-brand-detail-title > p,
#brand #brand-categories .jianghan-brand-detail-title > p {
    display: block;
    width: 100%;
    max-width: 780px;
    margin: 0;
    color: #66768b;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

/* RFQ feedback independent of the shared cart.js version. */

.csy-brand-rfq-toast {
    position: fixed;
    z-index: 100100;
    top: 82px;
    right: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(385px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid #d8e6f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 15px 38px rgba(20, 40, 80, 0.16);
    box-sizing: border-box;
}

.csy-brand-rfq-toast > .fa {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #0663de;
    font-size: 22px;
}

.csy-brand-rfq-toast.is-error > .fa {
    color: #d55050;
}

.csy-brand-rfq-toast-copy {
    flex: 1;
    min-width: 0;
}

.csy-brand-rfq-toast-copy strong {
    display: block;
    color: #1e2e61;
    font-size: 15px;
}

.csy-brand-rfq-toast-copy p {
    margin: 5px 0 0;
    color: #53677d;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.csy-brand-rfq-toast-copy a {
    display: inline-block;
    margin-top: 10px;
    color: #0663de;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.csy-brand-rfq-toast-close {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #71829a;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 991px) {
    #brand #brand-categories .csy-brand-detail-title > h2,
    #brand #brand-categories .jianghan-brand-detail-title > h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    #brand #brand-categories {
        padding-top: 30px;
        padding-bottom: 35px;
    }

    #brand #brand-categories .csy-brand-detail-title,
    #brand #brand-categories .jianghan-brand-detail-title {
        display: block;
        margin-bottom: 18px;
        text-align: left;
    }

    #brand #brand-categories .csy-brand-detail-title > span,
    #brand #brand-categories .jianghan-brand-detail-title > span {
        margin-bottom: 9px;
    }

    #brand #brand-categories .csy-brand-detail-title > h2,
    #brand #brand-categories .jianghan-brand-detail-title > h2 {
        font-size: 23px;
        line-height: 1.4;
    }

    #brand #brand-categories .csy-brand-detail-title > p,
    #brand #brand-categories .jianghan-brand-detail-title > p {
        max-width: none;
        font-size: 13px;
        line-height: 1.7;
    }

    #brand .csy-brand-cat-group,
    #brand .csy-brand-category-list dl {
        max-width: 100%;
        box-sizing: border-box;
    }

    .csy-brand-rfq-toast {
        top: 72px;
        right: 16px;
    }
}

/* Brand RFQ dialog fallback controls (shared modal styling is in public.css). */
#brand ~ .wg-rfq-toast .csy-brand-rfq-dialog-close,
.wg-rfq-toast .csy-brand-rfq-dialog-close {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.wg-rfq-toast .wg-rfq-toast-close.csy-brand-rfq-dialog-close {
    padding: 0;
    line-height: 1;
}

.wg-rfq-toast .wg-rfq-toast-btn.csy-brand-rfq-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* =========================================================
   Manufacturer Directory Banner
   Matched to the About / News / Contact visual system
========================================================= */

#brand .csy-brand-hero,
#brand .csy-brand-hero * {
    box-sizing: border-box;
}

#brand .csy-brand-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(112deg, #182b55 0%, #1e2e61 53%, #095bc9 100%);
    color: #ffffff;
}

#brand .csy-brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 84% 45%, rgba(107, 180, 255, 0.18), transparent 36%);
}

#brand .csy-brand-hero::after {
    content: "";
    position: absolute;
    top: -170px;
    right: -80px;
    z-index: -1;
    width: 480px;
    height: 480px;
    border: 70px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

#brand .csy-brand-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
    align-items: center;
    gap: 45px;
    min-height: 384px;
    padding-top: 28px;
    padding-bottom: 28px;
}

#brand .csy-brand-hero-copy {
    min-width: 0;
}

#brand .csy-brand-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 21px;
    color: #d3e5ff;
    font-size: 13px;
    line-height: 1.5;
}

#brand .csy-brand-hero-breadcrumb a {
    color: #e6f1ff;
    text-decoration: none;
}

#brand .csy-brand-hero-breadcrumb a:hover {
    color: #ffffff;
}

#brand .csy-brand-hero-breadcrumb i {
    color: #8ebbf8;
    font-size: 12px;
}

#brand .csy-brand-hero-kicker {
    display: block;
    margin-bottom: 12px;
    color: #91c5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

#brand .csy-brand-hero-copy h1 {
    max-width: 600px;
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 39px;
    font-weight: 700;
    line-height: 1.23;
    letter-spacing: -0.7px;
}

#brand .csy-brand-hero-copy h1 span {
    color: #90c3ff;
}

#brand .csy-brand-hero-copy > p {
    max-width: 615px;
    margin: 0 0 23px;
    color: #d9e6ff;
    font-size: 14px;
    line-height: 1.8;
}

#brand .csy-brand-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #ffffff;
    border-radius: 7px;
    background: #ffffff;
    color: #0663de;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#brand .csy-brand-hero-button:hover {
    background: #e8f2ff;
    color: #044fb5;
    transform: translateY(-2px);
}

#brand .csy-brand-hero-media {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 545px;
    aspect-ratio: 1.65 / 1;
    overflow: hidden;
    border: 1px solid rgba(182, 216, 255, 0.30);
    border-radius: 18px;
    background: #102d66;
    box-shadow: 0 20px 48px rgba(4, 19, 49, 0.27);
}

#brand .csy-brand-hero-media::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 55% 0 0;
    background: linear-gradient(0deg, rgba(4, 20, 52, 0.52), transparent);
    pointer-events: none;
}

#brand .csy-brand-hero-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#brand .csy-brand-hero-media-note {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 32px);
    min-width: 0;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 8px;
    background: rgba(13, 39, 86, 0.80);
    box-shadow: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

#brand .csy-brand-hero-media-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: #9dccff;
    font-size: 15px;
}

/* Keep both brand label lines visible inside the photograph. */
#brand .csy-brand-hero-media-note > span:last-child {
    display: block;
    min-width: 0;
}

#brand .csy-brand-hero-media-note strong,
#brand .csy-brand-hero-media-note small {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

#brand .csy-brand-hero-media-note strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

#brand .csy-brand-hero-media-note small {
    margin-top: 2px;
    color: #c4d9f4;
    font-size: 10px;
    line-height: 1.4;
}

@media (max-width: 991px) {
    #brand .csy-brand-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 22px;
        min-height: 345px;
    }

    #brand .csy-brand-hero-copy h1 {
        font-size: 33px;
    }

    #brand .csy-brand-hero-media-note {
    right: 16px;
    bottom: 16px;
}
}

@media (max-width: 768px) {
    #brand .csy-brand-hero-inner {
        display: block;
        min-height: 0;
        padding-top: 32px;
        padding-bottom: 38px;
    }

    #brand .csy-brand-hero-breadcrumb {
        margin-bottom: 22px;
    }

    #brand .csy-brand-hero-kicker {
        margin-bottom: 10px;
        font-size: 11px;
    }

    #brand .csy-brand-hero-copy h1 {
        margin-bottom: 12px;
        font-size: 30px;
        line-height: 1.28;
    }

    #brand .csy-brand-hero-copy > p {
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.75;
    }

    #brand .csy-brand-hero-button {
        min-height: 44px;
    }

    #brand .csy-brand-hero-media {
        display: none;
    }
}

