/* The shared shop renderer suppresses its title on this template. */
.custom-shop-wrapper .shop-breadcrumb { display: none !important; }

/* Align the product grid wrapper with the surrounding brand sections. */
.custom-shop-wrapper {
    max-width: 1400px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Brand page wrapper */
.bp-wrapper {
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px 30px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #fff;
    color: #333;
}

/* Breadcrumbs */
.bp-wrapper .bp-breadcrumbs {
    font-size: 13px; color: #666; margin-bottom: 14px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.bp-wrapper .bp-breadcrumbs a { color: #666 !important; text-decoration: none !important; }
.bp-wrapper .bp-breadcrumbs a:hover { color: #F0A840 !important; }
.bp-wrapper .bp-breadcrumbs .bp-sep { color: #bbb; }
.bp-wrapper .bp-breadcrumbs .bp-current { font-weight: 600; color: #333 !important; }

/* Brand header */
.bp-wrapper .bp-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}
.bp-wrapper .bp-title {
    font-size: 30px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 14px !important;
    line-height: 1.2;
}
.bp-wrapper .bp-intro {
    font-size: 14px;
    color: #555 !important;
    line-height: 1.75;
    max-width: 920px;
    margin: 0 0 14px;
}
.bp-wrapper .bp-intro p { margin: 0 0 12px; }
.bp-wrapper .bp-intro p:last-child { margin: 0; }

/* Collapsible Read more */
.bp-wrapper .bp-intro.is-collapsed p ~ p { display: none; }
.bp-wrapper .bp-readmore {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; padding: 0;
    color: #F0A840; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none;
}
.bp-wrapper .bp-readmore:hover { text-decoration: underline; }
.bp-wrapper .bp-readmore::after { content: '\203A'; font-size: 16px; line-height: 1; transition: transform .2s; }
.bp-wrapper .bp-readmore.is-open::after { transform: rotate(90deg); }

/* Section heading */
.bp-section { margin-bottom: 40px; }
.bp-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px;
}
.bp-section h2 {
    font-size: 20px !important; font-weight: 600 !important;
    color: #333 !important; margin: 0 !important;
}
.bp-section-intro {
    font-size: 13px; color: #666; max-width: 760px;
    line-height: 1.6; margin: -10px 0 16px;
}

/* Commonly Requested Parts */
.bp-parts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.bp-part-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    display: flex; flex-direction: column; gap: 4px;
}
.bp-part-card .bp-pn {
    font-family: 'SF Mono', Consolas, Menlo, monospace;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    letter-spacing: -.01em;
}
.bp-part-card .bp-pn-desc {
    font-size: 12px; color: #666; line-height: 1.5; margin-bottom: 4px;
}
.bp-part-card .bp-pn-stock {
    font-size: 11px; color: #2a9d3f; font-weight: 600; margin-bottom: 6px;
}
.bp-part-card .bp-pn-stock.bp-pn-out { color: #c41230; }
.bp-part-card .bp-pn-actions { display: flex; gap: 8px; margin-top: auto; }
.bp-part-card .bp-pn-pill,
.bp-part-card .bp-pn-pill:visited {
    flex: 1; font-size: 11px; text-align: center;
    border-radius: 4px; padding: 5px 10px;
    text-decoration: none !important; font-weight: 600;
    border: 1px solid #F0A840 !important;
    color: #F0A840 !important;
    background: #fff !important;
    transition: background .15s, color .15s;
}
.bp-part-card .bp-pn-pill:hover { background: #F0A840 !important; color: #fff !important; }
.bp-part-card .bp-pn-pill.bp-primary,
.bp-part-card .bp-pn-pill.bp-primary:visited { background: #F0A840 !important; color: #fff !important; }
.bp-part-card .bp-pn-pill.bp-primary:hover { background: #d4902a !important; border-color: #d4902a !important; }

/* Trust grid */
.bp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 28px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.bp-trust-item .bp-trust-icon {
    width: 44px; height: 44px;
    background: #fef6e8;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #F0A840;
    margin-bottom: 12px;
}
.bp-trust-item .bp-trust-icon svg { width: 22px; height: 22px; display: block; }
.bp-trust-item h3 {
    font-size: 14px !important; font-weight: 600 !important;
    color: #333 !important; margin: 0 0 6px !important;
}
.bp-trust-item p {
    font-size: 12.5px;
    color: #555 !important;
    line-height: 1.6;
    margin: 0 !important;
}

/* Quote band */
.bp-quote-band {
    background: #F0A840 !important;
    border-radius: 8px;
    padding: 22px 28px;
    margin-bottom: 44px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px;
}
.bp-quote-band h2 {
    font-size: 18px !important; font-weight: 600 !important;
    color: #fff !important; margin: 0 0 4px !important;
}
.bp-quote-band p {
    font-size: 13px !important;
    color: rgba(255,255,255,.92) !important;
    margin: 0 !important;
}
.bp-quote-btn,
.bp-quote-btn:visited {
    background: #fff !important; color: #F0A840 !important;
    font-size: 13px !important; font-weight: 600 !important;
    padding: 11px 22px !important; border-radius: 4px !important;
    text-decoration: none !important; white-space: nowrap;
    flex-shrink: 0; border: none !important; display: inline-block;
}
.bp-quote-btn:hover { background: #fef6e8 !important; color: #d4902a !important; }

/* Related Manufacturers */
.bp-related-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.bp-brand-card,
.bp-brand-card:visited {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    overflow: hidden;
    background: #fff !important;
    text-decoration: none !important;
    color: inherit;
    display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}
.bp-brand-card:hover { border-color: #ccc !important; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.bp-brand-card .bp-brand-logo {
    height: 90px; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    font-weight: 700; color: #1e5a8a;
    font-size: 16px; letter-spacing: -.02em;
    text-transform: uppercase;
}
.bp-brand-card .bp-brand-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.bp-brand-card .bp-brand-info {
    padding: 12px; display: flex; justify-content: space-between; align-items: center;
}
.bp-brand-card .bp-brand-name { font-size: 13px; font-weight: 600; color: #333; }
.bp-brand-card .bp-brand-ct {
    font-size: 10px; color: #999;
    background: #f5f5f5; border-radius: 20px; padding: 2px 8px;
}

/* FAQ */
.bp-faq-list { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.bp-faq-list details,
.bp-faq-list .bp-faq-item { border-bottom: 1px solid #f0f0f0; }
.bp-faq-list details:last-child,
.bp-faq-list .bp-faq-item:last-child { border-bottom: none; }
.bp-faq-list summary {
    padding: 16px 20px; cursor: pointer;
    font-size: 14px; font-weight: 600; color: #333;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.bp-faq-list summary::after {
    content: '+'; color: #F0A840;
    font-size: 22px; font-weight: 300; line-height: 1;
}
.bp-faq-list details[open] summary::after { content: '\2212'; }
.bp-faq-list summary::-webkit-details-marker { display: none; }
.bp-faq-list details > div,
.bp-faq-list .bp-faq-item .bp-faq-a {
    padding: 0 20px 18px; font-size: 13px; color: #555; line-height: 1.65;
}
.bp-faq-list details[open] summary { background: #fafafa; }
.bp-faq-list details > div table {
    border-collapse: collapse; width: 100%; margin: 4px 0; font-size: 13px;
}
.bp-faq-list details > div th,
.bp-faq-list details > div td {
    border: 1px solid #e0e0e0; padding: 6px 10px; text-align: left;
}

/* Responsive */
@media (max-width: 1000px) {
    .bp-parts-grid, .bp-related-grid, .bp-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .bp-related-grid, .bp-trust-grid { grid-template-columns: 1fr; }
    .bp-quote-band { flex-direction: column; align-items: flex-start; }
    .bp-wrapper .bp-title { font-size: 22px !important; }

    .bp-parts-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        min-width: 0;
        overflow: visible;
        margin-right: 0;
        padding: 2px 0 10px;
    }
    .bp-part-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
        scroll-snap-align: none;
    }
}

#content .ast-container { display: contents; }
