/* Body makers / fabricators listing */
.bm-page {
    --bm-red: #d81416;
    --bm-ink: #12263a;
    --bm-muted: #6b7280;
    --bm-border: #e8ecf0;
    --bm-bg: #f5f6f8;
    background: var(--bm-bg);
    padding-bottom: 40px;
}

.bm-page .breadCrumn,
.bm-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--bm-border);
}

.bm-breadcrumb .breadcrumb {
    margin: 0;
    padding: 12px 0;
    background: transparent;
}

.bm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 55%, #fff5f5 100%);
    border-bottom: 1px solid var(--bm-border);
    padding: 28px 0 24px;
}

.bm-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--bm-red) 0%, #f07178 100%);
}

.bm-hero__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bm-red);
}

.bm-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--bm-ink);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.bm-hero__sub {
    margin: 0 0 16px;
    max-width: 40rem;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bm-muted);
}

.bm-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--bm-border);
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.bm-pill i {
    color: var(--bm-red);
}

.bm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 20px 0 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.05);
}

.bm-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}

.bm-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.bm-search input,
.bm-filter select {
    width: 100%;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: var(--bm-ink);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.bm-search input {
    padding: 0 12px 0 36px;
}

.bm-filter {
    flex: 0 1 200px;
    min-width: 160px;
}

.bm-filter select {
    padding: 0 12px;
    cursor: pointer;
}

.bm-search input:focus,
.bm-filter select:focus {
    border-color: rgba(216, 20, 22, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(216, 20, 22, 0.08);
}

.bm-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-muted);
    white-space: nowrap;
}

.bm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bm-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bm-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 20, 22, 0.28);
    box-shadow: 0 8px 20px rgba(18, 38, 58, 0.08);
}

.bm-card.is-hidden {
    display: none !important;
}

.bm-card__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.bm-card__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216, 20, 22, 0.08);
    color: var(--bm-red);
    font-size: 18px;
}

.bm-card__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-ink);
    line-height: 1.35;
    text-decoration: none;
}

.bm-card__state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bm-muted);
}

.bm-card__state i {
    color: var(--bm-red);
}

.bm-card__facts {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.bm-card__facts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
}

.bm-card__facts li i {
    margin-top: 2px;
    width: 14px;
    text-align: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.bm-card__facts a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}

.bm-card__facts a:hover {
    color: var(--bm-red);
}

.bm-card__actions {
    margin-top: auto;
    padding-top: 4px;
}

.bm-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: var(--bm-red);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.bm-card__cta:hover,
.bm-card__cta:focus {
    background: #b91214;
    color: #fff !important;
    outline: none;
}

.bm-empty {
    display: none;
    grid-column: 1 / -1;
    padding: 36px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: var(--bm-muted);
    font-size: 14px;
}

.bm-empty.is-visible {
    display: block;
}

.bm-aside .widget {
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.05);
    margin-bottom: 16px;
}

.bm-aside .widget.ads {
    padding: 0;
    overflow: hidden;
}

.bm-aside .widget.ads img {
    display: block;
    width: 100%;
    height: auto;
}

.bm-main {
    margin-top: 18px;
}

@media (max-width: 991px) {
    .bm-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bm-hero {
        padding: 20px 0 18px;
    }

    .bm-toolbar {
        padding: 12px;
    }

    .bm-count {
        margin-left: 0;
        width: 100%;
    }

    .bm-card:hover {
        transform: none;
    }
}
