/* AllElectro Stage 5 Phase 5-2: Modular Enclosure BOM Configurator & Category Showcase */
.ae-bom-cat-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 0 0 22px;
    box-shadow: 0 4px 16px rgba(15, 35, 66, 0.04);
}
.ae-bom-cat-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 18px;
    margin-bottom: 14px;
}
.ae-bom-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0284c7;
    margin: 0 0 4px;
}
.ae-bom-cat-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f2342;
    margin: 0 0 4px;
}
.ae-bom-cat-sub {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
}
.ae-bom-cat-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ae-bom-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f2342;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ae-bom-hub-link:hover {
    background: #eff6ff;
    border-color: #0284c7;
    color: #0f2342;
    text-decoration: none;
}
.ae-bom-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.ae-bom-filter-btn {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ae-bom-filter-btn:hover {
    border-color: #0f2342;
    background: #f1f5f9;
}
.ae-bom-filter-btn.is-active {
    background: #0f2342;
    border-color: #0f2342;
    color: #ffffff;
}
.ae-bom-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.ae-bom-grid.is-hub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.ae-bom-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ae-bom-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(15, 35, 66, 0.08);
    transform: translateY(-1px);
}
.ae-bom-grid.is-collapsed .ae-bom-card-extra {
    display: none;
}
.ae-bom-card.is-filter-hidden {
    display: none !important;
}
.ae-bom-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.ae-bom-card-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ae-bom-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.ae-bom-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.ae-bom-badge--brand-dkc {
    background: #e0f2fe;
    color: #0369a1;
}
.ae-bom-badge--brand-eti {
    background: #fef3c7;
    color: #92400e;
}
.ae-bom-badge--series {
    background: #e2e8f0;
    color: #334155;
}
.ae-bom-card-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    color: #0f2342;
    margin: 0 0 6px;
}
.ae-bom-card-title a {
    color: inherit;
    text-decoration: none;
}
.ae-bom-card-title a:hover {
    color: #0284c7;
}
.ae-bom-card-sub {
    font-size: 12.5px;
    line-height: 1.4;
    color: #475569;
    margin: 0 0 10px;
}
.ae-bom-specs-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.ae-bom-spec-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
}
.ae-bom-card-foot {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: auto;
}
.ae-bom-card-stock {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 4px;
}
.ae-bom-card-stock.is-partial {
    color: #b45309;
}
.ae-bom-card-price {
    font-size: 13.5px;
    color: #0f2342;
    margin-bottom: 10px;
}
.ae-bom-card-price strong {
    font-size: 16px;
    font-weight: 800;
}
.ae-bom-btn-primary,
.ae-bom-btn-secondary,
.ae-bom-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.ae-bom-btn-primary {
    width: 100%;
    min-height: 40px;
    padding: 9px 14px;
    border: none;
    background: #fed700;
    color: #0f2342;
    font-size: 13.5px;
}
.ae-bom-btn-primary:hover {
    background: #f5cd00;
    color: #0f2342;
    text-decoration: none;
}
.ae-bom-btn-primary:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}
.ae-bom-btn-secondary {
    width: 100%;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f2342;
    font-size: 13px;
}
.ae-bom-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #0f2342;
    color: #0f2342;
    text-decoration: none;
}
.ae-bom-expand-wrap {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}
.ae-bom-expand-btn {
    min-height: 38px;
    padding: 8px 20px;
    border: 1px solid #0f2342;
    background: #ffffff;
    color: #0f2342;
    font-size: 13.5px;
}
.ae-bom-expand-btn:hover {
    background: #0f2342;
    color: #ffffff;
}

/* Virtual BOM Hub & Configurator Page — 100% Full-Width Container Parity */
body.ae-bom-page #content > .container > .site-content-inner {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.ae-bom-page #primary.content-area.ae-bom-content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    padding: 0 !important;
}
body.ae-bom-page #sidebar {
    display: none !important;
}
.ae-bom-shell {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 12px 0 44px;
}

