.b2b-catalogo-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.b2b-catalogo-topbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    padding: 10px 0;
}

.b2b-buscador {
    flex: 1;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.b2b-ver-pedido,
.b2b-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #222;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.b2b-add-cart.loading {
    opacity: .65;
    pointer-events: none;
}

.b2b-add-cart.added {
    background: #207245;
}

.b2b-link {
    background: #555;
}

.b2b-catalogo-header,
.b2b-producto-row {
    display: grid;
    grid-template-columns: 140px minmax(220px, 1fr) 130px 110px 120px;
    gap: 10px;
    align-items: center;
}

.b2b-catalogo-header {
    padding: 10px 12px;
    font-weight: 700;
    color: #555;
    border-bottom: 2px solid #e8e8e8;
}

.b2b-producto-row {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.b2b-producto-row:hover {
    background: #fafafa;
}

.b2b-sku {
    font-weight: 700;
    color: #333;
}

.b2b-nombre {
    font-weight: 500;
}

.b2b-precio {
    font-weight: 700;
}

.b2b-qty {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.b2b-variable-label {
    color: #777;
    font-size: 13px;
}

.b2b-sin-resultados {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 780px) {
    .b2b-catalogo-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-catalogo-header {
        display: none;
    }

    .b2b-producto-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
        margin-bottom: 10px;
        border: 1px solid #eee;
        border-radius: 10px;
    }

    .b2b-producto-row > div::before {
        content: attr(data-label) ': ';
        font-weight: 700;
        color: #777;
    }

    .b2b-accion::before {
        content: '' !important;
    }

    .b2b-add-cart,
    .b2b-ver-pedido {
        width: 100%;
    }
}