/* Hub 2-Column Layout (Main Catalog Showcase Left + 280px Right Sidebar) */
.ae-bom-hub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}
.ae-bom-hub-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ae-bom-sb-mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #0f2342;
    color: #ffffff;
    border-radius: 10px;
}
.ae-bom-sb-close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.ae-bom-sb-close:hover,
.ae-bom-sb-close:focus {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    outline: 2px solid #fed700;
    outline-offset: 1px;
}
.ae-bom-sb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.ae-bom-sb-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 10px;
    margin: 0 0 12px;
    border-bottom: 2px solid #fed700;
}
.ae-bom-sb-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #fed700;
}
.ae-bom-sb-filter-head .ae-bom-sb-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.ae-bom-sb-reset {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f2342;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.ae-bom-sb-reset:hover {
    background: #eff6ff;
    border-color: #0284c7;
}
.ae-bom-sb-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ae-bom-sb-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.ae-bom-sb-cat-link:hover {
    background: #f1f5f9;
    color: #0f2342;
    text-decoration: none;
}
.ae-bom-sb-cat-link.is-active {
    background: #0f2342;
    color: #ffffff;
    font-weight: 700;
}
.ae-bom-sb-cnt {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}
.ae-bom-sb-cat-link.is-active .ae-bom-sb-cnt {
    background: rgba(254, 215, 0, 0.22);
    color: #fed700;
}
.ae-bom-facet-group {
    border: none;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #f1f5f9;
}
.ae-bom-facet-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.ae-bom-facet-legend {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    padding: 0;
}
.ae-bom-facet-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ae-bom-facet-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 3px 4px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}
.ae-bom-facet-opt:hover {
    background: #f8fafc;
}
.ae-bom-facet-chk {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: #0f2342;
    cursor: pointer;
}
.ae-bom-facet-txt {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}
.ae-bom-facet-cnt {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: #64748b;
}
.ae-bom-hub-main {
    min-width: 0;
}
.ae-bom-hero-cat-sub {
    font-size: 13.5px;
    line-height: 1.45;
    color: #475569;
    margin: 8px 0 0;
}
.ae-bom-hub-main .ae-cat-sib-pill {
    cursor: pointer;
}
.ae-bom-hub-main .ae-cat-sib-pill.is-active {
    background: #0f2342 !important;
    border-color: #0f2342 !important;
    color: #ffffff !important;
}
.ae-bom-hub-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.ae-bom-hub-controls-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.ae-bom-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #0f2342;
    background: #0f2342;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.ae-bom-mobile-filter-cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fed700;
    color: #0f2342;
    font-size: 11px;
    font-weight: 800;
}
.ae-bom-shown-count {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}
.ae-bom-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ae-bom-sort-lbl {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}
.ae-bom-sort-select {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f2342;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ae-bom-empty {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    margin-top: 8px;
}
.ae-bom-empty strong {
    display: block;
    font-size: 16px;
    color: #0f2342;
    margin-bottom: 6px;
}
.ae-bom-empty p {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 14px;
}
.ae-bom-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}
.ae-bom-breadcrumbs a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}
.ae-bom-breadcrumbs a:hover {
    text-decoration: underline;
}
.ae-bom-switcher {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    padding: 2px 0 8px;
    margin-bottom: 14px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.ae-bom-switch-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}
.ae-bom-switch-pill:hover {
    border-color: #0284c7;
    color: #0f2342;
    text-decoration: none;
}
.ae-bom-switch-pill.is-current {
    background: #0f2342;
    border-color: #0f2342;
    color: #ffffff;
}
.ae-bom-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    background: linear-gradient(135deg, #0f2342 0%, #173869 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 20px;
}
.ae-bom-hero-media {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.ae-bom-hero-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ae-bom-hero-copy {
    flex: 1 1 360px;
    min-width: 0;
}
.ae-bom-hero-kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fed700;
    margin-bottom: 6px;
}
.ae-bom-hero h1 {
    font-size: 26px;
    line-height: 1.22;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}
.ae-bom-hero-sub {
    font-size: 14.5px;
    line-height: 1.45;
    color: #dbeafe;
    margin: 0 0 14px;
}
.ae-bom-hero-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ae-bom-hero-spec {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 600;
}
.ae-bom-hero-total {
    flex: 0 0 auto;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 15px 18px;
}
.ae-bom-hero-total-lbl {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 4px;
}
.ae-bom-hero-total-val {
    font-size: 26px;
    font-weight: 800;
    color: #fed700;
    line-height: 1.15;
    margin-bottom: 4px;
}
.ae-bom-hero-total-meta {
    font-size: 12px;
    color: #e2e8f0;
}
.ae-bom-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}
.ae-bom-join-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 16px;
}
.ae-bom-join-bar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #0f2342;
    cursor: pointer;
}
.ae-bom-join-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f2342;
    cursor: pointer;
}
.ae-bom-join-note {
    display: block;
    font-size: 12.5px;
    color: #334155;
    margin-top: 2px;
}
.ae-bom-main {
    min-width: 0;
}
.ae-bom-level-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 35, 66, 0.03);
}
.ae-bom-level-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.ae-bom-level-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f2342;
    margin: 0;
}
.ae-bom-level-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}
.ae-bom-level-pill.is-locked {
    background: #dbeafe;
    color: #1e40af;
}
.ae-bom-item-list {
    display: flex;
    flex-direction: column;
}
.ae-bom-item-row {
    display: grid;
    grid-template-columns: 24px 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: #1e293b;
}
.ae-bom-item-row:last-child {
    border-bottom: none;
}
.ae-bom-row.is-unchecked {
    opacity: 0.58;
    background: #f8fafc;
}
.ae-bom-chk-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ae-bom-row-chk {
    width: 17px;
    height: 17px;
    accent-color: #0f2342;
    cursor: pointer;
}
.ae-bom-row-chk:disabled {
    cursor: not-allowed;
}
.ae-bom-row-thumb-wrap {
    width: 64px;
    height: 64px;
}
.ae-bom-row-thumb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    overflow: hidden;
    text-decoration: none;
}
.ae-bom-row-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ae-bom-row-thumb.is-fallback {
    background: #f8fafc;
    color: #64748b;
}
.ae-bom-row-thumb-svg {
    width: 34px;
    height: 34px;
}
.ae-bom-row-info {
    min-width: 0;
}
.ae-bom-role {
    font-size: 11.5px;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 2px;
}
.ae-bom-name {
    font-weight: 700;
    color: #0f2342;
    line-height: 1.38;
}
.ae-bom-name a {
    color: #0f2342;
    text-decoration: none;
}
.ae-bom-name a:hover {
    color: #0284c7;
    text-decoration: underline;
}
.ae-bom-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.ae-bom-sku-code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #0f2342;
    padding: 2px 7px;
    border-radius: 5px;
}
.ae-bom-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 2px 8px;
    text-decoration: none;
    white-space: nowrap;
}
.ae-bom-pdf-link:hover {
    background: #dbeafe;
    text-decoration: none;
}
.ae-bom-uom-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.ae-bom-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.ae-bom-status--instock {
    background: #dcfce7;
    color: #166534;
}
.ae-bom-status--onbackorder {
    background: #fef9c3;
    color: #854d0e;
}
.ae-bom-status--spec {
    background: #ffedd5;
    color: #9a3412;
}
.ae-bom-alt-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}
.ae-bom-alt-chip:hover {
    background: #cffafe;
    text-decoration: none;
}
.ae-bom-row-pricing {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}
.ae-bom-row-sum {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f2342;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}
.ae-bom-row-unit {
    font-size: 12px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.ae-bom-summary {
    position: sticky;
    top: 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(15, 35, 66, 0.06);
}
.ae-bom-summary h2 {
    font-size: 17px;
    font-weight: 800;
    color: #0f2342;
    margin: 0 0 12px;
}
.ae-bom-sum-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}
.ae-bom-sum-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: #334155;
}
.ae-bom-sum-line strong {
    color: #0f2342;
    font-weight: 700;
    white-space: nowrap;
}
.ae-bom-grand {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.ae-bom-grand-lbl {
    font-size: 14px;
    font-weight: 800;
    color: #0f2342;
}
.ae-bom-grand-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f2342;
    white-space: nowrap;
}
.ae-bom-vat-note {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 14px;
}
.ae-bom-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.ae-bom-cart-status {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    display: none;
}
.ae-bom-cart-status.is-visible {
    display: block;
}
.ae-bom-cart-status.is-ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.ae-bom-cart-status.is-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.ae-bom-cart-status.is-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.ae-bom-cart-go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 7px 13px;
    border-radius: 8px;
    background: #0f2342;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
}
.ae-bom-cart-go:hover {
    background: #173869;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 1199px) {
    .ae-bom-grid.is-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1139px) {
    .ae-bom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ae-bom-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .ae-bom-summary {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .ae-bom-hub-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .ae-bom-mobile-filter-btn {
        display: inline-flex;
    }
    .ae-bom-hub-sidebar {
        display: none;
    }
    .ae-bom-hub-sidebar.is-open {
        display: flex;
        order: -1;
    }
    .ae-bom-sb-mobile-head {
        display: flex;
    }
}

@media (max-width: 760px) {
    .ae-bom-cat-section {
        padding: 15px 14px;
    }
    .ae-bom-grid,
    .ae-bom-grid.is-hub {
        grid-template-columns: minmax(0, 1fr);
    }
    .ae-bom-hero {
        padding: 18px 16px;
    }
    .ae-bom-hero h1 {
        font-size: 21px;
    }
    .ae-bom-hero-total {
        width: 100%;
    }
}

@media (max-width: 639px) {
    .ae-bom-hero-media {
        width: 100%;
        max-width: 220px;
        height: 160px;
        flex: 0 0 auto;
    }
    .ae-bom-item-row {
        grid-template-columns: 24px 52px minmax(0, 1fr);
        grid-template-areas:
            "chk thumb info"
            "price price price";
        gap: 10px 12px;
        padding: 12px 14px;
        align-items: start;
    }
    .ae-bom-chk-cell {
        grid-area: chk;
        padding-top: 4px;
    }
    .ae-bom-row-thumb-wrap,
    .ae-bom-row-thumb {
        grid-area: thumb;
        width: 52px;
        height: 52px;
    }
    .ae-bom-row-info {
        grid-area: info;
    }
    .ae-bom-row-pricing {
        grid-area: price;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding-top: 8px;
        border-top: 1px dashed #e2e8f0;
        text-align: right;
    }
    .ae-bom-row-sum {
        order: 2;
        font-size: 15px;
    }
    .ae-bom-row-unit {
        order: 1;
        margin-top: 0;
        text-align: left;
        white-space: normal;
    }
}
